opt:称重大屏优化

This commit is contained in:
zds
2025-05-28 15:16:09 +08:00
parent f9a04fb2f6
commit 7d86bc5116
3 changed files with 27 additions and 4 deletions

View File

@@ -4,21 +4,37 @@ import lombok.Data;
@Data
public class CzDto {
//子托盘
private String sub_tray;
//母托盘
private String mother_tray;
//物料编码
private String material_code;
//物料名称
private String material_name;
//总数量
private Integer number;
//总重量kg
private Float qty;
//入库类型
private String simtType;
//场地
private String locationCode;
//供应商
private String supplierName;
//点位状态
private String point_qty;
//称重设备
private String device_type;
//检测框架
private String frame_type;
//母托扫码
private String mother_type;
//子托扫码
private String sub_type;
//异常码
private String error;
//废包材
private String fbc;
}

View File

@@ -151,12 +151,13 @@
<select id="cz" resultType="org.nl.wms.board.service.dao.dto.CzDto">
SELECT
a.palletSN,
any_value ( a.productName ) as productName,
any_value ( a.productDescription ) as productDescription,
a.palletSN as sub_tray,
any_value ( a.productName ) as material_code,
any_value ( a.productDescription ) as material_name,
sum( a.qty ) as qty,
sum( a.incomingWeight ) as incomingWeight,
any_value ( a.supplierName ) as supplierName
any_value ( a.supplierName ) as supplierName,
count(*) as number
FROM
(
SELECT

View File

@@ -31,6 +31,12 @@ public class BoardServiceImpl implements BoardService {
CzDto czDto = boardMapper.cz(String.valueOf(redisUtils.get("sub_tray")));
if (czDto == null) {
czDto = new CzDto();
czDto.setSub_tray(String.valueOf(redisUtils.get("sub_tray")));
czDto.setNumber(0);
czDto.setQty((float) 0);
czDto.setMaterial_code("");
czDto.setMaterial_name("");
czDto.setSupplierName("");
}
czDto.setMother_tray(String.valueOf(redisUtils.get("mother_tray")));
czDto.setPoint_qty(String.valueOf(redisUtils.get("point_qty")));