feat(mes/eqp): 为设备巡检记录分页查询新增时间范围筛选及关联信息

- 在EqpEquipmentInspectionRecordBo中新增startInspectTime和endInspectTime字段,并添加日期格式化注解,支持按巡检时间范围查询
- 新增Mapper方法selectVoPagePlus及对应的XML映射,通过左连接关联检验清单表以获取checkContent和checkStandard字段
- 在Service层新增buildQueryWrapperPlus方法构建查询条件,支持对新增的时间范围字段进行筛选
- 在EqpEquipmentInspectionRecordVo中新增checkContent和checkStandard字段,用于在分页查询结果中展示关联的检验内容和标准
This commit is contained in:
2026-05-25 15:06:55 +08:00
parent 015ec7d70b
commit bd67df3c05
5 changed files with 63 additions and 2 deletions

View File

@@ -21,5 +21,22 @@
<result property="delFlag" column="del_flag"/>
</resultMap>
<select id="selectVoPagePlus" resultType="com.klp.mes.eqp.domain.vo.EqpEquipmentInspectionRecordVo">
SELECT
r.record_id,
r.check_id,
r.shift,
r.inspect_time,
r.run_status,
r.inspector,
r.abnormal_desc,
r.remark,
r.photo,
c.check_content AS checkContent,
c.check_standard AS checkStandard
FROM eqp_equipment_inspection_record r
LEFT JOIN eqp_equipment_checklist c ON r.check_id = c.check_id AND c.del_flag = '0'
${ew.customSqlSegment}
</select>
</mapper>