2025-02-04 22:09:54 +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.nflg.mobilebroken.repository.mapper.DeviceComponentDetailMapper">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="delByComponentId">
|
|
|
|
|
delete from device_component_detail where device_component_id=#{componentId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="batchDelByComponentId">
|
|
|
|
|
delete from device_component_detail where device_component_id in
|
|
|
|
|
<foreach collection="componentIds" item="item" open="(" close=")" separator=",">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
2025-03-02 17:08:26 +08:00
|
|
|
|
|
|
|
|
<select id="getDevicePartDetail" resultType="com.nflg.mobilebroken.common.pojo.vo.DeviceComponentDetailVO">
|
2025-04-30 14:52:17 +08:00
|
|
|
select a.* ,b.part_no,iFNULL(b.type_attr,'未设置') AS 'typeAttr' from device_component_detail a
|
2025-03-02 17:08:26 +08:00
|
|
|
join t_base_part b on a.model_part_id=b.id
|
|
|
|
|
where a.device_component_id=#{deviceComponentId}
|
|
|
|
|
</select>
|
2025-04-30 21:56:23 +08:00
|
|
|
|
|
|
|
|
<select id="getByModelNo" resultType="com.nflg.mobilebroken.common.pojo.vo.DeviceComponentDetailVO">
|
|
|
|
|
SELECT dct.*
|
|
|
|
|
FROM device_component dc
|
|
|
|
|
INNER JOIN device_component_detail dct ON dc.id=dct.device_component_id
|
|
|
|
|
WHERE dc.model_no=#{modelNo}
|
|
|
|
|
</select>
|
2025-02-04 22:09:54 +08:00
|
|
|
</mapper>
|