feat(wms): 更新钢卷异常实体类增加缺陷详细信息字段
- 将lengthCoord字段替换为length、startPosition、endPosition三个精确数值字段 - 新增defectType缺陷类型字段用于详细分类(如划痕、边裂、厚度超标等) - 新增defectRate缺陷率字段用于记录百分比数据 - 新增defectWeight缺陷重量字段用于记录具体重量值 - 新增mainMark主标记字段标识是否为主要缺陷 - 新增wholeCoilMark整卷标记字段标识是否影响整卷 - 更新Mapper映射文件适配新的实体字段结构 - 更新查询条件构造器支持新增字段的筛选功能 - 更新VO类Excel导出配置适配新的业务字段需求
This commit is contained in:
@@ -65,12 +65,19 @@ public class WmsCoilAbnormalServiceImpl implements IWmsCoilAbnormalService {
|
||||
LambdaQueryWrapper<WmsCoilAbnormal> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(bo.getCoilId() != null, WmsCoilAbnormal::getCoilId, bo.getCoilId());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getPosition()), WmsCoilAbnormal::getPosition, bo.getPosition());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getLengthCoord()), WmsCoilAbnormal::getLengthCoord, bo.getLengthCoord());
|
||||
lqw.eq(bo.getLength() != null, WmsCoilAbnormal::getLength, bo.getLength());
|
||||
lqw.eq(bo.getStartPosition() != null, WmsCoilAbnormal::getStartPosition, bo.getStartPosition());
|
||||
lqw.eq(bo.getEndPosition() != null, WmsCoilAbnormal::getEndPosition, bo.getEndPosition());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getDefectCode()), WmsCoilAbnormal::getDefectCode, bo.getDefectCode());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getDefectType()), WmsCoilAbnormal::getDefectType, bo.getDefectType());
|
||||
lqw.eq(bo.getDefectRate() != null, WmsCoilAbnormal::getDefectRate, bo.getDefectRate());
|
||||
lqw.eq(bo.getDefectWeight() != null, WmsCoilAbnormal::getDefectWeight, bo.getDefectWeight());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getDegree()), WmsCoilAbnormal::getDegree, bo.getDegree());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getJudgeLevel()), WmsCoilAbnormal::getJudgeLevel, bo.getJudgeLevel());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getJudgeBy()), WmsCoilAbnormal::getJudgeBy, bo.getJudgeBy());
|
||||
lqw.eq(bo.getJudgeTime() != null, WmsCoilAbnormal::getJudgeTime, bo.getJudgeTime());
|
||||
lqw.eq(bo.getMainMark() != null, WmsCoilAbnormal::getMainMark, bo.getMainMark());
|
||||
lqw.eq(bo.getWholeCoilMark() != null, WmsCoilAbnormal::getWholeCoilMark, bo.getWholeCoilMark());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user