Commit 2917f24c by 陶光胜

配置表

parent 484a8d17
......@@ -64,7 +64,13 @@ public class CustomSettingApiServiceImpl implements CustomSettingApiService {
if(tableSetting.getRepeateOpt() != null && tableSetting.getRepeateOpt() == 1){
//等于1表示重复更新
Map exitMap = query.getResult().get(0);
map.forEach((k, v) -> exitMap.put(k, v));
map.forEach((k, v) -> {
if(k.equals(PRIMARYKEY)){
exitMap.put("ObjectId(\"" +k + "\")", v);
} else {
exitMap.put(k, v);
}
});
map = exitMap;
} else {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "存在重复记录");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment