Browse Source

滞留扫描包件记录

training
kilo 1 year ago
parent
commit
14f74973a4
  1. 181
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionRetentionScanEntity.java
  2. 7
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionSignforVO.java
  3. 183
      blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseRetentionScanEntity.java
  4. 50
      blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseRetentionScanClient.java
  5. 34
      blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/vo/WarehouseRetentionScanVO.java
  6. 13
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.java
  7. 3
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml
  8. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java
  9. 144
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/api/WarehouseRetentionApiController.java
  10. 154
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/controller/WarehouseRetentionScanController.java
  11. 1
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/dto/RetentionDTO.java
  12. 34
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/dto/WarehouseRetentionScanDTO.java
  13. 201
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/excel/WarehouseRetentionScanExcel.java
  14. 55
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/feign/WarehouseRetentionScanClient.java
  15. 57
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseRetentionScanMapper.java
  16. 52
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseRetentionScanMapper.xml
  17. 55
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/IWarehouseRetentionScanService.java
  18. 57
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseRetentionScanServiceImpl.java

181
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionRetentionScanEntity.java

@ -0,0 +1,181 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.distribution.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
/**
* 滞留扫描操作表 实体类
*
* @author BladeX
* @since 2023-11-03
*/
@Data
@TableName("logpm_distribution_retention_scan")
@ApiModel(value = "DistributionRetentionScan对象", description = "滞留扫描操作表")
public class DistributionRetentionScanEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@JsonSerialize(using = ToStringSerializer.class)
@ApiModelProperty(value = "主键")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id;
/**
* 租户号
*/
@ApiModelProperty(value = "租户号")
private String tenantId;
/**
* 是否已删除
*/
@ApiModelProperty(value = "是否已删除")
private Integer isDeleted;
/**
* 预留1
*/
@ApiModelProperty(value = "预留1")
private String reserve1;
/**
* 预留2
*/
@ApiModelProperty(value = "预留2")
private String reserve2;
/**
* 预留3
*/
@ApiModelProperty(value = "预留3")
private String reserve3;
/**
* 预留4
*/
@ApiModelProperty(value = "预留4")
private String reserve4;
/**
* 预留5
*/
@ApiModelProperty(value = "预留5")
private String reserve5;
/**
* 配送车次号
*/
@ApiModelProperty(value = "配送车次号")
private String trainNumber;
/**
* 订单ID
*/
@ApiModelProperty(value = "订单ID")
private Long orderId;
/**
* 库存品ID
*/
@ApiModelProperty(value = "库存品ID")
private Long inventoryId;
/**
* 滞留类型 1-包件2-零担(这里会关联到具体的品类)3-库存品
*/
@ApiModelProperty(value = "滞留类型 1-包件、2-零担(这里会关联到具体的品类)、3-库存品")
private Integer conditions;
/**
* 物料编码(库存品)
*/
@ApiModelProperty(value = "物料编码(库存品)")
private String materialNumber;
/**
* 物料名称(库存品)
*/
@ApiModelProperty(value = "物料名称(库存品)")
private String materialName;
/**
* 预约客户ID
*/
@ApiModelProperty(value = "预约客户ID")
private Long reservationId;
/**
* 订单自编号(库存品没有)
*/
@ApiModelProperty(value = "订单自编号(库存品没有)")
private String orderCode;
/**
* 预约单号
*/
@ApiModelProperty(value = "预约单号")
private String reservationCode;
/**
* 扫描类型:1-包件2-订单3-托盘4...
*/
@ApiModelProperty(value = "扫描类型:1-包件、2-订单、3-托盘、4...")
private Integer scanType;
/**
* 包件ID
*/
@ApiModelProperty(value = "包件ID")
private Long orderPackageId;
/**
* 包条码
*/
@ApiModelProperty(value = "包条码")
private String orderPackageCode;
/**
* 滞留数量
*/
@ApiModelProperty(value = "滞留数量")
private Integer retentionQuantity;
/**
* 滞留扫描操作人名称
*/
@ApiModelProperty(value = "滞留扫描操作人名称")
private String retentionScanUsername;
/**
* 滞留扫描操作人Id
*/
@ApiModelProperty(value = "滞留扫描操作人Id")
private String retentionScanUserId;
/**
* 滞留操作备注
*/
@ApiModelProperty(value = "滞留操作备注")
private String remarks;
/**
* 滞留扫描时间
*/
@ApiModelProperty(value = "滞留扫描时间")
private Date retentionScanTime;
/**
* 滞留方式 1-PDA2-PC
*/
@ApiModelProperty(value = "滞留方式 1-PDA、2-PC")
private Integer retentionWay;
/**
* 配送任务ID
*/
@ApiModelProperty(value = "配送任务ID")
private Long deliveryListId;
}

