anderx лет назад: 7
Родитель
Сommit
51b0c2ed9f

+ 1 - 0
src/main/java/com/goafanti/common/mapper/JtBusinessProjectMapper.xml

@@ -822,6 +822,7 @@
   	<if test="type==2">
   	<if test="type==2">
   	and b.module = 5 
   	and b.module = 5 
   	</if>
   	</if>
+  	order by a.create_time desc
   <if test="page_sql!=null">
   <if test="page_sql!=null">
 		${page_sql}
 		${page_sql}
 	</if>
 	</if>

+ 1 - 0
src/main/java/com/goafanti/common/mapper/JtCommodityCommentMapper.xml

@@ -374,6 +374,7 @@
   left join jt_consult_order b on a.order_no=b.order_no
   left join jt_consult_order b on a.order_no=b.order_no
   where 1=1
   where 1=1
   and b.seller_id= #{id,jdbcType=VARCHAR}
   and b.seller_id= #{id,jdbcType=VARCHAR}
+  order by a.create_time desc
   <if test="page_sql!=null">
   <if test="page_sql!=null">
 	${page_sql}
 	${page_sql}
   </if>
   </if>

+ 1 - 0
src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml

@@ -1447,6 +1447,7 @@ select a.create_time as createTime,
   left join jt_consult_order b on a.order_no=b.order_no
   left join jt_consult_order b on a.order_no=b.order_no
   where 1=1
   where 1=1
   and b.seller_id= #{id,jdbcType=VARCHAR}
   and b.seller_id= #{id,jdbcType=VARCHAR}
+  order by a.star desc,a.create_time desc
   limit 1
   limit 1
 
 
 </select>
 </select>

+ 2 - 2
src/main/java/com/goafanti/common/mapper/UserMapper.xml

@@ -689,11 +689,11 @@
     from 
     from 
     	user
     	user
     where 
     where 
-    	username = #{username} 
+	    source = 0
+    and binary username = #{username} 
 	    <if test="type != null">
 	    <if test="type != null">
 	    	and type = #{type}
 	    	and type = #{type}
 	    </if>
 	    </if>
-	    and source = 0
   </select>
   </select>
   
   
   <select id="selectUserBaseByUserId" parameterType="java.lang.String" resultMap="UserPageHomeBo">
   <select id="selectUserBaseByUserId" parameterType="java.lang.String" resultMap="UserPageHomeBo">