|
@@ -454,20 +454,7 @@ 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());
|
|
|
-// }
|
|
|
-// } catch (Exception e) {
|
|
|
-// throw new XiaoShiException("装载失败");
|
|
|
-// }
|
|
|
- String value = item.getValue().toString();
|
|
|
- if (item.getField().equals("ifPresentOpinions1") && StringUtils.isEmpty(value)) {
|
|
|
- LambdaUpdateWrapper<EvidenceReason> wrapper = new LambdaUpdateWrapper<EvidenceReason>()
|
|
|
- .eq(BaseEntity::getId, id)
|
|
|
- .set(EvidenceReason::getIfPresentOpinions1, null);
|
|
|
- evidenceReason.update(wrapper);
|
|
|
- } else {
|
|
|
+
|
|
|
try {
|
|
|
if (item.getValue() != null) {
|
|
|
GenerateObjectUtil.setObjectProperty(evidenceReason, item.getField(), item.getValue());
|
|
@@ -476,9 +463,8 @@ public class EvidenceReasonService extends ServiceImpl<EvidenceReasonMapper, Evi
|
|
|
} catch (Exception e) {
|
|
|
throw new XiaoShiException("装载失败");
|
|
|
}
|
|
|
- }
|
|
|
+
|
|
|
});
|
|
|
-// evidenceReason.updateById();
|
|
|
}
|
|
|
return true;
|
|
|
|