7
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionSignforVO.java

@ -16,6 +16,7 @@
*/
package com.logpm.distribution.vo;
import com.logpm.distribution.entity.DistributionSignPrintEntity;
import com.logpm.distribution.entity.DistributionSignforEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -150,6 +151,12 @@ public class DistributionSignforVO extends DistributionSignforEntity {
@ApiModelProperty(value = "卸车班组")
private String sijiSigningStatus;
/**
* 签收图片路径多个
*/
@ApiModelProperty(value = "卸车班组")
private List<DistributionSignPrintVO> printVOList;
/**
* 客户订单列表
*/

183
blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseRetentionScanEntity.java

@ -0,0 +1,183 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.warehouse.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springblade.core.tenant.mp.TenantEntity;
import java.io.Serializable;
/**
* 滞留扫描记录 实体类
*
* @author BladeX
* @since 2023-11-03
*/
@Data
@TableName("logpm_warehouse_retention_scan")
@ApiModel(value = "WarehouseRetentionRecord对象", description = "滞留扫描记录")
public class WarehouseRetentionScanEntity extends TenantEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@JsonSerialize(using = ToStringSerializer.class)
@ApiModelProperty(value = "主键")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id;
/**
* 租户号
*/
@ApiModelProperty(value = "租户号")
private String tenantId;
/**
* 是否已删除
*/
@ApiModelProperty(value = "是否已删除")
private Integer isDeleted;
/**
* 预留1
*/
@ApiModelProperty(value = "预留1")
private String reserve1;
/**
* 预留2
*/
@ApiModelProperty(value = "预留2")
private String reserve2;
/**
* 预留3
*/
@ApiModelProperty(value = "预留3")
private String reserve3;
/**
* 预留4
*/
@ApiModelProperty(value = "预留4")
private String reserve4;
/**
* 预留5
*/
@ApiModelProperty(value = "预留5")
private String reserve5;
/**
* 配送车次号
*/
@ApiModelProperty(value = "配送车次号")
private String trainNumber;
/**
* 订单ID
*/
@ApiModelProperty(value = "订单ID")
private Long orderId;
/**
* 库存品ID
*/
@ApiModelProperty(value = "库存品ID")
private Long inventoryId;
/**
* 滞留类型 1-包件2-零担(这里会关联到具体的品类)3-库存品
*/
@ApiModelProperty(value = "滞留类型 1-包件、2-零担(这里会关联到具体的品类)、3-库存品")
private Integer conditions;
/**
* 物料编码(库存品)
*/
@ApiModelProperty(value = "物料编码(库存品)")
private String materialNumber;
/**
* 物料名称(库存品)
*/
@ApiModelProperty(value = "物料名称(库存品)")
private String materialName;
/**
* 预约客户ID
*/
@ApiModelProperty(value = "预约客户ID")
private Long reservationId;
/**
* 订单自编号(库存品没有)
*/
@ApiModelProperty(value = "订单自编号(库存品没有)")
private String orderCode;
/**
* 预约单号
*/
@ApiModelProperty(value = "预约单号")
private String reservationCode;
/**
* 扫描类型:1-包件2-订单3-托盘4...
*/
@ApiModelProperty(value = "扫描类型:1-包件、2-订单、3-托盘、4...")
private Integer scanType;
/**
* 包件ID
*/
@ApiModelProperty(value = "包件ID")
private Long orderPackageId;
/**
* 包条码
*/
@ApiModelProperty(value = "包条码")
private String orderPackageCode;
/**
* 滞留数量
*/
@ApiModelProperty(value = "滞留数量")
private Integer retentionQuantity;
/**
* 滞留扫描操作人名称
*/
@ApiModelProperty(value = "滞留扫描操作人名称")
private String retentionScanUsername;
/**
* 滞留扫描操作人Id
*/
@ApiModelProperty(value = "滞留扫描操作人Id")
private String retentionScanUserId;
/**
* 滞留操作备注
*/
@ApiModelProperty(value = "滞留操作备注")
private String remarks;
/**
* 滞留扫描时间
*/
@ApiModelProperty(value = "滞留扫描时间")
private Date retentionScanTime;
/**
* 滞留方式 1-PDA2-PC
*/
@ApiModelProperty(value = "滞留方式 1-PDA、2-PC")
private Integer retentionWay;
/**
* 配送任务ID
*/
@ApiModelProperty(value = "配送任务ID")
private Long deliveryListId;
}

50
blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseRetentionScanClient.java

@ -0,0 +1,50 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.warehouse.feign;
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity;
import org.springblade.core.mp.support.BladePage;
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
* 滞留扫描记录 Feign接口类
*
* @author BladeX
* @since 2023-11-03
*/
@FeignClient(
value = "warehouseRetentionScan"
)
public interface IWarehouseRetentionScanClient {
String API_PREFIX = "retentionScan/client";
String TOP = API_PREFIX + "/top";
/**
* 获取滞留扫描记录列表
*
* @param current 页号
* @param size 页数
* @return BladePage
*/
@GetMapping(TOP)
BladePage<WarehouseRetentionScanEntity> retentionScanTop(@RequestParam("current") Integer current, @RequestParam("size") Integer size);
}

34
blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/vo/WarehouseRetentionScanVO.java

@ -0,0 +1,34 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.warehouse.vo;
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 滞留扫描记录 视图实体类
*
* @author BladeX
* @since 2023-11-03
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WarehouseRetentionScanVO extends WarehouseRetentionScanEntity {
private static final long serialVersionUID = 1L;
}

13
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.java

@ -24,10 +24,7 @@ import com.logpm.distribution.dto.app.DistributionAppDeliveryListDTO;
import com.logpm.distribution.entity.DistributionParcelListEntity;
import com.logpm.distribution.entity.DistributionSignforEntity;
import com.logpm.distribution.excel.DistributionSignforExcel;
import com.logpm.distribution.vo.DistributionLoadscanAbnormalVO;
import com.logpm.distribution.vo.DistributionReservationStocklistVO;
import com.logpm.distribution.vo.DistributionSignforVO;
import com.logpm.distribution.vo.DistributionStockArticleVO;
import com.logpm.distribution.vo.*;
import com.logpm.distribution.vo.app.DistributionAppDeliveryListVO;
import com.logpm.distribution.vo.app.DistributionAppParcelListVO;
import com.logpm.distribution.vo.app.DistributionAppSignforVO;
@ -227,4 +224,12 @@ public interface DistributionSignforMapper extends BaseMapper<DistributionSignfo
* @return
*/
List<DistributionLoadscanAbnormalVO> selectAbnormalPackageList(@Param("reservationId")Long reservationId,@Param("deliveryListId") Long deliveryId);
/**
* 查询签收图片
* @param reservationId
* @return
*/
List<DistributionSignPrintVO> selectSignImgsUrl(@Param("reservationId")Long reservationId);
}

3
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml

@ -930,4 +930,7 @@
WHERE
ldla.reservation_id = #{reservationId} and ldla.delivery_list_id = #{deliveryListId}
</select>
<select id="selectSignImgsUrl" resultType="com.logpm.distribution.entity.DistributionSignPrintEntity">
SELECT * FROM logpm_distribution_sign_print
</select>
</mapper>

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

@ -401,6 +401,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
}
List<Long> orderIds = reservationStockarticleEntityList.stream().map(DistributionReservationStockarticleEntity::getStockArticleId).collect(Collectors.toList());
List<DistributionStockArticleEntity> stockArticleEntities = distributionStockArticleService.listByIds(orderIds);
List<DistributionSignPrintVO> printEntities = baseMapper.selectSignImgsUrl(distributionSignforVO.getReservationId());
distributionSignforVO.setPrintVOList(printEntities);
if (Func.isNotEmpty(stockArticleEntities)){
distributionSignforVO.setOrderInfo(DistributionStockArticleWrapper.build().listVO(stockArticleEntities));
}

144
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/api/WarehouseRetentionApiController.java

