| | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('plan:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | public Result detail(@PathVariable("id") Long id) { |
| | | return planService.detail(id); |
| | | } |
| | | |
| | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('projectPlanExamineRecord:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | public Result detail(@PathVariable("id") Long id) { |
| | | return projectPlanExamineRecordService.detail(id); |
| | | } |
| | | |
| | |
| | | @PostMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | // @PreAuthorize("hasAuthority('projectPlanRecord:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | public Result detail(@PathVariable("id") Long id) { |
| | | return projectPlanRecordService.detail(id); |
| | | } |
| | | |
| | |
| | | |
| | | @TableField("project_id") |
| | | /** 项目id */ |
| | | private Integer projectId; |
| | | private Long projectId; |
| | | |
| | | @TableField("flow_ins_id") |
| | | /** 流程实例id */ |
| | |
| | | |
| | | @TableField("user_id") |
| | | /** 产生日志的人/或其它 */ |
| | | private Integer userId; |
| | | private Long userId; |
| | | |
| | | @TableField("event_data_json") |
| | | /** 事件数据,根据不同的事件可存储对应的扩展数据。如转办事件可存储转办前后的处理人信息 */ |
| | |
| | | private String targetId; |
| | | |
| | | @ApiModelProperty("项目id,用于保存日志") |
| | | private Integer projectId; |
| | | private Long projectId; |
| | | |
| | | @ApiModelProperty("流程实例id,用于保存日志") |
| | | private String processInsId; |
| | |
| | | |
| | | /** 项目id */ |
| | | @ApiModelProperty("项目id") |
| | | private Integer projectId; |
| | | private Long projectId; |
| | | |
| | | /** 流程实例id */ |
| | | @ApiModelProperty("流程实例id") |
| | |
| | | |
| | | /** 产生日志的人/或其它 */ |
| | | @ApiModelProperty("产生日志的人/或其它") |
| | | private Integer userId; |
| | | private Long userId; |
| | | |
| | | /** 事件数据,根据不同的事件可存储对应的扩展数据。如转办事件可存储转办前后的处理人信息 */ |
| | | @ApiModelProperty("事件数据,根据不同的事件可存储对应的扩展数据。如转办事件可存储转办前后的处理人信息") |
| | |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | public class ProjectPlanResponseVO { |
| | | private Integer id; |
| | | private Long id; |
| | | private String projectName; |
| | | private Integer reportStatus; |
| | | private String projectCode; |
| | |
| | | @NoArgsConstructor |
| | | public class ProjetPlanRecordItem { |
| | | // 项目计划记录id |
| | | private Integer id; |
| | | private Long id; |
| | | // 项目名称 |
| | | private String projectName; |
| | | // 项目代码 |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | FlowLogVO getById(Integer id); |
| | | FlowLogVO getById(Long id); |
| | | |
| | | /** |
| | | * 分页 |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | PlanVO getById(Integer id); |
| | | PlanVO getById(Long id); |
| | | |
| | | /** |
| | | * 分页 |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | ProjectPlanExamineRecordVO getById(Integer id); |
| | | ProjectPlanExamineRecordVO getById(Long id); |
| | | |
| | | /** |
| | | * 分页 |
| | |
| | | /** |
| | | * 根据项目id和标志查询计划列表 |
| | | */ |
| | | List<ProjetPlanRecordItem> selectPlanList(@Param("id") Integer id, @Param("flag") Integer flag); |
| | | List<ProjetPlanRecordItem> selectPlanList(@Param("id") Long id, @Param("flag") Integer flag); |
| | | |
| | | void insertItem(ProjectPlanRecord item); |
| | | } |
| | |
| | | * @param projectId 项目id |
| | | * @param eventDataJson json扩展内容 |
| | | */ |
| | | void add(String taskId, String flowInsId, FlowLogEventTypeEnum eventType, Integer projectId, String eventDataJson); |
| | | void add(String taskId, String flowInsId, FlowLogEventTypeEnum eventType, Long projectId, String eventDataJson); |
| | | |
| | | /** |
| | | * 批量删除 |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(Integer id); |
| | | Result detail(Long id); |
| | | |
| | | /** |
| | | * 列表 |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(Integer id); |
| | | Result detail(Long id); |
| | | |
| | | /** |
| | | * 列表 |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(Integer id); |
| | | Result detail(Long id); |
| | | |
| | | /** |
| | | * 列表 |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(Integer id); |
| | | Result detail(Long id); |
| | | |
| | | /** |
| | | * 列表 |
| | |
| | | |
| | | /** |
| | | * 添加日志 |
| | | * |
| | | * @param taskId 任务id |
| | | * @param flowInsId 流程实例id |
| | | * @param eventType 事件类型 |
| | |
| | | * @param eventDataJson json扩展内容 |
| | | */ |
| | | @Override |
| | | public void add(String taskId, String flowInsId, FlowLogEventTypeEnum eventType, Integer projectId, String eventDataJson) { |
| | | public void add(String taskId, String flowInsId, FlowLogEventTypeEnum eventType, Long projectId, String eventDataJson) { |
| | | FlowLog log = new FlowLog(); |
| | | log.setTaskId(taskId); |
| | | log.setFlowInsId(flowInsId); |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | public Result detail(Long id) { |
| | | FlowLogVO vo = baseMapper.getById(id); |
| | | Assert.notNull(vo, "记录不存在"); |
| | | return Result.ok().data(vo); |
| | |
| | | import com.ycl.common.enums.business.ProjectTypeEnum; |
| | | import com.ycl.common.utils.DateUtils; |
| | | import com.ycl.domain.entity.Plan; |
| | | import com.ycl.domain.entity.ProjectPlanRecord; |
| | | import com.ycl.domain.vo.ProjectPlanResponseVO; |
| | | import com.ycl.domain.vo.ProjetPlanRecordItem; |
| | | import com.ycl.framework.utils.PageUtil; |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | public Result detail(Long id) { |
| | | PlanVO vo = baseMapper.getById(id); |
| | | Assert.notNull(vo, "记录不存在"); |
| | | return Result.ok().data(vo); |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | public Result detail(Long id) { |
| | | ProjectPlanExamineRecordVO vo = baseMapper.getById(id); |
| | | Assert.notNull(vo, "记录不存在"); |
| | | return Result.ok().data(vo); |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | public Result detail(Long id) { |
| | | ProjectPlanRecordResponseVO vo = new ProjectPlanRecordResponseVO(); |
| | | // 获取月度计划 |
| | | vo.setMonthRecords(baseMapper.selectPlanList(id, MONTH_FLAG)); |
| | |
| | | } |
| | | } |
| | | } |
| | | taskVO.setHandlerId(handlerIds); |
| | | taskVO.setHandlerName(handlerNames); |
| | | taskVO.setHandlerUnitId(handlerUnitIds); |
| | | taskVO.setHandlerUnitName(handlerUnitNames); |
| | | vos.add(taskVO); |
| | | } |
| | | result.put("taskList", vos); |
| | |
| | | } |
| | | |
| | | @ApiOperation("获取用户详细") |
| | | @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class) |
| | | @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Long.class) |
| | | @GetMapping("/{userId}") |
| | | public R<UserEntity> getUser(@PathVariable Integer userId) |
| | | public R<UserEntity> getUser(@PathVariable Long userId) |
| | | { |
| | | if (!users.isEmpty() && users.containsKey(userId)) |
| | | { |
| | |
| | | |
| | | @ApiOperation("新增用户") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "userId", value = "用户id", dataType = "Integer", dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name = "userId", value = "用户id", dataType = "long", dataTypeClass = Long.class), |
| | | @ApiImplicitParam(name = "username", value = "用户名称", dataType = "String", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "password", value = "用户密码", dataType = "String", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "mobile", value = "用户手机", dataType = "String", dataTypeClass = String.class) |
| | |
| | | } |
| | | |
| | | @ApiOperation("删除用户信息") |
| | | @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class) |
| | | @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "long", paramType = "path", dataTypeClass = Long.class) |
| | | @DeleteMapping("/{userId}") |
| | | public R<String> delete(@PathVariable Integer userId) |
| | | public R<String> delete(@PathVariable Long userId) |
| | | { |
| | | if (!users.isEmpty() && users.containsKey(userId)) |
| | | { |