| | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 数据查询对象 |
| | |
| | | private JSONObject responseInfo; |
| | | |
| | | private ServiceSql serviceSql; |
| | | |
| | | //rest 返回对象 |
| | | private ResponseEntity responseEntity; |
| | | |
| | | |
| | | |
| | |
| | | this.serviceSql = serviceSql; |
| | | } |
| | | |
| | | public ResponseEntity getResponseEntity() { |
| | | return responseEntity; |
| | | } |
| | | |
| | | public void setResponseEntity(ResponseEntity responseEntity) { |
| | | this.responseEntity = responseEntity; |
| | | } |
| | | |
| | | /** |
| | | * { |
| | |
| | | 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; |
| | | } |
| | | } |