<?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.iailab.module.data.ind.item.dao.IndItemDao">
|
|
<select id="getItemList" resultType="com.iailab.module.data.ind.item.vo.IndItemRespVO">
|
select
|
t1.*,
|
t2.id as atomItemId
|
from t_ind_item t1
|
left join t_ind_item_atom t2 on t2.item_id = t1.id
|
<where>
|
<if test="params.itemNo != null and params.itemNo != ''">
|
and t1.item_no like concat('%', #{params.itemNo}, '%')
|
</if>
|
<if test="params.itemName != null and params.itemName != ''">
|
and t1.item_name like concat('%', #{params.itemName}, '%')
|
</if>
|
<if test="params.itemType != null and params.itemType != ''">
|
and t1.item_type = #{params.itemType}
|
</if>
|
<if test="params.itemCategory != null and params.itemCategory != ''">
|
and t1.item_category = #{params.itemCategory}
|
</if>
|
</where>
|
</select>
|
|
</mapper>
|