zhoutg 6 년 전
부모
커밋
b175f173ca

+ 1 - 1
aipt-service/src/main/java/com/diagbot/facade/ConceptFacade.java

@@ -138,7 +138,7 @@ public class ConceptFacade extends ConceptServiceImpl {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "名称列表不能为空");
         }
 
-        if (conceptExistVO.getType() == null) {
+        if (conceptExistVO.getType() != null) {
             Integer libType = ParamConvertUtil.conceptConvert2Lib(conceptExistVO.getType());
             if (libType == null) {
                 throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "类型不匹配");

+ 1 - 1
knowledgeman-service/src/main/java/com/diagbot/facade/ConceptFacade.java

@@ -763,7 +763,7 @@ public class ConceptFacade extends ConceptServiceImpl {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "名称列表不能为空");
         }
 
-        if (conceptExistVO.getType() == null) {
+        if (conceptExistVO.getType() != null) {
             Integer libType = ParamConvertUtil.conceptConvert2Lib(conceptExistVO.getType());
             if (libType == null) {
                 throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "类型不匹配");

+ 3 - 3
knowledgeman-service/src/main/java/com/diagbot/vo/ConceptExistVO.java

@@ -7,9 +7,9 @@ import lombok.Setter;
 import java.util.List;
 
 /**
- * @Description:
- * @author: gaodm
- * @time: 2019/5/6 18:50
+ * @description:
+ * @author: zhoutg
+ * @date: 2019/5/13 9:57
  */
 @Getter
 @Setter