零部件分类树同步接口修改
This commit is contained in:
+5
-1
@@ -3,6 +3,8 @@ package com.jero.modules.docking.utils;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jero.common.constant.CommonConstant;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author lqt
|
||||
* @version 1.0
|
||||
@@ -14,7 +16,9 @@ public class ResponsesUtil {
|
||||
public static JSONObject getJsonResult(Object jsonMessageHeader,JSONObject jsonResponses) {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("MessageHeader",jsonMessageHeader);
|
||||
json.put("Responses",jsonResponses);
|
||||
if(!Objects.isNull(jsonResponses)){
|
||||
json.put("Responses",jsonResponses);
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user