From b943c16035dc33782ba6be635854bdbb3018e5b2 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期五, 14 六月 2024 11:06:28 +0800 Subject: [PATCH] 1、完善代码; 2、数据库IP地址修改; 3、江海协议实现阀开工作报最新数据存储和历史数据存储。 --- pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java index 6eec5ca..a816627 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java @@ -10,9 +10,9 @@ import com.dy.pipIrrGlobal.pojoSe.SeCodeVerify; import com.dy.pipIrrGlobal.pojoSe.SeOpenId; import com.dy.pipIrrGlobal.voSe.VoClient; +import com.dy.pipIrrGlobal.voSe.VoClientWechat; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.common.utils.PojoUtils; -import org.apache.ibatis.annotations.Param; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -40,6 +40,9 @@ @Autowired private SeOpenIdMapper seOpenIdMapper; + + @Autowired + private BaSettingsMapper baSettingsMapper; /** * 鏍规嵁鎸囧畾鏉′欢鑾峰彇鍐滄埛鏁版嵁 @@ -76,7 +79,7 @@ * @return */ public Integer addClient(SeClient po) { - return seClientMapper.insert(po); + return seClientMapper.insertSelective(po); } /** @@ -182,4 +185,13 @@ public String getItemValue(String itemName) { return baSettingsMapper.getItemValue(itemName); } + + /** + * 鑾峰彇鍐滄埛鍩烘湰淇℃伅锛屽皬绋嬪簭棣栭〉浣跨敤 + * @param sessionId + * @return + */ + public VoClientWechat getSimpleClientInfo(Long sessionId, String openId) { + return seClientMapper.getSimpleClientInfo(sessionId, openId); + } } -- Gitblit v1.8.0