执行及取消执行;nc推送客户nc编码查询逻辑修改;

This commit is contained in:
王奎兴
2026-06-26 18:27:24 +08:00
parent 293fedda12
commit 8893eda62d
28 changed files with 521 additions and 61 deletions
@@ -23,6 +23,7 @@ import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import com.mhd.common.core.utils.StringUtils;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;
@@ -98,6 +99,13 @@ public class WarehouseApplicationService {
}
}
}
String orgIds = warehouseDO.getOrgIds();
if (StringUtils.isNotEmpty(orgIds)) {
String[] orgIdArray = orgIds.split(",");
List<Long> orgIdList = Arrays.stream(orgIdArray).map(Long::valueOf).collect(Collectors.toList());
warehouseDO.setOrgIdList(orgIdList);
warehouseDO.setOrganizationId(null);
}
return warehouseDomainService.queryList(warehouseDO);
}
@@ -314,4 +322,4 @@ public class WarehouseApplicationService {
return warehouseDomainService.getWarehouseChildren(warehouseId, storageLocationType);
}
}
}
@@ -128,5 +128,7 @@ public class WarehouseDO extends BaseVOEntity{
@ApiModelProperty("仓库id 集合")
private List<Long> warehouseIds;
@ApiModelProperty("组织id 集合")
private List<Long> orgIds;
private String orgIds;
@ApiModelProperty("组织id 集合")
private List<Long> orgIdList;
}
@@ -133,5 +133,7 @@ public class WarehouseDTO extends BaseVOEntity{
@Excel(name = "是否启用: 1-否 2-是")
private Integer isEnable;
@ApiModelProperty("组织id 集合")
private List<Long> orgIds;
private String orgIds;
@ApiModelProperty("组织id 集合")
private List<Long> orgIdList;
}
@@ -130,9 +130,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{item}
</foreach>
</if>
<if test="orgIds != null and orgIds.size > 0 ">
<if test="orgIdList != null and orgIdList.size > 0 ">
and organization_id in
<foreach collection="orgIds" item="item" index="index" open="(" close=")" separator=",">
<foreach collection="orgIdList" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>