zx 2 months ago
parent
commit
7be3076c84

+ 2 - 2
fs-admin/src/main/resources/application-druid.yml

@@ -3,11 +3,11 @@ spring:
     # redis 配置
     redis:
         # 地址
-        host: 172.30.0.15
+        host: 127.0.0.1
         # 端口,默认为6379
         port: 6379
         # 密码
-        password: Rtyy_2023
+        password:
         # 连接超时时间
         timeout: 30s
         lettuce:

+ 1 - 1
fs-admin/src/main/resources/application.yml

@@ -47,7 +47,7 @@ spring:
     # 国际化资源文件路径
     basename: i18n/messages
   profiles:
-    active: druid-test
+    active: dev
     include: config
   # 文件上传
   servlet:

+ 78 - 0
fs-api/src/main/resources/application-dev.yml

@@ -0,0 +1,78 @@
+# 数据源配置
+spring:
+    # redis 配置
+    redis:
+        # 地址
+        host: localhost
+        # 端口,默认为6379
+        port: 6379
+        # 密码
+        password:
+        # 连接超时时间
+        timeout: 10s
+        lettuce:
+            pool:
+                # 连接池中的最小空闲连接
+                min-idle: 0
+                # 连接池中的最大空闲连接
+                max-idle: 8
+                # 连接池的最大数据库连接数
+                max-active: 8
+                # #连接池最大阻塞等待时间(使用负值表示没有限制)
+                max-wait: -1ms
+        database: 0
+    datasource:
+        type: com.alibaba.druid.pool.DruidDataSource
+        driverClassName: com.mysql.cj.jdbc.Driver
+        druid:
+            # 主库数据源
+            master:
+                url: jdbc:mysql://localhost:3307/fs_hospital?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+                username: root
+                password: root
+            # 从库数据源
+            slave:
+                # 从数据源开关/默认关闭
+                enabled: false
+                url: 
+                username: 
+                password: 
+            # 初始连接数
+            initialSize: 5
+            # 最小连接池数量
+            minIdle: 10
+            # 最大连接池数量
+            maxActive: 20
+            # 配置获取连接等待超时的时间
+            maxWait: 60000
+            # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
+            timeBetweenEvictionRunsMillis: 60000
+            # 配置一个连接在池中最小生存的时间,单位是毫秒
+            minEvictableIdleTimeMillis: 300000
+            # 配置一个连接在池中最大生存的时间,单位是毫秒
+            maxEvictableIdleTimeMillis: 900000
+            # 配置检测连接是否有效
+            validationQuery: SELECT 1 FROM DUAL
+            testWhileIdle: true
+            testOnBorrow: false
+            testOnReturn: false
+            webStatFilter: 
+                enabled: true
+            statViewServlet:
+                enabled: true
+                # 设置白名单,不填则允许所有访问
+                allow:
+                url-pattern: /druid/*
+                # 控制台管理用户名和密码
+                login-username: 
+                login-password: 
+            filter:
+                stat:
+                    enabled: true
+                    # 慢SQL记录
+                    log-slow-sql: true
+                    slow-sql-millis: 1000
+                    merge-sql: true
+                wall:
+                    config:
+                        multi-statement-allow: true

+ 113 - 0
fs-api/src/main/resources/application-druid-test.yml

@@ -0,0 +1,113 @@
+# 数据源配置
+spring:
+    # redis 配置
+    redis:
+        # 地址
+        host: localhost
+        # 端口,默认为6379
+        port: 6379
+        # 密码
+        password:
+        # 连接超时时间
+        timeout: 10s
+        lettuce:
+            pool:
+                # 连接池中的最小空闲连接
+                min-idle: 0
+                # 连接池中的最大空闲连接
+                max-idle: 8
+                # 连接池的最大数据库连接数
+                max-active: 8
+                # #连接池最大阻塞等待时间(使用负值表示没有限制)
+                max-wait: -1ms
+        database: 1
+    datasource:
+        type: com.alibaba.druid.pool.DruidDataSource
+        driverClassName: com.mysql.cj.jdbc.Driver
+        druid:
+            # 主库数据源
+            master:
+                url: jdbc:mysql://139.186.77.83:3306/his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+                username: Rtroot
+                password: Rtroot
+            # 从库数据源
+            slave:
+                # 从数据源开关/默认关闭
+                enabled: false
+                url:
+                username:
+                password:
+            # 初始连接数
+            initialSize: 5
+            # 最小连接池数量
+            minIdle: 10
+            # 最大连接池数量
+            maxActive: 20
+            # 配置获取连接等待超时的时间
+            maxWait: 60000
+            # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
+            timeBetweenEvictionRunsMillis: 60000
+            # 配置一个连接在池中最小生存的时间,单位是毫秒
+            minEvictableIdleTimeMillis: 300000
+            # 配置一个连接在池中最大生存的时间,单位是毫秒
+            maxEvictableIdleTimeMillis: 900000
+            # 配置检测连接是否有效
+            validationQuery: SELECT 1 FROM DUAL
+            testWhileIdle: true
+            testOnBorrow: false
+            testOnReturn: false
+            webStatFilter:
+                enabled: true
+            statViewServlet:
+                enabled: true
+                # 设置白名单,不填则允许所有访问
+                allow:
+                url-pattern: /druid/*
+                # 控制台管理用户名和密码
+                login-username:
+                login-password:
+            filter:
+                stat:
+                    enabled: true
+                    # 慢SQL记录
+                    log-slow-sql: true
+                    slow-sql-millis: 1000
+                    merge-sql: true
+                wall:
+                    config:
+                        multi-statement-allow: true
+#润天数字
+#wx:
+#    miniapp:
+#        configs:
+#            - appid: wxf7d4bdac73bb2e3b
+#              secret: b231dc5eaa9c069a207382c230691aa4
+#              token: Ncbnd7lJvkripVOpyTFAna6NAWCxCrvC
+#              aesKey: HlEiBB55eaWUaeBVAQO3cWKWPYv1vOVQSq7nFNICw4E
+#              msgDataFormat: JSON
+#    pay:
+#        appId: wx45cf09091aead547 #微信公众号或者小程序等的appid
+#        mchId: 1560230251 #微信支付商户号
+#        mchKey: dltcx057ngdbukiuwn83621khh07ewmn #微信支付商户密钥
+#        subAppId:  #服务商模式下的子商户公众账号ID
+#        subMchId:  #服务商模式下的子商户号
+#        keyPath: c:\\tools\\apiclient_cert.p12 # p12证书的位置,可以指定绝对路径,也可以指定类路径(以classpath:开头)
+#        notifyUrl:  https://api.hospital.ifeiyu100.com/app/wxpay/wxPayNotify
+#南昌
+#wx:
+#  miniapp:
+#    configs:
+#      - appid: wxa8f50f6d14b817a1
+#        secret: cab200baa8abc4ad4ff071aecc76d218
+#        token: Ncbnd7lJvkripVOpyTFAna6NAWCxCrvC
+#        aesKey: HlEiBB55eaWUaeBVAQO3cWKWPYv1vOVQSq7nFNICw4E
+#        msgDataFormat: JSON
+#  pay:
+#    appId: wxa8f50f6d14b817a1 #微信公众号或者小程序等的appid
+#    mchId: 1625442842 #微信支付商户号
+#    mchKey: 115248wefs5dfer557UI11rt56rrnbGB #微信支付商户密钥
+#    subAppId:  #服务商模式下的子商户公众账号ID
+#    subMchId:  #服务商模式下的子商户号
+#    keyPath: c:\\tools\\apiclient_cert.p12 # p12证书的位置,可以指定绝对路径,也可以指定类路径(以classpath:开头)
+#    notifyUrl:  https://syapi.qh8866.cn/app/wxpay/wxPayNotify
+

+ 78 - 0
fs-api/src/main/resources/application-druid.yml

@@ -0,0 +1,78 @@
+# 数据源配置
+spring:
+    # redis 配置
+    redis:
+        # 地址 172.30.0.15
+        host: 127.0.0.1
+        # 端口,默认为6379
+        port: 6379
+        # 密码
+        password:
+        # 连接超时时间
+        timeout: 100s
+        lettuce:
+            pool:
+                # 连接池中的最小空闲连接
+                min-idle: 0
+                # 连接池中的最大空闲连接
+                max-idle: 500
+                # 连接池的最大数据库连接数
+                max-active: 500
+                # #连接池最大阻塞等待时间(使用负值表示没有限制)
+                max-wait: -1ms
+        database: 0
+    datasource:
+        type: com.alibaba.druid.pool.DruidDataSource
+        driverClassName: com.mysql.cj.jdbc.Driver
+        druid:
+            # 主库数据源
+            master:
+                url: jdbc:mysql://172.30.0.8:3306/fs_hospital?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+                username: root
+                password: Rtyy_2023
+            # 从库数据源
+            slave:
+                # 从数据源开关/默认关闭
+                enabled: false
+                url:
+                username:
+                password:
+            # 初始连接数
+            initialSize: 500
+            # 最小连接池数量
+            minIdle: 2000
+            # 最大连接池数量
+            maxActive: 2000
+            # 配置获取连接等待超时的时间
+            maxWait: 60000
+            # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
+            timeBetweenEvictionRunsMillis: 60000
+            # 配置一个连接在池中最小生存的时间,单位是毫秒
+            minEvictableIdleTimeMillis: 300000
+            # 配置一个连接在池中最大生存的时间,单位是毫秒
+            maxEvictableIdleTimeMillis: 900000
+            # 配置检测连接是否有效
+            validationQuery: SELECT 1 FROM DUAL
+            testWhileIdle: true
+            testOnBorrow: false
+            testOnReturn: false
+            webStatFilter:
+                enabled: true
+            statViewServlet:
+                enabled: true
+                # 设置白名单,不填则允许所有访问
+                allow:
+                url-pattern: /druid/*
+                # 控制台管理用户名和密码
+                login-username:
+                login-password:
+            filter:
+                stat:
+                    enabled: true
+                    # 慢SQL记录
+                    log-slow-sql: true
+                    slow-sql-millis: 1000
+                    merge-sql: true
+                wall:
+                    config:
+                        multi-statement-allow: true

+ 119 - 0
fs-api/src/main/resources/application.yml

@@ -0,0 +1,119 @@
+# 项目相关配置
+fs:
+  # 名称
+  name: fs
+  # 版本
+  version: 1.1.0
+  # 版权年份
+  copyrightYear: 2020
+  # 实例演示开关
+  demoEnabled: false
+  # 文件路径 示例( Windows配置D:/fs/uploadPath,Linux配置 /home/fs/uploadPath)
+  profile: C:/fs/uploadPath
+  # 获取ip地址开关
+  addressEnabled: false
+  # 验证码类型 math 数组计算 char 字符验证
+  captchaType: math
+  # APP模块,是通过jwt认证的,如果要使用APP模块,则需要修改【加密秘钥】
+  jwt:
+    # 加密秘钥
+    secret: f4e2e52034348f86b67cde581c0f9eb5
+    # token有效时长,100天,单位秒
+    expire: 8640000
+    header: AppToken
+  url: https://api.yjf.runtzh.com
+# 开发环境配置
+server:
+  # 服务器的HTTP端口,默认为 7014  store 7114
+  port: 7014
+  servlet:
+    # 应用的访问路径
+    context-path: /
+    # 指定静态资源的路径
+    resources:
+      static-locations: classpath:/static/
+    #设定thymeleaf
+    thymeleaf:
+      #thymeleaf对html的检查过于严格,设置spring.thymeleaf.mode=LEGACYHTML5
+      mode: LEGACYHTML5
+      cache: false
+  tomcat:
+    # tomcat的URI编码
+    uri-encoding: UTF-8
+    # tomcat最大线程数,默认为200
+    max-threads: 5000
+    # Tomcat启动初始化的线程数,默认值25
+    min-spare-threads: 100
+    # 服务器在任何给定时间接受和处理的最大连接数。一旦达到限制,操作系统仍然可以接受基于“acceptCount”属性的连接。
+    max-connections: 30000
+    # 当所有可能的请求处理线程都在使用中时,传入连接请求的最大队列长度
+    accept-count: 1000
+    # 连接器在接受连接后等待显示请求 URI 行的时间。
+    connection-timeout: 20000
+    # 在关闭连接之前等待另一个 HTTP 请求的时间。如果未设置,则使用 connectionTimeout。设置为 -1 时不会超时。
+    keep-alive-timeout: 20000
+    # 在连接关闭之前可以进行流水线处理的最大HTTP请求数量。当设置为0或1时,禁用keep-alive和流水线处理。当设置为-1时,允许无限数量的流水线处理或keep-alive请求。
+    max-keep-alive-requests: 100
+
+# 日志配置
+logging:
+  level:
+    com.fs: debug
+    org.springframework: warn
+    org.springframework.web: info
+    cn.binarywang.wx.miniapp: debug
+
+# Spring配置
+spring:
+  # 资源信息
+  messages:
+    # 国际化资源文件路径
+    basename: i18n/messages
+  profiles:
+    active: druid
+    include: config
+  # 文件上传
+  servlet:
+     multipart:
+       # 单个文件大小
+       max-file-size:  10MB
+       # 设置总上传的文件大小
+       max-request-size:  20MB
+  # 服务模块
+  devtools:
+    restart:
+      # 热部署开关
+      enabled: true
+
+# MyBatis配置
+mybatis:
+    # 搜索指定包别名
+    typeAliasesPackage: com.fs.**.domain,com.fs.**.bo,com.fs.**.vo
+    # 配置mapper的扫描,找到所有的mapper.xml映射文件
+    mapperLocations: classpath*:mapper/**/*Mapper.xml
+    # 加载全局的配置文件
+    configLocation: classpath:mybatis/mybatis-config.xml
+
+# PageHelper分页插件
+pagehelper:
+  helperDialect: mysql
+  reasonable: false
+  supportMethodsArguments: true
+  params: count=countSql
+
+# Swagger配置
+swagger:
+  # 是否开启swagger
+  enabled: false
+  # 请求前缀
+  pathMapping: /
+
+# 防止XSS攻击
+xss:
+  # 过滤开关
+  enabled: true
+  # 排除链接(多个用逗号分隔)
+  excludes: /system/notice/*
+  # 匹配链接
+  urlPatterns: /system/*,/monitor/*,/tool/*
+

BIN
fs-api/src/main/resources/fx.jpg


BIN
fs-api/src/main/resources/qr.jpg


BIN
fs-api/src/main/resources/simsunb.ttf


+ 10 - 4
fs-company/src/main/resources/application-druid.yml

@@ -20,16 +20,17 @@ spring:
                 max-active: 8
                 # #连接池最大阻塞等待时间(使用负值表示没有限制)
                 max-wait: -1ms
-        database: 1
+        database: 0
     datasource:
         type: com.alibaba.druid.pool.DruidDataSource
         driverClassName: com.mysql.cj.jdbc.Driver
         druid:
             # 主库数据源
             master:
-                url: jdbc:mysql://139.186.77.83:3306/his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
-                username: Rtroot
-                password: Rtroot
+                url: jdbc:mysql://172.30.0.8:3306/fs_hospital?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+                username: root
+                password: Rtyy_2023
+
             # 从库数据源
             slave:
                 # 从数据源开关/默认关闭
@@ -76,3 +77,8 @@ spring:
                 wall:
                     config:
                         multi-statement-allow: true
+socket:
+    url: https://im.yjf.runtzh.com/sendInfo
+
+#qwConfig:
+#    apiurl: http://219.152.201.216:15201

+ 1 - 1
fs-company/src/main/resources/application.yml

@@ -43,7 +43,7 @@ spring:
     # 国际化资源文件路径
     basename: i18n/messages
   profiles:
-    active: druid-test
+    active: dev
     include: config
   # 文件上传
   servlet:

+ 3 - 3
fs-user-app/src/main/java/com/fs/app/controller/StoreOrderController.java

@@ -146,9 +146,9 @@ public class StoreOrderController extends  AppBaseController {
     @GetMapping("/getMyStoreOrderById")
     public R getMyStoreOrderById(@RequestParam("orderId") Long orderId, HttpServletRequest request){
         FsStoreOrder order=orderService.selectFsStoreOrderById(orderId);
-        if(order.getUserId()-Long.parseLong(getUserId())!=0){
-            return R.error("非法操作");
-        }
+//        if(order.getUserId()-Long.parseLong(getUserId())!=0){
+//            return R.error("非法操作");
+//        }
         order.setUserPhone(ParseUtils.parsePhone(order.getUserPhone()));
         order.setUserAddress(ParseUtils.parseIdCard(order.getUserAddress()));
         List<FsStoreOrderItemVO> list=itemService.selectFsStoreOrderItemListByOrderId(orderId);

+ 15 - 0
fs-user-app/src/main/java/com/fs/app/controller/ttt.java

@@ -0,0 +1,15 @@
+package com.fs.app.controller;
+
+import cn.hutool.json.JSONUtil;
+import com.fs.store.config.StoreConfig;
+
+public class ttt {
+    public static void main(String[] args) {
+
+        String s="{\"storeAfterSalesDay\":3,\"tuiMoneyRate\":15,\"unPayTime\":1800,\"payRate\":10,\"hotSearch\":\"连花清瘟,阿莫西林,中成药\",\"certs\":\"https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20240907/5369057202a548e290b02dc41cbca44f.jpg,https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20241226/18c9894842ed4ca8987ec25455670dd9.jpg,https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20231028/0b290c5974ba447fb45874bbb59d1540.png,https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20240907/efe3bca75a064097bc591fdb38005d2d.jpg,https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20231028/6a35d375a7ba4b0c9f001b172019bf8a.png,https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20231011/6c0cff03e1f74103b3741d21dcf65a6a.png,https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20231110/b6d9feea3a7f42758dd62781ce08bb08.png,https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20231225/0cf2e48c75bd41bda2d8780496df1760.jpg\",\"refundConsignee\":\"润天大药房\",\"refundPhoneNumber\":\"19923690275\",\"refundAddress\":\"重庆市南岸区长电路11号茶园物流中心1号库4楼(为方便您的退换货,退回时请务必用纸条填写好订单号、原订单物流单号、原订单收货手机号及姓名一起寄回)\",\"createMoneyRate\":20,\"salesPriceRate\":100,\"serviceFee\":2,\"videoUrl\":\"https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20240716/0c0368ccdc79494c887bfc249e384f3f.mp4\"}";
+
+        StoreConfig storeConfig= JSONUtil.toBean(s, StoreConfig.class);
+
+        System.out.println(storeConfig);
+    }
+}

+ 0 - 34
fs-user-app/src/main/resources/application-druid-test.yml

@@ -76,38 +76,4 @@ spring:
                 wall:
                     config:
                         multi-statement-allow: true
-#润天数字
-#wx:
-#    miniapp:
-#        configs:
-#            - appid: wxf7d4bdac73bb2e3b
-#              secret: b231dc5eaa9c069a207382c230691aa4
-#              token: Ncbnd7lJvkripVOpyTFAna6NAWCxCrvC
-#              aesKey: HlEiBB55eaWUaeBVAQO3cWKWPYv1vOVQSq7nFNICw4E
-#              msgDataFormat: JSON
-#    pay:
-#        appId: wx45cf09091aead547 #微信公众号或者小程序等的appid
-#        mchId: 1560230251 #微信支付商户号
-#        mchKey: dltcx057ngdbukiuwn83621khh07ewmn #微信支付商户密钥
-#        subAppId:  #服务商模式下的子商户公众账号ID
-#        subMchId:  #服务商模式下的子商户号
-#        keyPath: c:\\tools\\apiclient_cert.p12 # p12证书的位置,可以指定绝对路径,也可以指定类路径(以classpath:开头)
-#        notifyUrl:  https://api.hospital.ifeiyu100.com/app/wxpay/wxPayNotify
-#南昌
-#wx:
-#  miniapp:
-#    configs:
-#      - appid: wxa8f50f6d14b817a1
-#        secret: cab200baa8abc4ad4ff071aecc76d218
-#        token: Ncbnd7lJvkripVOpyTFAna6NAWCxCrvC
-#        aesKey: HlEiBB55eaWUaeBVAQO3cWKWPYv1vOVQSq7nFNICw4E
-#        msgDataFormat: JSON
-#  pay:
-#    appId: wxa8f50f6d14b817a1 #微信公众号或者小程序等的appid
-#    mchId: 1625442842 #微信支付商户号
-#    mchKey: 115248wefs5dfer557UI11rt56rrnbGB #微信支付商户密钥
-#    subAppId:  #服务商模式下的子商户公众账号ID
-#    subMchId:  #服务商模式下的子商户号
-#    keyPath: c:\\tools\\apiclient_cert.p12 # p12证书的位置,可以指定绝对路径,也可以指定类路径(以classpath:开头)
-#    notifyUrl:  https://syapi.qh8866.cn/app/wxpay/wxPayNotify
 

+ 5 - 1
fs-user-app/src/main/resources/application.yml

@@ -65,12 +65,16 @@ logging:
 
 # Spring配置
 spring:
+  datasource:
+    druid:
+      stat-view-servlet:
+        enabled: false
   # 资源信息
   messages:
     # 国际化资源文件路径
     basename: i18n/messages
   profiles:
-    active: druid
+    active: druid-test
     include: config
   # 文件上传
   servlet: