| | |
| | | import com.zt.common.validator.group.AddGroup; |
| | | import com.zt.common.validator.group.DefaultGroup; |
| | | import com.zt.common.validator.group.UpdateGroup; |
| | | import com.zt.core.context.User; |
| | | import com.zt.core.context.UserContext; |
| | | import com.zt.core.sys.model.SysUser; |
| | | import com.zt.life.modules.project.dto.ProjectUserDto; |
| | |
| | | if (data.getBizDeptId() == null) { |
| | | data.setBizDeptId(UserContext.getDeptId().toString()); |
| | | } |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | data.setUsersecretClass(secretClass); |
| | | return Result.ok(data); |
| | | } |
| | | |
| | |
| | | map.put("year", year); |
| | | project.setYear(year); |
| | | project.setCode(sysCodeRuleService.getNewCode(map)); |
| | | |
| | | projectService.insert(project); |
| | | return Result.ok(); |
| | | } |