|
|
@ -30,6 +30,10 @@ public class ShRequester { |
|
|
|
private static String in_stock$index = "/api/system/in_stock/index"; //16.入库申请
|
|
|
|
private static String in_stock$examine = "/api/system/in_stock/examine"; //17.入库审核
|
|
|
|
private static String in_stock$get_record_materiel_list = "/api/system/in_stock/get_record_materiel_list"; //18.入库记录 入库记录列表
|
|
|
|
private static String stock_record$index = "/api/system/stock_record/index"; //19.出入库记录 出入库记录列表
|
|
|
|
private static String purchase_contract$get_info = "/api/system/purchase_contract/get_info"; //20.出入库合同详情
|
|
|
|
private static String storehouse$index = "/api/system/storehouse/index"; //22.仓库列表
|
|
|
|
private static String supplier$index = "/api/system/supplier/index"; //23.获取供应商 供应商列表
|
|
|
|
/** |
|
|
|
* 1.待配货列表 |
|
|
|
* |
|
|
@ -113,7 +117,7 @@ public class ShRequester { |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 7. 出库申请 出库申请详情
|
|
|
|
* @Param [id] |
|
|
|
* @Param [id] 申请id |
|
|
|
* @return com.yxt.supervise.gf.shanhai.resp.BaseResponse<com.yxt.supervise.gf.shanhai.resp.OutStock> |
|
|
|
**/ |
|
|
|
public static BaseResponse<OutStockGetInfo> getApi$system$out_stock$get_info(String id){ |
|
|
@ -170,7 +174,7 @@ public class ShRequester { |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 10. 导出出库单
|
|
|
|
* @Param [id] |
|
|
|
* @Param [id] 记录id |
|
|
|
* @return java.lang.String |
|
|
|
**/ |
|
|
|
public static String getApi$system$out_stock$export_bill(String id){ |
|
|
@ -214,7 +218,7 @@ public class ShRequester { |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 13. 入库申请
|
|
|
|
* @Param [id] |
|
|
|
* @Param [id] 申请id |
|
|
|
* @return com.yxt.supervise.gf.shanhai.resp.BaseResponse<com.yxt.supervise.gf.shanhai.resp.InStockGetInfo> |
|
|
|
**/ |
|
|
|
public static BaseResponse<InStockGetInfo> getApi$system$in_stock$get_info(String id){ |
|
|
@ -248,7 +252,7 @@ public class ShRequester { |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 15. 入库单导出
|
|
|
|
* @Param [id] |
|
|
|
* @Param [id] 申请id |
|
|
|
* @return java.lang.String |
|
|
|
**/ |
|
|
|
public static String getApi$system$in_stock$export_bill(String id){ |
|
|
@ -306,6 +310,78 @@ public class ShRequester { |
|
|
|
return baseResponse; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 19. 出入库记录 出入库记录列表 //1为出库 2为入库
|
|
|
|
* @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){ |
|
|
|
BaseResponse<BaseResponseListObj<StockRecordIndex>> req = new BaseResponse<>(); |
|
|
|
BaseResponseListObj<StockRecordIndex> reqObj = new BaseResponseListObj<>(); |
|
|
|
Map<String, Object> params = new HashMap<>(); |
|
|
|
params.put("record_type", record_type); |
|
|
|
String s = ShHttp.doGet(stock_record$index, params); |
|
|
|
BaseResponse<BaseResponseListObj<StockRecordIndex>> baseResponse = toBean(s, req, reqObj); |
|
|
|
return baseResponse; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 20. 出入库合同详情
|
|
|
|
* @Param [id] 合同id |
|
|
|
* @return com.yxt.supervise.gf.shanhai.resp.BaseResponse<com.yxt.supervise.gf.shanhai.resp.PurchaseContractGetInfo> |
|
|
|
**/ |
|
|
|
public static BaseResponse<PurchaseContractGetInfo> getApi$system$purchase_contract$get_info(String id){ |
|
|
|
BaseResponse<PurchaseContractGetInfo> resp = new BaseResponse<>(); |
|
|
|
Map<String, Object> params = new HashMap<>(); |
|
|
|
params.put("id", id); |
|
|
|
String s = ShHttp.doGet(purchase_contract$get_info, params); |
|
|
|
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); |
|
|
|
Boolean a = jsonObject.get("data").toString().equals("null") || jsonObject.get("data") == null; |
|
|
|
JSONObject data = a ? null : (JSONObject)jsonObject.get("data"); |
|
|
|
PurchaseContractGetInfo purchaseContractGetInfo = JSONUtil.toBean(data, PurchaseContractGetInfo.class); |
|
|
|
resp.setData(purchaseContractGetInfo); |
|
|
|
return resp; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 21. 预付款仓库 todo 此url跟19.出入库记录一样
|
|
|
|
* @Param |
|
|
|
* @return |
|
|
|
**/ |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 22. 仓库列表
|
|
|
|
* @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){ |
|
|
|
BaseResponse<BaseResponseListObj<StorehouseIndex>> req = new BaseResponse<>(); |
|
|
|
BaseResponseListObj<StorehouseIndex> reqObj = new BaseResponseListObj<>(); |
|
|
|
Map<String, Object> params = new HashMap<>(); |
|
|
|
params.put("storehouse_code", storehouse_code); |
|
|
|
params.put("storehouse_name", storehouse_name); |
|
|
|
String s = ShHttp.doGet(storehouse$index, params); |
|
|
|
BaseResponse<BaseResponseListObj<StorehouseIndex>> baseResponse = toBean(s, req, reqObj); |
|
|
|
return baseResponse; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 23. 获取供应商 供应商列表
|
|
|
|
* @Param [] |
|
|
|
* @return com.yxt.supervise.gf.shanhai.resp.BaseResponse<com.yxt.supervise.gf.shanhai.resp.BaseResponseListObj<com.yxt.supervise.gf.shanhai.resp.SupplierIndex>> |
|
|
|
**/ |
|
|
|
public static BaseResponse<BaseResponseListObj<SupplierIndex>> getApi$system$supplier$index(){ |
|
|
|
BaseResponse<BaseResponseListObj<SupplierIndex>> req = new BaseResponse<>(); |
|
|
|
BaseResponseListObj<SupplierIndex> reqObj = new BaseResponseListObj<>(); |
|
|
|
String s = ShHttp.doGet(supplier$index, null); |
|
|
|
BaseResponse<BaseResponseListObj<SupplierIndex>> baseResponse = toBean(s, req, reqObj); |
|
|
|
return baseResponse; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 将Json格式数据封装成统一返回对象
|
|
|
|
* @Param [s, resp, respObj] |
|
|
|