|
|
@ -42,6 +42,8 @@ public class ShRequester { |
|
|
|
private static String materiel$get_materiel_group = "/api/system/materiel/get_materiel_group"; //27.获取物料组
|
|
|
|
private static String out_stock$get_type = "/api/system/out_stock/get_type"; //28.获取出库类型
|
|
|
|
private static String in_stock$get_type = "/api/system/in_stock/get_type"; //29.获取入库类型
|
|
|
|
private static String search$get_agent_list = "/api/system/search/get_agent_list"; //30.获取代理商
|
|
|
|
private static String out_stock$get_status = "/api/system/out_stock/get_status"; //31.获取审核状态
|
|
|
|
/** |
|
|
|
* 1.待配货列表 |
|
|
|
* |
|
|
@ -406,12 +408,12 @@ public class ShRequester { |
|
|
|
* @Param [record_type] |
|
|
|
* @return com.yxt.supervise.gf.shanhai.resp.BaseResponse<com.yxt.supervise.gf.shanhai.resp.BaseResponseListObj<com.yxt.supervise.gf.shanhai.resp.StockRecordIndex>> |
|
|
|
**/ |
|
|
|
public static BaseResponse<BaseResponseListObj<StockRecordIndex>> getApi$system$stock_record$index(String record_type,Map<String, Object> params){ |
|
|
|
public static BaseResponse<BaseResponseListObj<StockRecordIndex>> getApi$system$stock_record$index(StockRecord_Index stockRecord_Index){ |
|
|
|
BaseResponse<BaseResponseListObj<StockRecordIndex>> req = new BaseResponse<>(); |
|
|
|
BaseResponseListObj<StockRecordIndex> reqObj = new BaseResponseListObj<>(); |
|
|
|
params.put("record_type", record_type); |
|
|
|
params.put("storehouse_type", 0); |
|
|
|
String s = ShHttp.doGet(stock_record$index, params); |
|
|
|
Map<String, Object> param = BeanUtil.beanToMap(stockRecord_Index); |
|
|
|
param.put("storehouse_type", 0); |
|
|
|
String s = ShHttp.doGet(stock_record$index, param); |
|
|
|
BaseResponse<BaseResponseListObj<JSONObject>> baseResponse = toBean(s, req, reqObj); |
|
|
|
List<JSONObject> list = baseResponse.getData().getList(); |
|
|
|
List<StockRecordIndex> stockRecordIndices = new ArrayList<>(); |
|
|
@ -473,11 +475,9 @@ public class ShRequester { |
|
|
|
* @Param [storehouse_code, storehouse_name] storehouse_code 仓库编号 storehouse_name 仓库名称 |
|
|
|
* @return com.yxt.supervise.gf.shanhai.resp.BaseResponse<com.yxt.supervise.gf.shanhai.resp.BaseResponseListObj<com.yxt.supervise.gf.shanhai.resp.StorehouseIndex>> |
|
|
|
**/ |
|
|
|
public static BaseResponse<BaseResponseListObj<StorehouseIndex>> getApi$system$storehouse$index(String storehouse_code,String storehouse_name,Map<String,Object> map){ |
|
|
|
public static BaseResponse<BaseResponseListObj<StorehouseIndex>> getApi$system$storehouse$index(Map<String,Object> map){ |
|
|
|
BaseResponse<BaseResponseListObj<StorehouseIndex>> req = new BaseResponse<>(); |
|
|
|
BaseResponseListObj<StorehouseIndex> reqObj = new BaseResponseListObj<>(); |
|
|
|
map.put("storehouse_code", storehouse_code); |
|
|
|
map.put("storehouse_name", storehouse_name); |
|
|
|
String s = ShHttp.doGet(storehouse$index, map); |
|
|
|
BaseResponse<BaseResponseListObj<JSONObject>> baseResponse = toBean(s, req, reqObj); |
|
|
|
List<JSONObject> list = baseResponse.getData().getList(); |
|
|
@ -636,6 +636,41 @@ public class ShRequester { |
|
|
|
return resp; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 30. 获取代理商
|
|
|
|
* @Param [] |
|
|
|
* @return com.yxt.supervise.gf.shanhai.resp.BaseResponse |
|
|
|
**/ |
|
|
|
public static BaseResponse getApi$system$search$get_agent_list(){ |
|
|
|
BaseResponse resp = new BaseResponse<>(); |
|
|
|
String s = ShHttp.dopost(search$get_agent_list, null); |
|
|
|
JSONObject jsonObject = JSONUtil.parseObj(s); |
|
|
|
String code = jsonObject.get("code").toString(); |
|
|
|
String msg = jsonObject.get("msg").toString(); |
|
|
|
resp.setCode(Integer.parseInt(code)); |
|
|
|
resp.setMsg(msg); |
|
|
|
resp.setData(jsonObject.get("data")); |
|
|
|
return resp; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 31.获取审核状态
|
|
|
|
* @Param [] |
|
|
|
* @return com.yxt.supervise.gf.shanhai.resp.BaseResponse |
|
|
|
**/ |
|
|
|
public static BaseResponse getApi$system$out_stock$get_status(){ |
|
|
|
BaseResponse resp = new BaseResponse<>(); |
|
|
|
String s = ShHttp.doGet(out_stock$get_status, null); |
|
|
|
JSONObject jsonObject = JSONUtil.parseObj(s); |
|
|
|
String code = jsonObject.get("code").toString(); |
|
|
|
String msg = jsonObject.get("msg").toString(); |
|
|
|
resp.setCode(Integer.parseInt(code)); |
|
|
|
resp.setMsg(msg); |
|
|
|
resp.setData(jsonObject.get("data")); |
|
|
|
return resp; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 将Json格式数据封装成统一返回对象
|
|
|
|
* @Param [s, resp, respObj] |
|
|
|