Antiloveg před 8 roky
rodič
revize
8a223c99c4

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

@@ -516,7 +516,7 @@
   <select id="selectLatelyRecord" resultType="com.goafanti.cognizance.bo.LatelyCogRecord" parameterType="java.lang.String" >
     select c.id, c.issuing_date as issuingDate, l.state, MAX(l.record_time) as recordTime
 		   from org_cognizance c LEFT JOIN org_cognizance_log l on 
-		   c.id = l.cid  where c.uid = #{uid,jdbcType=VARCHAR} and c.deleted_sign = 0
+		   c.id = l.cid  where c.uid = #{uid,jdbcType=VARCHAR} and c.deleted_sign = 0 group by  c.id
   </select>
   
   <select id="selectContractCognizanceByContractId" resultType="com.goafanti.cognizance.bo.CognizanceContractBo" parameterType="java.lang.String" >