From 7c9e1e552d171b96e8ec890ba0df5f7abbde1c7d Mon Sep 17 00:00:00 2001 From: wuzeyu <1223318623@qq.com> Date: 星期二, 24 九月 2024 15:49:00 +0800 Subject: [PATCH] 优化代码 条件获取流浪控制器接口结果排序优化 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrIntakeControllerMapper.xml | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrIntakeControllerMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrIntakeControllerMapper.xml index df62638..96d940c 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrIntakeControllerMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrIntakeControllerMapper.xml @@ -150,7 +150,8 @@ <select id="getBindsByIntakeId" resultType="java.util.Map"> SELECT user.name AS userName, - con.code AS controllerCode, + <!--con.code AS controllerCode,--> + con.rtuAddr, (CASE WHEN ic.operateType = 1 THEN "缁戝畾" WHEN ic.operateType = 2 THEN "瑙g粦" @@ -185,4 +186,26 @@ </if> ORDER BY ic.operateDt DESC </select> + <!--鏍规嵁鍙栨按鍙g紪鍙蜂慨鏀圭粦瀹氳褰曞垪琛�--> + <update id="updateByIntakeSelective"> + update pr_intake_controller + <set> + <if test="controllerid != null"> + controllerId = #{controllerid,jdbcType=BIGINT}, + </if> + <if test="operatetype != null"> + operateType = #{operatetype,jdbcType=TINYINT}, + </if> + <if test="remarks != null"> + remarks = #{remarks,jdbcType=VARCHAR}, + </if> + <if test="operator != null"> + `operator` = #{operator,jdbcType=BIGINT}, + </if> + <if test="operatedt != null"> + operateDt = #{operatedt,jdbcType=TIMESTAMP}, + </if> + </set> + where intakeId = #{intakeid,jdbcType=BIGINT} + </update> </mapper> \ No newline at end of file -- Gitblit v1.8.0