|
|
|
@ -639,7 +639,7 @@ |
|
|
|
</if> |
|
|
|
GROUP BY aorid |
|
|
|
<if test="groupByForState != null and groupByForState !=''"> |
|
|
|
ORDER BY pass DESC, applicantTime desc |
|
|
|
ORDER BY pass DESC,depositoryManagerPass asc, applicantTime desc |
|
|
|
</if> |
|
|
|
<if test="groupByForState == null or groupByForState == ''"> |
|
|
|
ORDER BY applicantTime desc |
|
|
|
@ -662,7 +662,7 @@ |
|
|
|
select |
|
|
|
<include refid="ApplicationOutRecordInfo"/> |
|
|
|
from applicationOutRecordInfo |
|
|
|
where 1 = 1 |
|
|
|
where 1 = 1 and mid is not |
|
|
|
<if test="depositoryIdList != null"> |
|
|
|
and ( depositoryId |
|
|
|
in |
|
|
|
@ -705,7 +705,12 @@ |
|
|
|
</if> |
|
|
|
|
|
|
|
GROUP BY aorid |
|
|
|
order by applicantTime desc |
|
|
|
<if test="groupByForState != null and groupByForState !=''"> |
|
|
|
ORDER BY pass DESC,depositoryManagerPass asc, applicantTime desc |
|
|
|
</if> |
|
|
|
<if test="groupByForState == null or groupByForState == ''"> |
|
|
|
ORDER BY applicantTime desc |
|
|
|
</if> |
|
|
|
<if test="begin != null and size != null"> |
|
|
|
LIMIT #{begin},#{size} |
|
|
|
</if> |
|
|
|
@ -715,7 +720,7 @@ |
|
|
|
select |
|
|
|
count(DISTINCT aorid) |
|
|
|
from applicationOutRecordInfo |
|
|
|
where 1 = 1 |
|
|
|
where 1 = 1 and mid is not |
|
|
|
<if test="depositoryIdList != null"> |
|
|
|
and ( depositoryId in |
|
|
|
<foreach collection="depositoryIdList" index="index" item="id" open="(" separator="," close=")"> |
|
|
|
@ -924,7 +929,7 @@ |
|
|
|
select |
|
|
|
count(DISTINCT aorid) |
|
|
|
from applicationOutRecordInfo |
|
|
|
where 1 = 1 |
|
|
|
where 1 = 1 and mid is not |
|
|
|
<if test="id != '' and id != null"> |
|
|
|
and aorid = #{id} |
|
|
|
</if> |
|
|
|
|