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());
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user