|
@@ -15,6 +15,7 @@
|
|
|
, t.region_code_ AS regionCode
|
|
|
, t.username_ AS username
|
|
|
, t.phone_ AS phone
|
|
|
+ , t.user_id_ AS userId
|
|
|
, t.status_ AS status
|
|
|
, t.verify_user_id_ AS verifyUserId
|
|
|
, t.reason_ AS reason
|
|
@@ -34,29 +35,47 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="selectPage" resultType="com.yonge.cooleshow.biz.dal.wrapper.TenantApplyRecordWrapper$TenantApplyRecord">
|
|
|
- SELECT
|
|
|
- <include refid="baseColumns" />
|
|
|
- FROM tenant_apply_record t
|
|
|
- <where>
|
|
|
- <if test="param.keyword != null and param.keyword != ''">
|
|
|
- and (
|
|
|
- t.name_ like concat('%',#{param.keyword},'%')
|
|
|
- or t.username_ like concat('%',#{param.keyword},'%')
|
|
|
- or t.phone_ like concat('%',#{param.keyword},'%')
|
|
|
- )
|
|
|
- </if>
|
|
|
- <if test="param.provinceCode != null">
|
|
|
- and t.province_code_ = #{param.provinceCode}
|
|
|
- </if>
|
|
|
- <if test="param.cityCode != null">
|
|
|
- and t.city_code_ = #{param.cityCode}
|
|
|
- </if>
|
|
|
- <if test="param.regionCode != null">
|
|
|
- and t.region_code_ = #{param.regionCode}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
-
|
|
|
- </select>
|
|
|
+ SELECT * from(
|
|
|
+ SELECT
|
|
|
+ t.id_ AS id
|
|
|
+ , t.name_ AS name
|
|
|
+ , t.logo_ AS logo
|
|
|
+ , t.province_code_ AS provinceCode
|
|
|
+ , t.city_code_ AS cityCode
|
|
|
+ , t.region_code_ AS regionCode
|
|
|
+ , t.username_ AS username
|
|
|
+ , t.phone_ AS phone
|
|
|
+ , t.user_id_ AS userId
|
|
|
+ , t.status_ AS status
|
|
|
+ , t.verify_user_id_ AS verifyUserId
|
|
|
+ , t.reason_ AS reason
|
|
|
+ , t.update_time_ AS updateTime
|
|
|
+ , t.create_time_ AS createTime
|
|
|
+ , t.brief_Introduction_ AS briefIntroduction
|
|
|
+ , if(t.status_='PASS',su.del_flag_,0) userDelFlag
|
|
|
+ FROM tenant_apply_record t
|
|
|
+ left join sys_user su on t.user_id_ = su.id_
|
|
|
+ <where>
|
|
|
+ <if test="param.keyword != null and param.keyword != ''">
|
|
|
+ and (
|
|
|
+ t.name_ like concat('%',#{param.keyword},'%')
|
|
|
+ or t.username_ like concat('%',#{param.keyword},'%')
|
|
|
+ or t.phone_ like concat('%',#{param.keyword},'%')
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="param.provinceCode != null">
|
|
|
+ and t.province_code_ = #{param.provinceCode}
|
|
|
+ </if>
|
|
|
+ <if test="param.cityCode != null">
|
|
|
+ and t.city_code_ = #{param.cityCode}
|
|
|
+ </if>
|
|
|
+ <if test="param.regionCode != null">
|
|
|
+ and t.region_code_ = #{param.regionCode}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ ) k
|
|
|
+ where k.userDelFlag = 0
|
|
|
+ </select>
|
|
|
<select id="selectHistoryPage"
|
|
|
resultType="com.yonge.cooleshow.biz.dal.wrapper.TenantApplyRecordWrapper$TenantApply">
|
|
|
select
|