Browse Source

订单排序

wanghui 7 years ago
parent
commit
eea34f1ee6

+ 4 - 1
src/main/java/com/goafanti/common/mapper/TOrderMapper.xml

@@ -1098,6 +1098,7 @@
 		<if test="depIds != null and depIds != ''">
 			and f.id in (${depIds})
 		</if>
+			order by a.create_time desc
 		<!-- 特殊处理字段结束 -->
 		<if test="page_sql != null">
 			${page_sql}
@@ -1348,6 +1349,7 @@
 		<if test="financeName != null and financeName != ''">
 			and d.name =  #{financeName,jdbcType=VARCHAR}
 		</if>
+		order by a.create_time desc
 		<if test="page_sql != null">
 			${page_sql}
 		</if>
@@ -1466,6 +1468,7 @@
 	<if test="isFinance == 1"> <!-- 我的结算流水 -->
 		and b.finance_id = #{aid,jdbcType=VARCHAR} 
 	</if>
+		order by a.create_time desc
 	<if test="page_sql != null">
 		${page_sql}
 	</if>
@@ -1608,10 +1611,10 @@
 		<if test="financeName != null and financeName != ''">
 			and d.name = #{financeName,jdbcType=VARCHAR}
 		</if>
+		 	order by a.create_time desc
 		<if test="page_sql != null">
 			${page_sql}
 		</if>
-		    order by a.create_time desc
   </select>
   <select id="selectSetUpServiceOrderCount" resultType="java.lang.Integer">
 		select

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

@@ -620,10 +620,10 @@
 	<if test="orderEndDate != null and orderEndDate != ''">
 		and c.create_time &lt; #{orderEndDate,jdbcType=TIMESTAMP}
 	</if>
+		order by a.create_time desc
 	<if test="page_sql != null">
 		${page_sql}
 	</if>
-	order by a.create_time desc
   </select>
   <select id="listProjectCount" resultType="java.lang.Integer">
   	select
@@ -786,10 +786,10 @@
 		<if test="categoryId != null and categoryId != ''">
 			and c.id = #{categoryId,jdbcType=VARCHAR}
 		</if>
+			order by a.task_distribution_time desc
 		<if test="page_sql != null">
 			${page_sql}
 		</if>
-			order by a.task_distribution_time desc
   </select>
   
   <select id="selectProjectTaskCount" resultType="java.lang.Integer">

+ 2 - 2
src/main/resources/log4j.properties

@@ -1,10 +1,10 @@
-log4j.rootLogger=INFO,ERROR,Console
+log4j.rootLogger=ERROR,Console
 log4j.appender.Console=org.apache.log4j.ConsoleAppender
 log4j.appender.Console.Target=System.out
 log4j.appender.Console.layout=org.apache.log4j.PatternLayout
 log4j.appender.Console.layout.ConversionPattern=[%p][%d{yyyy-MM-dd HH\:mm\:ss,SSS}][%c]%m%n
 
-log4j.logger.com.springframework=INFO
+log4j.logger.com.springframework=ERROR
 log4j.logger.com.ibatis=ERROR  
 log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=ERROR  
 log4j.logger.com.ibatis.common.jdbc.ScriptRunner=ERROR