update 根据pileSn查询计费模板

This commit is contained in:
2023-11-30 09:38:02 +08:00
parent 12584457d6
commit b6d16d59c3
2 changed files with 12 additions and 12 deletions

View File

@@ -380,14 +380,14 @@
t6.service_price AS valleyServicePrice,
t6.apply_time AS valleyApplyDate
FROM
pile_billing_relation t1
JOIN pile_billing_template t2 ON t1.billing_template_code = t2.template_code
pile_basic_info t1
JOIN pile_billing_template t2 ON t1.station_id = t2.station_id and t2.status = '1'
JOIN pile_billing_detail t3 ON t3.template_code = t2.template_code AND t3.time_type = '1'
JOIN pile_billing_detail t4 ON t4.template_code = t2.template_code AND t4.time_type = '2'
JOIN pile_billing_detail t5 ON t5.template_code = t2.template_code AND t5.time_type = '3'
JOIN pile_billing_detail t6 ON t6.template_code = t2.template_code AND t6.time_type = '4'
WHERE
t1.pile_sn = #{pileSn,jdbcType=VARCHAR};
t1.sn = #{pileSn,jdbcType=VARCHAR};
</select>
<select id="selectBillingTemplateByTemplateId" resultType="com.jsowell.pile.vo.web.BillingTemplateVO">