Procházet zdrojové kódy

地址替换成hxxfb.com的服务器

hehaiqiang před 1 rokem
rodič
revize
90bbef141e
46 změnil soubory, kde provedl 279 přidání a 173 odebrání
  1. 2 0
      api/src/main/resources/application.yml
  2. 8 0
      commons-pojo/src/main/java/com/bjtdba/entity/thirdPartyWares/WaresDetail.java
  3. 3 3
      commons-pojo/src/main/java/com/bjtdba/utils/aliyunDysmsapiUtil.java
  4. 2 0
      eureka_server/src/main/resources/application.yml
  5. 2 2
      gateWay_server/src/main/resources/application-dev.yml
  6. 4 1
      gateWay_server/src/main/resources/application-pro.yml
  7. 1 1
      gateWay_server/src/main/resources/application.yml
  8. 9 3
      merchant_service/src/main/java/com/bjtdba/merchant/controller/HuifuController.java
  9. 6 5
      merchant_service/src/main/java/com/bjtdba/merchant/controller/SystemConfigValueController.java
  10. 1 1
      merchant_service/src/main/java/com/bjtdba/merchant/dao/MerchantMemberDao.java
  11. 4 0
      merchant_service/src/main/java/com/bjtdba/merchant/dao/OrderMerchantDao.java
  12. 1 1
      merchant_service/src/main/java/com/bjtdba/merchant/service/MerchantMemberService.java
  13. 4 4
      merchant_service/src/main/java/com/bjtdba/merchant/service/impl/AdapayServiceImpl.java
  14. 40 16
      merchant_service/src/main/java/com/bjtdba/merchant/service/impl/MerchantCashierServiceImpl.java
  15. 2 2
      merchant_service/src/main/java/com/bjtdba/merchant/service/impl/MerchantMemberServiceImpl.java
  16. 41 28
      merchant_service/src/main/java/com/bjtdba/merchant/service/impl/MerchantSettleInServiceImpl.java
  17. 5 4
      merchant_service/src/main/java/com/bjtdba/merchant/service/impl/SystemConfigValueServiceImpl.java
  18. 11 7
      merchant_service/src/main/resources/application-dev.yml
  19. 11 7
      merchant_service/src/main/resources/application-pro.yml
  20. 1 1
      merchant_service/src/main/resources/mapper/MerchantMemberMapper.xml
  21. 12 0
      merchant_service/src/main/resources/mapper/OrderMerchantMapper.xml
  22. 4 4
      order_service/src/main/resources/application-dev.yml
  23. 4 4
      order_service/src/main/resources/application-pro.yml
  24. 1 1
      order_service/src/main/resources/application.yml
  25. 3 3
      pension_service/src/main/resources/application-dev.yml
  26. 3 3
      pension_service/src/main/resources/application-pro.yml
  27. 1 1
      pension_service/src/main/resources/application.yml
  28. 15 15
      poster_service/src/main/java/com/bjtdba/poster/service/Impl/PosterServiceImpl.java
  29. 5 0
      poster_service/src/main/java/com/bjtdba/poster/service/Impl/QrCodeServiceImpl.java
  30. 3 3
      poster_service/src/main/resources/application-dev.yml
  31. 3 3
      poster_service/src/main/resources/application-pro.yml
  32. 3 3
      sysmanage_service/src/main/resources/application-dev.yml
  33. 3 3
      sysmanage_service/src/main/resources/application-pro.yml
  34. 8 5
      system_service/src/main/resources/application-dev.yml
  35. 4 4
      system_service/src/main/resources/application-pro.yml
  36. 1 1
      system_service/src/main/resources/application.yml
  37. 16 4
      thirdPartyWares_service/src/main/java/com/bjtdba/thirdPartWares/service/impl/TaobaoServiceImpl.java
  38. 2 2
      thirdPartyWares_service/src/main/resources/application-dev.yml
  39. 2 2
      thirdPartyWares_service/src/main/resources/application-pro.yml
  40. 13 11
      userCenter_service/src/main/java/com/bjtdba/userCenter/service/impl/UserLogOnServiceImpl.java
  41. 4 4
      userCenter_service/src/main/resources/application-dev.yml
  42. 3 3
      userCenter_service/src/main/resources/application-pro.yml
  43. 3 3
      wares_service/src/main/resources/application-dev.yml
  44. 3 3
      wares_service/src/main/resources/application-pro.yml
  45. 1 1
      wares_service/src/main/resources/application.yml
  46. 1 1
      wares_service/src/main/resources/mapper/MerchantMapper.xml

+ 2 - 0
api/src/main/resources/application.yml

@@ -17,6 +17,8 @@ eureka:
17 17
   instance:
18 18
     prefer-ip-address: true #使用ip地址注册
19 19
 
20
+
21
+
20 22
 #日志格式化  只输出日期和内容
21 23
 logging:
22 24
   pattern:

+ 8 - 0
commons-pojo/src/main/java/com/bjtdba/entity/thirdPartyWares/WaresDetail.java

