Merge branch 'master' into develop
This commit is contained in:
commit
79010e82f8
|
|
@ -189,6 +189,7 @@ public class NormalPGIController extends BaseController {
|
|||
@ApiMark(moduleName = "送货单管理", apiName = "收货确认")
|
||||
public ApiResult<Void> takeDelivery(@Valid @RequestBody List<SrmMaterialReceiptQO> request) {
|
||||
VUtil.trueThrowBusinessError(CollectionUtil.isEmpty(request)).throwMessage("收货参数为空");
|
||||
request.removeIf(it -> CollectionUtil.isEmpty(it.getScanCodes()));
|
||||
WmsSrmOrder order = wmsSrmOrderService.lambdaQuery().eq(WmsSrmOrder::getNoteNum, request.get(0).getNoteNum()).one();
|
||||
VUtil.trueThrowBusinessError(Objects.isNull(order)).throwMessage("收货单不存在");
|
||||
List<SAPSyncParamsDTO> sapSyncParamsDTOS = getSapSyncParamsDTOS(request, order);
|
||||
|
|
@ -223,7 +224,7 @@ public class NormalPGIController extends BaseController {
|
|||
|
||||
for (SrmMaterialReceiptQO item : request) {
|
||||
|
||||
if (item.getReceiptNum().equals(BigDecimal.ZERO))
|
||||
if (item.getReceiptNum().compareTo(BigDecimal.ZERO)==0)
|
||||
continue;
|
||||
// 处理二维码
|
||||
List<PDAScanCodeQO> autoFindChildCodes = Lists.newArrayList();
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ public class SrmMaterialReceiptQO {
|
|||
/**
|
||||
* 实际收货数量
|
||||
*/
|
||||
@NotNull
|
||||
private BigDecimal receiptNum;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue