Browse Source

修改备货任务查询

training
caoyizhong 1 year ago
parent
commit
0ed6b1ce49
  1. 5
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockupEntity.java
  2. 17
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml
  3. 10
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java

5
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockupEntity.java

@ -26,6 +26,7 @@ import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import java.util.Date;
import java.util.List;
/**
* 备货信息表 实体类
@ -198,6 +199,10 @@ public class DistributionStockupEntity extends TenantEntity {
@ApiModelProperty(value = "仓库Id")
private Long warehouseId;
@ApiModelProperty(value = "仓库Id")
@TableField(exist = false)
private List<Long> warehouseIdList;

17
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml

@ -106,7 +106,15 @@
<if test="param.forkliftName != null and param.forkliftName != '' "> and lds.forklift_name like concat('%', #{param.forkliftName},'%')</if>
<if test="param.loaderName != null and param.loaderName != '' "> and lds.loader_name like concat('%', #{param.loaderName},'%')</if>
<!-- <if test="param.groupName != null and param.groupName != '' "> and btg.group_name like concat('%', #{param.groupName},'%')</if>-->
<if test="param.typeService != null and param.typeService != '' "> and lds.type_service = #{param.typeService}</if>
<!--<if test="param.typeService != null and param.typeService != '' "> and lds.type_service = #{param.typeService}</if>-->
<if test="param.warehouseId != null and param.warehouseId != '' "> and lds.warehouse_id = #{param.warehouseId}</if>
<if test="param.warehouseIdList != null">
and lds.warehouse_id in
<foreach collection="param.warehouseIdList" item="a" open="(" separator="," close=")" >
#{a}
</foreach>
</if>
</where>
GROUP BY lds.id
</select>
@ -162,6 +170,13 @@
<if test="param.forkliftName != null and param.forkliftName != '' "> and lds.forklift_name like concat('%', #{param.forkliftName},'%')</if>
<if test="param.loaderName != null and param.loaderName != '' "> and lds.loader_name like concat('%', #{param.loaderName},'%')</if>
<if test="param.typeService != null and param.typeService != '' "> and lds.type_service = #{param.typeService}</if>
<if test="param.warehouseId != null and param.warehouseId != '' "> and lds.warehouse_id = #{param.warehouseId}</if>
<if test="param.warehouseIdList != null">
and lds.warehouse_id in
<foreach collection="param.warehouseIdList" item="a" open="(" separator="," close=")" >
#{a}
</foreach>
</if>
<!--<if test="param.groupName != null and param.groupName != '' "> and btg.group_name like concat('%', #{param.groupName},'%')</if> -->
</where>
GROUP BY lds.id

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

@ -226,11 +226,11 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
@Override
public IPage<DistributionStockupEntity> pageList(IPage<Object> page, Map<String, Object> distributionStockup) {
DistributionStockupEntity distributionStockupEntity = JSON.parseObject(JSON.toJSONString(distributionStockup), DistributionStockupEntity.class);
// //获取当前登录人仓库
// List<BasicdataWarehouseEntity> myWatchWarehouse = basicdataWarehouseClient.getMyWatchWarehouse();
// //取出id
// List<Long> collect = myWatchWarehouse.stream().map(BasicdataWarehouseEntity::getId).collect(Collectors.toList());
//获取当前登录人仓库
List<BasicdataWarehouseEntity> myWatchWarehouse = basicdataWarehouseClient.getMyWatchWarehouse();
//取出id
List<Long> collect = myWatchWarehouse.stream().map(BasicdataWarehouseEntity::getId).collect(Collectors.toList());
distributionStockupEntity.setWarehouseIdList(collect);
distributionStockupEntity.setTenantId(AuthUtil.getTenantId());
if (distributionStockupEntity.getTypeService().equals("3")) {
return baseMapper.pageOweList(page, distributionStockupEntity);

Loading…
Cancel
Save