feat(mes/eqp): 为设备巡检记录新增巡检照片字段

- 在EqpEquipmentInspectionRecord实体类、Bo和Vo中新增photo字段,用于存储以英文逗号分隔的巡检照片URL
- 在EqpEquipmentInspectionRecordMapper.xml中映射photo字段到数据库查询结果
- 在EqpEquipmentInspectionRecordServiceImpl的查询条件中增加对photo字段的过滤支持
This commit is contained in:
2026-05-25 11:46:05 +08:00
parent 69ea51ec93
commit 0179cf986b
5 changed files with 16 additions and 0 deletions

View File

@@ -54,6 +54,10 @@ public class EqpEquipmentInspectionRecord extends BaseEntity {
* 备注
*/
private String remark;
/**
* 巡检照片URL多个用英文逗号分隔
*/
private String photo;
/**
* 删除标识 0正常 2删除
*/

View File

@@ -59,5 +59,10 @@ public class EqpEquipmentInspectionRecordBo extends BaseEntity {
*/
private String remark;
/**
* 巡检照片URL多个用英文逗号分隔
*/
private String photo;
}

View File

@@ -69,5 +69,10 @@ public class EqpEquipmentInspectionRecordVo {
@ExcelProperty(value = "备注")
private String remark;
/**
* 巡检照片URL多个用英文逗号分隔
*/
private String photo;
}

View File

@@ -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());

View File

@@ -13,6 +13,7 @@
<result property="inspector" column="inspector"/>
<result property="abnormalDesc" column="abnormal_desc"/>
<result property="remark" column="remark"/>
<result property="photo" column="photo"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>