opt:称重大屏优化
This commit is contained in:
@@ -4,21 +4,37 @@ import lombok.Data;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class CzDto {
|
public class CzDto {
|
||||||
|
//子托盘
|
||||||
private String sub_tray;
|
private String sub_tray;
|
||||||
|
//母托盘
|
||||||
private String mother_tray;
|
private String mother_tray;
|
||||||
|
//物料编码
|
||||||
private String material_code;
|
private String material_code;
|
||||||
|
//物料名称
|
||||||
private String material_name;
|
private String material_name;
|
||||||
|
//总数量
|
||||||
private Integer number;
|
private Integer number;
|
||||||
|
//总重量kg
|
||||||
private Float qty;
|
private Float qty;
|
||||||
|
//入库类型
|
||||||
private String simtType;
|
private String simtType;
|
||||||
|
//场地
|
||||||
private String locationCode;
|
private String locationCode;
|
||||||
|
//供应商
|
||||||
private String supplierName;
|
private String supplierName;
|
||||||
|
//点位状态
|
||||||
private String point_qty;
|
private String point_qty;
|
||||||
|
//称重设备
|
||||||
private String device_type;
|
private String device_type;
|
||||||
|
//检测框架
|
||||||
private String frame_type;
|
private String frame_type;
|
||||||
|
//母托扫码
|
||||||
private String mother_type;
|
private String mother_type;
|
||||||
|
//子托扫码
|
||||||
private String sub_type;
|
private String sub_type;
|
||||||
|
//异常码
|
||||||
private String error;
|
private String error;
|
||||||
|
//废包材
|
||||||
private String fbc;
|
private String fbc;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,12 +151,13 @@
|
|||||||
|
|
||||||
<select id="cz" resultType="org.nl.wms.board.service.dao.dto.CzDto">
|
<select id="cz" resultType="org.nl.wms.board.service.dao.dto.CzDto">
|
||||||
SELECT
|
SELECT
|
||||||
a.palletSN,
|
a.palletSN as sub_tray,
|
||||||
any_value ( a.productName ) as productName,
|
any_value ( a.productName ) as material_code,
|
||||||
any_value ( a.productDescription ) as productDescription,
|
any_value ( a.productDescription ) as material_name,
|
||||||
sum( a.qty ) as qty,
|
sum( a.qty ) as qty,
|
||||||
sum( a.incomingWeight ) as incomingWeight,
|
sum( a.incomingWeight ) as incomingWeight,
|
||||||
any_value ( a.supplierName ) as supplierName
|
any_value ( a.supplierName ) as supplierName,
|
||||||
|
count(*) as number
|
||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
@@ -31,6 +31,12 @@ public class BoardServiceImpl implements BoardService {
|
|||||||
CzDto czDto = boardMapper.cz(String.valueOf(redisUtils.get("sub_tray")));
|
CzDto czDto = boardMapper.cz(String.valueOf(redisUtils.get("sub_tray")));
|
||||||
if (czDto == null) {
|
if (czDto == null) {
|
||||||
czDto = new CzDto();
|
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.setMother_tray(String.valueOf(redisUtils.get("mother_tray")));
|
||||||
czDto.setPoint_qty(String.valueOf(redisUtils.get("point_qty")));
|
czDto.setPoint_qty(String.valueOf(redisUtils.get("point_qty")));
|
||||||
|
|||||||
Reference in New Issue
Block a user