Browse Source

异常签收补录状态维护

dev-pushdata-important
汤建军 1 year ago
parent
commit
6a82d212d8
  1. 7
      blade-service/logpm-basic/src/main/java/com/logpm/basic/app/BasicMaterielPDAlController.java
  2. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

7
blade-service/logpm-basic/src/main/java/com/logpm/basic/app/BasicMaterielPDAlController.java

@ -16,6 +16,7 @@ import org.springblade.core.mp.support.Query;
import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func; import org.springblade.core.tool.utils.Func;
import org.springblade.core.tool.utils.SpringUtil;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.validation.Valid; import javax.validation.Valid;
@ -38,6 +39,9 @@ public class BasicMaterielPDAlController {
if (Func.isEmpty(tenantId)){ if (Func.isEmpty(tenantId)){
return null; return null;
} }
if (Func.isEmpty(basicMaterialService)){
basicMaterialService = SpringUtil.getBean(IBasicMaterialService.class);
}
LambdaQueryWrapper<BasicMaterialEntity> apply = Wrappers.<BasicMaterialEntity>query().lambda() LambdaQueryWrapper<BasicMaterialEntity> apply = Wrappers.<BasicMaterialEntity>query().lambda()
.eq(BasicMaterialEntity::getTenantId, tenantId); .eq(BasicMaterialEntity::getTenantId, tenantId);
@ -62,6 +66,9 @@ public class BasicMaterielPDAlController {
@ApiOperationSupport(order = 1) @ApiOperationSupport(order = 1)
@ApiOperation(value = "PDA维护物料信息", notes = "DistributionStockListVO") @ApiOperation(value = "PDA维护物料信息", notes = "DistributionStockListVO")
private R updateMateriel(@Valid @RequestBody BasicMaterialEntity basicMaterial){ private R updateMateriel(@Valid @RequestBody BasicMaterialEntity basicMaterial){
if (Func.isEmpty(basicMaterialService)){
basicMaterialService = SpringUtil.getBean(IBasicMaterialService.class);
}
boolean flag = basicMaterialService.updateById(basicMaterial); boolean flag = basicMaterialService.updateById(basicMaterial);
return R.status(flag); return R.status(flag);
} }

5
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

@ -1782,6 +1782,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
distributionLoadscanEntity.setOrderId(parcelListEntity.getStockArticleId()); distributionLoadscanEntity.setOrderId(parcelListEntity.getStockArticleId());
distributionLoadscanEntity.setReservationId(distrilbutionloadingscanDTO.getReservationId()); distributionLoadscanEntity.setReservationId(distrilbutionloadingscanDTO.getReservationId());
distributionLoadscanEntity.setDeliveryId(distrilbutionloadingscanDTO.getDeliveryId()); distributionLoadscanEntity.setDeliveryId(distrilbutionloadingscanDTO.getDeliveryId());
distributionLoadscanEntity.setScanStatus(LoadingStatusConstant.buluzhuangche.getValue());
distributionLoadscanEntity.setScanUser(AuthUtil.getUser().getNickName()); distributionLoadscanEntity.setScanUser(AuthUtil.getUser().getNickName());
distributionLoadscanEntity.setSigningUser(AuthUtil.getUser().getNickName()); distributionLoadscanEntity.setSigningUser(AuthUtil.getUser().getNickName());
distributionLoadscanEntity.setSigningUserId(AuthUtil.getUser().getUserId()); distributionLoadscanEntity.setSigningUserId(AuthUtil.getUser().getUserId());
@ -1850,8 +1851,12 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
distributionLoadscanEntity.setReservationId(distrilbutionloadingscanDTO.getReservationId()); distributionLoadscanEntity.setReservationId(distrilbutionloadingscanDTO.getReservationId());
distributionLoadscanEntity.setDeliveryId(distrilbutionloadingscanDTO.getDeliveryId()); distributionLoadscanEntity.setDeliveryId(distrilbutionloadingscanDTO.getDeliveryId());
distributionLoadscanEntity.setScanUser(AuthUtil.getUser().getUserName()); distributionLoadscanEntity.setScanUser(AuthUtil.getUser().getUserName());
distributionLoadscanEntity.setScanStatus(LoadingStatusConstant.buluzhuangche.getValue());
distributionLoadscanEntity.setSigningUser(AuthUtil.getUser().getUserName()); distributionLoadscanEntity.setSigningUser(AuthUtil.getUser().getUserName());
distributionLoadscanEntity.setSigningUserId(AuthUtil.getUser().getUserId()); distributionLoadscanEntity.setSigningUserId(AuthUtil.getUser().getUserId());
distributionLoadscanEntity.setIsAbnormalLoading(2);
distributionLoadscanEntity.setIsAbnormalSigning(2);
distributionLoadscanEntity.setAbnormalNote("异常签收");
if (Func.isEmpty(loadscanEntity)){ if (Func.isEmpty(loadscanEntity)){
distributionLoadscanService.save(distributionLoadscanEntity); distributionLoadscanService.save(distributionLoadscanEntity);
}else { }else {

Loading…
Cancel
Save