@ -25,60 +25,94 @@ public class WarehouseRetentionApiController {
private final IWarehouseRetentionRecordService warehouseRetentionRecordService;
@ResponseBody
@PostMapping("/retentionPackageList")
@ApiOperationSupport(order = 1)
@ApiOperation(value = "滞留包件列表", notes = "传入trayTypeDTO")
public R<IPage<WarehouseRetentionRecordVO>> retentionPackageList(@RequestBody RetentionDTO retentionDTO) {
String method = "###########retentionPackageList: ";
log.info(method+"滞留包件列表 retentionDTO={}",retentionDTO);
Integer pageNum = retentionDTO.getPageNum();
Integer pageSize = retentionDTO.getPageSize();
if(Objects.isNull(pageNum)){
retentionDTO.setPageNum(1);
}
if(Objects.isNull(pageSize)){
retentionDTO.setPageSize(10);
}
try{
//查询订制品打托列表
IPage<WarehouseRetentionRecordVO> pages = warehouseRetentionRecordService.retentionPackageList(retentionDTO);
return R.data(pages);
}catch (CustomerException e){
log.warn(e.message);
return R.fail(e.code,e.message);
}catch (Exception e){
log.error(method+"系统异常,联系管理员",e);
return R.fail(500,"系统异常,联系管理员");
}
}
@ResponseBody
@PostMapping("/retentionScanPackage")
@ApiOperationSupport(order = 1)
@ApiOperation(value = "滞留扫描包件码", notes = "传入trayTypeDTO")
public R retentionScanPackage(@RequestBody RetentionDTO retentionDTO) {
String method = "###########retentionScanPackage: ";
log.info(method + "滞留扫描包件码 retentionDTO={}", retentionDTO);
String orderPackageCode = retentionDTO.getOrderPackageCode();//包件码
try{
if(StringUtil.isBlank(orderPackageCode)){
log.warn("############retentionScanPackage: 包件码不能为空 orderPackageCode={}",orderPackageCode);
return R.fail(403,"包件码不能为空");
}
//查询订制品打托列表
return warehouseRetentionRecordService.retentionScanPackage(orderPackageCode);
}catch (CustomerException e){
log.warn(e.message);
return R.fail(e.code,e.message);
}catch (Exception e){
log.error(method+"系统异常,联系管理员",e);
return R.fail(500,"系统异常,联系管理员");
}
}
// @ResponseBody
// @PostMapping("/retentionPackageList")
// @ApiOperationSupport(order = 1)
// @ApiOperation(value = "滞留包件列表", notes = "传入trayTypeDTO")
// public R<IPage<WarehouseRetentionRecordVO>> retentionPackageList(@RequestBody RetentionDTO retentionDTO) {
// String method = "###########retentionPackageList: ";
// log.info(method+"滞留包件列表 retentionDTO={}",retentionDTO);
// Integer pageNum = retentionDTO.getPageNum();
// Integer pageSize = retentionDTO.getPageSize();
//
// if(Objects.isNull(pageNum)){
// retentionDTO.setPageNum(1);
// }
// if(Objects.isNull(pageSize)){
// retentionDTO.setPageSize(10);
// }
//
// try{
// //查询订制品打托列表
// IPage<WarehouseRetentionRecordVO> pages = warehouseRetentionRecordService.retentionPackageList(retentionDTO);
// return R.data(pages);
// }catch (CustomerException e){
// log.warn(e.message);
// return R.fail(e.code,e.message);
// }catch (Exception e){
// log.error(method+"系统异常,联系管理员",e);
// return R.fail(500,"系统异常,联系管理员");
// }
// }
//
//
// @ResponseBody
// @PostMapping("/retentionScanPackage")
// @ApiOperationSupport(order = 1)
// @ApiOperation(value = "滞留扫描包件码", notes = "传入trayTypeDTO")
// public R retentionScanPackage(@RequestBody RetentionDTO retentionDTO) {
// String method = "###########retentionScanPackage: ";
// log.info(method + "滞留扫描包件码 retentionDTO={}", retentionDTO);
// String orderPackageCode = retentionDTO.getOrderPackageCode();//包件码
// try{
// if(StringUtil.isBlank(orderPackageCode)){
// log.warn("############retentionScanPackage: 包件码不能为空 orderPackageCode={}",orderPackageCode);
// return R.fail(403,"包件码不能为空");
// }
//
// //查询订制品打托列表
// return warehouseRetentionRecordService.retentionScanPackage(orderPackageCode);
// }catch (CustomerException e){
// log.warn(e.message);
// return R.fail(e.code,e.message);
// }catch (Exception e){
// log.error(method+"系统异常,联系管理员",e);
// return R.fail(500,"系统异常,联系管理员");
// }
// }
// @ResponseBody
// @PostMapping("/retentionScanPackage")
// @ApiOperationSupport(order = 1)
// @ApiOperation(value = "滞留扫描包件码", notes = "传入trayTypeDTO")
// public R retentionScanPackage(@RequestBody RetentionDTO retentionDTO) {
// String method = "###########retentionScanPackage: ";
// log.info(method + "滞留扫描包件码 retentionDTO={}", retentionDTO);
// String orderPackageCode = retentionDTO.getOrderPackageCode();//包件码
// try{
// if(StringUtil.isBlank(orderPackageCode)){
// log.warn("############retentionScanPackage: 包件码不能为空 orderPackageCode={}",orderPackageCode);
// return R.fail(403,"包件码不能为空");
// }
//
// //查询订制品打托列表
// return warehouseRetentionRecordService.retentionScanPackage(orderPackageCode);
// }catch (CustomerException e){
// log.warn(e.message);
// return R.fail(e.code,e.message);
// }catch (Exception e){
// log.error(method+"系统异常,联系管理员",e);
// return R.fail(500,"系统异常,联系管理员");
// }
// }
}

