|
@@ -77,6 +77,12 @@ public class SysImplementPlanManager {
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public Boolean createPlan(SysImplementPlanDTO.OnCreate resource, HnqzUser operator) {
|
|
|
|
|
|
+ boolean dupName = implementPlanService.dupName(resource.getPlanName(), operator.getDeptId());
|
|
|
+
|
|
|
+ if (dupName) {
|
|
|
+ throw new BizException(String.format("计划名称【%s】已存在,请更正", resource.getPlanName()));
|
|
|
+ }
|
|
|
+
|
|
|
String username = operator.getUsername();
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
SysImplementPlan plan = BeanUtil.copyProperties(resource, SysImplementPlan.class);
|