feat(mes/eqp): 为设备巡检记录新增巡检照片字段
- 在EqpEquipmentInspectionRecord实体类、Bo和Vo中新增photo字段,用于存储以英文逗号分隔的巡检照片URL - 在EqpEquipmentInspectionRecordMapper.xml中映射photo字段到数据库查询结果 - 在EqpEquipmentInspectionRecordServiceImpl的查询条件中增加对photo字段的过滤支持
This commit is contained in:
@@ -54,6 +54,10 @@ public class EqpEquipmentInspectionRecord extends BaseEntity {
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
/**
|
||||
* 巡检照片URL,多个用英文逗号分隔
|
||||
*/
|
||||
private String photo;
|
||||
/**
|
||||
* 删除标识 0正常 2删除
|
||||
*/
|
||||
|
||||
@@ -59,5 +59,10 @@ public class EqpEquipmentInspectionRecordBo extends BaseEntity {
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 巡检照片URL,多个用英文逗号分隔
|
||||
*/
|
||||
private String photo;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -69,5 +69,10 @@ public class EqpEquipmentInspectionRecordVo {
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 巡检照片URL,多个用英文逗号分隔
|
||||
*/
|
||||
private String photo;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ public class EqpEquipmentInspectionRecordServiceImpl implements IEqpEquipmentIns
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<EqpEquipmentInspectionRecord> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(bo.getCheckId() != null, EqpEquipmentInspectionRecord::getCheckId, bo.getCheckId());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getPhoto()), EqpEquipmentInspectionRecord::getPhoto, bo.getPhoto());
|
||||
lqw.eq(bo.getShift() != null, EqpEquipmentInspectionRecord::getShift, bo.getShift());
|
||||
lqw.eq(bo.getInspectTime() != null, EqpEquipmentInspectionRecord::getInspectTime, bo.getInspectTime());
|
||||
lqw.eq(bo.getRunStatus() != null, EqpEquipmentInspectionRecord::getRunStatus, bo.getRunStatus());
|
||||
|
||||
Reference in New Issue
Block a user