154
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/controller/WarehouseRetentionScanController.java

@ -0,0 +1,154 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.warehouse.controller;
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity;
import com.logpm.warehouse.excel.WarehouseRetentionScanExcel;
import com.logpm.warehouse.service.IWarehouseRetentionScanService;
import com.logpm.warehouse.vo.WarehouseRetentionScanVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity;
import com.logpm.warehouse.vo.WarehouseRetentionRecordVO;
import com.logpm.warehouse.excel.WarehouseRetentionRecordExcel;
import com.logpm.warehouse.service.IWarehouseRetentionRecordService;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.tool.utils.DateUtil;
import org.springblade.core.excel.util.ExcelUtil;
import org.springblade.core.tool.constant.BladeConstant;
import springfox.documentation.annotations.ApiIgnore;
import java.util.Map;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
/**
* 滞留扫描记录 控制器
*
* @author BladeX
* @since 2023-11-03
*/
@RestController
@AllArgsConstructor
@RequestMapping("/warehouseRetentionScan")
@Api(value = "滞留扫描记录", tags = "滞留扫描记录接口")
public class WarehouseRetentionScanController extends BladeController {
private final IWarehouseRetentionScanService warehouseRetentionScanService;
/**
* 滞留扫描记录 详情
*/
@GetMapping("/detail")
@ApiOperationSupport(order = 1)
@ApiOperation(value = "详情", notes = "传入warehouseRetentionScan")
public R<WarehouseRetentionScanEntity> detail(WarehouseRetentionScanEntity warehouseRetentionScan) {
WarehouseRetentionScanEntity detail = warehouseRetentionScanService.getOne(Condition.getQueryWrapper(warehouseRetentionScan));
return R.data(detail);
}
/**
* 滞留扫描记录 分页
*/
@GetMapping("/list")
@ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入warehouseRetentionScan")
public R<IPage<WarehouseRetentionScanEntity>> list(@ApiIgnore @RequestParam Map<String, Object> warehouseRetentionScan, Query query) {
IPage<WarehouseRetentionScanEntity> pages = warehouseRetentionScanService.page(Condition.getPage(query), Condition.getQueryWrapper(warehouseRetentionScan, WarehouseRetentionScanEntity.class));
return R.data(pages);
}
/**
* 滞留扫描记录 自定义分页
*/
@GetMapping("/page")
@ApiOperationSupport(order = 3)
@ApiOperation(value = "分页", notes = "传入warehouseRetentionScan")
public R<IPage<WarehouseRetentionScanVO>> page(WarehouseRetentionScanVO warehouseRetentionScan, Query query) {
IPage<WarehouseRetentionScanVO> pages = warehouseRetentionScanService.selectWarehouseRetentionRecordPage(Condition.getPage(query), warehouseRetentionScan);
return R.data(pages);
}
/**
* 滞留扫描记录 新增
*/
@PostMapping("/save")
@ApiOperationSupport(order = 4)
@ApiOperation(value = "新增", notes = "传入warehouseRetentionScan")
public R save(@Valid @RequestBody WarehouseRetentionScanEntity warehouseRetentionScan) {
return R.status(warehouseRetentionScanService.save(warehouseRetentionScan));
}
/**
* 滞留扫描记录 修改
*/
@PostMapping("/update")
@ApiOperationSupport(order = 5)
@ApiOperation(value = "修改", notes = "传入warehouseRetentionScan")
public R update(@Valid @RequestBody WarehouseRetentionScanEntity warehouseRetentionScan) {
return R.status(warehouseRetentionScanService.updateById(warehouseRetentionScan));
}
/**
* 滞留扫描记录 新增或修改
*/
@PostMapping("/submit")
@ApiOperationSupport(order = 6)
@ApiOperation(value = "新增或修改", notes = "传入warehouseRetentionScan")
public R submit(@Valid @RequestBody WarehouseRetentionScanEntity warehouseRetentionScan) {
return R.status(warehouseRetentionScanService.saveOrUpdate(warehouseRetentionScan));
}
/**
* 滞留扫描记录 删除
*/
@PostMapping("/remove")
@ApiOperationSupport(order = 7)
@ApiOperation(value = "删除", notes = "传入ids")
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
return R.status(warehouseRetentionScanService.removeByIds(Func.toLongList(ids)));
}
/**
* 导出数据
*/
@GetMapping("/export-warehouseRetentionScan")
@ApiOperationSupport(order = 9)
@ApiOperation(value = "导出数据", notes = "传入warehouseRetentionScan")
public void exportWarehouseRetentionScan(@ApiIgnore @RequestParam Map<String, Object> warehouseRetentionScan, BladeUser bladeUser, HttpServletResponse response) {
QueryWrapper<WarehouseRetentionScanEntity> queryWrapper = Condition.getQueryWrapper(warehouseRetentionScan, WarehouseRetentionScanEntity.class);
//if (!AuthUtil.isAdministrator()) {
// queryWrapper.lambda().eq(WarehouseRetentionScan::getTenantId, bladeUser.getTenantId());
//}
queryWrapper.lambda().eq(WarehouseRetentionScanEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
List<WarehouseRetentionScanExcel> list = warehouseRetentionScanService.exportWarehouseRetentionRecord(queryWrapper);
ExcelUtil.export(response, "滞留扫描记录数据" + DateUtil.time(), "滞留扫描记录数据表", list, WarehouseRetentionScanExcel.class);
}
}

