|
|
@@ -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" >
|