提交 ba82b35e authored 作者: 000516's avatar 000516 提交者: Coding

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

Merge Request: 操作人如果是城市经理的话,操作人与归属人必需一致 Created By: @李秋林 Accepted By: @李秋林 URL: https://g-pkkp8204.coding.net/p/promotion/d/promotion-service/git/merge/272?initial=true
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论