1
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/dto/RetentionDTO.java

@ -14,5 +14,4 @@ public class RetentionDTO implements Serializable {
private String endDate;
private String orderPackageCode;
}

34
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/dto/WarehouseRetentionScanDTO.java

@ -0,0 +1,34 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.warehouse.dto;
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 滞留扫描记录 数据传输对象实体类
*
* @author BladeX
* @since 2023-11-03
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WarehouseRetentionScanDTO extends WarehouseRetentionScanEntity {
private static final long serialVersionUID = 1L;
}

201
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/excel/WarehouseRetentionScanExcel.java

@ -0,0 +1,201 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.warehouse.excel;
import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import java.io.Serializable;
/**
* 滞留扫描记录 Excel实体类
*
* @author BladeX
* @since 2023-11-03
*/
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class WarehouseRetentionScanExcel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 租户号
*/
@ColumnWidth(20)
@ExcelProperty("租户号")
private String tenantId;
/**
* 是否已删除
*/
@ColumnWidth(20)
@ExcelProperty("是否已删除")
private Integer isDeleted;
/**
* 预留1
*/
@ColumnWidth(20)
@ExcelProperty("预留1")
private String reserve1;
/**
* 预留2
*/
@ColumnWidth(20)
@ExcelProperty("预留2")
private String reserve2;
/**
* 预留3
*/
@ColumnWidth(20)
@ExcelProperty("预留3")
private String reserve3;
/**
* 预留4
*/
@ColumnWidth(20)
@ExcelProperty("预留4")
private String reserve4;
/**
* 预留5
*/
@ColumnWidth(20)
@ExcelProperty("预留5")
private String reserve5;
/**
* 配送车次号
*/
@ColumnWidth(20)
@ExcelProperty("配送车次号")
private String trainNumber;
/**
* 订单ID
*/
@ColumnWidth(20)
@ExcelProperty("订单ID")
private Long orderId;
/**
* 库存品ID
*/
@ColumnWidth(20)
@ExcelProperty("库存品ID")
private Long inventoryId;
/**
* 滞留类型 1-包件2-零担(这里会关联到具体的品类)3-库存品
*/
@ColumnWidth(20)
@ExcelProperty("滞留类型 1-包件、2-零担(这里会关联到具体的品类)、3-库存品")
private Integer conditions;
/**
* 物料编码(库存品)
*/
@ColumnWidth(20)
@ExcelProperty("物料编码(库存品)")
private String materialNumber;
/**
* 物料名称(库存品)
*/
@ColumnWidth(20)
@ExcelProperty("物料名称(库存品)")
private String materialName;
/**
* 预约客户ID
*/
@ColumnWidth(20)
@ExcelProperty("预约客户ID")
private Long reservationId;
/**
* 订单自编号(库存品没有)
*/
@ColumnWidth(20)
@ExcelProperty("订单自编号(库存品没有)")
private String orderCode;
/**
* 预约单号
*/
@ColumnWidth(20)
@ExcelProperty("预约单号")
private String reservationCode;
/**
* 扫描类型:1-包件2-订单3-托盘4...
*/
@ColumnWidth(20)
@ExcelProperty("扫描类型:1-包件、2-订单、3-托盘、4...")
private Integer scanType;
/**
* 包件ID
*/
@ColumnWidth(20)
@ExcelProperty("包件ID")
private Long orderPackageId;
/**
* 包条码
*/
@ColumnWidth(20)
@ExcelProperty("包条码")
private String orderPackageCode;
/**
* 滞留数量
*/
@ColumnWidth(20)
@ExcelProperty("滞留数量")
private Integer retentionQuantity;
/**
* 滞留扫描操作人名称
*/
@ColumnWidth(20)
@ExcelProperty("滞留扫描操作人名称")
private String retentionScanUsername;
/**
* 滞留扫描操作人Id
*/
@ColumnWidth(20)
@ExcelProperty("滞留扫描操作人Id")
private String retentionScanUserId;
/**
* 滞留操作备注
*/
@ColumnWidth(20)
@ExcelProperty("滞留操作备注")
private String remarks;
/**
* 滞留扫描时间
*/
@ColumnWidth(20)
@ExcelProperty("滞留扫描时间")
private Date retentionScanTime;
/**
* 滞留方式 1-PDA2-PC
*/
@ColumnWidth(20)
@ExcelProperty("滞留方式 1-PDA、2-PC")
private Integer retentionWay;
/**
* 配送任务ID
*/
@ColumnWidth(20)
@ExcelProperty("配送任务ID")
private Long deliveryListId;
}

