java110-bean/src/main/java/com/java110/entity/service/DataQuery.java
@@ -4,6 +4,8 @@ import com.alibaba.fastjson.JSONObject; import org.springframework.http.ResponseEntity; import java.util.Map; /** * 数据查询对象 * Created by wuxw on 2018/4/19. @@ -112,4 +114,10 @@ this.setRequestParams(currentBusinessInfo.getJSONObject("datas").getJSONObject("params")); return this; } public DataQuery builder(Map<String, Object> headers){ this.setServiceCode(headers.get("service").toString()); this.setRequestParams(JSONObject.parseObject(JSONObject.toJSONString(headers.get("params")))); return this; } }