xhxu 5 лет назад
Родитель
Сommit
775067dc97
1 измененных файлов: 6 добавлений и 2 удалений
  1. +6
    -2
      mallinkService/src/main/resources/mapper/WxCUserCarMapper.xml

+ 6
- 2
mallinkService/src/main/resources/mapper/WxCUserCarMapper.xml Просмотреть файл

@@ -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>



Загрузка…
Отмена
Сохранить