| Pass |
- 17:32:10 |
+ 18:29:50 |
Test passed
|
@@ -128,13 +128,13 @@
Started
-
一月 09, 2025 17:32:09
+
一月 22, 2025 18:29:49
Ended
-
一月 09, 2025 17:32:10
+
一月 22, 2025 18:29:50
diff --git a/hiver-core/src/main/java/cc/hiver/core/service/UserService.java b/hiver-core/src/main/java/cc/hiver/core/service/UserService.java
index 5130b68e..1dbf9c69 100644
--- a/hiver-core/src/main/java/cc/hiver/core/service/UserService.java
+++ b/hiver-core/src/main/java/cc/hiver/core/service/UserService.java
@@ -3,7 +3,6 @@ package cc.hiver.core.service;
import cc.hiver.core.base.HiverBaseService;
import cc.hiver.core.common.vo.SearchVo;
import cc.hiver.core.entity.User;
-import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.result.WxMpUser;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.data.domain.Page;
@@ -129,7 +128,7 @@ public interface UserService extends HiverBaseService {
* @author 鐜嬪瘜搴
* @date 2024/12/29
*/
- void unSubscribeWxServer(WxMpXmlMessage wxMessage);
+ void unSubscribeWxServer(WxMpUser user);
User findByUnionid(String unionid);
diff --git a/hiver-core/src/main/java/cc/hiver/core/serviceimpl/UserServiceImpl.java b/hiver-core/src/main/java/cc/hiver/core/serviceimpl/UserServiceImpl.java
index df482615..dc008bae 100644
--- a/hiver-core/src/main/java/cc/hiver/core/serviceimpl/UserServiceImpl.java
+++ b/hiver-core/src/main/java/cc/hiver/core/serviceimpl/UserServiceImpl.java
@@ -22,7 +22,6 @@ import cc.hiver.core.vo.RoleDTO;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.text.CharSequenceUtil;
import lombok.extern.slf4j.Slf4j;
-import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.result.WxMpUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
@@ -319,9 +318,19 @@ public class UserServiceImpl implements UserService {
save(wechatUser);
}
+ /**
+ * 鍙栨秷鍏虫敞鍏紬鍙凤紝鎺ヨЕuser缁戝畾
+ * @author 鐜嬪瘜搴
+ * @date 2025/1/17
+ * @param user
+ */
@Override
- public void unSubscribeWxServer(WxMpXmlMessage wxMessage) {
-
+ public void unSubscribeWxServer(WxMpUser user) {
+ final String unionid = user.getUnionId();
+ User wechatUser = findByUnionid(unionid);
+ // 鎺ヨЕ寰俊鍏紬鍙风殑openId
+ wechatUser.setOfficialAccountOpenid("");
+ save(wechatUser);
}
@Override
diff --git a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/CustomerController.java b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/CustomerController.java
index b2c2f048..9db3cabf 100644
--- a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/CustomerController.java
+++ b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/CustomerController.java
@@ -131,7 +131,10 @@ public class CustomerController {
final User user = userService.get(userId);
user.setNickname(customer.getName());
user.setSex(customer.getSex());
- user.setMobile(customer.getPhone());
+ // 2025-01-16 app/customer/edit杩欎釜鎺ュ彛鎵嬫満鍙 绌夸簡涓┖锛屾姤閿欙細"mobile-11浣嶆墜鏈哄彿鏍煎紡涓嶆纭"
+ if(StringUtils.isNotEmpty(customer.getPhone())){
+ user.setMobile(customer.getPhone());
+ }
user.setAddress(customer.getAddress());
userService.update(user);
}
diff --git a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/SalesAndDetailsServiceImpl.java b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/SalesAndDetailsServiceImpl.java
index f57f9e17..4aaa2d38 100644
--- a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/SalesAndDetailsServiceImpl.java
+++ b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/SalesAndDetailsServiceImpl.java
@@ -3,14 +3,13 @@ package cc.hiver.mall.serviceimpl;
import cc.hiver.core.common.constant.CommonConstant;
import cc.hiver.core.common.constant.DealingsRecordConstant;
import cc.hiver.core.common.constant.SaleConstant;
-import cc.hiver.core.common.constant.UserConstant;
import cc.hiver.core.common.sms.SmsUtil;
-import cc.hiver.core.common.utils.*;
-import cc.hiver.core.common.vo.PageVo;
+import cc.hiver.core.common.utils.BeanUtils;
+import cc.hiver.core.common.utils.SecurityUtil;
+import cc.hiver.core.common.utils.SnowFlakeUtil;
+import cc.hiver.core.common.utils.StringUtils;
import cc.hiver.core.entity.LogiticsCompany;
-import cc.hiver.core.entity.Role;
import cc.hiver.core.entity.User;
-import cc.hiver.core.entity.UserRole;
import cc.hiver.core.service.LogiticsCompanyService;
import cc.hiver.core.service.RoleService;
import cc.hiver.core.service.UserRoleService;
@@ -29,8 +28,6 @@ import cc.hiver.mall.service.mybatis.*;
import cn.hutool.core.text.CharSequenceUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.data.domain.Page;
-import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
@@ -453,10 +450,10 @@ public class SalesAndDetailsServiceImpl implements SalesAndDetailsService {
// 鍒嗕韩椤垫彁浜よ鍗曠殑鏃跺欙紝鏍规嵁鎵嬫満鍙锋煡璇笅娓稿鎴蜂俊鎭紝濡傛灉鏌ヤ笉鍒帮紝鍒欐柊澧炰笅娓稿鎴
User byMobile;
String customerId = "";
- if (StringUtils.isNotEmpty(saleQueryDTO.getMobile())) {
+ // if (StringUtils.isNotEmpty(saleQueryDTO.getMobile())) {
// 20240906濡傛灉鍓嶅彴浼犱簡瀹㈡埛id浜嗭紝涓嶈鏂板瀹㈡埛浜嗗氨
if(StringUtils.isEmpty(saleQueryDTO.getUserId())){
- byMobile = userService.findByMobile(saleQueryDTO.getMobile());
+ /*byMobile = userService.findByMobile(saleQueryDTO.getMobile());
if (byMobile == null) {
//榛樿瀵嗙爜
final String encryptPass = new BCryptPasswordEncoder().encode("123456");
@@ -495,9 +492,9 @@ public class SalesAndDetailsServiceImpl implements SalesAndDetailsService {
}
byMobile = userService.save(byMobile);
}
- }
+ }*/
- customer.setUserId(byMobile.getId());
+ // customer.setUserId(byMobile.getId());
customer.setCreateTime(new Date());
customer.setDelFlag(CommonConstant.DEL_FLAG_FALSE);
customer.setName(saleQueryDTO.getUsername());
@@ -545,10 +542,10 @@ public class SalesAndDetailsServiceImpl implements SalesAndDetailsService {
// 瀹㈡埛id鎷垮墠鍙颁紶鐨
customerId = saleQueryDTO.getUserId();
}
- } else {
+ /*} else {
log.error("涓嬫父瀹㈡埛鏈~鍐欐墜鏈哄彿锛");
return null;
- }
+ }*/
// 鍒嗕韩椤垫彁浜よ鍗曡繖閲岃偗瀹氭槸锛氭湭鏀舵
sale.setPayStatus("0");
diff --git a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/SupplierServiceImpl.java b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/SupplierServiceImpl.java
index 441249d2..996799af 100644
--- a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/SupplierServiceImpl.java
+++ b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/SupplierServiceImpl.java
@@ -83,12 +83,14 @@ public class SupplierServiceImpl implements SupplierService {
final Predicate[] arr = new Predicate[list.size()];
cq.where(list.toArray(arr));
final Expression orderByExpression = root.get("orderByField");
+ final Expression orderById = root.get("id");
final Expression