From 29eab346b55c74fb1ed3212ff7dcb0c24c7662fa Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 15 五月 2025 11:22:31 +0800 Subject: [PATCH] 示范区项目,虚拟卡表的占用状态及剩余金额需要设置成默认值,即不占用,不减费。修改原来的实现,增加设备剩余金额为默认值10000,配置项名称也做了达意修改。 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml index 8b782c1..fd8a25f 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml @@ -126,15 +126,17 @@ select count(*) from ug_rtu_controller ugCon - inner join pr_intake inta ON inta.id = ugCon.task_id + inner join ug_rtu_task ugTask on ugCon.task_id = ugTask.id + inner join pr_controller con on ugCon.controller_id = con.id + inner join pr_intake inta on con.intakeId = inta.id <where> <if test="taskId != null"> AND ugCon.task_id = #{taskId,jdbcType=BIGINT} </if> - <if test="intakeNum != null"> + <if test="intakeNum != null and intakeNum != ''"> AND inta.name = #{intakeNum,jdbcType=VARCHAR} </if> - <if test="rtuAddr != null"> + <if test="rtuAddr != null and rtuAddr != ''"> AND ugCon.rtu_addr = #{rtuAddr,jdbcType=VARCHAR} </if> <if test="state != null and state == 1"> @@ -159,15 +161,17 @@ ugCon.ug_state as ugState, ugCon.over_dt as overDt from ug_rtu_controller ugCon - inner join pr_intake inta on ugCon.task_id = inta.id + inner join ug_rtu_task ugTask on ugCon.task_id = ugTask.id + inner join pr_controller con on ugCon.controller_id = con.id + inner join pr_intake inta on con.intakeId = inta.id <where> <if test="taskId != null"> AND ugCon.task_id = #{taskId,jdbcType=BIGINT} </if> - <if test="intakeNum != null"> + <if test="intakeNum != null and intakeNum != ''"> AND inta.name = #{intakeNum,jdbcType=VARCHAR} </if> - <if test="rtuAddr != null"> + <if test="rtuAddr != null and rtuAddr != ''"> AND ugCon.rtu_addr = #{rtuAddr,jdbcType=VARCHAR} </if> <if test="state != null and state == 1"> -- Gitblit v1.8.0