rengb 5 سال پیش
والد
کامیت
079ac939ba

+ 4 - 2
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0049.java

@@ -8,7 +8,7 @@ import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.stereotype.Component;
 
 /**
- * @Description:
+ * @Description: 特殊嗜好未描述
  * @author: rengb
  * @time: 2020/3/10 14:02
  */
@@ -18,7 +18,9 @@ public class BEH0049 extends QCCatalogue {
     @Override
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         SpecialHobby specialHobby = inputInfo.getBeHospitalizedDoc().getPersonalLabel().getSpecialHobby();
-        if (specialHobby != null && StringUtil.isNotBlank(specialHobby.getName())) {
+        if (specialHobby == null
+                || StringUtil.isBlank(specialHobby.getName())
+                || (specialHobby.getNegative() != null && StringUtil.isNotBlank(specialHobby.getNegative().getName()))) {
             status = "0";
         }
     }

+ 2 - 1
public/src/main/java/com/lantone/qc/pub/model/entity/SpecialHobby.java

@@ -11,5 +11,6 @@ import lombok.Setter;
  */
 @Getter
 @Setter
-public class SpecialHobby extends General{
+public class SpecialHobby extends General {
+    private Negative negative;
 }