55
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/feign/WarehouseRetentionScanClient.java

@ -0,0 +1,55 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.warehouse.feign;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity;
import com.logpm.warehouse.service.IWarehouseRetentionScanService;
import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BladePage;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity;
import com.logpm.warehouse.service.IWarehouseRetentionRecordService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
/**
* 滞留扫描记录 Feign实现类
*
* @author BladeX
* @since 2023-11-03
*/
@ApiIgnore()
@RestController
@AllArgsConstructor
public class WarehouseRetentionScanClient implements IWarehouseRetentionScanClient {
private final IWarehouseRetentionScanService warehouseRetentionScanService;
@Override
@GetMapping(TOP)
public BladePage<WarehouseRetentionScanEntity> retentionScanTop(Integer current, Integer size) {
Query query = new Query();
query.setCurrent(current);
query.setSize(size);
IPage<WarehouseRetentionScanEntity> page = warehouseRetentionScanService.page(Condition.getPage(query));
return BladePage.of(page);
}
}

57
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseRetentionScanMapper.java

@ -0,0 +1,57 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.warehouse.mapper;
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity;
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity;
import com.logpm.warehouse.excel.WarehouseRetentionScanExcel;
import com.logpm.warehouse.vo.WarehouseRetentionRecordVO;
import com.logpm.warehouse.excel.WarehouseRetentionRecordExcel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.logpm.warehouse.vo.WarehouseRetentionScanVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 滞留扫描记录 Mapper 接口
*
* @author BladeX
* @since 2023-11-03
*/
public interface WarehouseRetentionScanMapper extends BaseMapper<WarehouseRetentionScanEntity> {
/**
* 自定义分页
*
* @param page
* @param warehouseRetentionScanVO
* @return
*/
List<WarehouseRetentionScanVO> selectWarehouseRetentionRecordPage(IPage page, WarehouseRetentionScanVO warehouseRetentionScanVO);
/**
* 获取导出数据
*
* @param queryWrapper
* @return
*/
List<WarehouseRetentionScanExcel> exportWarehouseRetentionRecord(@Param("ew") Wrapper<WarehouseRetentionScanEntity> queryWrapper);
}

