wuxw7
2018-11-18 0819935913aecfb9e45b64d113a30820ba762f1e
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;
    }
}