|
@@ -489,11 +489,36 @@
|
|
</if>
|
|
</if>
|
|
<choose>
|
|
<choose>
|
|
<when test="downProjectReportRecordStatus == 0">
|
|
<when test="downProjectReportRecordStatus == 0">
|
|
- AND( pfp.status is null or ppf.status is null )
|
|
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="submitMoney !=null and submitMoney !=''">
|
|
|
|
+ <if test="submitMoney == 1">
|
|
|
|
+ AND( pfp.status is null)
|
|
|
|
+ </if>
|
|
|
|
+ <if test="submitMoney == 2">
|
|
|
|
+ AND( /*pfp.status is null or*/ ppf.status is null )
|
|
|
|
+ </if>
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ AND( (a.submit_money = 2 and pfp.status is null) or (a.submit_money = 1 and ppf.status is null) )
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
</when>
|
|
</when>
|
|
<otherwise>
|
|
<otherwise>
|
|
<if test="downProjectReportRecordStatus!=null and downProjectReportRecordStatus !=''">
|
|
<if test="downProjectReportRecordStatus!=null and downProjectReportRecordStatus !=''">
|
|
- AND ppf.status = #{downProjectReportRecordStatus}
|
|
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="submitMoney !=null and submitMoney !=''">
|
|
|
|
+ <if test="submitMoney == 1">
|
|
|
|
+ and pfp.status = #{downProjectReportRecordStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="submitMoney == 2">
|
|
|
|
+ and ppf.status = #{downProjectReportRecordStatus}
|
|
|
|
+ </if>
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ and ppf.status = #{downProjectReportRecordStatus}
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+
|
|
</if>
|
|
</if>
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
@@ -691,11 +716,36 @@
|
|
|
|
|
|
<choose>
|
|
<choose>
|
|
<when test="downProjectReportRecordStatus == 0">
|
|
<when test="downProjectReportRecordStatus == 0">
|
|
- AND( pfp.status is null or ppf.status is null )
|
|
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="submitMoney !=null and submitMoney !=''">
|
|
|
|
+ <if test="submitMoney == 1">
|
|
|
|
+ AND( pfp.status is null)
|
|
|
|
+ </if>
|
|
|
|
+ <if test="submitMoney == 2">
|
|
|
|
+ AND( /*pfp.status is null or*/ ppf.status is null )
|
|
|
|
+ </if>
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ AND( (a.submit_money = 2 and pfp.status is null) or (a.submit_money = 1 and ppf.status is null) )
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
</when>
|
|
</when>
|
|
<otherwise>
|
|
<otherwise>
|
|
<if test="downProjectReportRecordStatus!=null and downProjectReportRecordStatus !=''">
|
|
<if test="downProjectReportRecordStatus!=null and downProjectReportRecordStatus !=''">
|
|
- AND ppf.status = #{downProjectReportRecordStatus}
|
|
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="submitMoney !=null and submitMoney !=''">
|
|
|
|
+ <if test="submitMoney == 1">
|
|
|
|
+ and pfp.status = #{downProjectReportRecordStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="submitMoney == 2">
|
|
|
|
+ and ppf.status = #{downProjectReportRecordStatus}
|
|
|
|
+ </if>
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ and ppf.status = #{downProjectReportRecordStatus}
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+
|
|
</if>
|
|
</if>
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|