Quellcode durchsuchen

fixed 官方无效

zero vor 1 Jahr
Ursprung
Commit
017a408e6b

+ 6 - 8
src/main/java/cn/cslg/pas/common/utils/GenerateObjectUtil.java

@@ -19,21 +19,19 @@ public class GenerateObjectUtil {
     public static void setObjectProperty(Object obj, String propertyName, Object value) throws Exception {
 //        String setMethodName = "set" + propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1);
         Field field = obj.getClass().getDeclaredField(propertyName);
-       field.setAccessible(true);
-       if(value!=null&&field.getType()!=value.getClass()){
-           value=null;
-       }
-       field.set(obj,value);
-
+        field.setAccessible(true);
+        if (value != null && field.getType() != value.getClass()) {
+            value = null;
+        }
+        field.set(obj, value);
     }
 
     /**
-     *
      * @param obj
      * @param propertyName
      * @return
      */
-    public static Object getPropertyValue(Object obj, String propertyName){
+    public static Object getPropertyValue(Object obj, String propertyName) {
         try {
             String getMethodName = "get" + propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1);
             Method method = obj.getClass().getMethod(getMethodName);

+ 3 - 3
src/main/java/cn/cslg/pas/common/vo/invalidVO/QueryEvidenceReasonVO.java

@@ -44,11 +44,11 @@ public class QueryEvidenceReasonVO {
     /**
      * 是否有第一次陈述意见
      */
-    private Boolean feIfPresentOpinions1;
+    private String feIfPresentOpinions1;
     /**
      * 是否有第二次陈述意见
      */
-    private Boolean feIfPresentOpinions2;
+    private String feIfPresentOpinions2;
     /**
      * 复审委意见
      */
@@ -71,7 +71,7 @@ public class QueryEvidenceReasonVO {
     /**
      * 是否有陈述意见
      */
-    private Boolean erIfPresentOpinions1;
+    private String erIfPresentOpinions1;
 
 
     /**

+ 2 - 2
src/main/java/cn/cslg/pas/domain/business/AssoGroupFeature.java

@@ -55,12 +55,12 @@ public class AssoGroupFeature  extends BaseEntity<AssoGroupFeature> {
      * 是否有第一次陈述意见
      */
     @TableField(value = "if_present_opinion1")
-    private Boolean ifPresentOpinions1;
+    private String ifPresentOpinions1;
     /**
      * 是否有第二次陈述意见
      */
     @TableField(value = "if_present_opinion2")
-    private Boolean ifPresentOpinions2;
+    private String ifPresentOpinions2;
     /**
      * 复审委意见
      */

+ 1 - 1
src/main/java/cn/cslg/pas/domain/business/EvidenceReason.java

@@ -39,7 +39,7 @@ public class EvidenceReason extends BaseEntity<EvidenceReason> {
      * 是否有陈述意见
      */
     @TableField(value = "if_present_opinion1")
-    private Boolean ifPresentOpinions1;
+    private String ifPresentOpinions1;
 
 
     /**

+ 0 - 1
src/main/java/cn/cslg/pas/service/business/invalidReport/AssoGroupFeatureService.java

@@ -388,7 +388,6 @@ public class AssoGroupFeatureService extends ServiceImpl<AssoGroupFeatureMapper,
                 throw new XiaoShiException("请输入值");
             }
             domainFieldDTOS.forEach(item -> {
-
                     try {
                         if (item.getValue() != null) {
                             GenerateObjectUtil.setObjectProperty(assoGroupFeature, item.getField(), item.getValue());

+ 0 - 1
src/main/java/cn/cslg/pas/service/business/invalidReport/EvidenceReasonService.java

@@ -461,7 +461,6 @@ public class EvidenceReasonService extends ServiceImpl<EvidenceReasonMapper, Evi
                 throw new XiaoShiException("请输入值");
             }
             domainFieldDTOS.forEach(item -> {
-
                     try {
                         if (item.getValue() != null) {
                             GenerateObjectUtil.setObjectProperty(evidenceReason, item.getField(), item.getValue());