فهرست منبع

回调修改1

yusm 1 هفته پیش
والد
کامیت
3d156a9cd9

+ 2 - 2
fhKeeper/formulahousekeeper/management-crm/src/main/java/com/management/platform/controller/WechatCallbackController.java

@@ -173,8 +173,8 @@ public class WechatCallbackController {
                         .last("limit 1"));
 
                 if (!miniBindUserList.isEmpty()){
-                    Custom serviceOne = customService.getOne(new QueryWrapper<Custom>().eq("custom_name", openId));
-                    if(serviceOne==null) {
+                    int count = customService.count(new QueryWrapper<Custom>().eq("custom_name", openId));
+                    if(count==0) {
                         Custom custom = new Custom();
                         custom.setCustomName(openId);//用户的openId
                         custom.setIsDelete(0);