This commit is contained in:
2023-06-21 11:23:55 +08:00
parent 8fdaf216f5
commit 69eadbe700
3 changed files with 33 additions and 3 deletions

View File

@@ -392,6 +392,24 @@
</foreach>
</select>
<select id="queryBillingDetailByTemplateId" resultMap="PileBillingDetailResult">
SELECT
t1.id,
t1.template_code,
t1.time_type,
t1.electricity_price,
t1.service_price,
t1.apply_time,
t1.create_by,
t1.create_time,
t1.update_by,
t1.update_time,
t1.del_flag
FROM pile_billing_detail t1
JOIN pile_billing_template t2 ON t2.template_code = t1.template_code
WHERE t2.id = #{templateId,jdbcType=BIGINT}
</select>
<insert id="insertPileBillingRelation">
insert into pile_billing_relation
(pile_sn, billing_template_code, station_id)