|
@@ -45,9 +45,9 @@
|
|
<select id="getCountByRespAndAccounts" resultType="java.math.BigDecimal">
|
|
<select id="getCountByRespAndAccounts" resultType="java.math.BigDecimal">
|
|
select IFNULL(sum(amount), 0)
|
|
select IFNULL(sum(amount), 0)
|
|
from cost_allocation_query
|
|
from cost_allocation_query
|
|
- where date_year = 2021
|
|
|
|
- and date_month = 1
|
|
|
|
- and hosp_id = 11
|
|
|
|
|
|
+ where date_year = #{dateYear}
|
|
|
|
+ and date_month = #{month}
|
|
|
|
+ and hosp_id = #{hospId}
|
|
and responsibility_code = #{code}
|
|
and responsibility_code = #{code}
|
|
and accounting_code in
|
|
and accounting_code in
|
|
<foreach collection="accountCodes" item="item" open="(" separator="," close=")">
|
|
<foreach collection="accountCodes" item="item" open="(" separator="," close=")">
|
|
@@ -58,9 +58,9 @@
|
|
<select id="getTotalByAccountAndResps" resultType="java.math.BigDecimal">
|
|
<select id="getTotalByAccountAndResps" resultType="java.math.BigDecimal">
|
|
select IFNULL(sum(amount), 0)
|
|
select IFNULL(sum(amount), 0)
|
|
from cost_allocation_query
|
|
from cost_allocation_query
|
|
- where date_year = 2021
|
|
|
|
- and date_month = 1
|
|
|
|
- and hosp_id = 11
|
|
|
|
|
|
+ where date_year = #{dateYear}
|
|
|
|
+ and date_month = #{month}
|
|
|
|
+ and hosp_id = #{hospId}
|
|
and accounting_code = #{code}
|
|
and accounting_code = #{code}
|
|
and responsibility_code in
|
|
and responsibility_code in
|
|
<foreach collection="respCodes" item="item" open="(" separator="," close=")">
|
|
<foreach collection="respCodes" item="item" open="(" separator="," close=")">
|
|
@@ -70,9 +70,9 @@
|
|
<select id="getTotalByAccountAndRespCode" resultType="java.math.BigDecimal">
|
|
<select id="getTotalByAccountAndRespCode" resultType="java.math.BigDecimal">
|
|
select IFNULL(sum(amount), 0)
|
|
select IFNULL(sum(amount), 0)
|
|
from cost_allocation_query
|
|
from cost_allocation_query
|
|
- where date_year = 2021
|
|
|
|
- and date_month = 1
|
|
|
|
- and hosp_id = 11
|
|
|
|
|
|
+ where date_year = #{dateYear}
|
|
|
|
+ and date_month = #{month}
|
|
|
|
+ and hosp_id = #{hospId}
|
|
and accounting_code = #{accountCode}
|
|
and accounting_code = #{accountCode}
|
|
and responsibility_code = #{responsibilityCode}
|
|
and responsibility_code = #{responsibilityCode}
|
|
</select>
|
|
</select>
|