feat(ems): 能源设备添加电表产线和总表标识字段
- 在 EmsMeter 实体类中新增 productionLine 和 isTotalMeter 字段 - 在 EmsMeterBo 业务对象中添加对应的产线和总表标识属性 - 更新 EmsMeterMapper.xml 映射文件以支持新字段的数据库映射 - 在查询条件中增加产线模糊匹配和总表标识精确匹配功能 - 在 EmsMeterVo 视图对象中添加 Excel 导出支持的新字段
This commit is contained in:
@@ -72,5 +72,13 @@ public class EmsMeter extends BaseEntity {
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
/**
|
||||
* 产线(如:S1、S2、组装线、包装线等)
|
||||
*/
|
||||
private String productionLine;
|
||||
/**
|
||||
* 是否总表:0=否,1=是
|
||||
*/
|
||||
private Integer isTotalMeter;
|
||||
|
||||
}
|
||||
|
||||
@@ -75,5 +75,15 @@ public class EmsMeterBo extends BaseEntity {
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 产线(如:S1、S2、组装线、包装线等)
|
||||
*/
|
||||
private String productionLine;
|
||||
|
||||
/**
|
||||
* 是否总表:0=否,1=是
|
||||
*/
|
||||
private Integer isTotalMeter;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -89,6 +89,18 @@ public class EmsMeterVo {
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 产线(如:S1、S2、组装线、包装线等)
|
||||
*/
|
||||
@ExcelProperty(value = "产线")
|
||||
private String productionLine;
|
||||
|
||||
/**
|
||||
* 是否总表:0=否,1=是
|
||||
*/
|
||||
@ExcelProperty(value = "是否总表")
|
||||
private Integer isTotalMeter;
|
||||
|
||||
/**
|
||||
* 库区ID
|
||||
*/
|
||||
|
||||
@@ -93,6 +93,8 @@ public class EmsMeterServiceImpl implements IEmsMeterService {
|
||||
lqw.eq(bo.getStatus() != null, EmsMeter::getStatus, bo.getStatus());
|
||||
lqw.eq(bo.getLastCalibrationDate() != null, EmsMeter::getLastCalibrationDate, bo.getLastCalibrationDate());
|
||||
lqw.eq(bo.getThresholdValue() != null, EmsMeter::getThresholdValue, bo.getThresholdValue());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getProductionLine()), EmsMeter::getProductionLine, bo.getProductionLine());
|
||||
lqw.eq(bo.getIsTotalMeter() != null, EmsMeter::getIsTotalMeter, bo.getIsTotalMeter());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user