修改校验参数

master
bynt 11 months ago
parent 2efec7c5bd
commit 092aaa12b0

@ -210,9 +210,6 @@ public class CustomServiceImpl extends ExtendServiceImpl<CustomMapper, CustomEnt
Integer status = dto.getStatus(); Integer status = dto.getStatus();
CustomEntity customEntity = baseMapper.selectById(id); CustomEntity customEntity = baseMapper.selectById(id);
if (ObjectUtil.isNotNull(customEntity)) { if (ObjectUtil.isNotNull(customEntity)) {
if (customEntity.getCustomType() == 0) {
throw new BadRequestException("只能审核B类表单!");
}
if (ObjectUtil.isNotNull(status) && status == 1) { if (ObjectUtil.isNotNull(status) && status == 1) {
customEntity.setType(2); customEntity.setType(2);
customEntity.setCustomType(0); customEntity.setCustomType(0);

Loading…
Cancel
Save