提交 | 用户 | 时间
|
68413a
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
J |
2 |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
3 |
|
|
4 |
<mapper namespace="com.iailab.module.data.ind.item.dao.IndItemDao"> |
|
5 |
|
|
6 |
<select id="getItemList" resultType="com.iailab.module.data.ind.item.vo.IndItemRespVO"> |
|
7 |
select |
|
8 |
t1.*, |
e935f3
|
9 |
t2.item_id as atomItemId |
68413a
|
10 |
from t_ind_item t1 |
J |
11 |
left join t_ind_item_atom t2 on t2.item_id = t1.id |
|
12 |
<where> |
|
13 |
<if test="params.itemNo != null and params.itemNo != ''"> |
|
14 |
and t1.item_no like concat('%', #{params.itemNo}, '%') |
|
15 |
</if> |
|
16 |
<if test="params.itemName != null and params.itemName != ''"> |
|
17 |
and t1.item_name like concat('%', #{params.itemName}, '%') |
|
18 |
</if> |
|
19 |
<if test="params.itemType != null and params.itemType != ''"> |
|
20 |
and t1.item_type = #{params.itemType} |
|
21 |
</if> |
|
22 |
<if test="params.itemCategory != null and params.itemCategory != ''"> |
|
23 |
and t1.item_category = #{params.itemCategory} |
|
24 |
</if> |
|
25 |
</where> |
|
26 |
</select> |
|
27 |
|
|
28 |
</mapper> |