| | |
| | | if (planService.selectByUuid(hostId, plan.getUuid()) != null) { |
| | | throw new CoolException("规划单已存在"); |
| | | } |
| | | Date now = new Date(); |
| | | plan.setHostId(hostId); |
| | | plan.setUuid(planService.getUuid(hostId)); // 规划单代号 |
| | | plan.setDeptId(getDeptId()); // 所属部门 |
| | | plan.setUserId(getUserId()); // 所属人员 |
| | | |
| | | plan.setAppleTime(now); |
| | | plan.setCreateBy(getUserId()); |
| | | plan.setCreateTime(new Date()); |
| | | plan.setCreateTime(now); |
| | | plan.setUpdateBy(getUserId()); |
| | | plan.setUpdateTime(new Date()); |
| | | plan.setUpdateTime(now); |
| | | plan.setStatus(1); |
| | | |
| | | plan.setForm(JSON.toJSONString(param)); // 自定义表单内容 |