skyouc
2025-02-27 5a06c9a6923fde7889ac33d84de74f5e64b67bb8
#修改
集货区绑定可流动问题修复
4个文件已修改
21 ■■■■■ 已修改文件
construction-data/src/components/datav/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/services/Impl/WcsApiServiceImpl.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/resources/application.yml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/resources/mapper/asrs/ViewLocDetlMapper.xml 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
construction-data/src/components/datav/index.vue
@@ -228,6 +228,10 @@
    },
    //拍灯容器流动
    lightClick(item) {
      if (item.platformId == null || item.platformId == undefined || item.platformId == '') {
        this.$message.error('请打印订单明细,并选择目标集货区!!')
        return
      }
      this.slapLight(item)
    },
    //订单入库集货区,并打印单据
zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/services/Impl/WcsApiServiceImpl.java
@@ -308,6 +308,11 @@
        String taskNo = request.get("taskNo").toString();
        String orderNo = request.get("orderNo").toString();
        List<CacheSite> performs = cacheSiteService.list(new LambdaQueryWrapper<CacheSite>().eq(CacheSite::getOrderNo, orderNo));
        if (Objects.isNull(performs.stream().findFirst().get().getPlatformId())) {
            throw new CoolException("请打印明细,并绑定目标集货区");
        }
        //* 1. 判断当前容器是否还有物料未拣,未拣完闪灯,拣完通知容器流动,并灭灯
        SlapLightControlParam slapParam = new SlapLightControlParam();
        MultiValueMap<String, Object> params = new LinkedMultiValueMap<>();
@@ -337,6 +342,9 @@
                //播种完成,释放绑定站点
                List<CacheSite> cacheSites = cacheSiteService.list(new LambdaQueryWrapper<CacheSite>().eq(CacheSite::getOrderNo, orderNo));
                for (CacheSite cacheSite : cacheSites) {
                    if (Objects.isNull(cacheSite.getPlatformId())) {
                        throw new CoolException("");
                    }
                    if (!cacheSite.getSiteStatus().equals(CacheSiteStatusType.O.id)) {
                        cacheSite.setSiteStatus(CacheSiteStatusType.O.id);
                        cacheSite.setOrderId(null);
zy-asrs-wms/src/main/resources/application.yml
@@ -41,7 +41,7 @@
  #  global-config:
  #    field-strategy: 0
  configuration:
#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    map-underscore-to-camel-case: true
    cache-enabled: true
  global-config:
zy-asrs-wms/src/main/resources/mapper/asrs/ViewLocDetlMapper.xml
@@ -16,13 +16,6 @@
        <if test="batch != null and batch != ''">
            AND t.batch = #{batch}
        </if>
        <if test="param!=null and param.size()>0">
            <foreach item="item" collection="param" index="index">
                <if test="item.value!=null and item.value != ''">
                    and ${item.name} = #{item.value}
                </if>
            </foreach>
        </if>
        <if test="sortParam!=null and sortParam.size()>0">
            <foreach collection="sortParam" item="item" open="order by " separator="," close="  ">
                ${item.name}  ${item.value}