|
|
|
@@ -22,7 +22,7 @@ |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
where 1 = 1 |
|
|
|
|
|
|
|
<if test=" null != id "> |
|
|
|
and wcuc.`id` = #{id} |
|
|
|
</if> |
|
|
|
@@ -76,21 +76,25 @@ |
|
|
|
<include refid="allColumns"/>,wcubi.`phone` |
|
|
|
from wx_c_user_car wcuc |
|
|
|
left join wx_c_user_basic_info wcubi on wcubi.id = wcuc.c_user_id |
|
|
|
<include refid="dynamicWhereConditions" /> |
|
|
|
where 1 = 1 |
|
|
|
<if test=" null != userPhone"> |
|
|
|
and wcubi.`phone` = like concat('%', #{userPhone},'%') |
|
|
|
</if> |
|
|
|
<include refid="dynamicWhereConditions" /> |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="findList" parameterType="com.iformall.domain.po.WxCUserCar" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
<include refid="allColumns"/> |
|
|
|
from wx_c_user_car wcuc |
|
|
|
where 1 = 1 |
|
|
|
<include refid="dynamicWhereConditions" /> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="countList" parameterType="com.iformall.domain.po.WxCUserCar" resultType="java.lang.Integer"> |
|
|
|
select count(1) from wx_c_user_car wcuc |
|
|
|
where 1 = 1 |
|
|
|
<include refid="dynamicWhereConditions" /> |
|
|
|
</select> |
|
|
|
|
|
|
|
|