From cb46d99ac8c302334e8c39600de0d9a4ffbf5533 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期二, 29 十月 2024 09:39:48 +0800 Subject: [PATCH] 1、删除global模块中Contant中的一些无用代码; 2、删除global模块中一些无用的备份; 3、一些有继承关系并注解有@Data的类中增加注解@EqualsAndHashCode(callSuper=false),防止编译时警告 --- pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java | 45 +++++++++++++-------------------------------- 1 files changed, 13 insertions(+), 32 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..0ae07c7 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 @@ -4,15 +4,12 @@ import com.dy.pipIrrGlobal.daoBa.BaDistrictMapper; import com.dy.pipIrrGlobal.daoBa.BaSettingsMapper; import com.dy.pipIrrGlobal.daoSe.SeClientMapper; -import com.dy.pipIrrGlobal.daoSe.SeCodeVerifyMapper; import com.dy.pipIrrGlobal.daoSe.SeOpenIdMapper; import com.dy.pipIrrGlobal.pojoSe.SeClient; -import com.dy.pipIrrGlobal.pojoSe.SeCodeVerify; import com.dy.pipIrrGlobal.pojoSe.SeOpenId; import com.dy.pipIrrGlobal.voSe.VoClient; 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; @@ -36,7 +33,7 @@ private BaDistrictMapper baDistrictMapper; @Autowired - private SeCodeVerifyMapper seCodeVerifyMapper; + private BaSettingsMapper baSettingsMapper; @Autowired private SeOpenIdMapper seOpenIdMapper; @@ -76,26 +73,9 @@ * @return */ public Integer addClient(SeClient po) { - return seClientMapper.insert(po); + return seClientMapper.insertSelective(po); } - /** - * 娣诲姞楠岃瘉鐮佽褰� - * @param po - * @return - */ - public Integer addCodeVerify(SeCodeVerify po) { - return seCodeVerifyMapper.insert(po); - } - - /** - * 鏍规嵁鎵嬫満鍙疯幏鍙栭獙璇佺爜楠岃瘉瀵硅薄 - * @param phoneNumber - * @return - */ - public SeCodeVerify getCodeVerify(String phoneNumber) { - return seCodeVerifyMapper.getCodeVerify(phoneNumber); - } /** * 鏍规嵁6浣嶅尯鍒掍覆妯$硦鏌ヨ鍐滄埛缂栧彿 * @param district6 @@ -156,6 +136,15 @@ } /** + * 鏍规嵁閰嶇疆椤硅幏鍙栭厤缃」鍊� + * @param itemName + * @return + */ + public String getItemValue(String itemName) { + return baSettingsMapper.getItemValue(itemName); + } + + /** * 鏍规嵁鐢佃瘽鍙风爜鑾峰彇鍐滄埛ID * @param phoneNumber * @return @@ -171,15 +160,7 @@ */ public Long addOpenId(SeOpenId po) { seOpenIdMapper.insert(po); - return po.getClientId(); - } - - /** - * 鏍规嵁閰嶇疆椤硅幏鍙栭厤缃」鍊� - * @param itemName - * @return - */ - public String getItemValue(String itemName) { - return baSettingsMapper.getItemValue(itemName); + //return po.getClientId(); + return po.getId(); } } -- Gitblit v1.8.0