Browse Source

1.更新包件上架状态

single_db
zhenghaoyu 1 year ago
parent
commit
0cdf7c9f52
  1. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.java
  2. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml
  3. 16
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.java

@ -156,4 +156,6 @@ public interface DistributionParcelListMapper extends BaseMapper<DistributionPar
* @return
*/
List<DistributionParcelListEntity> getPackageListByMap(@Param("param") Map<String, Object> packageDTO,@Param("warehouseId") Long id);
void updateGroundingStatusByOrderPackageCode(@Param("orderPackageCode") String orderPackageCode, @Param("groundingStatus") String groundingStatus, @Param("warehouseId") Long warehouseId);
}

5
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml

@ -1028,5 +1028,10 @@
</foreach>
</update>
<update id="updateGroundingStatusByOrderPackageCode" >
update logpm_distribution_parcel_list set order_package_grounding_status = #{groundingStatus}
where order_package_code = #{orderPackageCode}
and warehouse_id = #{warehouseId}
</update>
</mapper>

16
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java

@ -204,16 +204,16 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
try{
QueryWrapper<DistributionParcelListEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("order_package_code",orderPackageCode)
.eq("warehouse_id",warehouseId)
.eq("is_deleted",0);
DistributionParcelListEntity parcelListEntity = baseMapper.selectOne(queryWrapper);
parcelListEntity.setOrderPackageGroundingStatus(groundingStatus);
int i = baseMapper.updateById(parcelListEntity);
// QueryWrapper<DistributionParcelListEntity> queryWrapper = new QueryWrapper<>();
// queryWrapper.eq("order_package_code",orderPackageCode)
// .eq("warehouse_id",warehouseId)
// .eq("is_deleted",0);
// DistributionParcelListEntity parcelListEntity = baseMapper.selectOne(queryWrapper);
// parcelListEntity.setOrderPackageGroundingStatus(groundingStatus);
// int i = baseMapper.updateById(parcelListEntity);
// 更新状态
baseMapper.updateOrderPackageCodeById(parcelListEntity.getId(),groundingStatus);
baseMapper.updateGroundingStatusByOrderPackageCode(orderPackageCode,groundingStatus,warehouseId);
}catch (Exception e){
// 更新状态报错
log.error(">>>>>> updateGroundingStatus 异常信息",e);

Loading…
Cancel
Save