Antiloveg пре 8 година
родитељ
комит
52c985b44e

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

@@ -134,6 +134,6 @@
 		LEFT JOIN admin aa on aa.id = cl.operator
 		LEFT JOIN admin a on a.id = cl.principal
 		where cl.cid = #{cid,jdbcType=VARCHAR}
-		order by cl.record_time desc
+		order by cl.record_time 
     </select>
 </mapper>

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

@@ -120,7 +120,7 @@
    	left join admin a on cl.principal = a.id
    	left join admin b on cl.operator = b.id
     where cl.cid = #{id,jdbcType=VARCHAR} 
-    order by cl.record_time desc
+    order by cl.record_time 
   </select>
   
    <insert id="batchInsert" parameterType="com.goafanti.common.model.CopyrightLog">

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

@@ -121,6 +121,6 @@
 		LEFT JOIN admin a on a.id = ocl.principal
 		LEFT JOIN admin ad on ad.id = ocl.operator
 	where ocl.cid = #{cid,jdbcType=VARCHAR}
-	ORDER BY ocl.record_time DESC
+	ORDER BY ocl.record_time 
   </select>
 </mapper>

+ 6 - 5
src/main/java/com/goafanti/common/mapper/PatentLogMapper.xml

@@ -116,11 +116,12 @@
   </update>
   
   <select id="selectProcessByPid"  parameterType="java.lang.String" resultMap="BaseResultMap">
-    select b.name as principal , m.operator , m.id , m.pid , m.state , m.comment , m.record_time from 
-		(select a.name as operator, p.id ,p.pid  , p.state , p.comment ,p.record_time , p.principal as pri
-		from patent_log p LEFT JOIN admin a 
-		on a.id = p.operator ) m LEFT JOIN admin b on m.pri = b. id
-    where pid = #{pid,jdbcType=VARCHAR} order by m.record_time desc
+     select a.name as principal, b.name as operator, pl.record_time as recordTime, pl.state, pl.comment as comment
+    from patent_log pl
+   	left join admin a on pl.principal = a.id
+   	left join admin b on pl.operator = b.id
+    where pl.pid = #{pid,jdbcType=VARCHAR} 
+    order by pl.record_time 
   </select>
   
    <insert id="batchInsert" parameterType="com.goafanti.common.model.PatentLog">

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

@@ -120,7 +120,7 @@
 		(select a.name as operator, p.id ,p.pid  , p.state , p.comment ,p.record_time , p.principal as pri
 		from tech_project_log p LEFT JOIN admin a 
 		on a.id = p.operator ) m LEFT JOIN admin b on m.pri = b. id
-    where pid = #{pid,jdbcType=VARCHAR} order by m.record_time desc
+    where pid = #{pid,jdbcType=VARCHAR} order by m.record_time 
   </select>
   
    <insert id="batchInsert" parameterType="com.goafanti.common.model.TechProjectLog">