|
|
|
@ -149,19 +149,10 @@ public class PlanAssignSteerModifyController extends BladeController { |
|
|
|
public R audit(@RequestBody PlanAssignSteerModifyVO vo) { |
|
|
|
public R audit(@RequestBody PlanAssignSteerModifyVO vo) { |
|
|
|
|
|
|
|
|
|
|
|
Long id = vo.getId(); |
|
|
|
Long id = vo.getId(); |
|
|
|
if (Objects.isNull(id)) { |
|
|
|
|
|
|
|
return R.fail("请选择要审批的记录"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Integer result = vo.getResult(); |
|
|
|
Integer result = vo.getResult(); |
|
|
|
if (Objects.isNull(result) || result < 1 || result > 2) { |
|
|
|
|
|
|
|
return R.fail("审批结果: 1-通过, 2-驳回"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String remark = vo.getRemark(); |
|
|
|
String remark = vo.getRemark(); |
|
|
|
if (2 == result && StrUtil.isEmpty(remark)) { |
|
|
|
|
|
|
|
return R.fail("请填写审批意见"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return service.audit(id, result, remark); |
|
|
|
return service.audit(id, result, remark); |
|
|
|
} |
|
|
|
} |
|
|
|
|