52
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseRetentionScanMapper.xml

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.logpm.warehouse.mapper.WarehouseRetentionScanMapper">
<!-- 通用查询映射结果 -->
<resultMap id="warehouseRetentionRecordResultMap" type="com.logpm.warehouse.entity.WarehouseRetentionScanEntity">
<result column="id" property="id"/>
<result column="tenant_id" property="tenantId"/>
<result column="create_user" property="createUser"/>
<result column="create_time" property="createTime"/>
<result column="update_user" property="updateUser"/>
<result column="update_time" property="updateTime"/>
<result column="status" property="status"/>
<result column="is_deleted" property="isDeleted"/>
<result column="create_dept" property="createDept"/>
<result column="reserve1" property="reserve1"/>
<result column="reserve2" property="reserve2"/>
<result column="reserve3" property="reserve3"/>
<result column="reserve4" property="reserve4"/>
<result column="reserve5" property="reserve5"/>
<result column="train_number" property="trainNumber"/>
<result column="order_id" property="orderId"/>
<result column="inventory_id" property="inventoryId"/>
<result column="conditions" property="conditions"/>
<result column="material_number" property="materialNumber"/>
<result column="material_name" property="materialName"/>
<result column="reservation_id" property="reservationId"/>
<result column="order_code" property="orderCode"/>
<result column="reservation_code" property="reservationCode"/>
<result column="scan_type" property="scanType"/>
<result column="order_package_id" property="orderPackageId"/>
<result column="order_package_code" property="orderPackageCode"/>
<result column="retention_quantity" property="retentionQuantity"/>
<result column="retention_scan_username" property="retentionScanUsername"/>
<result column="retention_scan_user_id" property="retentionScanUserId"/>
<result column="remarks" property="remarks"/>
<result column="retention_scan_time" property="retentionScanTime"/>
<result column="retention_way" property="retentionWay"/>
<result column="delivery_list_id" property="deliveryListId"/>
</resultMap>
<select id="selectWarehouseRetentionRecordPage" resultMap="warehouseRetentionRecordResultMap">
select * from logpm_warehouse_retention_scan where is_deleted = 0
</select>
<select id="exportWarehouseRetentionRecord" resultType="com.logpm.warehouse.excel.WarehouseRetentionScanExcel">
SELECT * FROM logpm_warehouse_retention_scan ${ew.customSqlSegment}
</select>
</mapper>

55
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/IWarehouseRetentionScanService.java

@ -0,0 +1,55 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.warehouse.service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity;
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity;
import com.logpm.warehouse.excel.WarehouseRetentionScanExcel;
import com.logpm.warehouse.vo.WarehouseRetentionRecordVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.logpm.warehouse.vo.WarehouseRetentionScanVO;
import java.util.List;
/**
* 滞留扫描记录 服务类
*
* @author BladeX
* @since 2023-11-03
*/
public interface IWarehouseRetentionScanService extends IService<WarehouseRetentionScanEntity> {
/**
* 自定义分页
*
* @param page
* @param warehouseRetentionScanVO
* @return
*/
IPage<WarehouseRetentionScanVO> selectWarehouseRetentionRecordPage(IPage<WarehouseRetentionScanVO> page, WarehouseRetentionScanVO warehouseRetentionScanVO);
/**
* 导出数据
*
* @param queryWrapper
* @return
*/
List<WarehouseRetentionScanExcel> exportWarehouseRetentionRecord(Wrapper<WarehouseRetentionScanEntity> queryWrapper);
}

57
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseRetentionScanServiceImpl.java

@ -0,0 +1,57 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.warehouse.service.impl;
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity;
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity;
import com.logpm.warehouse.excel.WarehouseRetentionScanExcel;
import com.logpm.warehouse.mapper.WarehouseRetentionScanMapper;
import com.logpm.warehouse.service.IWarehouseRetentionScanService;
import com.logpm.warehouse.vo.WarehouseRetentionRecordVO;
import com.logpm.warehouse.excel.WarehouseRetentionRecordExcel;
import com.logpm.warehouse.vo.WarehouseRetentionScanVO;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
* 滞留扫描记录 服务实现类
*
* @author BladeX
* @since 2023-11-03
*/
@Service
public class WarehouseRetentionScanServiceImpl extends BaseServiceImpl<WarehouseRetentionScanMapper, WarehouseRetentionScanEntity> implements IWarehouseRetentionScanService {
@Override
public IPage<WarehouseRetentionScanVO> selectWarehouseRetentionRecordPage(IPage<WarehouseRetentionScanVO> page, WarehouseRetentionScanVO warehouseRetentionScanVO) {
return page.setRecords(baseMapper.selectWarehouseRetentionRecordPage(page, warehouseRetentionScanVO));
}
@Override
public List<WarehouseRetentionScanExcel> exportWarehouseRetentionRecord(Wrapper<WarehouseRetentionScanEntity> queryWrapper) {
List<WarehouseRetentionScanExcel> warehouseRetentionRecordList = baseMapper.exportWarehouseRetentionRecord(queryWrapper);
//warehouseRetentionRecordList.forEach(warehouseRetentionRecord -> {
// warehouseRetentionRecord.setTypeName(DictCache.getValue(DictEnum.YES_NO, WarehouseRetentionRecord.getType()));
//});
return warehouseRetentionRecordList;
}
}
Loading…
Cancel
Save