From ff08d741fcec20ebb6ef95514a59704a06a13a8b Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 20 六月 2024 10:47:06 +0800 Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml index 20c1c5e..674f25f 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml @@ -406,6 +406,11 @@ SELECT id FROM se_client WHERE clientNum = ${clientNum} </select> + <!--鏍规嵁鐢佃瘽鍙风爜鑾峰彇鍐滄埛ID--> + <select id="getClientIdByPhone" resultType="java.lang.Long"> + SELECT id FROM se_client WHERE phone = #{phoneNumber} + </select> + <!--鏍规嵁鍐滄埛ID閫昏緫鍒犻櫎鍐滄埛--> <update id="deleteClientById" parameterType="java.lang.Long"> update se_client set deleted = 1 @@ -431,4 +436,26 @@ SELECT id, typeName from se_water_type </select> + <!--鑾峰彇鍐滄埛鍩烘湰淇℃伅锛屽皬绋嬪簭棣栭〉浣跨敤--> + <select id="getSimpleClientInfo" resultType="com.dy.pipIrrGlobal.voSe.VoClientWechat"> + SELECT + CAST(ope.id AS char) AS sessionId, + CAST(cli.id AS char) AS clientId, + cli.name AS clientName, + cli.phone, + CAST(cli.blockId AS char) AS blockId + FROM se_open_id ope + INNER JOIN se_client cli ON ope.client_id = cli.id + <where> + <if test = "sessionId != null"> + AND ope.id = #{sessionId} + </if> + + <if test = "openId != null"> + AND ope.open_id = #{openId} + </if> + </where> + LIMIT 0,1 + </select> + </mapper> \ No newline at end of file -- Gitblit v1.8.0