Commit 352a7359 authored by libin's avatar libin

佣金

parent dadd491e
...@@ -82,15 +82,15 @@ FROM ...@@ -82,15 +82,15 @@ FROM
and `waiting`= #{wating} and <![CDATA[ and `waiting`= #{wating} and <![CDATA[
o.`type`<>1 ]]> o.`type`<>1 ]]>
</if> </if>
ORDER BY `crt_time` ORDER BY `crt_time` DESC
</select> </select>
<select id="selectSellingWaterPage" <select id="selectSellingWaterPage"
resultType="com.github.wxiaoqi.security.admin.dto.UserSellingWaterAdminDTO"> resultType="com.github.wxiaoqi.security.admin.dto.UserSellingWaterAdminDTO">
SELECT SELECT
ausw.*, ausw.*,
aul.username AS `phone`, aul.username AS `phone`,
IFNULL(aud.realname,aud.nickname) AS `sourceName`, IFNULL(aud.realname,aull.username) AS `sourceName`,
IFNULL(audd.realname,audd.nickname) AS `userName` IFNULL(audd.realname,aul.username) AS `userName`
FROM FROM
( SELECT * FROM `app_user_selling_water` WHERE 1 = 1 ( SELECT * FROM `app_user_selling_water` WHERE 1 = 1
<if test="status !=null"> <if test="status !=null">
...@@ -117,10 +117,12 @@ FROM ...@@ -117,10 +117,12 @@ FROM
WHERE `username` = #{phone} WHERE `username` = #{phone}
</if> </if>
) AS aul ON aul.id = ausw.user_id ) AS aul ON aul.id = ausw.user_id
INNER JOIN `app_user_login` AS `aull` ON aull.id=ausw.source_id
INNER JOIN `app_user_detail` AS aud ON aud.userid = ausw.source_id INNER JOIN `app_user_detail` AS aud ON aud.userid = ausw.source_id
INNER JOIN ( SELECT * FROM `app_user_detail` INNER JOIN ( SELECT * FROM `app_user_detail`
<if test="userName!=null and userName!=' '"> <if test="userName!=null and userName!=' '">
WHERE `realname` LIKE CONCAT('%',#{userName},'%') OR `nickname` LIKE CONCAT('%',#{userName},'%') WHERE `realname` LIKE CONCAT('%',#{userName},'%') OR `nickname` LIKE CONCAT('%',#{userName},'%')
</if>) AS audd ON audd.userid = ausw.user_id </if>) AS audd ON audd.userid = ausw.user_id
ORDER BY ausw.crt_time DESC
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment