2025-10-17 16:04:48 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.klp.mes.eqp.mapper.EqpSparePartMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="com.klp.mes.eqp.domain.EqpSparePart" id="EqpSparePartResult">
|
|
|
|
|
<result property="partId" column="part_id"/>
|
|
|
|
|
<result property="partName" column="part_name"/>
|
|
|
|
|
<result property="materialCategory" column="material_category"/>
|
|
|
|
|
<result property="model" column="model"/>
|
|
|
|
|
<result property="unit" column="unit"/>
|
|
|
|
|
<result property="equipmentId" column="equipment_id"/>
|
2026-03-19 15:46:20 +08:00
|
|
|
<result property="unitTeam" column="unit_team"/>
|
2025-10-17 16:04:48 +08:00
|
|
|
<result property="quantity" column="quantity"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
</resultMap>
|
2025-10-18 10:07:33 +08:00
|
|
|
<select id="selectVoPagePlus" resultType="com.klp.mes.eqp.domain.vo.EqpSparePartVo">
|
|
|
|
|
SELECT
|
|
|
|
|
sp.part_id,
|
|
|
|
|
sp.part_name,
|
|
|
|
|
sp.material_category,
|
|
|
|
|
sp.model,
|
|
|
|
|
sp.unit,
|
|
|
|
|
sp.equipment_id,
|
2026-03-19 15:46:20 +08:00
|
|
|
sp.unit_team,
|
2025-10-18 10:07:33 +08:00
|
|
|
em.equipment_name AS equipmentName,
|
|
|
|
|
sp.quantity,
|
|
|
|
|
sp.remark
|
|
|
|
|
FROM eqp_spare_part sp
|
|
|
|
|
LEFT JOIN eqp_equipment_management em ON sp.equipment_id = em.equipment_id and em.del_flag = '0'
|
2025-10-18 10:58:12 +08:00
|
|
|
${ew.customSqlSegment}
|
2025-10-18 10:07:33 +08:00
|
|
|
</select>
|
2025-10-17 16:04:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|