|
@@ -609,8 +609,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
where vi.is_del = 'N'
|
|
where vi.is_del = 'N'
|
|
<!-- 已认领 -->
|
|
<!-- 已认领 -->
|
|
and vi.is_rl = '是'
|
|
and vi.is_rl = '是'
|
|
- <if test="userName != null and userName != ''">
|
|
|
|
- and (vi.user_name like concat(#{userName}, '%') or vi.id_card like concat(#{userName}, '%'))
|
|
|
|
|
|
+ <if test="idCard != null and idCard != ''">
|
|
|
|
+ and vi.id_card like concat(#{idCard}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="houseType != null and houseType != ''">
|
|
<if test="houseType != null and houseType != ''">
|
|
and vi.house_type = #{houseType}
|
|
and vi.house_type = #{houseType}
|
|
@@ -631,8 +631,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
SELECT id, is_rl
|
|
SELECT id, is_rl
|
|
from czrk
|
|
from czrk
|
|
where is_del = 'N'
|
|
where is_del = 'N'
|
|
- <if test="userName != null and userName != ''">
|
|
|
|
- and user_name like concat(#{userName}, '%')
|
|
|
|
|
|
+ <if test="idCard != null and idCard != ''">
|
|
|
|
+ and id_card like concat(#{idCard}, '%')
|
|
</if>
|
|
</if>
|
|
<choose>
|
|
<choose>
|
|
<when test="type == 1">and province_id = #{areaId}</when>
|
|
<when test="type == 1">and province_id = #{areaId}</when>
|
|
@@ -661,8 +661,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
where vi.is_del = 'N'
|
|
where vi.is_del = 'N'
|
|
<!-- 未认领 -->
|
|
<!-- 未认领 -->
|
|
and vi.is_rl = '否'
|
|
and vi.is_rl = '否'
|
|
- <if test="userName != null and userName != ''">
|
|
|
|
- and (vi.user_name like concat(#{userName}, '%') or vi.id_card like concat(#{userName}, '%'))
|
|
|
|
|
|
+ <if test="idCard != null and idCard != ''">
|
|
|
|
+ and vi.id_card like concat(#{idCard}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="houseType != null and houseType != ''">
|
|
<if test="houseType != null and houseType != ''">
|
|
and vi.house_type = #{houseType}
|
|
and vi.house_type = #{houseType}
|
|
@@ -881,8 +881,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
left join czrk_jzdz jzdz on czrk.id = jzdz.czrk_id
|
|
left join czrk_jzdz jzdz on czrk.id = jzdz.czrk_id
|
|
<where>
|
|
<where>
|
|
czrk.is_del = 'N' and jzdz.status = 'Y'
|
|
czrk.is_del = 'N' and jzdz.status = 'Y'
|
|
- <if test="userName != null and userName != ''">
|
|
|
|
- and (czrk.user_name like concat(#{userName}, '%') or czrk.id_card like concat(#{userName}, '%'))
|
|
|
|
|
|
+ <if test="idCard != null and idCard != ''">
|
|
|
|
+ and czrk.id_card like concat(#{idCard}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="houseType != null and houseType != ''">
|
|
<if test="houseType != null and houseType != ''">
|
|
and czrk.house_type = #{houseType}
|
|
and czrk.house_type = #{houseType}
|
|
@@ -1063,7 +1063,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="isRl != null and isRl != ''">and c.is_rl = #{isRl}</if>
|
|
<if test="isRl != null and isRl != ''">and c.is_rl = #{isRl}</if>
|
|
|
|
|
|
<if test="userName != null and userName != ''">
|
|
<if test="userName != null and userName != ''">
|
|
- and (c.user_name like concat(#{userName}, '%') or c.id_card like concat(#{userName}, '%'))
|
|
|
|
|
|
+ and c.user_name like concat(#{userName}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="params.startAge != null and params.startAge != ''">and c.age >= #{params.startAge}</if>
|
|
<if test="params.startAge != null and params.startAge != ''">and c.age >= #{params.startAge}</if>
|
|
<if test="params.endAge != null and params.endAge != ''">and c.age <= #{params.endAge}</if>
|
|
<if test="params.endAge != null and params.endAge != ''">and c.age <= #{params.endAge}</if>
|