@@ -40,6 +40,14 @@ public class WaresDetail {
40 40
     private BigDecimal yanglao;//养老金
41 41
     private BigDecimal gongxian;//新增贡献值值 20250107
42 42
     private BigDecimal jifen;//新增积分值 20250107
43
+    private BigDecimal pv;
44
+    public BigDecimal getPv() {
45
+        return pv;
46
+    }
47
+
48
+    public void setPv(BigDecimal pv) {
49
+        this.pv = pv;
50
+    }
43 51
     
44 52
     public BigDecimal getJifen() {
45 53
         return jifen;

+ 3 - 3
commons-pojo/src/main/java/com/bjtdba/utils/aliyunDysmsapiUtil.java

@@ -26,11 +26,11 @@ public class aliyunDysmsapiUtil {
26 26
         return new Client(config);
27 27
     }
28 28
     public static SendSmsResponse ceshi(String phone,int mobile_code) throws Exception {
29
-        Client client = aliyunDysmsapiUtil.createClient("LTAI5tRfUFtmr5VFjqJ9D4dA","o6KrEEHr6WcpP0nu7TnP6ywnXPpVQm");
29
+        Client client = aliyunDysmsapiUtil.createClient("LTAI5tKivJSckMYz5BHev3u8","nvetSdLB1YP7OgvpJcVeyhdJDVs4Ik");
30 30
         String code = "{\"code\":"+mobile_code+"}";
31 31
         SendSmsRequest sendSmsRequest = new SendSmsRequest();
32
-        sendSmsRequest.setSignName("储蓄保");
33
-        sendSmsRequest.setTemplateCode("SMS_247420027");
32
+        sendSmsRequest.setSignName("融合华夏");
33
+        sendSmsRequest.setTemplateCode("SMS_311255692");
34 34
         sendSmsRequest.setPhoneNumbers(phone);
35 35
         sendSmsRequest.setTemplateParam(code);
36 36
         RuntimeOptions runtime = new RuntimeOptions();

+ 2 - 0
eureka_server/src/main/resources/application.yml

@@ -1,6 +1,8 @@
1 1
 server:
2 2
   port: 8000 #端口
3 3
 
4
+
5
+
4 6
 #配置eureka
5 7
 eureka:
6 8
   instance:

+ 2 - 2
gateWay_server/src/main/resources/application-dev.yml

@@ -49,10 +49,10 @@
49 49
           - Path=/sysmanage_service/**
50 50
 
51 51
   redis:
52
-    host: 10.30.0.46
52
+    host: 60.205.129.253
53 53
     port: 6379
54 54
     password: bjtdba
55
-    database: 0
55
+    database: 6
56 56
     timeout: 5000
57 57
     jedis:
58 58
       pool:

+ 4 - 1
gateWay_server/src/main/resources/application-pro.yml

@@ -49,7 +49,10 @@
49 49
           - Path=/sysmanage_service/**
50 50
 
51 51
   redis:
52
-    host: 8.141.0.149
52
+#    host: 8.141.0.149
53
+#    port: 6379
54
+#    password: bjtdba
55
+    host: 123.56.214.150
53 56
     port: 6379
54 57
     password: bjtdba
55 58
     database: 6

+ 1 - 1
gateWay_server/src/main/resources/application.yml

@@ -4,7 +4,7 @@ spring:
4 4
   application:
5 5
     name: gateWay-server
6 6
   profiles:
7
-    active: pro
7
+    active: dev
8 8
 
9 9
 
10 10
 

+ 9 - 3
merchant_service/src/main/java/com/bjtdba/merchant/controller/HuifuController.java

@@ -69,6 +69,8 @@ public class HuifuController {
69 69
                 String member_id = (String) jsonObject.get("member_id");
70 70
                 String audit_state = (String) jsonObject.get("audit_state");
71 71
                 String order_no = (String) jsonObject.get("order_no");
72
+                String settle_account_id = (String) jsonObject.get("id");
73
+                log.info("汇付返回+++++"+jsonObject.toJSONString());
72 74
                 int uid =  hfUserOrderDao.selectByOrderNo(order_no);
73 75
                 if(audit_state.equals("A")){  //audit_desc
74 76
                     //A-待审核
@@ -98,7 +100,7 @@ public class HuifuController {
98 100
                      * 1、使用用户uid 查询商户ID
99 101
                      */
100 102
                     List<Merchant> merchant= merchantDao.selectListByUId(uid);
101
-                    merchantMemberService.insterMerchantMember(merchant.get(0).getMer_id(),2,member_id);//保存商户支付id
103
+                    merchantMemberService.insterMerchantMember(merchant.get(0).getMer_id(),2,member_id,settle_account_id);//保存商户支付id
102 104
                     if(merchant.size()==1){
103 105
                         //调用第二个微信的注册方法
104 106
                         merchantSettleInService.executeCreateHuiFuWx2(1,merchant.get(0).getMer_id());
@@ -138,6 +140,8 @@ public class HuifuController {
138 140
                 String member_id = (String) jsonObject.get("member_id");
139 141
                 String audit_state = (String) jsonObject.get("audit_state");
140 142
                 String order_no = (String) jsonObject.get("order_no");
143
+                String settle_account_id = (String) jsonObject.get("id");
144
+                log.info("汇付返回+++++"+jsonObject.toJSONString());
141 145
                 int uid =  hfUserOrderDao.selectByOrderNo(order_no);
142 146
                 if(audit_state.equals("A")){  //audit_desc
143 147
                     //A-待审核
@@ -167,7 +171,7 @@ public class HuifuController {
167 171
                      * 1、使用用户uid 查询商户ID
168 172
                      */
169 173
                     List<Merchant> merchant= merchantDao.selectListByUId(uid);
170
-                    merchantMemberService.insterMerchantMember(merchant.get(0).getMer_id(),3,member_id);//保存商户支付id
174
+                    merchantMemberService.insterMerchantMember(merchant.get(0).getMer_id(),3,member_id,settle_account_id);//保存商户支付id
171 175
                     if(merchant.size()==1){
172 176
                         //这块调用阿里
173 177
                         merchantSettleInService.executeCreateHuiFuAli(1,merchant.get(0).getMer_id());
@@ -206,6 +210,8 @@ public class HuifuController {
206 210
                 String member_id = (String) jsonObject.get("member_id");
207 211
                 String audit_state = (String) jsonObject.get("audit_state");
208 212
                 String order_no = (String) jsonObject.get("order_no");
213
+                String settle_account_id = (String) jsonObject.get("id");
214
+                log.info("汇付返回阿里+++++"+jsonObject.toJSONString());
209 215
                 int uid =  hfUserOrderDao.selectByOrderNo(order_no);
210 216
                 if(audit_state.equals("A")){  //audit_desc
211 217
                     //A-待审核
@@ -230,7 +236,7 @@ public class HuifuController {
230 236
                     int status = 1;
231 237
                     merchantDao.updateHuiByUid(member_id,null,uid);
232 238
                     List<Merchant> merchant= merchantDao.selectListByUId(uid);
233
-                    merchantMemberService.insterMerchantMember(merchant.get(0).getMer_id(),1,member_id);//保存商户支付id
239
+                    merchantMemberService.insterMerchantMember(merchant.get(0).getMer_id(),1,member_id,settle_account_id);//保存商户支付id
234 240
                     merchantIntentionDao.updateResultByUid("开店成功",status,uid);
235 241
                 }
236 242
                 log.info("member_id="+member_id+"audit_state="+audit_state);

+ 6 - 5
merchant_service/src/main/java/com/bjtdba/merchant/controller/SystemConfigValueController.java

@@ -59,7 +59,7 @@ public class SystemConfigValueController {
59 59
                 //添加进去
60 60
                 SystemConfigValue rrxSystemConfigValue = new SystemConfigValue();
61 61
                 rrxSystemConfigValue.setConfigKey("base_commission");
62
-                rrxSystemConfigValue.setValue("0");
62
+                rrxSystemConfigValue.setValue("5");
63 63
                 rrxSystemConfigValue.setCreateTime(new Date());
64 64
                 rrxSystemConfigValue.setMerId(merId);
65 65
                 systemConfigValueService.insert(rrxSystemConfigValue);
@@ -95,8 +95,8 @@ public class SystemConfigValueController {
95 95
             return ResponseUtil.fail();
96 96
         }
97 97
         Double objvalue=Double.parseDouble(value);
98
-        if(objvalue<0||objvalue>100){
99
-            return ResponseUtil.fail();
98
+        if(objvalue<5||objvalue>100){
99
+            return ResponseUtil.fail("您已经开通消分设置,您的分润值,应该大于等5");
100 100
         }
101 101
 
102 102
         SystemConfigValue systemConfigValue=new SystemConfigValue();
@@ -130,13 +130,14 @@ public class SystemConfigValueController {
130 130
      */
131 131
     @PostMapping("/getShopBonusSetting")
132 132
     public Object getShopBonusSetting(@RequestBody Map<String,String> map){
133
-        return systemConfigValueService.getShopBonusSetting(map.get("mer_id"));
133
+
134
+        return ResponseUtil.ok(systemConfigValueService.getShopBonusSetting(map.get("mer_id"))) ;
134 135
     }
135 136
     /**
136 137
      * 获取配置
137 138
      */
138 139
     @PostMapping("/updateShopBonusSetting")
139 140
     public Object updateShopBonusSetting(@RequestBody Map<String,String> map){
140
-        return systemConfigValueService.updateShopBonusSetting(map.get("mer_id"),map.get("value"));
141
+        return ResponseUtil.ok(systemConfigValueService.updateShopBonusSetting(map.get("mer_id"),map.get("value")));
141 142
     }
142 143
 }

+ 1 - 1
merchant_service/src/main/java/com/bjtdba/merchant/dao/MerchantMemberDao.java

@@ -11,6 +11,6 @@ import org.springframework.stereotype.Repository;
11 11
 @Mapper
12 12
 public interface MerchantMemberDao {
13 13
 
14
-    int insterMerchantMember(int mer_id, int type, String member_id);
14
+    int insterMerchantMember(int mer_id, int type, String member_id,String settle_account_id);
15 15
 
16 16
 }

+ 4 - 0
merchant_service/src/main/java/com/bjtdba/merchant/dao/OrderMerchantDao.java

@@ -12,7 +12,11 @@ import java.util.Map;
12 12
 public interface OrderMerchantDao {
13 13
 
14 14
     Map<String, Long> belowTheLineSum(int mer_id, String start_time, String end_time);
15
+    Integer belowTheLineNumber(int mer_id, String start_time, String end_time);
15 16
 
16 17
     List<PayUser> belowTheLineList(int mer_id);
17 18
 
19
+    String jingdouSum(int mer_id, long start_time, long end_time);
20
+    String gongxianSum(int mer_id, long start_time, long end_time);
21
+
18 22
 }

+ 1 - 1
merchant_service/src/main/java/com/bjtdba/merchant/service/MerchantMemberService.java

@@ -5,5 +5,5 @@ package com.bjtdba.merchant.service;
5 5
  * @Date:2022/12/5
6 6
  */
7 7
 public interface MerchantMemberService {
8
-    int insterMerchantMember(Integer mer_id, int type, String member_id);
8
+    int insterMerchantMember(Integer mer_id, int type, String member_id,String settle_account_id);
9 9
 }

+ 4 - 4
merchant_service/src/main/java/com/bjtdba/merchant/service/impl/AdapayServiceImpl.java

@@ -109,14 +109,14 @@ public class AdapayServiceImpl implements AdapayService {
109 109
                 String hf_member_id = settleCount.get("member_id").toString();//写到店铺表中
110 110
                 merchantDao.updateHuiByUid(hf_member_id,null,merchantIntention.getUid());
111 111
                 merchantIntentionDao.updateResultByUid("线下支付已授权",status,merchantIntention.getUid());
112
-                merchantMemberService.insterMerchantMember(merchantIntention.getMer_id(),1,member_id);//保存商户支付id
112
+                merchantMemberService.insterMerchantMember(merchantIntention.getMer_id(),1,member_id,settleCount.get("id").toString());//保存商户支付id
113 113
             }else if(settleCount.get("app_id").equals(resourceConfig.getWx_app_id())){//微信1
114 114
                 String hf_member_id_wx = settleCount.get("member_id").toString();//写到店铺表中
115 115
                 merchantDao.updateHuiByUid(null,hf_member_id_wx,merchantIntention.getUid());
116 116
                 merchantIntentionDao.updateResultByUid("线下支付已授权",status,merchantIntention.getUid());
117
-                merchantMemberService.insterMerchantMember(merchantIntention.getMer_id(),2,member_id);//保存商户支付id
117
+                merchantMemberService.insterMerchantMember(merchantIntention.getMer_id(),2,member_id,settleCount.get("id").toString());//保存商户支付id
118 118
             }else if(settleCount.get("app_id").equals(resourceConfig.getWx2_app_id())){//微信2
119
-                merchantMemberService.insterMerchantMember(merchantIntention.getMer_id(),3,member_id);//保存商户支付id
119
+                merchantMemberService.insterMerchantMember(merchantIntention.getMer_id(),3,member_id,settleCount.get("id").toString());//保存商户支付id
120 120
             }
121 121
         }else{
122 122
             log.info("个人结算账户提交失败"+JSON.toJSONString(settleCount));
@@ -160,7 +160,7 @@ public class AdapayServiceImpl implements AdapayService {
160 160
             memberParams.put("social_credit_code_expires", merchantIntention.getMerc_end_time().replaceAll("-", ""));
161 161
         }
162 162
         if (memberParams.get("social_credit_code_expires").toString().equals("20991231")) {
163
-            memberParams.replace("social_credit_code_expires", "20991231长期");
163
+            memberParams.replace("social_credit_code_expires", "20991231");
164 164
         }
165 165
         memberParams.put("business_scope", "小商品");
166 166
         memberParams.put("legal_person", merchantIntention.getName());

+ 40 - 16
merchant_service/src/main/java/com/bjtdba/merchant/service/impl/MerchantCashierServiceImpl.java

@@ -7,12 +7,14 @@ import com.bjtdba.merchant.dao.*;
7 7
 import com.bjtdba.merchant.dto.PayUser;
8 8
 import com.bjtdba.merchant.service.MerchantCashierService;
9 9
 import com.bjtdba.merchant.vo.MerchantCashierShow;
10
+import com.bjtdba.utils.DateUtils;
10 11
 import com.bjtdba.utils.QRCodeUtil;
11 12
 import com.bjtdba.utils.ResponseUtil;
12 13
 import com.bjtdba.utils.uploadDownload;
13 14
 import com.github.pagehelper.Page;
14 15
 import com.github.pagehelper.PageHelper;
15 16
 import com.github.pagehelper.PageInfo;
17
+import javafx.scene.input.DataFormat;
16 18
 import org.apache.commons.io.IOUtils;
17 19
 import org.apache.commons.lang.StringUtils;
18 20
 import org.springframework.beans.factory.annotation.Autowired;
@@ -23,6 +25,7 @@ import org.springframework.web.multipart.MultipartFile;
23 25
 
24 26
 import java.io.File;
25 27
 import java.io.FileInputStream;
28
+import java.text.ParseException;
26 29
 import java.text.SimpleDateFormat;
27 30
 import java.util.*;
28 31
 
@@ -134,22 +137,43 @@ public class MerchantCashierServiceImpl implements MerchantCashierService {
134 137
     }
135 138
     @Override
136 139
     public Object selectMerchantOrder(int mer_id, String start_time, String end_time) {
137
-        Map<String,Object> data=new HashMap<String,Object>();
138
-        Map<String,Long> orderLineOrderSun = storeOrderDao.onLineOrdeSun(mer_id,start_time,end_time);
139
-        Map<String,Long> belowTheLineSum = orderMerchantDao.belowTheLineSum(mer_id,start_time,end_time);
140
-        Double consumption = merchantConsumptionScoreLog.selectConsumptionScore(1,null,mer_id);
141
-        int sun = userDao.selectByMerId(mer_id,start_time,end_time);
142
-        int visitorNumber = userVisitDao.selectVisitorNumberByMerId(mer_id,start_time,end_time);
143
-        Long a = orderLineOrderSun.get("orderLineNumber");
144
-        Long b = belowTheLineSum.get("belowTheLineNumber");
145
-        Long number = orderLineOrderSun.get("orderLineNumber") + belowTheLineSum.get("belowTheLineNumber");
146
-        data.put("orderLineOrderSun",orderLineOrderSun);
147
-        data.put("belowTheLineSum",belowTheLineSum);
148
-        data.put("consumption",consumption);
149
-        data.put("sun",sun);
150
-        data.put("visitorNumber",visitorNumber);
151
-        data.put("number",number);
140
+        try {
141
+            Map<String,Object> data=new HashMap<String,Object>();
142
+            Map<String,Long> orderLineOrderSun = storeOrderDao.onLineOrdeSun(mer_id,start_time,end_time);
143
+            Map<String,Long> belowTheLineSum = orderMerchantDao.belowTheLineSum(mer_id,start_time,end_time);
144
+            Double consumption = merchantConsumptionScoreLog.selectConsumptionScore(1,null,mer_id);
145
+            int sun = userDao.selectByMerId(mer_id,start_time,end_time);
146
+            int visitorNumber = userVisitDao.selectVisitorNumberByMerId(mer_id,start_time,end_time);
147
+            int xianxiarenshu=orderMerchantDao.belowTheLineNumber(mer_id,start_time,end_time);
148
+            //20250227 添加京豆,贡献值
149
+            SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
150
+
151
+            SimpleDateFormat sdfHH=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
152
+
153
+            Date startDate=sdfHH.parse(start_time+" 00:00:00");
154
+            Date endDate=sdfHH.parse(end_time+" 23:59:59");
155
+            long stimeL=startDate.getTime()/1000; //10位的时间戳
156
+            long endtimeL=endDate.getTime()/1000;  //10位的时间戳
157
+            String jingdousum=orderMerchantDao.jingdouSum(mer_id,stimeL,endtimeL);
158
+            String gongxianSumsum=orderMerchantDao.gongxianSum(mer_id,stimeL,endtimeL);
159
+
160
+
161
+            Long a = orderLineOrderSun.get("orderLineNumber");
162
+            Long b = belowTheLineSum.get("belowTheLineNumber");
163
+            Long number = orderLineOrderSun.get("orderLineNumber") + xianxiarenshu;
164
+            data.put("orderLineOrderSun",orderLineOrderSun);
165
+            data.put("belowTheLineSum",belowTheLineSum);
166
+            data.put("consumption",consumption);
167
+            data.put("jingdousum",jingdousum);
168
+            data.put("gongxianSumsum",gongxianSumsum);
169
+            data.put("sun",sun);
170
+            data.put("visitorNumber",visitorNumber);
171
+            data.put("number",number);
152 172
         return ResponseUtil.ok(data);
173
+        } catch (Exception e) {
174
+            e.printStackTrace();
175
+            return ResponseUtil.fail();
176
+        }
153 177
     }
154 178
 
155 179
     @Override
@@ -227,7 +251,7 @@ public class MerchantCashierServiceImpl implements MerchantCashierService {
227 251
             //添加进去
228 252
             SystemConfigValue rrxSystemConfigValue = new SystemConfigValue();
229 253
             rrxSystemConfigValue.setConfigKey("base_commission");
230
-            rrxSystemConfigValue.setValue("2");
254
+            rrxSystemConfigValue.setValue("5");
231 255
             rrxSystemConfigValue.setCreateTime(new Date());
232 256
             rrxSystemConfigValue.setMerId(mer_id1);
233 257
             int configStatus = systemConfigValueDao.insert(rrxSystemConfigValue);

+ 2 - 2
merchant_service/src/main/java/com/bjtdba/merchant/service/impl/MerchantMemberServiceImpl.java

@@ -16,8 +16,8 @@ public class MerchantMemberServiceImpl implements MerchantMemberService {
16 16
     private MerchantMemberDao merchantMemberDao;
17 17
 
18 18
     @Override
19
-    public int insterMerchantMember(Integer mer_id, int type, String member_id) {
20
-        merchantMemberDao.insterMerchantMember(mer_id,type,member_id);
19
+    public int insterMerchantMember(Integer mer_id, int type, String member_id,String settle_account_id) {
20
+        merchantMemberDao.insterMerchantMember(mer_id,type,member_id,settle_account_id);
21 21
         return 0;
22 22
     }
23 23
 }

+ 41 - 28
merchant_service/src/main/java/com/bjtdba/merchant/service/impl/MerchantSettleInServiceImpl.java

@@ -16,6 +16,7 @@ import com.bjtdba.utils.ResponseUtil;
16 16
 import com.bjtdba.utils.uploadDownload;
17 17
 import com.huifu.adapay.Adapay;
18 18
 import com.huifu.adapay.model.MerConfig;
19
+import lombok.extern.slf4j.Slf4j;
19 20
 import org.apache.commons.io.IOUtils;
20 21
 import org.springframework.beans.factory.annotation.Autowired;
21 22
 import org.springframework.beans.factory.annotation.Value;
@@ -46,6 +47,7 @@ import java.util.concurrent.atomic.AtomicInteger;
46 47
 import java.util.stream.Stream;
47 48
 
48 49
 @Service
50
+@Slf4j
49 51
 public class MerchantSettleInServiceImpl implements MerchantSettleInService {
50 52
 
51 53
     @Autowired
@@ -185,12 +187,14 @@ public class MerchantSettleInServiceImpl implements MerchantSettleInService {
185 187
 
186 188
     @Override
187 189
     public Object insertMerchantSettlen(MerchantIntention merchantIntention) throws Exception {
190
+        log.info("进入提交方法");
188 191
         Map<String,Object> data=new HashMap<String,Object>();
189 192
         merchantIntention.setStatus(0);
190 193
         List<Merchant> merchant= merchantDao.selectListByUId(merchantIntention.getUid());
191
-        if(merchant.size()==0){
194
+        if(merchant==null||merchant.size()==0){
192 195
             Integer mer_id = insterMerchant(merchantIntention);//将数据存到店铺表中
193 196
             //生产二维码
197
+            log.info("准备添加收款吗");
194 198
             insterQrCode(merchantIntention.getUid(),mer_id);
195 199
             merchantIntention.setMer_id(mer_id);
196 200
             boolean merchantAdmin = insterMerchantAdmin(merchantIntention);//将数据添加到店铺管理员表中
@@ -446,6 +450,7 @@ public class MerchantSettleInServiceImpl implements MerchantSettleInService {
446 450
 
447 451
     @Override
448 452
     public Object updateMerchaSettlen(MerchantIntention merchantIntention) throws Exception {
453
+        log.info("进入商户更新方法");
449 454
         merchantIntention.setStatus(0);
450 455
         //修改数据数据存到店铺表中
451 456
         boolean updateMerchant = updateMerchant(merchantIntention);
@@ -457,6 +462,7 @@ public class MerchantSettleInServiceImpl implements MerchantSettleInService {
457 462
             //判断该商户是否有首款二维码,如果有不添加,如果没有就添加
458 463
             Map<String, String> map = merchantQrcodeDao.selectMerchantQrcodeByMerId(merchantIntention.getMer_id());
459 464
             if(map == null){
465
+                log.info("准备添加收款吗");
460 466
                 insterQrCode(merchantIntention.getUid(),merchantIntention.getMer_id());
461 467
             }
462 468
             executeCreateHuiFuWx1(1,merchantIntention.getMer_id());//微信
@@ -668,7 +674,7 @@ public class MerchantSettleInServiceImpl implements MerchantSettleInService {
668 674
     /**
669 675
      * 生产二维码的方法
670 676
      */
671
-    public boolean insterQrCode(int uid,int mer_id)throws Exception{
677
+    public boolean insterQrCode(int uid,int mer_id){
672 678
         /**
673 679
          * 1、生成时间戳   充当二维码的code以及名称
674 680
          * 2、将本地的二维码上传到远程数据库
@@ -681,32 +687,39 @@ public class MerchantSettleInServiceImpl implements MerchantSettleInService {
681 687
 
682 688
 
683 689
 //        生产环境:https://offlinepay.bjtdba.com/mer_id=148
684
-        long timeNew = System.currentTimeMillis(); // 13位数的时间戳    这个也是code
685
-        String text = zhifuurl+mer_id;
686
-        // 嵌入二维码的图片路径
687
-        String imgPath = "";
688
-        // 生成的二维码的路径及名称
689
-        String destPath = "/Users/hanyuxing/qrcode/"+timeNew+".jpg";
690
-        //生成二维码
691
-        QRCodeUtil.encode(text, imgPath, destPath, true);
692
-        // 解析二维码
693
-        String str = QRCodeUtil.decode(destPath);
694
-        // 打印出解析出的内容
695
-        System.out.println(str);
696
-        //上传二维码到c d n
697
-        File file = new File(destPath);
698
-        FileInputStream input = new FileInputStream(file);
699
-        MultipartFile multipartFile = new MockMultipartFile("file", file.getName(), "text/plain", IOUtils.toByteArray(input));
700
-        Map<String, String> qrCode = uploadDownload.qrCode(multipartFile);
701
-        MerchantQrcode merchantQrcode = new MerchantQrcode();
702
-        merchantQrcode.setUid(uid);
703
-        merchantQrcode.setMer_id(mer_id);
704
-        merchantQrcode.setCode_id("");
705
-        merchantQrcode.setQrcode_src(qrCode.get("url"));
706
-        merchantQrcode.setShow_src(qrCode.get("url"));
707
-        merchantQrcodeDao.insterMerchantQrcode(merchantQrcode);
708
-        deleteDir(new File("/Users/hanyuxing/qrcode"));
709
-        return true;
690
+        log.info("已经进入生成收款方法");
691
+        try {
692
+            long timeNew = System.currentTimeMillis(); // 13位数的时间戳    这个也是code
693
+            String text = zhifuurl + mer_id;
694
+            // 嵌入二维码的图片路径
695
+            String imgPath = "";
696
+            // 生成的二维码的路径及名称
697
+            String destPath = "/Users/hanyuxing/qrcode/" + timeNew + ".jpg";
698
+            //生成二维码
699
+            QRCodeUtil.encode(text, imgPath, destPath, true);
700
+            // 解析二维码
701
+            String str = QRCodeUtil.decode(destPath);
702
+            // 打印出解析出的内容
703
+            System.out.println(str);
704
+            //上传二维码到c d n
705
+            File file = new File(destPath);
706
+            FileInputStream input = new FileInputStream(file);
707
+            MultipartFile multipartFile = new MockMultipartFile("file", file.getName(), "text/plain", IOUtils.toByteArray(input));
708
+            Map<String, String> qrCode = uploadDownload.qrCode(multipartFile);
709
+            log.info("上传到cdn服务 sQrcode_src="+qrCode.get("url")+"=== Show_src="+qrCode.get("url"));
710
+            MerchantQrcode merchantQrcode = new MerchantQrcode();
711
+            merchantQrcode.setUid(uid);
712
+            merchantQrcode.setMer_id(mer_id);
713
+            merchantQrcode.setCode_id("");
714
+            merchantQrcode.setQrcode_src(qrCode.get("url"));
715
+            merchantQrcode.setShow_src(qrCode.get("url"));
716
+            merchantQrcodeDao.insterMerchantQrcode(merchantQrcode);
717
+            deleteDir(new File("/Users/hanyuxing/qrcode"));
718
+            return true;
719
+        }catch (Exception e){
720
+            e.printStackTrace();
721
+            return false;
722
+        }
710 723
     }
711 724
 
712 725
 

+ 5 - 4
merchant_service/src/main/java/com/bjtdba/merchant/service/impl/SystemConfigValueServiceImpl.java

@@ -116,15 +116,15 @@ public class SystemConfigValueServiceImpl implements SystemConfigValueService {
116 116
     public boolean updateShopBonusSetting(String mer_id,String value) {
117 117
         System.out.println("mer_id======"+mer_id);
118 118
         Integer mer_id1 = Integer.parseInt(mer_id);
119
-        String configValue = systemConfigValueDao.getConfigValueByMerId("shop_bonus_setting",mer_id1);
119
+        String configValue = systemConfigValueDao.getConfigValueByMerId("base_commission",mer_id1);
120 120
         int status = 0;
121 121
         if(configValue!=null){
122
-           systemConfigValueDao.updateConfigValueByMerId("shop_bonus_setting",mer_id1,value);
122
+           systemConfigValueDao.updateConfigValueByMerId("base_commission",mer_id1,value);
123 123
         }else{
124 124
             SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
125 125
             //添加进去
126 126
             SystemConfigValue rrxSystemConfigValue = new SystemConfigValue();
127
-            rrxSystemConfigValue.setConfigKey("shop_bonus_setting");
127
+            rrxSystemConfigValue.setConfigKey("base_commission");
128 128
             rrxSystemConfigValue.setValue(value);
129 129
             rrxSystemConfigValue.setCreateTime(new Date());
130 130
             rrxSystemConfigValue.setMerId(mer_id1);
@@ -135,8 +135,9 @@ public class SystemConfigValueServiceImpl implements SystemConfigValueService {
135 135
     }
136 136
 
137 137
     public String getShopBonusSetting(String mer_id) {
138
+
138 139
         System.out.println("mer_id======"+mer_id);
139 140
         Integer mer_id1 = Integer.parseInt(mer_id);
140
-        return systemConfigValueDao.getConfigValueByMerId("shop_bonus_setting",mer_id1);
141
+        return systemConfigValueDao.getConfigValueByMerId("base_commission",mer_id1);
141 142
     }
142 143
 }

+ 11 - 7
merchant_service/src/main/resources/application-dev.yml

@@ -2,9 +2,13 @@
2 2
   port: 8005
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yihucha?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8
5
+#    url: jdbc:mysql://8.141.0.149:3307/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8
6
+#    driver-class-name: com.mysql.jdbc.Driver
7
+#    password: Bjtdba.com
8
+#    username: root
9
+    url: jdbc:mysql://60.205.129.253:3306/test_yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8
6 10
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
11
+    password: Rhhx888888.
8 12
     username: root
9 13
     hikari:
10 14
       maximum-pool-size: 16
@@ -25,7 +29,7 @@ mybatis:
25 29
 eureka:
26 30
   client:
27 31
     service-url:
28
-      defaultZone: http://20.100.5.100:8000/eureka/
32
+      defaultZone: http://127.0.0.1:8000/eureka/
29 33
   instance:
30 34
     prefer-ip-address: true #使用ip地址注册
31 35
 
@@ -35,9 +39,9 @@ logging:
35 39
 
36 40
 
37 41
 #汇付回调地址
38
-huifu.urlWx: http://test.bjtdba.com/huifu_service/huifuService/huifuWx
39
-huifu.urlWx2: https://test.bjtdba.com/huifu_service/huifuService/huifuWx2
40
-huifu.urlAli: https://test.bjtdba.com/huifu_service/huifuService/huifuAli
42
+huifu.urlWx: https://testapi.hxxfb.com/huifu_service/huifuService/huifuWx
43
+huifu.urlWx2: https://testapi.hxxfb.com/huifu_service/huifuService/huifuWx2
44
+huifu.urlAli: https://testapi.hxxfb.com/huifu_service/huifuService/huifuAli
41 45
 
42 46
 #线下支付地址
43
-zhifu.url: https://offlinepay-test.bjtdba.com?mer_id=
47
+zhifu.url: https://testofflinepay.hxxfb.com?mer_id=

+ 11 - 7
merchant_service/src/main/resources/application-pro.yml

@@ -2,9 +2,13 @@
2 2
   port: 8005
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8
5
+#    url: jdbc:mysql://8.141.0.149:3307/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8
6
+#    driver-class-name: com.mysql.jdbc.Driver
7
+#    password: Bjtdba.com
8
+#    username: root
9
+    url: jdbc:mysql://123.56.214.150:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8
6 10
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
11
+    password: P7pjJ2d6R1FdBMmz
8 12
     username: root
9 13
     hikari:
10 14
       maximum-pool-size: 16
@@ -25,7 +29,7 @@ mybatis:
25 29
 eureka:
26 30
   client:
27 31
     service-url:
28
-      defaultZone: http://20.100.5.100:8000/eureka/
32
+      defaultZone: http://127.0.0.1:8000/eureka/
29 33
   instance:
30 34
     prefer-ip-address: true #使用ip地址注册
31 35
 
@@ -35,9 +39,9 @@ logging:
35 39
 
36 40
 
37 41
 #汇付回调地址
38
-huifu.urlWx: http://test.bjtdba.com/huifu_service/huifuService/huifuWx
39
-huifu.urlWx2: https://test.bjtdba.com/huifu_service/huifuService/huifuWx2
40
-huifu.urlAli: https://test.bjtdba.com/huifu_service/huifuService/huifuAli
42
+huifu.urlWx: https://api.hxxfb.com/huifu_service/huifuService/huifuWx
43
+huifu.urlWx2: https://api.hxxfb.com/huifu_service/huifuService/huifuWx2
44
+huifu.urlAli: https://api.hxxfb.com/huifu_service/huifuService/huifuAli
41 45
 
42 46
 #线下支付地址
43
-zhifu.url: https://offlinepay-test.bjtdba.com?mer_id=
47
+zhifu.url: https://offlinepay.hxxfb.com?mer_id=

+ 1 - 1
merchant_service/src/main/resources/mapper/MerchantMemberMapper.xml

@@ -3,7 +3,7 @@
3 3
 <mapper namespace="com.bjtdba.merchant.dao.MerchantMemberDao">
4 4
 
5 5
     <insert id="insterMerchantMember">
6
-        INSERT INTO rrx_merchant_member (`mer_id`, `type`, `member_id`) VALUES (#{mer_id}, #{type}, #{member_id});
6
+        INSERT INTO rrx_merchant_member (`mer_id`, `type`, `member_id`,`settle_account_id`) VALUES (#{mer_id}, #{type}, #{member_id},#{settle_account_id});
7 7
     </insert>
8 8
 
9 9
 </mapper>

+ 12 - 0
merchant_service/src/main/resources/mapper/OrderMerchantMapper.xml

@@ -6,6 +6,10 @@
6 6
         select IFNULL(sum(money-service_money-pension-swipe_fee),0) belowTheLine,count(id) belowTheLineNumber from rrx_order_merchant where status = 1 and mer_id = #{mer_id} and create_time  between #{start_time} and date_add(#{end_time},interval 1 day)
7 7
     </select>
8 8
 
9
+    <select id="belowTheLineNumber" resultType="java.lang.Integer">
10
+       select count(1) from (select  IFNULL(count(id),0) belowTheLineNumber from rrx_order_merchant where status = 1 and mer_id = #{mer_id} and create_time  between #{start_time} and date_add(#{end_time},interval 1 day) group by pay_user_id) as aa
11
+    </select>
12
+
9 13
     <select id="belowTheLineList" resultType="com.bjtdba.merchant.dto.PayUser">
10 14
         SELECT COALESCE(b.avatar, a.avatar) as avatar, COALESCE( b.account, '') as account, COALESCE(b.nickname, a.nickname) as nickname, a.money AS type, a.create_time
11 15
         FROM rrx_order_merchant a LEFT JOIN rrx_user b ON a.uid = b.uid
@@ -13,5 +17,13 @@
13 17
     </select>
14 18
 
15 19
 
20
+    <select id="jingdouSum" resultType="java.lang.String">
21
+        SELECT IFNULL(sum(number),0) from rrx_user_sign_jingdou where `status`!=0 and mer_id= #{mer_id} and  addtime   between #{start_time} and #{end_time}
22
+    </select>
23
+
24
+    <select id="gongxianSum" resultType="java.lang.String">
25
+        SELECT IFNULL(sum(number),0) from rrx_user_sign_gongxian where `status`!=0 and mer_id= #{mer_id} and  addtime   between #{start_time} and #{end_time}
26
+    </select>
27
+
16 28
 
17 29
 </mapper>

+ 4 - 4
order_service/src/main/resources/application-dev.yml

@@ -2,9 +2,9 @@
2 2
   port: 8004
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yihucha?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://60.205.129.253:3306/test_yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: Rhhx888888.
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 200
@@ -13,7 +13,7 @@ spring:
13 13
 #日志格式化  只输出日期和内容
14 14
 
15 15
   redis:
16
-    host: 10.30.0.46
16
+    host: 60.205.129.253
17 17
     port: 6379
18 18
     password: bjtdba
19 19
     database: 0
@@ -41,7 +41,7 @@ mybatis:
41 41
 eureka:
42 42
   client:
43 43
     service-url:
44
-      defaultZone: http://20.100.5.100:8000/eureka/
44
+      defaultZone: http://127.0.0.1:8000/eureka/
45 45
   instance:
46 46
     prefer-ip-address: true #使用ip地址注册
47 47
 

+ 4 - 4
order_service/src/main/resources/application-pro.yml

@@ -2,9 +2,9 @@
2 2
   port: 8004
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://123.56.214.150:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: P7pjJ2d6R1FdBMmz
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 200
@@ -13,7 +13,7 @@ spring:
13 13
 #日志格式化  只输出日期和内容
14 14
 
15 15
   redis:
16
-    host: 10.30.0.46
16
+    host: 123.56.214.150
17 17
     port: 6379
18 18
     password: bjtdba
19 19
     database: 6
@@ -41,7 +41,7 @@ mybatis:
41 41
 eureka:
42 42
   client:
43 43
     service-url:
44
-      defaultZone: http://20.100.5.100:8000/eureka/
44
+      defaultZone: http://127.0.0.1:8000/eureka/
45 45
   instance:
46 46
     prefer-ip-address: true #使用ip地址注册
47 47
 

+ 1 - 1
order_service/src/main/resources/application.yml

@@ -2,7 +2,7 @@ spring:
2 2
   application:
3 3
     name: order-service
4 4
   profiles:
5
-    active: pro
5
+    active: dev
6 6
   cache:
7 7
     type: caffeine
8 8
     caffeine:

+ 3 - 3
pension_service/src/main/resources/application-dev.yml

@@ -2,9 +2,9 @@
2 2
   port: 8002
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yihucha?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://60.205.129.253:3306/test_yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: Rhhx888888.
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -22,7 +22,7 @@ mybatis:
22 22
 eureka:
23 23
   client:
24 24
     service-url:
25
-      defaultZone: http://20.100.5.100:8000/eureka/
25
+      defaultZone: http://127.0.0.1:8000/eureka/
26 26
   instance:
27 27
     prefer-ip-address: true #使用ip地址注册
28 28
 

+ 3 - 3
pension_service/src/main/resources/application-pro.yml

@@ -2,9 +2,9 @@
2 2
   port: 8002
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.28.5.46:13306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://123.56.214.150:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: P7pjJ2d6R1FdBMmz
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -22,7 +22,7 @@ mybatis:
22 22
 eureka:
23 23
   client:
24 24
     service-url:
25
-      defaultZone: http://20.100.5.100:8000/eureka/
25
+      defaultZone: http://127.0.0.1:8000/eureka/
26 26
   instance:
27 27
     prefer-ip-address: true #使用ip地址注册
28 28
 

+ 1 - 1
pension_service/src/main/resources/application.yml

@@ -2,7 +2,7 @@ spring:
2 2
   application:
3 3
     name: pension-service  #服务 名称
4 4
   profiles:
5
-    active: pro
5
+    active: dev
6 6
   cache:
7 7
     type: caffeine
8 8
     caffeine:

+ 15 - 15
poster_service/src/main/java/com/bjtdba/poster/service/Impl/PosterServiceImpl.java

@@ -86,7 +86,7 @@ public class PosterServiceImpl implements PosterService {
86 86
             //poster.setNameX(Integer.parseInt(qr_coordinateList[0]));//名字在海报的什么位置
87 87
             poster.setNameY(Integer.parseInt(qr_coordinateList[1]));
88 88
             //头像定位
89
-            poster.setPortraitCodeUrl(user.getAvatar()!=null?user.getAvatar():"https://app.bjtdba.com/uploads/logo.jpg");
89
+            poster.setPortraitCodeUrl(user.getAvatar()!=null?user.getAvatar():"https://cdn.bjtdba.com/vod/image/2025-01-20/20250120125206881.png");
90 90
             String[] head_coordinateList = spli(sharePosters.getHead_coordinate());
91 91
             poster.setPortraitCodeX(Integer.parseInt(head_coordinateList[0]));
92 92
             poster.setPortraitCodeY(Integer.parseInt(head_coordinateList[1]));
@@ -108,21 +108,21 @@ public class PosterServiceImpl implements PosterService {
108 108
         poster.setHeight(995);
109 109
         //去php获取二维码
110 110
 //        String qrCodeUrl=HttpUtil.doGet("https://test.bjtdba.com/api/invite_code?uid="+uid+"&imgId="+imgId,"");
111
-        String qrCodeUrl=HttpUtil.doGet(phpPath+"/api/invite_code?uid="+uid+"&imgId="+imgId,"");
112
-        log.info("去php获取二维码,请求地址"+phpPath+"/api/invite_code?uid="+uid+"&imgId="+imgId+"qrCodeUrl="+qrCodeUrl);
113
-        if(qrCodeUrl.equals("")){
114
-            return ResponseUtil.fail("生成失败,请稍后再试");
115
-        }
116
-//        String qrCodeUrl = null;
117
-//        SystemAttachment systemAttachment = systemAttachmentDao.selectAttachmentSrcByIdUidAndCategoryId(Integer.parseInt(uid),8,null);
118
-//        if(systemAttachment!=null){
119
-//            //二维码
120
-//            qrCodeUrl = systemAttachment.getAttachment_src(); //二维码
121
-//        }else{
122
-//            //新建分享二维码
123
-//            String text = "https://test.bjtdba.com/share?spread="+uid;
124
-//            qrCodeUrl = qrCodeService.insterQrCode(Integer.parseInt(uid), text);
111
+//        String qrCodeUrl=HttpUtil.doGet(phpPath+"/api/invite_code?uid="+uid+"&imgId="+imgId,"");
112
+//        log.info("去php获取二维码,请求地址"+phpPath+"/api/invite_code?uid="+uid+"&imgId="+imgId+"qrCodeUrl="+qrCodeUrl);
113
+//        if(qrCodeUrl.equals("")){
114
+//            return ResponseUtil.fail("生成失败,请稍后再试");
125 115
 //        }
116
+        String qrCodeUrl = null;
117
+//        SystemAttachment systemAttachment = systemAttachmentDao.selectAttachmentSrcByIdUidAndCategoryId(Integer.parseInt(uid),8,null,null);
118
+        if(systemAttachment1!=null){
119
+            //二维码
120
+            qrCodeUrl = systemAttachment1.getAttachment_src(); //二维码
121
+        }else{
122
+            //新建分享二维码
123
+            String text = "https://api.hxxfb.com/share?spread="+uid;
124
+            qrCodeUrl = qrCodeService.insterQrCode(Integer.parseInt(uid), text);
125
+        }
126 126
         poster.setQrCodeUrl(qrCodeUrl);
127 127
         String[] qr_coordinateList = spli(sharePosters.getQr_coordinate());
128 128
         poster.setQrCodeX(Integer.parseInt(qr_coordinateList[0]));

+ 5 - 0
poster_service/src/main/java/com/bjtdba/poster/service/Impl/QrCodeServiceImpl.java

@@ -41,6 +41,10 @@ public class QrCodeServiceImpl implements QrCodeService {
41 41
         File directory = new File("classes");
42 42
         String reportPath = directory.getCanonicalPath();
43 43
         String resource =reportPath + "/file/20221025172815531.png";
44
+
45
+
46
+
47
+//        String resource ="https://cdn.bjtdba.com/vod/image/2025-01-20/20250120125206881.png";
44 48
         System.out.println("-----------------二维码----------------------------"+resource);
45 49
         //生成二维码
46 50
         QRCodeUtil.encode(text, resource, destPath, true);
@@ -56,6 +60,7 @@ public class QrCodeServiceImpl implements QrCodeService {
56 60
         MultipartFile multipartFile = new MockMultipartFile("file", file.getName(), "text/plain", IOUtils.toByteArray(input));
57 61
         Map<String, String> qrCode = uploadDownload.qrCode(multipartFile);
58 62
         String url = qrCode.get("url");
63
+
59 64
         System.out.println("-----------------二维码s----------------------------"+url);
60 65
         //deleteDir(new File("/Users/hanyuxing/qrcode"));
61 66
         //将邀请二维码添加到 rrx_system_attachment

+ 3 - 3
poster_service/src/main/resources/application-dev.yml

@@ -2,9 +2,9 @@
2 2
   port: 8008
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://8.141.0.149:3307/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://60.205.129.253:3306/test_yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: Bjtdba.com
7
+    password: Rhhx888888.
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -36,4 +36,4 @@ eureka:
36 36
   instance:
37 37
     prefer-ip-address: true #使用ip地址注册
38 38
 
39
-phpPath: https://api.gdjbp.com
39
+phpPath: https://testapi.hxxfb.com

+ 3 - 3
poster_service/src/main/resources/application-pro.yml

@@ -2,9 +2,9 @@
2 2
   port: 8008
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://8.141.0.149:3307/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://123.56.214.150:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: Bjtdba.com
7
+    password: P7pjJ2d6R1FdBMmz
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -36,4 +36,4 @@ eureka:
36 36
   instance:
37 37
     prefer-ip-address: true #使用ip地址注册
38 38
 
39
-phpPath: https://api.gdjbp.com
39
+phpPath: https://api.hxxfb.com

+ 3 - 3
sysmanage_service/src/main/resources/application-dev.yml

@@ -2,9 +2,9 @@
2 2
   port: 7000
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yihucha?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://60.205.129.253:3306/test_yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: Rhhx888888.
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -32,6 +32,6 @@ mybatis:
32 32
 eureka:
33 33
   client:
34 34
     service-url:
35
-      defaultZone: http://20.100.5.100:8000/eureka/
35
+      defaultZone: http://127.0.0.1:8000/eureka/
36 36
   instance:
37 37
     prefer-ip-address: true #使用ip地址注册

+ 3 - 3
sysmanage_service/src/main/resources/application-pro.yml

@@ -2,9 +2,9 @@
2 2
   port: 7000
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://123.56.214.150:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: P7pjJ2d6R1FdBMmz
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -32,6 +32,6 @@ mybatis:
32 32
 eureka:
33 33
   client:
34 34
     service-url:
35
-      defaultZone: http://20.100.5.100:8000/eureka/
35
+      defaultZone: http://127.0.0.1:8000/eureka/
36 36
   instance:
37 37
     prefer-ip-address: true #使用ip地址注册

+ 8 - 5
system_service/src/main/resources/application-dev.yml

@@ -2,9 +2,9 @@
2 2
   port: 8006
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yihucha?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://60.205.129.253:3306/test_yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: Rhhx888888.
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -12,10 +12,10 @@ spring:
12 12
       idle-timeout: 10000
13 13
 
14 14
   redis:
15
-    host: 10.30.0.46
15
+    host: 60.205.129.253
16 16
     port: 6379
17 17
     password: bjtdba
18
-    database: 0
18
+    database: 6
19 19
     timeout: 5000
20 20
     jedis:
21 21
       pool:
@@ -47,10 +47,13 @@ mybatis:
47 47
   ## mapper配置文件地址
48 48
   mapper-locations: classpath*:/mapper/*.xml
49 49
 
50
+
51
+
50 52
 #配置eureka
51 53
 eureka:
52 54
   client:
53 55
     service-url:
54
-      defaultZone: http://20.100.5.100:8000/eureka/
56
+      defaultZone: http://127.0.0.1:8000/eureka/
57
+
55 58
   instance:
56 59
     prefer-ip-address: true #使用ip地址注册

+ 4 - 4
system_service/src/main/resources/application-pro.yml

@@ -2,9 +2,9 @@
2 2
   port: 8006
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://123.56.214.150:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: P7pjJ2d6R1FdBMmz
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -12,7 +12,7 @@ spring:
12 12
       idle-timeout: 10000
13 13
 
14 14
   redis:
15
-    host: 10.30.0.46
15
+    host: 123.56.214.150
16 16
     port: 6379
17 17
     password: bjtdba
18 18
     database: 6
@@ -51,6 +51,6 @@ mybatis:
51 51
 eureka:
52 52
   client:
53 53
     service-url:
54
-      defaultZone: http://20.100.5.100:8000/eureka/
54
+      defaultZone: http://127.0.0.1:8000/eureka/
55 55
   instance:
56 56
     prefer-ip-address: true #使用ip地址注册

+ 1 - 1
system_service/src/main/resources/application.yml

@@ -2,7 +2,7 @@ spring:
2 2
   application:
3 3
     name: system-service
4 4
   profiles:
5
-    active: pro
5
+    active: dev
6 6
   cache:
7 7
     type: caffeine
8 8
     caffeine:

+ 16 - 4
thirdPartyWares_service/src/main/java/com/bjtdba/thirdPartWares/service/impl/TaobaoServiceImpl.java

@@ -88,8 +88,13 @@ public class TaobaoServiceImpl implements TaobaoService {
88 88
             BigDecimal decimal = new BigDecimal(str);
89 89
             BigDecimal pv=null;//新增pv值  pv=佣金*50%
90 90
             BigDecimal yanglaojin=null; //养老金=pv
91
-            pv=thirdPartyGoodsList.get(i).getPension().multiply(BigDecimal.valueOf(0.5)).setScale(2,BigDecimal.ROUND_HALF_UP);//四舍五入
92
-            yanglaojin=pv;//四舍五入
91
+
92
+            String valueStr=systemConfigValueDao.selectConfigValueByKey("sanfangfenpei");
93
+            JSONObject jsonObjectValue= JSONObject.parseObject(valueStr);
94
+            BigDecimal fenPV=new BigDecimal(jsonObjectValue.get("pv")+"");
95
+            BigDecimal fenyanglaojin=new BigDecimal(jsonObjectValue.get("yanglaojin")+"");
96
+            pv=thirdPartyGoodsList.get(i).getPension().multiply(fenPV).setScale(2,BigDecimal.ROUND_HALF_UP);//四舍五入
97
+            yanglaojin=thirdPartyGoodsList.get(i).getPension().multiply(fenyanglaojin).setScale(2,BigDecimal.ROUND_HALF_UP);//四舍五入;//四舍五入
93 98
 
94 99
             String trimmedValue = decimal.toPlainString();
95 100
 //            pv=trimmedValue.toString();
@@ -321,12 +326,19 @@ public class TaobaoServiceImpl implements TaobaoService {
321 326
         BigDecimal yanglaojin=null; //养老金=pv
322 327
         BigDecimal yongjin_obj=new BigDecimal(yongjin).setScale(2,BigDecimal.ROUND_HALF_UP);
323 328
 //        BigDecimal yongjin_bb=yongjin_obj.setScale(2,BigDecimal.ROUND_HALF_UP);
324
-        pv=yongjin_obj.multiply(BigDecimal.valueOf(0.5)).setScale(2,BigDecimal.ROUND_HALF_UP);//四舍五入
325
-        yanglaojin=pv;//四舍五入
329
+//        pv=yongjin_obj.multiply(BigDecimal.valueOf(0.5)).setScale(2,BigDecimal.ROUND_HALF_UP);//四舍五入
330
+//        yanglaojin=pv;//四舍五入
331
+        String valueStr=systemConfigValueDao.selectConfigValueByKey("sanfangfenpei");
332
+        JSONObject jsonObjectValue= JSONObject.parseObject(valueStr);
333
+        BigDecimal fenPV=new BigDecimal(jsonObjectValue.get("pv")+"");
334
+        BigDecimal fenyanglaojin=new BigDecimal(jsonObjectValue.get("yanglaojin")+"");
335
+        pv=yongjin_obj.multiply(fenPV).setScale(2,BigDecimal.ROUND_HALF_UP);//四舍五入
336
+        yanglaojin=yongjin_obj.multiply(fenyanglaojin).setScale(2,BigDecimal.ROUND_HALF_UP);//四舍五入;//四舍五入
326 337
 
327 338
         waresDetail.setYanglao(yanglaojin);
328 339
         waresDetail.setGongxian(pv);
329 340
         waresDetail.setJifen(pv);
341
+        waresDetail.setPv(pv);
330 342
         log.info("=================jsonObjects============="+data.toString());
331 343
 
332 344
 

+ 2 - 2
thirdPartyWares_service/src/main/resources/application-dev.yml

@@ -2,9 +2,9 @@
2 2
   port: 8007
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://8.141.0.149:3307/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8
5
+    url: jdbc:mysql://60.205.129.253:3306/test_yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: Bjtdba.com
7
+    password: Rhhx888888.
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16

+ 2 - 2
thirdPartyWares_service/src/main/resources/application-pro.yml

@@ -2,9 +2,9 @@
2 2
   port: 8007
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://8.141.0.149:3307/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8
5
+    url: jdbc:mysql://123.56.214.150:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: Bjtdba.com
7
+    password: P7pjJ2d6R1FdBMmz
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16

+ 13 - 11
userCenter_service/src/main/java/com/bjtdba/userCenter/service/impl/UserLogOnServiceImpl.java

@@ -119,11 +119,11 @@ public class UserLogOnServiceImpl implements UserLogOnService {
119 119
                 System.out.println("statusCode==="+statusCode);
120 120
                 SmsRecord smsRecord=new SmsRecord();
121 121
                 smsRecord.setPhone(phone);
122
-                smsRecord.setContent("【储蓄保】您的验证码为:"+mobile_code+",请勿泄露于他人!");
122
+                smsRecord.setContent("【幸福保】您的验证码为:"+mobile_code+",请勿泄露于他人!");
123 123
                 smsRecord.setCreateTime(new Date());
124
-                smsRecord.setTemplate("SMS_247420027");
124
+                smsRecord.setTemplate("SMS_311255692");
125 125
                 smsRecord.setResultcode(statusCode);
126
-                smsRecord.setUid("LTAI5tRfUFtmr5VFjqJ9D4dA");
126
+                smsRecord.setUid("LTAI5tKivJSckMYz5BHev3u8");
127 127
                 smsRecord.setRecordId(sendSmsResponse.getBody().getBizId());
128 128
                 try{
129 129
                     smsRecordDao.insterSms(smsRecord);
@@ -182,14 +182,15 @@ public class UserLogOnServiceImpl implements UserLogOnService {
182 182
             switch (type) {
183 183
                 //移动端手机号用户登录
184 184
                 case 0: {
185
-                    User user = selectUserByPhone(phone);
185
+                    User user = new User() ;
186
+                    user=selectUserByPhone(phone);
186 187
                     if (user != null) {
187 188
                         data.put("user", user);
188 189
                     } else {
189
-                        //没有该用户添加用户信息
190
-                        User userTo = new User();
191
-                        userTo.setPhone(phone);
192
-                        insterUser(userTo);
190
+//                        //没有该用户添加用户信息
191
+//                        User userTo = new User();
192
+//                        userTo.setPhone(phone);
193
+//                        insterUser(userTo);
193 194
                         user = selectUserByPhone(phone);
194 195
                         data.put("user", user);
195 196
                     }
@@ -221,7 +222,7 @@ public class UserLogOnServiceImpl implements UserLogOnService {
221 222
                         //没有该用户添加用户信息
222 223
                         User userInster = new User();
223 224
                         userInster.setPhone(phone);
224
-                        insterUser(userInster);
225
+//                        insterUser(userInster);
225 226
                         user = selectUserByPhone(phone);
226 227
 
227 228
                         data.put("user", user);
@@ -249,7 +250,7 @@ public class UserLogOnServiceImpl implements UserLogOnService {
249 250
                         //增加新用户   邀请用户绑定   spread_uid
250 251
                         user.setPhone(phone);
251 252
                         user.setWechat_user_id(wechat_user_id);
252
-                        insterUser(user);
253
+//                        insterUser(user);
253 254
                         //绑定线下消费记录积分
254 255
                         //unionUsersService.getAllNotBind(wechat_user_id,phone);
255 256
                         /**
@@ -326,13 +327,14 @@ public class UserLogOnServiceImpl implements UserLogOnService {
326 327
      * @return
327 328
      */
328 329
     private int insterUser(User user) throws UnknownHostException {
330
+
329 331
         //User user = new User();
330 332
         //String s = BCrypt.with(BCrypt.Version.VERSION_2Y).hashToString(10, "123456".toCharArray());//加密
331 333
         //BCrypt.Result result = BCrypt.verifyer().verify("123456".toCharArray(), s);//解密
332 334
         user.setAccount(user.getPhone());
333 335
         user.setPwd(BCrypt.with(BCrypt.Version.VERSION_2Y).hashToString(10, "123456".toCharArray()));//默认密码123456
334 336
         user.setNickname("用户"+user.getPhone().substring(7));
335
-        user.setAvatar("https://app.bjtdba.com/uploads/logo.jpg");
337
+        user.setAvatar("https://cdn.bjtdba.com/vod/image/2025-01-20/20250120125206881.png");
336 338
         //user.setPhone(phone);
337 339
         user.setLast_ip(InetAddress.getLocalHost().getHostAddress());
338 340
         user.setIdentity(5);//推广员

+ 4 - 4
userCenter_service/src/main/resources/application-dev.yml

@@ -2,9 +2,9 @@
2 2
   port: 8003
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yihucha?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8
5
+    url: jdbc:mysql://60.205.129.253:3306/test_yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: Rhhx888888.
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -12,10 +12,10 @@ spring:
12 12
       idle-timeout: 10000
13 13
 
14 14
   redis:
15
-    host: 10.30.0.46
15
+    host:  60.205.129.253
16 16
     port: 6379
17 17
     password: bjtdba
18
-    database: 0
18
+    database: 6
19 19
     timeout: 5000
20 20
     jedis:
21 21
       pool:

+ 3 - 3
userCenter_service/src/main/resources/application-pro.yml

@@ -2,9 +2,9 @@
2 2
   port: 8003
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://8.141.0.149:3307/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8
5
+    url: jdbc:mysql://123.56.214.150:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: Bjtdba.com
7
+    password: P7pjJ2d6R1FdBMmz
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -12,7 +12,7 @@ spring:
12 12
       idle-timeout: 10000
13 13
 
14 14
   redis:
15
-    host: 8.141.0.149
15
+    host: 123.56.214.150
16 16
     port: 6379
17 17
     password: bjtdba
18 18
     database: 6

+ 3 - 3
wares_service/src/main/resources/application-dev.yml

@@ -2,9 +2,9 @@
2 2
   port: 8001
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yihucha?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://60.205.129.253:3306/test_yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: Rhhx888888.
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -32,6 +32,6 @@ mybatis:
32 32
 eureka:
33 33
   client:
34 34
     service-url:
35
-      defaultZone: http://20.100.5.100:8000/eureka/
35
+      defaultZone: http://127.0.0.1:8000/eureka/
36 36
   instance:
37 37
     prefer-ip-address: true #使用ip地址注册

+ 3 - 3
wares_service/src/main/resources/application-pro.yml

@@ -2,9 +2,9 @@
2 2
   port: 8001
3 3
 spring:
4 4
   datasource:
5
-    url: jdbc:mysql://10.30.0.49:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
5
+    url: jdbc:mysql://123.56.214.150:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
6 6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: P7pjJ2d6R1FdBMmz
8 8
     username: root
9 9
     hikari:
10 10
       maximum-pool-size: 16
@@ -32,6 +32,6 @@ mybatis:
32 32
 eureka:
33 33
   client:
34 34
     service-url:
35
-      defaultZone: http://20.100.5.100:8000/eureka/
35
+      defaultZone: http://127.0.0.1:8000/eureka/
36 36
   instance:
37 37
     prefer-ip-address: true #使用ip地址注册

+ 1 - 1
wares_service/src/main/resources/application.yml

@@ -2,7 +2,7 @@ spring:
2 2
   application:
3 3
     name: wares-service
4 4
   profiles:
5
-    active: pro
5
+    active: dev
6 6
   cache:
7 7
     type: caffeine
8 8
     caffeine:

+ 1 - 1
wares_service/src/main/resources/mapper/MerchantMapper.xml

@@ -69,7 +69,7 @@
69 69
         FROM rrx_merchant as s
70 70
         left JOIN rrx_merchant_intention as mi on  mi.mer_id=s.mer_id
71 71
         <where>
72
-            s.status = 1 and s.mer_state = 1 and s.is_del = 0 and mi.status = 1
72
+            s.status = 1 and s.mer_state = 1 and s.is_del = 0 and mi.status = 1 and s.mer_id!=496 and s.mer_id!=439 and s.mer_id!=491
73 73
 
74 74
             <if test="null !=uid">
75 75
                 and s.uid != #{uid}