Browse Source

用户倒序排列

hym 4 years ago
parent
commit
f9d943b564
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/resources/mapper/UserMapper.xml

+ 3 - 3
src/main/resources/mapper/UserMapper.xml

@@ -212,7 +212,7 @@
         <if test="mobilePhone != null and mobilePhone != ''"> AND su.mobile_phone LIKE concat('%',#{mobilePhone},'%')</if>
         <if test="roleId != null"> and sr.id = #{roleId} </if>
         <if test="organId != null"> and so.id = #{organId} </if>
-        order by ssu.type asc,su.create_date desc
+        order by su.create_date desc
     </select>
 
 	<select id="findUserByOrgsIds" resultType="com.zoniot.ccrc.entity.User">
@@ -304,8 +304,8 @@
     <select id="findClientUserByOpenid" resultType="com.zoniot.ccrc.entity.ClientUser">
         select  DISTINCT
             e.id, e.customer_phone mobile_phone, e.customer_name as  username,
-            e.customer_no accountnumber,c.loc_desc address, a.openid,
-            e.is_default,
+            e.customer_no userNumber,c.loc_desc address, a.openid,
+            e.is_default,e.emergency_contact_phone_number,e.emergency_contact,
             a.`status`, a.create_by, a.update_by,e.label
         from sc_user a
                  join sc_grid_management e on a.id=e.user_id