12 changed files with 343 additions and 12 deletions
@ -0,0 +1,60 @@ |
|||||
|
package com.elink.esua.epdc.dto.item.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.Min; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description 疑难项目分析DTO |
||||
|
* @Author zy |
||||
|
* @Date 2020/2/11 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ItemAnalysisFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 6144783947444092507L; |
||||
|
|
||||
|
/** |
||||
|
* 页码 |
||||
|
*/ |
||||
|
@Min(value = 1, message = "页码必须大于0") |
||||
|
private Integer pageIndex; |
||||
|
|
||||
|
/** |
||||
|
* 页容量,默认5页 |
||||
|
*/ |
||||
|
@Min(value = 1, message = "每页条数必须大于0") |
||||
|
private Integer pageSize; |
||||
|
|
||||
|
/** |
||||
|
* 第一页查询发起时的时间 |
||||
|
*/ |
||||
|
@NotBlank(message = "时间戳不能为空") |
||||
|
private String timestamp; |
||||
|
|
||||
|
/** |
||||
|
* 分析类型(1:耗时最长,2:设计部门最多,3:处理次数最多) |
||||
|
*/ |
||||
|
@NotNull(message = "分析类型不能为空") |
||||
|
private Integer analysisType; |
||||
|
|
||||
|
/** |
||||
|
* 项目状态(1:结案或关闭,2:解决中) |
||||
|
*/ |
||||
|
@NotNull(message = "项目状态不能为空") |
||||
|
private Integer itemState; |
||||
|
|
||||
|
/** |
||||
|
* 数据时间类型(1:最近1个月,2:最近3个月,3:最近半年,4:最近一年) |
||||
|
*/ |
||||
|
@NotNull(message = "数据时间类型不能为空") |
||||
|
private Integer someMonthsType; |
||||
|
|
||||
|
/** |
||||
|
* 部门ID列表 |
||||
|
*/ |
||||
|
List<Long> deptIdList; |
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
package com.elink.esua.epdc.dto.item.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description 疑难项目分析DTO |
||||
|
* @Author zy |
||||
|
* @Date 2020/2/11 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ItemAnalysisResultDTO implements Serializable { |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 项目内容 |
||||
|
*/ |
||||
|
private String content; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private String createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 图片 |
||||
|
*/ |
||||
|
private List<String> images; |
||||
|
|
||||
|
/** |
||||
|
* 项目状态 0-处理中,5-已关闭,10-已结案 |
||||
|
*/ |
||||
|
private Integer itemState; |
||||
|
|
||||
|
/** |
||||
|
* 分类名称 |
||||
|
*/ |
||||
|
private String categoryName; |
||||
|
|
||||
|
/** |
||||
|
* 部门名称 |
||||
|
*/ |
||||
|
private String deptName; |
||||
|
|
||||
|
/** |
||||
|
* 耗时(小时) |
||||
|
*/ |
||||
|
private Integer spendTime; |
||||
|
|
||||
|
/** |
||||
|
* 部门数量 |
||||
|
*/ |
||||
|
private Integer deptCount; |
||||
|
|
||||
|
/** |
||||
|
* 处理次数 |
||||
|
*/ |
||||
|
private Integer handleCount; |
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
package com.elink.esua.epdc.modules.item.controller; |
||||
|
|
||||
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
||||
|
import com.elink.esua.epdc.dto.item.form.ItemAnalysisFormDTO; |
||||
|
import com.elink.esua.epdc.dto.item.result.ItemAnalysisResultDTO; |
||||
|
import com.elink.esua.epdc.modules.item.service.ItemAnalysisService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 手机端领导数据-项目 |
||||
|
* |
||||
|
* @author zy |
||||
|
* @since 2020-2-11 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("appitem") |
||||
|
public class AppItemAnalysisController { |
||||
|
|
||||
|
@Autowired |
||||
|
private ItemAnalysisService itemAnalysisService; |
||||
|
|
||||
|
/** |
||||
|
* @Description: 疑难项目分析 |
||||
|
* @Param: [formDto] |
||||
|
* @return: com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.item.result.ItemAnalysisResultDTO>> |
||||
|
* @Author: zy |
||||
|
* @Date: 2020-02-11 |
||||
|
*/ |
||||
|
@GetMapping("getItemAnalysis") |
||||
|
public Result<List<ItemAnalysisResultDTO>> getItemAnalysis(@RequestBody ItemAnalysisFormDTO formDto) { |
||||
|
List<ItemAnalysisResultDTO> data = itemAnalysisService.getItemAnalysis(formDto); |
||||
|
return new Result<List<ItemAnalysisResultDTO>>().ok(data); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue