Browse Source

详情返参调整

dev
sunyuchao 3 years ago
parent
commit
47ffb5c28c
  1. 34
      epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/result/IcEventListResultDTO.java
  2. 2
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/controller/IcEventController.java
  3. 6
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/IcEventServiceImpl.java

34
epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/result/IcEventListResultDTO.java

@ -41,14 +41,6 @@ public class IcEventListResultDTO implements Serializable {
* 音频[url集合]
*/
private List<String> voiceList;
/**
* 分类Id
*/
private String categoryId;
/**
* 分类名称(医疗-二类名)
*/
private String categoryName;
/**
* 上报渠道[字典表]
*/
@ -100,6 +92,32 @@ public class IcEventListResultDTO implements Serializable {
*/
private String createdUserId;
/**
* 上级分类ID 顶级此列存储0
*/
private String parentCategoryId;
/**
* 分类Id
*/
private String categoryId;
/**
* 上级分类编码
*/
private String parentCategoryCode;
/**
* 分类编码
*/
private String categoryCode;
/**
* 上级分类名称
*/
private String parentCategoryName;
/**
* 分类名称
*/
private String categoryName;
/**
* 事件附件
*/

2
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/controller/IcEventController.java

@ -235,7 +235,7 @@ public class IcEventController {
/**
* @Author sun
* @Description 事件管理-评价
* @Description 事件管理-详情
**/
@PostMapping("detail")
public Result<IcEventListResultDTO> detail(@RequestBody IcEventListFormDTO formDTO) {

6
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/IcEventServiceImpl.java

@ -836,6 +836,12 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit
CategoryTagResultDTO category = queryCategory(formDTO.getCustomerId(), categoryList);
for (IssueProjectCategoryDictDTO ca : category.getCategoryList()){
if (ca.getId().equals(resultDTO.getCategoryId())) {
resultDTO.setParentCategoryId(ca.getPid());
resultDTO.setCategoryId(ca.getId());
resultDTO.setParentCategoryCode(ca.getParentCategoryCode());
resultDTO.setCategoryCode(ca.getCategoryCode());
resultDTO.setParentCategoryName(ca.getParentCategoryName());
resultDTO.setCategoryName(ca.getCategoryName());
resultDTO.setCategoryName(ca.getParentCategoryName()+"-"+ca.getCategoryName());
}
}

Loading…
Cancel
Save