瀏覽代碼

icssman删除无用代码

gaodm 6 年之前
父節點
當前提交
155ea89f2a

+ 0 - 18
icssman-service/src/main/java/com/diagbot/dto/GetDeptNameDTO.java

@@ -1,18 +0,0 @@
-package com.diagbot.dto;
-
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * @Description:
- * @author: wangyu
- * @time: 2019/4/2 11:39
- */
-@Getter
-@Setter
-public class GetDeptNameDTO {
-    //科室id
-    private Long id;
-    //科室名称
-    private String name;
-}

+ 0 - 27
icssman-service/src/main/java/com/diagbot/dto/IndexRevDTO.java

@@ -1,27 +0,0 @@
-/**
- * 
- */
-package com.diagbot.dto;
-
-import java.util.List;
-
-import com.diagbot.entity.QuestionInfo;
-
-import io.swagger.annotations.ApiModel;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * @Description
- * @author rgb
- * @time 2018年12月19日下午2:06:21
- */
-@SuppressWarnings("serial")
-@ApiModel(value="同义词excel文件导入接口出参")
-@Getter
-@Setter
-public class IndexRevDTO extends QuestionInfo{
-	
-	private String typeName;
-
-}

+ 0 - 23
icssman-service/src/main/java/com/diagbot/dto/QuestionTypeDTO.java

@@ -1,23 +0,0 @@
-package com.diagbot.dto;
-
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * @Description:
- * @author: wangyu
- * @time: 2019/3/12 11:29
- */
-@Getter
-@Setter
-public class QuestionTypeDTO {
-    /**
-     * 标签类型
-     */
-    private Integer type;
-
-    /**
-     * 标签名称
-     */
-    private String typeName;
-}

+ 0 - 15
icssman-service/src/main/java/com/diagbot/dto/VitalInfoDTO.java

@@ -1,15 +0,0 @@
-package com.diagbot.dto;
-
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * @Description:
- * @Author:zhaops
- * @time: 2018/11/29 15:09
- */
-@Getter
-@Setter
-public class VitalInfoDTO extends QuestionShortDTO{
-    private Integer orderNo;
-}

+ 0 - 38
icssman-service/src/main/java/com/diagbot/facade/QuestionFacade.java

@@ -472,44 +472,6 @@ public class QuestionFacade extends QuestionInfoServiceImpl {
         return res;
     }
 
-    //    /**
-    //     * 别名新增标签检索
-    //     *
-    //     * @param questionIndexVO
-    //     * @return
-    //     */
-    //    public List<IndexRevDTO> indexRev(QuestionIndexVO questionIndexVO) {
-    //        Map<String, Object> paramMap = new HashMap<>();
-    //        paramMap.put("age", questionIndexVO.getAge());
-    //        paramMap.put("sexType", questionIndexVO.getSexType());
-    //        paramMap.put("tagName", questionIndexVO.getTagName());
-    //        paramMap.put("type", questionIndexVO.getType());
-    //        paramMap.put("controlType", questionIndexVO.getControlType());
-    //        paramMap.put("notIds", questionIndexVO.getNotIds());
-    //        paramMap.put("tagType", questionIndexVO.getTagType());
-    //        paramMap.put("existName", questionIndexVO.getExistName());
-    //        paramMap.put("notTagType", questionIndexVO.getNotTagType());
-    //        paramMap.put("notControlType", questionIndexVO.getNotControlType());
-    //        List<QuestionInfo> list = this.index(paramMap);
-    //        if (ListUtil.isNotEmpty(list)) {
-    //            Map<Long, Long> couMap = retrievalMappingFacade.getMapCouByQuesIds(list.stream().map(i -> i.getId()).collect(Collectors.toList()));
-    //            list = list.stream().filter(i -> {
-    //                if (couMap.get(i.getId()) != null) {
-    //                    return false;
-    //                }
-    //                return true;
-    //            }).collect(Collectors.toList());
-    //            if (ListUtil.isNotEmpty(list)) {
-    //                List<IndexRevDTO> indexRevDTOList = BeanUtil.listCopyTo(list, IndexRevDTO.class);
-    //                indexRevDTOList.forEach(i -> {
-    //                    i.setTypeName(QuestionTypeEnum.getName(i.getType()));
-    //                });
-    //                return indexRevDTOList;
-    //            }
-    //        }
-    //        return null;
-    //    }
-
     /**
      * 根据主标签id 检索子标签
      *

+ 10 - 23
icssman-service/src/main/java/com/diagbot/web/QuestionInfoController.java

@@ -1,20 +1,8 @@
 package com.diagbot.web;
 
 
-import java.util.List;
-import java.util.Map;
-
-import com.diagbot.vo.QuestionIndexSubVO;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.transaction.annotation.Transactional;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.diagbot.annotation.SysLogger;
-import com.diagbot.dto.IndexRevDTO;
 import com.diagbot.dto.QuestionDTO;
 import com.diagbot.dto.QuestionPageDTO;
 import com.diagbot.dto.RespDTO;
@@ -22,16 +10,24 @@ import com.diagbot.entity.QuestionInfo;
 import com.diagbot.facade.QuestionFacade;
 import com.diagbot.vo.DeleteQuestionVO;
 import com.diagbot.vo.QuestionIdsVO;
+import com.diagbot.vo.QuestionIndexSubVO;
 import com.diagbot.vo.QuestionIndexVO;
 import com.diagbot.vo.QuestionPageVO;
 import com.diagbot.vo.QuestionSaveVO;
 import com.diagbot.vo.QuestionSpecVO;
 import com.diagbot.vo.QuestionVO;
-
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
 
 import javax.validation.Valid;
+import java.util.List;
+import java.util.Map;
 
 /**
  * <p>
@@ -80,20 +76,11 @@ public class QuestionInfoController {
         return RespDTO.onSuc(data);
     }
 
-//    @ApiOperation(value = "别名新增标签检索[by:rengb]",
-//            notes = "")
-//    @PostMapping("/indexRev")
-//    @SysLogger("indexRev")
-//    public RespDTO<List<IndexRevDTO>> indexRev(@RequestBody QuestionIndexVO questionIndexVO) {
-//        List<IndexRevDTO> data = questionFacade.indexRev(questionIndexVO);
-//        return RespDTO.onSuc(data);
-//    }
-
     @ApiOperation(value = "子标签检索[by:zhaops]",
             notes = "")
     @PostMapping("/indexSub")
     @SysLogger("indexSub")
-    public RespDTO<List<QuestionInfo>> indexSub(@RequestBody @Valid  QuestionIndexSubVO questionIndexSubVO) {
+    public RespDTO<List<QuestionInfo>> indexSub(@RequestBody @Valid QuestionIndexSubVO questionIndexSubVO) {
         List<QuestionInfo> data = questionFacade.indexSub(questionIndexSubVO);
         return RespDTO.onSuc(data);
     }