Browse Source

装车扫描关闭装车异常、装车计划维护签收表异常状态

dist.1.3.0
汤建军 4 months ago
parent
commit
37ea52383f
  1. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.java
  2. 14
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.xml
  3. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionLoadscanAbnormalService.java
  4. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java
  5. 10
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionLoadscanAbnormalServiceImpl.java

8
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.java

@ -51,4 +51,12 @@ public interface DistributionLoadscanAbnormalMapper extends BaseMapper<Distribut
*/
List<DistributionLoadscanAbnormalExcel> exportDistributionLoadscanAbnormal(@Param("ew") Wrapper<DistributionLoadscanAbnormalEntity> queryWrapper);
/**
* 装车关闭装车异常
* @param orderPackageCode
* @param warehouseId
* @param reservationId
* @param username
*/
void completeLoadingAbnormal(@Param("orderPackageCode") String orderPackageCode,@Param("warehouseId") Long warehouseId,@Param("reservationId") Long reservationId,@Param("username") String username);
}

14
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.xml

@ -40,6 +40,20 @@
<result column="reserve4" property="reserve4"/>
<result column="reserve5" property="reserve5"/>
</resultMap>
<update id="completeLoadingAbnormal">
UPDATE logpm_distribution_loadscan_abnormal
SET auditing_user = #{username},
auditing_time = now(),
complete = 1,
auditing_status = 4,
remarks = '扫描装车关闭异常'
WHERE
package_code = #{orderPackageCode}
AND warehouse_id = #{warehouseId}
AND reservation_id = #{reservationId}
AND is_deleted = 0
AND loading_id is null
</update>
<select id="selectDistributionLoadscanAbnormalPage" resultMap="distributionLoadscanAbnormalResultMap">

8
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionLoadscanAbnormalService.java

@ -49,4 +49,12 @@ public interface IDistributionLoadscanAbnormalService extends BaseService<Distri
*/
List<DistributionLoadscanAbnormalExcel> exportDistributionLoadscanAbnormal(Wrapper<DistributionLoadscanAbnormalEntity> queryWrapper);
/**
* 进行装车异常记录关闭
* @param orderPackageCode
* @param warehouseId
* @param reservationId
*/
void completeLoadingAbnormal(String orderPackageCode, Long warehouseId, Long reservationId,String username);
}

8
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

@ -4786,6 +4786,12 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
}
if (!abnormalEntityList.isEmpty()) {
distributionLoadscanAbnormalService.saveBatch(abnormalEntityList);
//进行异常的标记
List<Long> reservationIds = abnormalEntityList.stream().map(DistributionLoadscanAbnormalEntity::getReservationId).collect(Collectors.toList());
distributionSignforService.update(Wrappers.<DistributionSignforEntity>update().lambda()
.in(DistributionSignforEntity::getReservationId,reservationIds)
.set(DistributionSignforEntity::getIsHaveAbnormalPackage,2)
);
}
}
@ -8687,6 +8693,8 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
//正常进行装车
DistributionLoadscanEntity loadscanEntity = createdDistributionLoadscanEntity(deliveryListEntity, distributionDeliverySelfEntity, reservationId, parcelListEntity, myCurrentWarehouse, user);
distributionLoadscanService.save(loadscanEntity);
//这里还需要对异常记录进行关闭和完成
distributionLoadscanAbnormalService.completeLoadingAbnormal(loadscanEntity.getOrderPackageCode(),loadscanEntity.getWarehouseId(),loadscanEntity.getReservationId(),loadscanEntity.getScanUser());
//更新包件装车状态
packageLockIds.add(parcelListEntity.getId());
parcelListEntity.setOrderPackageLoadingStatus(OrderPackageLoadingStatusConstant.yizhuangche.getValue());

10
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionLoadscanAbnormalServiceImpl.java

@ -16,11 +16,14 @@
*/
package com.logpm.distribution.service.impl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.logpm.distribution.entity.DistributionLoadscanAbnormalEntity;
import com.logpm.distribution.excel.DistributionLoadscanAbnormalExcel;
import com.logpm.distribution.mapper.DistributionLoadscanAbnormalMapper;
import com.logpm.distribution.service.IDistributionLoadscanAbnormalService;
import com.logpm.distribution.vo.DistributionLoadscanAbnormalVO;
import org.springblade.common.constant.common.IsOrNoConstant;
import org.springblade.common.constant.loading.LoadingAbnormalAuditingStatusConstant;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
@ -51,4 +54,11 @@ public class DistributionLoadscanAbnormalServiceImpl extends BaseServiceImpl<Dis
return distributionLoadscanAbnormalList;
}
@Override
public void completeLoadingAbnormal(String orderPackageCode, Long warehouseId, Long reservationId,String username) {
baseMapper.completeLoadingAbnormal(orderPackageCode,warehouseId,reservationId,username);
}
}

Loading…
Cancel
Save