|
@@ -70,16 +70,18 @@ public class WmsInboundScanResultController extends BaseRESTfulController {
|
|
|
//判断条件是查询扫描实绩判断是否已经存在改唯一标识码并且扫码人是否是自己
|
|
|
System.out.println(map.get("resultMaterial"));
|
|
|
//订单类型为倒库,直接扫码所有并返回数据
|
|
|
- int orderType=wmsInboundScanResultService.getOrderTypeByNum((String)map.get("resultMaterial"));
|
|
|
- if(orderType == 25){
|
|
|
+ Integer orderType=wmsInboundScanResultService.getOrderTypeByNum((String)map.get("resultMaterial"));
|
|
|
+ if(orderType!=null && orderType == 25){
|
|
|
//根据出库数据查询入库扫码实绩
|
|
|
List<Map<String,Object>> inboundOld= wmsInboundScanResultService.findInboundScanResult((String)map.get("resultMaterial"));
|
|
|
//批量新增扫码实绩
|
|
|
- if(inboundOld!=null || inboundOld.size()>0){
|
|
|
+ if(inboundOld!=null || inboundOld.size()>0 || inboundOld.get(0)!=null){
|
|
|
wmsInboundScanResultService.createInboundScanResultByFind(inboundOld,map);
|
|
|
}
|
|
|
- else
|
|
|
+ else{
|
|
|
System.out.println("物资暂未出库,请先出库再入库!");
|
|
|
+ return null;
|
|
|
+ }
|
|
|
//返回新建的扫码实绩数据
|
|
|
List<Map<String,Object>> mapList= wmsInboundScanResultService.noIssueScanResultList(map.get("userName").toString());
|
|
|
return success(mapList);
|