Explorar o código

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

hehaiqiang hai 1 ano
pai
achega
90bbef141e
Modificáronse 46 ficheiros con 279 adicións e 173 borrados
  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
   instance:
17
   instance:
18
     prefer-ip-address: true #使用ip地址注册
18
     prefer-ip-address: true #使用ip地址注册
19
 
19
 
20
+
21
+
20
 #日志格式化  只输出日期和内容
22
 #日志格式化  只输出日期和内容
21
 logging:
23
 logging:
22
   pattern:
24
   pattern:

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

@@ -40,6 +40,14 @@ public class WaresDetail {
40
     private BigDecimal yanglao;//养老金
40
     private BigDecimal yanglao;//养老金
41
     private BigDecimal gongxian;//新增贡献值值 20250107
41
     private BigDecimal gongxian;//新增贡献值值 20250107
42
     private BigDecimal jifen;//新增积分值 20250107
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
     public BigDecimal getJifen() {
52
     public BigDecimal getJifen() {
45
         return jifen;
53
         return jifen;

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

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

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

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

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

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

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

@@ -49,7 +49,10 @@
49
           - Path=/sysmanage_service/**
49
           - Path=/sysmanage_service/**
50
 
50
 
51
   redis:
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
     port: 6379
56
     port: 6379
54
     password: bjtdba
57
     password: bjtdba
55
     database: 6
58
     database: 6

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

@@ -4,7 +4,7 @@ spring:
4
   application:
4
   application:
5
     name: gateWay-server
5
     name: gateWay-server
6
   profiles:
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
                 String member_id = (String) jsonObject.get("member_id");
69
                 String member_id = (String) jsonObject.get("member_id");
70
                 String audit_state = (String) jsonObject.get("audit_state");
70
                 String audit_state = (String) jsonObject.get("audit_state");
71
                 String order_no = (String) jsonObject.get("order_no");
71
                 String order_no = (String) jsonObject.get("order_no");
72
+                String settle_account_id = (String) jsonObject.get("id");
73
+                log.info("汇付返回+++++"+jsonObject.toJSONString());
72
                 int uid =  hfUserOrderDao.selectByOrderNo(order_no);
74
                 int uid =  hfUserOrderDao.selectByOrderNo(order_no);
73
                 if(audit_state.equals("A")){  //audit_desc
75
                 if(audit_state.equals("A")){  //audit_desc
74
                     //A-待审核
76
                     //A-待审核
@@ -98,7 +100,7 @@ public class HuifuController {
98
                      * 1、使用用户uid 查询商户ID
100
                      * 1、使用用户uid 查询商户ID
99
                      */
101
                      */
100
                     List<Merchant> merchant= merchantDao.selectListByUId(uid);
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
                     if(merchant.size()==1){
104
                     if(merchant.size()==1){
103
                         //调用第二个微信的注册方法
105
                         //调用第二个微信的注册方法
104
                         merchantSettleInService.executeCreateHuiFuWx2(1,merchant.get(0).getMer_id());
106
                         merchantSettleInService.executeCreateHuiFuWx2(1,merchant.get(0).getMer_id());
@@ -138,6 +140,8 @@ public class HuifuController {
138
                 String member_id = (String) jsonObject.get("member_id");
140
                 String member_id = (String) jsonObject.get("member_id");
139
                 String audit_state = (String) jsonObject.get("audit_state");
141
                 String audit_state = (String) jsonObject.get("audit_state");
140
                 String order_no = (String) jsonObject.get("order_no");
142
                 String order_no = (String) jsonObject.get("order_no");
143
+                String settle_account_id = (String) jsonObject.get("id");
144
+                log.info("汇付返回+++++"+jsonObject.toJSONString());
141
                 int uid =  hfUserOrderDao.selectByOrderNo(order_no);
145
                 int uid =  hfUserOrderDao.selectByOrderNo(order_no);
142
                 if(audit_state.equals("A")){  //audit_desc
146
                 if(audit_state.equals("A")){  //audit_desc
143
                     //A-待审核
147
                     //A-待审核
@@ -167,7 +171,7 @@ public class HuifuController {
167
                      * 1、使用用户uid 查询商户ID
171
                      * 1、使用用户uid 查询商户ID
168
                      */
172
                      */
169
                     List<Merchant> merchant= merchantDao.selectListByUId(uid);
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
                     if(merchant.size()==1){
175
                     if(merchant.size()==1){
172
                         //这块调用阿里
176
                         //这块调用阿里
173
                         merchantSettleInService.executeCreateHuiFuAli(1,merchant.get(0).getMer_id());
177
                         merchantSettleInService.executeCreateHuiFuAli(1,merchant.get(0).getMer_id());
@@ -206,6 +210,8 @@ public class HuifuController {
206
                 String member_id = (String) jsonObject.get("member_id");
210
                 String member_id = (String) jsonObject.get("member_id");
207
                 String audit_state = (String) jsonObject.get("audit_state");
211
                 String audit_state = (String) jsonObject.get("audit_state");
208
                 String order_no = (String) jsonObject.get("order_no");
212
                 String order_no = (String) jsonObject.get("order_no");
213
+                String settle_account_id = (String) jsonObject.get("id");
214
+                log.info("汇付返回阿里+++++"+jsonObject.toJSONString());
209
                 int uid =  hfUserOrderDao.selectByOrderNo(order_no);
215
                 int uid =  hfUserOrderDao.selectByOrderNo(order_no);
210
                 if(audit_state.equals("A")){  //audit_desc
216
                 if(audit_state.equals("A")){  //audit_desc
211
                     //A-待审核
217
                     //A-待审核
@@ -230,7 +236,7 @@ public class HuifuController {
230
                     int status = 1;
236
                     int status = 1;
231
                     merchantDao.updateHuiByUid(member_id,null,uid);
237
                     merchantDao.updateHuiByUid(member_id,null,uid);
232
                     List<Merchant> merchant= merchantDao.selectListByUId(uid);
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
                     merchantIntentionDao.updateResultByUid("开店成功",status,uid);
240
                     merchantIntentionDao.updateResultByUid("开店成功",status,uid);
235
                 }
241
                 }
236
                 log.info("member_id="+member_id+"audit_state="+audit_state);
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
                 SystemConfigValue rrxSystemConfigValue = new SystemConfigValue();
60
                 SystemConfigValue rrxSystemConfigValue = new SystemConfigValue();
61
                 rrxSystemConfigValue.setConfigKey("base_commission");
61
                 rrxSystemConfigValue.setConfigKey("base_commission");
62
-                rrxSystemConfigValue.setValue("0");
62
+                rrxSystemConfigValue.setValue("5");
63
                 rrxSystemConfigValue.setCreateTime(new Date());
63
                 rrxSystemConfigValue.setCreateTime(new Date());
64
                 rrxSystemConfigValue.setMerId(merId);
64
                 rrxSystemConfigValue.setMerId(merId);
65
                 systemConfigValueService.insert(rrxSystemConfigValue);
65
                 systemConfigValueService.insert(rrxSystemConfigValue);
@@ -95,8 +95,8 @@ public class SystemConfigValueController {
95
             return ResponseUtil.fail();
95
             return ResponseUtil.fail();
96
         }
96
         }
97
         Double objvalue=Double.parseDouble(value);
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
         SystemConfigValue systemConfigValue=new SystemConfigValue();
102
         SystemConfigValue systemConfigValue=new SystemConfigValue();
@@ -130,13 +130,14 @@ public class SystemConfigValueController {
130
      */
130
      */
131
     @PostMapping("/getShopBonusSetting")
131
     @PostMapping("/getShopBonusSetting")
132
     public Object getShopBonusSetting(@RequestBody Map<String,String> map){
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
     @PostMapping("/updateShopBonusSetting")
139
     @PostMapping("/updateShopBonusSetting")
139
     public Object updateShopBonusSetting(@RequestBody Map<String,String> map){
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
 @Mapper
11
 @Mapper
12
 public interface MerchantMemberDao {
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
 public interface OrderMerchantDao {
12
 public interface OrderMerchantDao {
13
 
13
 
14
     Map<String, Long> belowTheLineSum(int mer_id, String start_time, String end_time);
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
     List<PayUser> belowTheLineList(int mer_id);
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
  * @Date:2022/12/5
5
  * @Date:2022/12/5
6
  */
6
  */
7
 public interface MerchantMemberService {
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
                 String hf_member_id = settleCount.get("member_id").toString();//写到店铺表中
109
                 String hf_member_id = settleCount.get("member_id").toString();//写到店铺表中
110
                 merchantDao.updateHuiByUid(hf_member_id,null,merchantIntention.getUid());
110
                 merchantDao.updateHuiByUid(hf_member_id,null,merchantIntention.getUid());
111
                 merchantIntentionDao.updateResultByUid("线下支付已授权",status,merchantIntention.getUid());
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
             }else if(settleCount.get("app_id").equals(resourceConfig.getWx_app_id())){//微信1
113
             }else if(settleCount.get("app_id").equals(resourceConfig.getWx_app_id())){//微信1
114
                 String hf_member_id_wx = settleCount.get("member_id").toString();//写到店铺表中
114
                 String hf_member_id_wx = settleCount.get("member_id").toString();//写到店铺表中
115
                 merchantDao.updateHuiByUid(null,hf_member_id_wx,merchantIntention.getUid());
115
                 merchantDao.updateHuiByUid(null,hf_member_id_wx,merchantIntention.getUid());
116
                 merchantIntentionDao.updateResultByUid("线下支付已授权",status,merchantIntention.getUid());
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
             }else if(settleCount.get("app_id").equals(resourceConfig.getWx2_app_id())){//微信2
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
         }else{
121
         }else{
122
             log.info("个人结算账户提交失败"+JSON.toJSONString(settleCount));
122
             log.info("个人结算账户提交失败"+JSON.toJSONString(settleCount));
@@ -160,7 +160,7 @@ public class AdapayServiceImpl implements AdapayService {
160
             memberParams.put("social_credit_code_expires", merchantIntention.getMerc_end_time().replaceAll("-", ""));
160
             memberParams.put("social_credit_code_expires", merchantIntention.getMerc_end_time().replaceAll("-", ""));
161
         }
161
         }
162
         if (memberParams.get("social_credit_code_expires").toString().equals("20991231")) {
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
         memberParams.put("business_scope", "小商品");
165
         memberParams.put("business_scope", "小商品");
166
         memberParams.put("legal_person", merchantIntention.getName());
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
 import com.bjtdba.merchant.dto.PayUser;
7
 import com.bjtdba.merchant.dto.PayUser;
8
 import com.bjtdba.merchant.service.MerchantCashierService;
8
 import com.bjtdba.merchant.service.MerchantCashierService;
9
 import com.bjtdba.merchant.vo.MerchantCashierShow;
9
 import com.bjtdba.merchant.vo.MerchantCashierShow;
10
+import com.bjtdba.utils.DateUtils;
10
 import com.bjtdba.utils.QRCodeUtil;
11
 import com.bjtdba.utils.QRCodeUtil;
11
 import com.bjtdba.utils.ResponseUtil;
12
 import com.bjtdba.utils.ResponseUtil;
12
 import com.bjtdba.utils.uploadDownload;
13
 import com.bjtdba.utils.uploadDownload;
13
 import com.github.pagehelper.Page;
14
 import com.github.pagehelper.Page;
14
 import com.github.pagehelper.PageHelper;
15
 import com.github.pagehelper.PageHelper;
15
 import com.github.pagehelper.PageInfo;
16
 import com.github.pagehelper.PageInfo;
17
+import javafx.scene.input.DataFormat;
16
 import org.apache.commons.io.IOUtils;
18
 import org.apache.commons.io.IOUtils;
17
 import org.apache.commons.lang.StringUtils;
19
 import org.apache.commons.lang.StringUtils;
18
 import org.springframework.beans.factory.annotation.Autowired;
20
 import org.springframework.beans.factory.annotation.Autowired;
@@ -23,6 +25,7 @@ import org.springframework.web.multipart.MultipartFile;
23
 
25
 
24
 import java.io.File;
26
 import java.io.File;
25
 import java.io.FileInputStream;
27
 import java.io.FileInputStream;
28
+import java.text.ParseException;
26
 import java.text.SimpleDateFormat;
29
 import java.text.SimpleDateFormat;
27
 import java.util.*;
30
 import java.util.*;
28
 
31
 
@@ -134,22 +137,43 @@ public class MerchantCashierServiceImpl implements MerchantCashierService {
134
     }
137
     }
135
     @Override
138
     @Override
136
     public Object selectMerchantOrder(int mer_id, String start_time, String end_time) {
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
         return ResponseUtil.ok(data);
172
         return ResponseUtil.ok(data);
173
+        } catch (Exception e) {
174
+            e.printStackTrace();
175
+            return ResponseUtil.fail();
176
+        }
153
     }
177
     }
154
 
178
 
155
     @Override
179
     @Override
@@ -227,7 +251,7 @@ public class MerchantCashierServiceImpl implements MerchantCashierService {
227
             //添加进去
251
             //添加进去
228
             SystemConfigValue rrxSystemConfigValue = new SystemConfigValue();
252
             SystemConfigValue rrxSystemConfigValue = new SystemConfigValue();
229
             rrxSystemConfigValue.setConfigKey("base_commission");
253
             rrxSystemConfigValue.setConfigKey("base_commission");
230
-            rrxSystemConfigValue.setValue("2");
254
+            rrxSystemConfigValue.setValue("5");
231
             rrxSystemConfigValue.setCreateTime(new Date());
255
             rrxSystemConfigValue.setCreateTime(new Date());
232
             rrxSystemConfigValue.setMerId(mer_id1);
256
             rrxSystemConfigValue.setMerId(mer_id1);
233
             int configStatus = systemConfigValueDao.insert(rrxSystemConfigValue);
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
     private MerchantMemberDao merchantMemberDao;
16
     private MerchantMemberDao merchantMemberDao;
17
 
17
 
18
     @Override
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
         return 0;
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
 import com.bjtdba.utils.uploadDownload;
16
 import com.bjtdba.utils.uploadDownload;
17
 import com.huifu.adapay.Adapay;
17
 import com.huifu.adapay.Adapay;
18
 import com.huifu.adapay.model.MerConfig;
18
 import com.huifu.adapay.model.MerConfig;
19
+import lombok.extern.slf4j.Slf4j;
19
 import org.apache.commons.io.IOUtils;
20
 import org.apache.commons.io.IOUtils;
20
 import org.springframework.beans.factory.annotation.Autowired;
21
 import org.springframework.beans.factory.annotation.Autowired;
21
 import org.springframework.beans.factory.annotation.Value;
22
 import org.springframework.beans.factory.annotation.Value;
@@ -46,6 +47,7 @@ import java.util.concurrent.atomic.AtomicInteger;
46
 import java.util.stream.Stream;
47
 import java.util.stream.Stream;
47
 
48
 
48
 @Service
49
 @Service
50
+@Slf4j
49
 public class MerchantSettleInServiceImpl implements MerchantSettleInService {
51
 public class MerchantSettleInServiceImpl implements MerchantSettleInService {
50
 
52
 
51
     @Autowired
53
     @Autowired
@@ -185,12 +187,14 @@ public class MerchantSettleInServiceImpl implements MerchantSettleInService {
185
 
187
 
186
     @Override
188
     @Override
187
     public Object insertMerchantSettlen(MerchantIntention merchantIntention) throws Exception {
189
     public Object insertMerchantSettlen(MerchantIntention merchantIntention) throws Exception {
190
+        log.info("进入提交方法");
188
         Map<String,Object> data=new HashMap<String,Object>();
191
         Map<String,Object> data=new HashMap<String,Object>();
189
         merchantIntention.setStatus(0);
192
         merchantIntention.setStatus(0);
190
         List<Merchant> merchant= merchantDao.selectListByUId(merchantIntention.getUid());
193
         List<Merchant> merchant= merchantDao.selectListByUId(merchantIntention.getUid());
191
-        if(merchant.size()==0){
194
+        if(merchant==null||merchant.size()==0){
192
             Integer mer_id = insterMerchant(merchantIntention);//将数据存到店铺表中
195
             Integer mer_id = insterMerchant(merchantIntention);//将数据存到店铺表中
193
             //生产二维码
196
             //生产二维码
197
+            log.info("准备添加收款吗");
194
             insterQrCode(merchantIntention.getUid(),mer_id);
198
             insterQrCode(merchantIntention.getUid(),mer_id);
195
             merchantIntention.setMer_id(mer_id);
199
             merchantIntention.setMer_id(mer_id);
196
             boolean merchantAdmin = insterMerchantAdmin(merchantIntention);//将数据添加到店铺管理员表中
200
             boolean merchantAdmin = insterMerchantAdmin(merchantIntention);//将数据添加到店铺管理员表中
@@ -446,6 +450,7 @@ public class MerchantSettleInServiceImpl implements MerchantSettleInService {
446
 
450
 
447
     @Override
451
     @Override
448
     public Object updateMerchaSettlen(MerchantIntention merchantIntention) throws Exception {
452
     public Object updateMerchaSettlen(MerchantIntention merchantIntention) throws Exception {
453
+        log.info("进入商户更新方法");
449
         merchantIntention.setStatus(0);
454
         merchantIntention.setStatus(0);
450
         //修改数据数据存到店铺表中
455
         //修改数据数据存到店铺表中
451
         boolean updateMerchant = updateMerchant(merchantIntention);
456
         boolean updateMerchant = updateMerchant(merchantIntention);
@@ -457,6 +462,7 @@ public class MerchantSettleInServiceImpl implements MerchantSettleInService {
457
             //判断该商户是否有首款二维码,如果有不添加,如果没有就添加
462
             //判断该商户是否有首款二维码,如果有不添加,如果没有就添加
458
             Map<String, String> map = merchantQrcodeDao.selectMerchantQrcodeByMerId(merchantIntention.getMer_id());
463
             Map<String, String> map = merchantQrcodeDao.selectMerchantQrcodeByMerId(merchantIntention.getMer_id());
459
             if(map == null){
464
             if(map == null){
465
+                log.info("准备添加收款吗");
460
                 insterQrCode(merchantIntention.getUid(),merchantIntention.getMer_id());
466
                 insterQrCode(merchantIntention.getUid(),merchantIntention.getMer_id());
461
             }
467
             }
462
             executeCreateHuiFuWx1(1,merchantIntention.getMer_id());//微信
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
          * 1、生成时间戳   充当二维码的code以及名称
679
          * 1、生成时间戳   充当二维码的code以及名称
674
          * 2、将本地的二维码上传到远程数据库
680
          * 2、将本地的二维码上传到远程数据库
@@ -681,32 +687,39 @@ public class MerchantSettleInServiceImpl implements MerchantSettleInService {
681
 
687
 
682
 
688
 
683
 //        生产环境:https://offlinepay.bjtdba.com/mer_id=148
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
     public boolean updateShopBonusSetting(String mer_id,String value) {
116
     public boolean updateShopBonusSetting(String mer_id,String value) {
117
         System.out.println("mer_id======"+mer_id);
117
         System.out.println("mer_id======"+mer_id);
118
         Integer mer_id1 = Integer.parseInt(mer_id);
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
         int status = 0;
120
         int status = 0;
121
         if(configValue!=null){
121
         if(configValue!=null){
122
-           systemConfigValueDao.updateConfigValueByMerId("shop_bonus_setting",mer_id1,value);
122
+           systemConfigValueDao.updateConfigValueByMerId("base_commission",mer_id1,value);
123
         }else{
123
         }else{
124
             SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
124
             SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
125
             //添加进去
125
             //添加进去
126
             SystemConfigValue rrxSystemConfigValue = new SystemConfigValue();
126
             SystemConfigValue rrxSystemConfigValue = new SystemConfigValue();
127
-            rrxSystemConfigValue.setConfigKey("shop_bonus_setting");
127
+            rrxSystemConfigValue.setConfigKey("base_commission");
128
             rrxSystemConfigValue.setValue(value);
128
             rrxSystemConfigValue.setValue(value);
129
             rrxSystemConfigValue.setCreateTime(new Date());
129
             rrxSystemConfigValue.setCreateTime(new Date());
130
             rrxSystemConfigValue.setMerId(mer_id1);
130
             rrxSystemConfigValue.setMerId(mer_id1);
@@ -135,8 +135,9 @@ public class SystemConfigValueServiceImpl implements SystemConfigValueService {
135
     }
135
     }
136
 
136
 
137
     public String getShopBonusSetting(String mer_id) {
137
     public String getShopBonusSetting(String mer_id) {
138
+
138
         System.out.println("mer_id======"+mer_id);
139
         System.out.println("mer_id======"+mer_id);
139
         Integer mer_id1 = Integer.parseInt(mer_id);
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
   port: 8005
2
   port: 8005
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
10
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
11
+    password: Rhhx888888.
8
     username: root
12
     username: root
9
     hikari:
13
     hikari:
10
       maximum-pool-size: 16
14
       maximum-pool-size: 16
@@ -25,7 +29,7 @@ mybatis:
25
 eureka:
29
 eureka:
26
   client:
30
   client:
27
     service-url:
31
     service-url:
28
-      defaultZone: http://20.100.5.100:8000/eureka/
32
+      defaultZone: http://127.0.0.1:8000/eureka/
29
   instance:
33
   instance:
30
     prefer-ip-address: true #使用ip地址注册
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
   port: 8005
2
   port: 8005
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
10
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
11
+    password: P7pjJ2d6R1FdBMmz
8
     username: root
12
     username: root
9
     hikari:
13
     hikari:
10
       maximum-pool-size: 16
14
       maximum-pool-size: 16
@@ -25,7 +29,7 @@ mybatis:
25
 eureka:
29
 eureka:
26
   client:
30
   client:
27
     service-url:
31
     service-url:
28
-      defaultZone: http://20.100.5.100:8000/eureka/
32
+      defaultZone: http://127.0.0.1:8000/eureka/
29
   instance:
33
   instance:
30
     prefer-ip-address: true #使用ip地址注册
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
 <mapper namespace="com.bjtdba.merchant.dao.MerchantMemberDao">
3
 <mapper namespace="com.bjtdba.merchant.dao.MerchantMemberDao">
4
 
4
 
5
     <insert id="insterMerchantMember">
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
     </insert>
7
     </insert>
8
 
8
 
9
 </mapper>
9
 </mapper>

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

@@ -6,6 +6,10 @@
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)
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
     </select>
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
     <select id="belowTheLineList" resultType="com.bjtdba.merchant.dto.PayUser">
13
     <select id="belowTheLineList" resultType="com.bjtdba.merchant.dto.PayUser">
10
         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
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
         FROM rrx_order_merchant a LEFT JOIN rrx_user b ON a.uid = b.uid
15
         FROM rrx_order_merchant a LEFT JOIN rrx_user b ON a.uid = b.uid
@@ -13,5 +17,13 @@
13
     </select>
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
 </mapper>
29
 </mapper>

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

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

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

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

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

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

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

@@ -2,9 +2,9 @@
2
   port: 8002
2
   port: 8002
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: Rhhx888888.
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
10
       maximum-pool-size: 16
@@ -22,7 +22,7 @@ mybatis:
22
 eureka:
22
 eureka:
23
   client:
23
   client:
24
     service-url:
24
     service-url:
25
-      defaultZone: http://20.100.5.100:8000/eureka/
25
+      defaultZone: http://127.0.0.1:8000/eureka/
26
   instance:
26
   instance:
27
     prefer-ip-address: true #使用ip地址注册
27
     prefer-ip-address: true #使用ip地址注册
28
 
28
 

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

@@ -2,9 +2,9 @@
2
   port: 8002
2
   port: 8002
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: P7pjJ2d6R1FdBMmz
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
10
       maximum-pool-size: 16
@@ -22,7 +22,7 @@ mybatis:
22
 eureka:
22
 eureka:
23
   client:
23
   client:
24
     service-url:
24
     service-url:
25
-      defaultZone: http://20.100.5.100:8000/eureka/
25
+      defaultZone: http://127.0.0.1:8000/eureka/
26
   instance:
26
   instance:
27
     prefer-ip-address: true #使用ip地址注册
27
     prefer-ip-address: true #使用ip地址注册
28
 
28
 

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

@@ -2,7 +2,7 @@ spring:
2
   application:
2
   application:
3
     name: pension-service  #服务 名称
3
     name: pension-service  #服务 名称
4
   profiles:
4
   profiles:
5
-    active: pro
5
+    active: dev
6
   cache:
6
   cache:
7
     type: caffeine
7
     type: caffeine
8
     caffeine:
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
             //poster.setNameX(Integer.parseInt(qr_coordinateList[0]));//名字在海报的什么位置
86
             //poster.setNameX(Integer.parseInt(qr_coordinateList[0]));//名字在海报的什么位置
87
             poster.setNameY(Integer.parseInt(qr_coordinateList[1]));
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
             String[] head_coordinateList = spli(sharePosters.getHead_coordinate());
90
             String[] head_coordinateList = spli(sharePosters.getHead_coordinate());
91
             poster.setPortraitCodeX(Integer.parseInt(head_coordinateList[0]));
91
             poster.setPortraitCodeX(Integer.parseInt(head_coordinateList[0]));
92
             poster.setPortraitCodeY(Integer.parseInt(head_coordinateList[1]));
92
             poster.setPortraitCodeY(Integer.parseInt(head_coordinateList[1]));
@@ -108,21 +108,21 @@ public class PosterServiceImpl implements PosterService {
108
         poster.setHeight(995);
108
         poster.setHeight(995);
109
         //去php获取二维码
109
         //去php获取二维码
110
 //        String qrCodeUrl=HttpUtil.doGet("https://test.bjtdba.com/api/invite_code?uid="+uid+"&imgId="+imgId,"");
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
         poster.setQrCodeUrl(qrCodeUrl);
126
         poster.setQrCodeUrl(qrCodeUrl);
127
         String[] qr_coordinateList = spli(sharePosters.getQr_coordinate());
127
         String[] qr_coordinateList = spli(sharePosters.getQr_coordinate());
128
         poster.setQrCodeX(Integer.parseInt(qr_coordinateList[0]));
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
         File directory = new File("classes");
41
         File directory = new File("classes");
42
         String reportPath = directory.getCanonicalPath();
42
         String reportPath = directory.getCanonicalPath();
43
         String resource =reportPath + "/file/20221025172815531.png";
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
         System.out.println("-----------------二维码----------------------------"+resource);
48
         System.out.println("-----------------二维码----------------------------"+resource);
45
         //生成二维码
49
         //生成二维码
46
         QRCodeUtil.encode(text, resource, destPath, true);
50
         QRCodeUtil.encode(text, resource, destPath, true);
@@ -56,6 +60,7 @@ public class QrCodeServiceImpl implements QrCodeService {
56
         MultipartFile multipartFile = new MockMultipartFile("file", file.getName(), "text/plain", IOUtils.toByteArray(input));
60
         MultipartFile multipartFile = new MockMultipartFile("file", file.getName(), "text/plain", IOUtils.toByteArray(input));
57
         Map<String, String> qrCode = uploadDownload.qrCode(multipartFile);
61
         Map<String, String> qrCode = uploadDownload.qrCode(multipartFile);
58
         String url = qrCode.get("url");
62
         String url = qrCode.get("url");
63
+
59
         System.out.println("-----------------二维码s----------------------------"+url);
64
         System.out.println("-----------------二维码s----------------------------"+url);
60
         //deleteDir(new File("/Users/hanyuxing/qrcode"));
65
         //deleteDir(new File("/Users/hanyuxing/qrcode"));
61
         //将邀请二维码添加到 rrx_system_attachment
66
         //将邀请二维码添加到 rrx_system_attachment

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

@@ -2,9 +2,9 @@
2
   port: 8008
2
   port: 8008
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: Bjtdba.com
7
+    password: Rhhx888888.
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
10
       maximum-pool-size: 16
@@ -36,4 +36,4 @@ eureka:
36
   instance:
36
   instance:
37
     prefer-ip-address: true #使用ip地址注册
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
   port: 8008
2
   port: 8008
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: Bjtdba.com
7
+    password: P7pjJ2d6R1FdBMmz
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
10
       maximum-pool-size: 16
@@ -36,4 +36,4 @@ eureka:
36
   instance:
36
   instance:
37
     prefer-ip-address: true #使用ip地址注册
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
   port: 7000
2
   port: 7000
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: Rhhx888888.
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
10
       maximum-pool-size: 16
@@ -32,6 +32,6 @@ mybatis:
32
 eureka:
32
 eureka:
33
   client:
33
   client:
34
     service-url:
34
     service-url:
35
-      defaultZone: http://20.100.5.100:8000/eureka/
35
+      defaultZone: http://127.0.0.1:8000/eureka/
36
   instance:
36
   instance:
37
     prefer-ip-address: true #使用ip地址注册
37
     prefer-ip-address: true #使用ip地址注册

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

@@ -2,9 +2,9 @@
2
   port: 7000
2
   port: 7000
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: P7pjJ2d6R1FdBMmz
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
10
       maximum-pool-size: 16
@@ -32,6 +32,6 @@ mybatis:
32
 eureka:
32
 eureka:
33
   client:
33
   client:
34
     service-url:
34
     service-url:
35
-      defaultZone: http://20.100.5.100:8000/eureka/
35
+      defaultZone: http://127.0.0.1:8000/eureka/
36
   instance:
36
   instance:
37
     prefer-ip-address: true #使用ip地址注册
37
     prefer-ip-address: true #使用ip地址注册

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

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

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

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

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

@@ -2,7 +2,7 @@ spring:
2
   application:
2
   application:
3
     name: system-service
3
     name: system-service
4
   profiles:
4
   profiles:
5
-    active: pro
5
+    active: dev
6
   cache:
6
   cache:
7
     type: caffeine
7
     type: caffeine
8
     caffeine:
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
             BigDecimal decimal = new BigDecimal(str);
88
             BigDecimal decimal = new BigDecimal(str);
89
             BigDecimal pv=null;//新增pv值  pv=佣金*50%
89
             BigDecimal pv=null;//新增pv值  pv=佣金*50%
90
             BigDecimal yanglaojin=null; //养老金=pv
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
             String trimmedValue = decimal.toPlainString();
99
             String trimmedValue = decimal.toPlainString();
95
 //            pv=trimmedValue.toString();
100
 //            pv=trimmedValue.toString();
@@ -321,12 +326,19 @@ public class TaobaoServiceImpl implements TaobaoService {
321
         BigDecimal yanglaojin=null; //养老金=pv
326
         BigDecimal yanglaojin=null; //养老金=pv
322
         BigDecimal yongjin_obj=new BigDecimal(yongjin).setScale(2,BigDecimal.ROUND_HALF_UP);
327
         BigDecimal yongjin_obj=new BigDecimal(yongjin).setScale(2,BigDecimal.ROUND_HALF_UP);
323
 //        BigDecimal yongjin_bb=yongjin_obj.setScale(2,BigDecimal.ROUND_HALF_UP);
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
         waresDetail.setYanglao(yanglaojin);
338
         waresDetail.setYanglao(yanglaojin);
328
         waresDetail.setGongxian(pv);
339
         waresDetail.setGongxian(pv);
329
         waresDetail.setJifen(pv);
340
         waresDetail.setJifen(pv);
341
+        waresDetail.setPv(pv);
330
         log.info("=================jsonObjects============="+data.toString());
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
   port: 8007
2
   port: 8007
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: Bjtdba.com
7
+    password: Rhhx888888.
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
10
       maximum-pool-size: 16

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

@@ -2,9 +2,9 @@
2
   port: 8007
2
   port: 8007
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: Bjtdba.com
7
+    password: P7pjJ2d6R1FdBMmz
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
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
                 System.out.println("statusCode==="+statusCode);
119
                 System.out.println("statusCode==="+statusCode);
120
                 SmsRecord smsRecord=new SmsRecord();
120
                 SmsRecord smsRecord=new SmsRecord();
121
                 smsRecord.setPhone(phone);
121
                 smsRecord.setPhone(phone);
122
-                smsRecord.setContent("【储蓄保】您的验证码为:"+mobile_code+",请勿泄露于他人!");
122
+                smsRecord.setContent("【幸福保】您的验证码为:"+mobile_code+",请勿泄露于他人!");
123
                 smsRecord.setCreateTime(new Date());
123
                 smsRecord.setCreateTime(new Date());
124
-                smsRecord.setTemplate("SMS_247420027");
124
+                smsRecord.setTemplate("SMS_311255692");
125
                 smsRecord.setResultcode(statusCode);
125
                 smsRecord.setResultcode(statusCode);
126
-                smsRecord.setUid("LTAI5tRfUFtmr5VFjqJ9D4dA");
126
+                smsRecord.setUid("LTAI5tKivJSckMYz5BHev3u8");
127
                 smsRecord.setRecordId(sendSmsResponse.getBody().getBizId());
127
                 smsRecord.setRecordId(sendSmsResponse.getBody().getBizId());
128
                 try{
128
                 try{
129
                     smsRecordDao.insterSms(smsRecord);
129
                     smsRecordDao.insterSms(smsRecord);
@@ -182,14 +182,15 @@ public class UserLogOnServiceImpl implements UserLogOnService {
182
             switch (type) {
182
             switch (type) {
183
                 //移动端手机号用户登录
183
                 //移动端手机号用户登录
184
                 case 0: {
184
                 case 0: {
185
-                    User user = selectUserByPhone(phone);
185
+                    User user = new User() ;
186
+                    user=selectUserByPhone(phone);
186
                     if (user != null) {
187
                     if (user != null) {
187
                         data.put("user", user);
188
                         data.put("user", user);
188
                     } else {
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
                         user = selectUserByPhone(phone);
194
                         user = selectUserByPhone(phone);
194
                         data.put("user", user);
195
                         data.put("user", user);
195
                     }
196
                     }
@@ -221,7 +222,7 @@ public class UserLogOnServiceImpl implements UserLogOnService {
221
                         //没有该用户添加用户信息
222
                         //没有该用户添加用户信息
222
                         User userInster = new User();
223
                         User userInster = new User();
223
                         userInster.setPhone(phone);
224
                         userInster.setPhone(phone);
224
-                        insterUser(userInster);
225
+//                        insterUser(userInster);
225
                         user = selectUserByPhone(phone);
226
                         user = selectUserByPhone(phone);
226
 
227
 
227
                         data.put("user", user);
228
                         data.put("user", user);
@@ -249,7 +250,7 @@ public class UserLogOnServiceImpl implements UserLogOnService {
249
                         //增加新用户   邀请用户绑定   spread_uid
250
                         //增加新用户   邀请用户绑定   spread_uid
250
                         user.setPhone(phone);
251
                         user.setPhone(phone);
251
                         user.setWechat_user_id(wechat_user_id);
252
                         user.setWechat_user_id(wechat_user_id);
252
-                        insterUser(user);
253
+//                        insterUser(user);
253
                         //绑定线下消费记录积分
254
                         //绑定线下消费记录积分
254
                         //unionUsersService.getAllNotBind(wechat_user_id,phone);
255
                         //unionUsersService.getAllNotBind(wechat_user_id,phone);
255
                         /**
256
                         /**
@@ -326,13 +327,14 @@ public class UserLogOnServiceImpl implements UserLogOnService {
326
      * @return
327
      * @return
327
      */
328
      */
328
     private int insterUser(User user) throws UnknownHostException {
329
     private int insterUser(User user) throws UnknownHostException {
330
+
329
         //User user = new User();
331
         //User user = new User();
330
         //String s = BCrypt.with(BCrypt.Version.VERSION_2Y).hashToString(10, "123456".toCharArray());//加密
332
         //String s = BCrypt.with(BCrypt.Version.VERSION_2Y).hashToString(10, "123456".toCharArray());//加密
331
         //BCrypt.Result result = BCrypt.verifyer().verify("123456".toCharArray(), s);//解密
333
         //BCrypt.Result result = BCrypt.verifyer().verify("123456".toCharArray(), s);//解密
332
         user.setAccount(user.getPhone());
334
         user.setAccount(user.getPhone());
333
         user.setPwd(BCrypt.with(BCrypt.Version.VERSION_2Y).hashToString(10, "123456".toCharArray()));//默认密码123456
335
         user.setPwd(BCrypt.with(BCrypt.Version.VERSION_2Y).hashToString(10, "123456".toCharArray()));//默认密码123456
334
         user.setNickname("用户"+user.getPhone().substring(7));
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
         //user.setPhone(phone);
338
         //user.setPhone(phone);
337
         user.setLast_ip(InetAddress.getLocalHost().getHostAddress());
339
         user.setLast_ip(InetAddress.getLocalHost().getHostAddress());
338
         user.setIdentity(5);//推广员
340
         user.setIdentity(5);//推广员

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

@@ -2,9 +2,9 @@
2
   port: 8003
2
   port: 8003
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: Rhhx888888.
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
10
       maximum-pool-size: 16
@@ -12,10 +12,10 @@ spring:
12
       idle-timeout: 10000
12
       idle-timeout: 10000
13
 
13
 
14
   redis:
14
   redis:
15
-    host: 10.30.0.46
15
+    host:  60.205.129.253
16
     port: 6379
16
     port: 6379
17
     password: bjtdba
17
     password: bjtdba
18
-    database: 0
18
+    database: 6
19
     timeout: 5000
19
     timeout: 5000
20
     jedis:
20
     jedis:
21
       pool:
21
       pool:

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

@@ -2,9 +2,9 @@
2
   port: 8003
2
   port: 8003
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: Bjtdba.com
7
+    password: P7pjJ2d6R1FdBMmz
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
10
       maximum-pool-size: 16
@@ -12,7 +12,7 @@ spring:
12
       idle-timeout: 10000
12
       idle-timeout: 10000
13
 
13
 
14
   redis:
14
   redis:
15
-    host: 8.141.0.149
15
+    host: 123.56.214.150
16
     port: 6379
16
     port: 6379
17
     password: bjtdba
17
     password: bjtdba
18
     database: 6
18
     database: 6

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

@@ -2,9 +2,9 @@
2
   port: 8001
2
   port: 8001
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: Rhhx888888.
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
10
       maximum-pool-size: 16
@@ -32,6 +32,6 @@ mybatis:
32
 eureka:
32
 eureka:
33
   client:
33
   client:
34
     service-url:
34
     service-url:
35
-      defaultZone: http://20.100.5.100:8000/eureka/
35
+      defaultZone: http://127.0.0.1:8000/eureka/
36
   instance:
36
   instance:
37
     prefer-ip-address: true #使用ip地址注册
37
     prefer-ip-address: true #使用ip地址注册

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

@@ -2,9 +2,9 @@
2
   port: 8001
2
   port: 8001
3
 spring:
3
 spring:
4
   datasource:
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
     driver-class-name: com.mysql.jdbc.Driver
6
     driver-class-name: com.mysql.jdbc.Driver
7
-    password: 1&0Y2w#N
7
+    password: P7pjJ2d6R1FdBMmz
8
     username: root
8
     username: root
9
     hikari:
9
     hikari:
10
       maximum-pool-size: 16
10
       maximum-pool-size: 16
@@ -32,6 +32,6 @@ mybatis:
32
 eureka:
32
 eureka:
33
   client:
33
   client:
34
     service-url:
34
     service-url:
35
-      defaultZone: http://20.100.5.100:8000/eureka/
35
+      defaultZone: http://127.0.0.1:8000/eureka/
36
   instance:
36
   instance:
37
     prefer-ip-address: true #使用ip地址注册
37
     prefer-ip-address: true #使用ip地址注册

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

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

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

@@ -69,7 +69,7 @@
69
         FROM rrx_merchant as s
69
         FROM rrx_merchant as s
70
         left JOIN rrx_merchant_intention as mi on  mi.mer_id=s.mer_id
70
         left JOIN rrx_merchant_intention as mi on  mi.mer_id=s.mer_id
71
         <where>
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
             <if test="null !=uid">
74
             <if test="null !=uid">
75
                 and s.uid != #{uid}
75
                 and s.uid != #{uid}