Commit 02e8fcdd zshaohui

chkAuthoriseToDispatch接口 增加lineId参数

1 个父辈 c809e955
......@@ -712,7 +712,7 @@ public class Micron20031Api {
* //Input: MicronPN, LotNo, BatchNo, SpoolStatus, Quantity, Username, Mode, MaterialType
* //Output: MicronPN, LotNo, BatchNo, SpoolStatus, Quantity, Username, Mode, MaterialType, MaterialDocumentNo, Message, Status
*/
public static void chkAuthoriseToDispatch(Barcode barcode, String mode, String username) throws ApiException {
public static void chkAuthoriseToDispatch(Barcode barcode, String mode, String username,String lineId) throws ApiException {
String checkStockAvailableUrl = getUrl(api_ChkAuthoriseToDispatch);
if (ObjectUtil.isEmpty(checkStockAvailableUrl)) {
return;
......@@ -727,6 +727,8 @@ public class Micron20031Api {
dataMap.put("Mode", mode);
dataMap.put("Username", username);
dataMap.put("MaterialType", MATERIAL_TYPE);
dataMap.put("EquipID",lineId);
dataMap.put("LineID",lineId);
log.info("调用MES接口 ChkAuthoriseToDispatch,参数:" + JsonUtil.toJsonStr(dataMap));
String resultStr = HttpHelper.postJsonWithAuth(checkStockAvailableUrl, dataMap, auth);
......
......@@ -100,7 +100,7 @@ public class MicronSpUnloadController {
posList) {
try {
//验证
Micron20031Api.chkAuthoriseToDispatch(pos.getBarcode(), Micron20031Api.MODE_ENABLE_MAM_SAP, SecurityUtils.getCurrentUsername());
Micron20031Api.chkAuthoriseToDispatch(pos.getBarcode(), Micron20031Api.MODE_ENABLE_MAM_SAP, SecurityUtils.getCurrentUsername(),lineId);
log.info("unload/getMicronPN [" + pn + "] barcode [" + pos.getBarcode().getBarcode() + "] chkAuthoriseToDispatch 成功");
Barcode barcode = pos.getBarcode();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!