|
@@ -2,7 +2,16 @@
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="org.springblade.meter.mapper.MiddleMeterApplyTaskMapper">
|
|
<mapper namespace="org.springblade.meter.mapper.MiddleMeterApplyTaskMapper">
|
|
|
|
|
|
|
|
+<!-- <select id="selectAllMoney" resultType="java.math.BigDecimal">-->
|
|
|
|
+<!-- select sum(meter_money) from s_middle_meter_apply_task where is_deleted = 0 and task_id = #{taskId}-->
|
|
|
|
+<!-- </select>-->
|
|
|
|
+
|
|
<select id="selectAllMoney" resultType="java.math.BigDecimal">
|
|
<select id="selectAllMoney" resultType="java.math.BigDecimal">
|
|
- select sum(meter_money) from s_middle_meter_apply_task where is_deleted = 0 and task_id = #{taskId}
|
|
|
|
|
|
+ select current_period_pay
|
|
|
|
+ from s_interim_pay_certificate_item where chapter_seq='实际支付' and is_deleted = 0
|
|
|
|
+ and certificate_id =
|
|
|
|
+ (select id from s_interim_pay_certificate
|
|
|
|
+ WHERE contract_id = #{contractId} and contract_period_id = #{contractPeriodId} and is_deleted = 0
|
|
|
|
+ )
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|