供应商-客户中间表引用表的新增修改删除修改
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package org.dromara.xzd.utilS;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import jakarta.servlet.ServletRequest;
|
||||
@ -41,7 +42,10 @@ public class RequestParamExtractor {
|
||||
JSONObject json = JSONObject.parseObject(requestBody);
|
||||
for (String field : extractFields) {
|
||||
if (json.containsKey(field)) {
|
||||
params.put(field, json.get(field));
|
||||
Object o = json.get(field);
|
||||
if (ObjectUtil.isNotEmpty(o)) {
|
||||
params.put(field, o);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user