|
|
|
@@ -18,7 +18,7 @@ |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
wcuc.`id`,wcuc.`tenant_id`,wcuc.`parent_tenant_id`,wcuc.`c_user_id`,wcuc.`car_number`,wcuc.`create_date`,wcuc.`update_date`,wcuc.`vendor_type`,wcuc.`vendor_params`,wcuc.`vendor_person_id`,wcubi.`phone` |
|
|
|
wcuc.`id`,wcuc.`tenant_id`,wcuc.`parent_tenant_id`,wcuc.`c_user_id`,wcuc.`car_number`,wcuc.`create_date`,wcuc.`update_date`,wcuc.`vendor_type`,wcuc.`vendor_params`,wcuc.`vendor_person_id` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -71,9 +71,9 @@ |
|
|
|
order by wcuc.create_date |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="findList" parameterType="com.iformall.domain.po.WxCUserCar" resultMap="BaseResultMap"> |
|
|
|
<select id="findList1" parameterType="com.iformall.domain.po.WxCUserCar" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
<include refid="allColumns"/> |
|
|
|
<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" /> |
|
|
|
@@ -82,6 +82,13 @@ |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="findList" parameterType="com.iformall.domain.po.WxCUserCar" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
<include refid="allColumns"/> |
|
|
|
from wx_c_user_car wcuc |
|
|
|
<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 |
|
|
|
<include refid="dynamicWhereConditions" /> |
|
|
|
|