Merge branch 'develop_migration' into 'develop_master'

feat: There is no way the, 政策入库 新增 多选日期

See merge request LiuChao/foton-slrs-system-rest!448
This commit is contained in:
super_liu
2022-04-08 18:07:52 +08:00
2 changed files with 3 additions and 2 deletions
@@ -123,11 +123,11 @@ public class ActSarItemsLawsEOService {
String result = ""; String result = "";
if(StringUtils.isNotBlank(standMap.get(entry.getKey()).toString())){ if(StringUtils.isNotBlank(standMap.get(entry.getKey()).toString())){
Object value= new JSONTokener(standMap.get(entry.getKey()).toString()).nextValue(); Object value= new JSONTokener(standMap.get(entry.getKey()).toString()).nextValue();
if(value instanceof org.json.JSONArray){ if(value instanceof org.json.JSONArray && !",".contains(standMap.get(entry.getKey()).toString())){
result = String.join(",",JSONObject.parseArray(value.toString(),String.class)); result = String.join(",",JSONObject.parseArray(value.toString(),String.class));
}else { }else {
if(!value.equals("null")){ if(!value.equals("null")){
result =value.toString(); result =standMap.get(entry.getKey()).toString();
} }
} }
} }
@@ -877,6 +877,7 @@ public class SarLawsStandInfoServiceImpl extends ServiceImpl<SarLawsStandInfoDao
fileIds += attrValue + ","; fileIds += attrValue + ",";
} else if (InitStandAttrUtil.multiTimeFieldList.contains(attrKey)) { } else if (InitStandAttrUtil.multiTimeFieldList.contains(attrKey)) {
multiTimeMap.put(attrKey,attrValue); multiTimeMap.put(attrKey,attrValue);
attrValue = "'" + attrValue + "'";
} }
// 不同类型存储数据需单独处理值 // 不同类型存储数据需单独处理值
if (InitStandAttrUtil.numFieldListLaws.contains(attrKey)) { if (InitStandAttrUtil.numFieldListLaws.contains(attrKey)) {