提交 7754ee23 authored 作者: 李秋林's avatar 李秋林

操作人如果是城市经理的话,操作人与归属人必需一致

上级 6fdd1720
......@@ -166,6 +166,12 @@ public class PromPlanCoreController {
if (!oneSelf){
throw new ParamException(RCode.ACTIVITY_PLAN_EMPLOYEE_ERROR);
}
// 操作人如果是城市经理的话,操作人与归属人必需一致
boolean operIsSelf = manageEmployeeQueryService.isOneSelf(operVo.getOperNo());
if (operIsSelf && !operVo.getEmployeeNo().equals(operVo.getOperNo())){
throw new ParamException(RCode.ACTIVITY_PLAN_EMPLOYEE_CREATE);
}
LocalDate localDate = operVo.getDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
// LocalDate nextMonthValue = LocalDate.now().plusMonths(1);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论