Commit 483ac607 authored by libin's avatar libin

Merge branch 'master-auto-pay' into dev

parents b7d169f1 352a7359
...@@ -96,8 +96,8 @@ FROM ...@@ -96,8 +96,8 @@ FROM
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">
...@@ -124,10 +124,12 @@ FROM ...@@ -124,10 +124,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