浏览代码

fix: 问题修改

JieZ 2 年之前
父节点
当前提交
6f3ace1ad1

+ 0 - 4
bpm-core/src/main/java/com/srm/bpm/logic/service/impl/ProcessFormLogicImpl.java

@@ -317,10 +317,6 @@ public class ProcessFormLogicImpl implements ProcessFormLogic {
317 317
         if (form == null) {
318 318
             // 不存在表单
319 319
             int size = formTableService.findByTableSize(FORM_TABLE_NAME_PREFIX);
320
-            if (size <= 0) {
321
-                size = 1;
322
-            }
323
-
324 320
             form = new ToaFormEntity();
325 321
             form.setTableName(FORM_TABLE_NAME_PREFIX +  (size+1));
326 322
             form.setProcessFlag(1);

+ 2 - 2
bpm-server/src/main/resources/application-dev.yml

@@ -13,9 +13,9 @@ spring:
13 13
     druid:
14 14
       #MySQL
15 15
       driver-class-name: com.mysql.jdbc.Driver
16
-      url: jdbc:mysql://127.0.0.1:3306/jqh_srm_9000?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true
16
+      url: jdbc:mysql://119.3.5.90:3306/jqh_srm_9000?useUnicode=true&characterEncoding=utf-8&useSSL=true&allowMultiQueries=true
17 17
       username: root
18
-      password: root
18
+      password: Jingtong@2021
19 19
       initial-size: 10
20 20
       max-active: 20
21 21
       min-idle: 2

bpm-server/src/main/resources/application-prod.yml → bpm-server/src/main/resources/application-prod.ymlback


bpm-server/src/main/resources/application-test.yml → bpm-server/src/main/resources/application-test.ymlback


+ 117 - 4
bpm-server/src/main/resources/application.yml

@@ -1,6 +1,13 @@
1 1
 scis:
2 2
   tenant:
3 3
     enable: false
4
+bpm:
5
+  file-path: /Users/jiez/workspace/haosen/haosen_srm/media
6
+  ctx: ''
7
+  target-url: http://127.0.0.1:8778
8
+  type: 1
9
+  callback-url: http://127.0.0.1:8778/bill/rest/callback
10
+  pushmsg-url: http://127.0.0.1:8778/task/pushmsg
4 11
 server:
5 12
   port: 9094
6 13
 spring:
@@ -13,8 +20,8 @@ spring:
13 20
       max-file-size: 100MB
14 21
       max-request-size: 1000MB
15 22
   #环境 dev|test|prod
16
-  profiles:
17
-    active: dev
23
+#  profiles:
24
+#    active: test
18 25
   messages:
19 26
     encoding: UTF-8
20 27
     basename: i18n/messages_common
@@ -31,10 +38,46 @@ spring:
31 38
     async-executor-activate: true
32 39
     check-process-definitions: false
33 40
     jpaEnabled: false
41
+  jackson:
42
+    time-zone: GMT+8
43
+    date-format: yyyy-MM-dd HH:mm:ss
44
+  datasource:
45
+    druid:
46
+      #MySQL
47
+      driver-class-name: com.mysql.jdbc.Driver
48
+      url: jdbc:mysql://119.3.5.90:3306/jqh_srm_9000?useUnicode=true&characterEncoding=utf-8&useSSL=true&allowMultiQueries=true
49
+      username: root
50
+      password: Jingtong@2021
51
+      initial-size: 10
52
+      max-active: 20
53
+      min-idle: 2
54
+      max-wait: 6000
55
+      pool-prepared-statements: true
56
+      max-pool-prepared-statement-per-connection-size: 5
57
+      time-between-eviction-runs-millis: 60000
58
+      min-evictable-idle-time-millis: 300000
59
+      #Oracle需要打开注释
60
+      #validation-query: SELECT 1 FROM uc_user
61
+      test-while-idle: true
62
+      test-on-borrow: false
63
+      test-on-return: false
64
+      filter:
65
+        stat:
66
+          log-slow-sql: true
67
+          slow-sql-millis: 1000
68
+          merge-sql: false
69
+        wall:
70
+          config:
71
+            multi-statement-allow: true
72
+  redis:
73
+    host: 127.0.0.1
74
+    port: 6379
75
+    database: 2
76
+    timeout: 30s
34 77
   boot:
35 78
     admin:
36 79
       client:
37
-        url: "http://127.0.0.1:9094"
80
+        url: http://127.0.0.1:9095
38 81
 management:
39 82
   endpoint:
40 83
     jolokia:
@@ -47,6 +90,10 @@ management:
47 90
         include: '*'
48 91
 logging:
49 92
   config: classpath:logback-spring.xml
93
+  level:
94
+    root: info
95
+    com.srm: debug
96
+    com.srm.bpm.infra.dao.ToaBillDao.selectTodoSizeByStatus: error
50 97
 feign:
51 98
   sentinel:
52 99
     enabled: true
@@ -54,4 +101,70 @@ ribbon:
54 101
   ReadTimeout: 300000
55 102
   ConnectTimeout: 300000
56 103
 logbook:
57
-  execution: execution(* com.srm.bpm.facade.*.*Controller.*(..))
104
+  execution: execution(* com.srm.bpm.facade.*.*Controller.*(..))
105
+mybatis-plus:
106
+  mapper-locations: classpath*:/mapper/**/infra/*.xml
107
+  #实体扫描,多个package用逗号或者分号分隔
108
+  type-aliases-package: com.**.**.infra.entity
109
+  type-enums-package: com.**.**.infra.entity.enums
110
+  type-handlers-package: com.**.**.infra.entity.typehandler
111
+  global-config:
112
+    #数据库相关配置
113
+    db-config:
114
+      #主键类型  AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
115
+      id-type: ID_WORKER
116
+    banner: false
117
+  #原生配置
118
+  configuration:
119
+    map-underscore-to-camel-case: true
120
+    cache-enabled: false
121
+    call-setters-on-nulls: true
122
+    jdbc-type-for-null: 'null'
123
+    # 配置type-enums-package只对注解方式的枚举处理能提前加载缓存.
124
+    default-enum-type-handler: org.apache.ibatis.type.EnumOrdinalTypeHandler
125
+seata:
126
+  enabled: false
127
+  tx-service-group: bpm_tx_group
128
+  enable-auto-data-source-proxy: false
129
+  transport:
130
+    type: tcp
131
+    server: nio
132
+    heartbeat: true
133
+    enable-client-batch-send-request: true
134
+    thread-factory:
135
+      boss-thread-prefix: 'NettyBoss'
136
+      worker-thread-prefix: 'NettyServerNIOWorker'
137
+      server-executor-thread-prefix: 'NettyServerBizHandler'
138
+      share-boss-worker: false
139
+      client-selector-thread-prefix: 'NettyClientSelector'
140
+      client-selector-thread-size: 1
141
+      client-worker-thread-prefix: 'NettyClientWorkerThread'
142
+      boss-thread-size: 1
143
+      worker-thread-size: default
144
+    shutdown:
145
+      wait: 3
146
+    serialization: seata
147
+    compressor: none
148
+  service:
149
+    default:
150
+      grouplist: "127.0.0.1:8091"
151
+    enable-degrade: false
152
+    disable-global-transaction: false
153
+    vgroup-mapping:
154
+      bpm_tx_group: 'default'
155
+  client:
156
+    rm:
157
+      async-commit-buffer-limit: 10000
158
+      lock:
159
+        retry-interval: 10
160
+        retry-times: 30
161
+        retry-policy-branch-rollback-on-conflict: true
162
+    tm:
163
+      commit-retry-count: 5
164
+      rollback-retry-count: 5
165
+    undo:
166
+      log-table: 'undo_log'
167
+      log-serialization: jackson
168
+      data-validation: true
169
+  log:
170
+    exception-rate: 100