|
|
@ -63,17 +63,15 @@ public class SapServiceImpl implements SapService { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@Transactional |
|
|
@Transactional |
|
|
public ResponseData endCurrentScan(String partNo, String locationNo) { |
|
|
|
|
|
ResponseData responseData = new ResponseData(); |
|
|
|
|
|
|
|
|
public void endCurrentScan(String partNo, String locationNo, String checkFlag) { |
|
|
//调用存储过程 处理SAP的库位信息 |
|
|
//调用存储过程 处理SAP的库位信息 |
|
|
Map<String, Object> resultMap = this.processSapPartLocation(partNo, locationNo); |
|
|
|
|
|
|
|
|
Map<String, Object> resultMap = this.processSapPartLocation(partNo, locationNo, checkFlag); |
|
|
//判断是否检验成功 |
|
|
//判断是否检验成功 |
|
|
String resultCode = String.valueOf(resultMap.get("resultCode")); |
|
|
String resultCode = String.valueOf(resultMap.get("resultCode")); |
|
|
if (!"200".equalsIgnoreCase(resultCode)) { |
|
|
if (!"200".equalsIgnoreCase(resultCode)) { |
|
|
String msg = String.valueOf(resultMap.get("resultMsg")); |
|
|
String msg = String.valueOf(resultMap.get("resultMsg")); |
|
|
throw new XJException(msg, Integer.parseInt(resultCode)); |
|
|
throw new XJException(msg, Integer.parseInt(resultCode)); |
|
|
} |
|
|
} |
|
|
return responseData; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
@ -82,10 +80,11 @@ public class SapServiceImpl implements SapService { |
|
|
* @date 2023/1/13 17:54 |
|
|
* @date 2023/1/13 17:54 |
|
|
* @version 1.0 |
|
|
* @version 1.0 |
|
|
*/ |
|
|
*/ |
|
|
public Map<String, Object> processSapPartLocation(String partNo, String locationNo) { |
|
|
|
|
|
|
|
|
public Map<String, Object> processSapPartLocation(String partNo, String locationNo, String checkFlag) { |
|
|
List<Object> params = new ArrayList<>(); |
|
|
List<Object> params = new ArrayList<>(); |
|
|
params.add(partNo); |
|
|
params.add(partNo); |
|
|
params.add(locationNo); |
|
|
params.add(locationNo); |
|
|
|
|
|
params.add(checkFlag); |
|
|
//调用存储过程 |
|
|
//调用存储过程 |
|
|
List<Map<String, Object>> resultList = procedureMapper.getProcedureData("processSapPartLocation", params); |
|
|
List<Map<String, Object>> resultList = procedureMapper.getProcedureData("processSapPartLocation", params); |
|
|
//处理返回的结果 |
|
|
//处理返回的结果 |
|
|
|