mobilebroken/nflg-mobilebroken-repository/src/main/resources/mapper/DeviceComponentMapper.xml

18 lines
694 B
XML
Raw Normal View History

2025-01-19 11:30:15 +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.DeviceComponentMapper">
2025-01-20 10:48:03 +08:00
<sql id="whr">
<if test="query.modelNo!=null and query.modelNo!=''">
and model_no=#{query.modelNo}
</if>
<if test="query.component!=null and query.component!=''">
and component like concat('%',#{query.component} ,"%")
</if>
</sql>
<select id="selectListByPage" resultType="com.nflg.mobilebroken.repository.entity.DeviceComponent">
select * from device_component where 1=1
<include refid="whr" />
</select>
2025-01-19 11:30:15 +08:00
</mapper>