| | |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value = "创建人") |
| | |
| | | |
| | | @ApiModelProperty(value = "更新时间") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date updateTime; |
| | | |
| | | @ApiModelProperty(value = "更新人") |
| | |
| | | @TableField("type") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "排序") |
| | | @TableField("sort") |
| | | private Integer sort; |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value = "更新时间") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date updateTime; |
| | | |
| | | @ApiModelProperty(value = "创建人") |
| | |
| | | public void createFlow(ComplaintAuditRecord record, Integer type,Long userId) { |
| | | //获取流程部门名称 |
| | | String name = getFlowName(record.getReportType(), record.getSuperiorId()); |
| | | |
| | | Integer count = this.lambdaQuery().eq(ComplaintFlow::getComplaintId, record.getComplaintId()).count(); |
| | | ComplaintFlow complaintFlow = new ComplaintFlow(); |
| | | complaintFlow.setComplaintId(record.getComplaintId()); |
| | | complaintFlow.setLevel(record.getReportType()); |
| | | complaintFlow.setName(name); |
| | | complaintFlow.setCreateTime(new Date(System.currentTimeMillis())); |
| | | complaintFlow.setType(type); |
| | | complaintFlow.setSort(count + 1); |
| | | save(complaintFlow); |
| | | } |
| | | |
| | |
| | | } |
| | | ComplaintVO detail = baseMapper.getDetail(id); |
| | | if (detail.getStatus().equals(0)) { |
| | | List<ComplaintFlow> list = complaintFlowService.lambdaQuery().eq(ComplaintFlow::getComplaintId, id).orderByAsc(ComplaintFlow::getCreateTime).list(); |
| | | List<ComplaintFlow> list = complaintFlowService.lambdaQuery().eq(ComplaintFlow::getComplaintId, id).orderByAsc(ComplaintFlow::getSort).list(); |
| | | detail.setComplaintFlows(list); |
| | | } |
| | | //查询办理进度 |
| | |
| | | //查询诉求流转记录 |
| | | List<ComplaintFlow> complaintFlows = complaintFlowService.lambdaQuery() |
| | | .eq(ComplaintFlow::getComplaintId, id) |
| | | .orderByAsc(ComplaintFlow::getCreateTime) |
| | | .orderByAsc(ComplaintFlow::getSort) |
| | | .list(); |
| | | complaintVO.setComplaintFlows(complaintFlows); |
| | | //查询评价 |