|
@@ -5,9 +5,8 @@
|
|
|
<select id="getIncomeYearTotalByTasknoListAndByQsrqRange" resultType="java.math.BigDecimal">
|
|
|
select sum(a.htfpe)
|
|
|
from (select rwbh,htfpe,qsrq from com_contract_info_exchange where sjly = 20) a
|
|
|
- where a.qsrq = #{beginDate}
|
|
|
- and a.qsrq > #{beginDate}
|
|
|
- and a.qsrq < #{endDate}
|
|
|
+ where a.qsrq between #{beginDate}
|
|
|
+ and #{endDate}
|
|
|
and a.rwbh in
|
|
|
<foreach item='item' index='index' collection='tasknoList' open='(' separator=',' close=')'>
|
|
|
#{item}
|
|
@@ -16,9 +15,8 @@
|
|
|
<select id="getContractNumYearTotalByTasknoListAndByQsrqRange" resultType="java.math.BigDecimal">
|
|
|
select count(distinct(a.htbh))
|
|
|
from (select rwbh,qsrq,htbh from com_contract_info_exchange where sjly = 20) a
|
|
|
- where a.qsrq = #{beginDate}
|
|
|
- and a.qsrq > #{beginDate}
|
|
|
- and a.qsrq < #{endDate}
|
|
|
+ where a.qsrq between #{beginDate}
|
|
|
+ and #{endDate}
|
|
|
and a.htbh is not null
|
|
|
and a.rwbh in
|
|
|
<foreach item='item' index='index' collection='tasknoList' open='(' separator=',' close=')'>
|
|
@@ -28,9 +26,8 @@
|
|
|
<select id="getReceivedYearTotalByTasknoListAndByQsrqRange" resultType="java.math.BigDecimal">
|
|
|
select sum(a.rwskje)
|
|
|
from (select rwbh,dkhpdqrq,rwskje from com_contract_info_exchange where sjly = 40) a
|
|
|
- where a.dkhpdqrq = #{beginDate}
|
|
|
- and a.dkhpdqrq > #{beginDate}
|
|
|
- and a.dkhpdqrq < #{endDate}
|
|
|
+ where a.dkhpdqrq between #{beginDate}
|
|
|
+ and #{endDate}
|
|
|
and a.rwbh in
|
|
|
<foreach item='item' index='index' collection='tasknoList' open='(' separator=',' close=')'>
|
|
|
#{item}
|