|
@@ -190,6 +190,12 @@ public class WmspOutboundResultController extends BaseRESTfulController {
|
|
|
|
|
|
|
|
|
int isScan = wmspOutboundResultService.ExistScanResult(subResultMaterial);
|
|
|
+
|
|
|
+ List<Map<String, Object>> list = wmspInboundScanResultMapper.getInboundResultIdByMaterial(subResultMaterial);
|
|
|
+ if (list.size()==0){
|
|
|
+
|
|
|
+ return failed(-2);
|
|
|
+ }
|
|
|
|
|
|
Map<String,Object> materialMap = wmspOutboundResultMaterialService.isOutboundResultMaterial(MaterialOnlyCode,resultId);
|
|
|
if (materialMap==null){
|
|
@@ -200,8 +206,7 @@ public class WmspOutboundResultController extends BaseRESTfulController {
|
|
|
|
|
|
int scanCount = wmspOutboundScanResultService.getScanCount(MaterialOnlyCode,resultId);
|
|
|
|
|
|
-
|
|
|
- List<Map<String, Object>> list = wmspInboundScanResultMapper.getInboundResultIdByMaterial(subResultMaterial);
|
|
|
+
|
|
|
|
|
|
if(list.size()>0&&isScan==0&&(materialNumber!=null&&materialNumber!=0)&&(materialNumber>scanCount)){
|
|
|
|
|
@@ -254,7 +259,6 @@ public class WmspOutboundResultController extends BaseRESTfulController {
|
|
|
int scanCount = wmspOutboundResultService.ExistScanResult(subResultMaterial);
|
|
|
|
|
|
if(scanCount==0){
|
|
|
-
|
|
|
|
|
|
|
|
|
String personnelJobNumber = (String) map.get("personnelJobNumber");
|
|
@@ -460,6 +464,7 @@ public class WmspOutboundResultController extends BaseRESTfulController {
|
|
|
}
|
|
|
return failed(result);
|
|
|
}
|
|
|
+
|
|
|
@ApiOperation(value = "出库(非0:成功,0:失败)")
|
|
|
@PostMapping("/outbountResultToSuccess2")
|
|
|
public RESTfulResult outbountResultToSuccess(@RequestParam Integer resultId) {
|