|
@@ -70,14 +70,13 @@ public class WmshOutboundResultController extends BaseRESTfulController {
|
|
|
@ApiOperation(value="添加港存库出库实绩")
|
|
|
@PostMapping("/addResult")
|
|
|
public RESTfulResult addResult(@RequestBody(required = false) Map<String, Object> map) throws Exception {
|
|
|
- wmshOutboundResultService.addResult(map);
|
|
|
+ int result = wmshOutboundResultService.addResult(map);
|
|
|
map.put("status", new BigDecimal(0));
|
|
|
int i1 = wmshGridMaterialService.updatePortStock(map);
|
|
|
if (i1 == -1){
|
|
|
return failed("出库数量大于港存库实时库存");
|
|
|
}else {
|
|
|
-
|
|
|
- return success();
|
|
|
+ return success(result);
|
|
|
}
|
|
|
}
|
|
|
}
|