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

This commit is contained in:
super_liu
2022-04-08 17:39:24 +08:00
parent ae9ad4ce8e
commit 30f6b276df
2 changed files with 3 additions and 2 deletions
@@ -123,11 +123,11 @@ public class ActSarItemsLawsEOService {
String result = "";
if(StringUtils.isNotBlank(standMap.get(entry.getKey()).toString())){
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));
}else {
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 + ",";
} else if (InitStandAttrUtil.multiTimeFieldList.contains(attrKey)) {
multiTimeMap.put(attrKey,attrValue);
attrValue = "'" + attrValue + "'";
}
// 不同类型存储数据需单独处理值
if (InitStandAttrUtil.numFieldListLaws.contains(attrKey)) {