Browse Source

fix bug:赋值失败则直接跳过并移除错误的信息点

lijie 3 years ago
parent
commit
f06e3b4ad4

+ 4 - 1
src/main/java/com/persagy/proxy/object/controller/AdmSpaceController.java

@@ -160,7 +160,10 @@ public class AdmSpaceController {
                         // 如果属性值存在
                         ReflectUtil.setFieldValue(space,fieldMap.get(mapKey),infos.get(mapKey));
                     }
-                } catch (Exception e){}
+                } catch (Exception e){
+                    // 信息点传值有问题,直接移除
+                    infos.remove(mapKey);
+                }
             }
         }
         return service.doUpdate(vos);