Commit b8a00a76 by 谢海旭

增加判空处理

1 parent 8f9edbc6
......@@ -29,6 +29,10 @@ public class SopTplParamHandler {
}
public String addMerchantId(String paramJson, String merchantId) {
if (!StringUtils.hasLength(paramJson)) {
return null;
}
HashMap map = JSON.parseObject(paramJson, HashMap.class);
map.put("merchantId", merchantId);
return JSON.toJSONString(map);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!