|
|
@ -40,6 +40,8 @@ public class ShRequester { |
|
|
|
private static String material_brand$index = "/api/system/material_brand/index"; //25.物料品牌
|
|
|
|
private static String materiel$index = "/api/system/materiel/index"; //26.物料管理
|
|
|
|
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.获取入库类型
|
|
|
|
/** |
|
|
|
* 1.待配货列表 |
|
|
|
* |
|
|
@ -596,6 +598,44 @@ public class ShRequester { |
|
|
|
return resp; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 28. 获取出库类型
|
|
|
|
* @Param [] |
|
|
|
* @return com.yxt.supervise.gf.shanhai.resp.BaseResponse |
|
|
|
**/ |
|
|
|
public static BaseResponse getApi$system$out_stock$get_type(){ |
|
|
|
BaseResponse resp = new BaseResponse<>(); |
|
|
|
String s = ShHttp.doGet(out_stock$get_type, 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); |
|
|
|
Boolean a = jsonObject.get("data").toString().equals("null") || jsonObject.get("data") == null; |
|
|
|
JSONObject data = a ? null : (JSONObject)jsonObject.get("data"); |
|
|
|
resp.setData(data); |
|
|
|
return resp; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 29. 获取入库类型
|
|
|
|
* @Param [] |
|
|
|
* @return com.yxt.supervise.gf.shanhai.resp.BaseResponse |
|
|
|
**/ |
|
|
|
public static BaseResponse getApi$system$in_stock$get_type(){ |
|
|
|
BaseResponse resp = new BaseResponse<>(); |
|
|
|
String s = ShHttp.doGet(in_stock$get_type, 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); |
|
|
|
Boolean a = jsonObject.get("data").toString().equals("null") || jsonObject.get("data") == null; |
|
|
|
JSONObject data = a ? null : (JSONObject)jsonObject.get("data"); |
|
|
|
resp.setData(data); |
|
|
|
return resp; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 将Json格式数据封装成统一返回对象
|
|
|
|
* @Param [s, resp, respObj] |
|
|
|