Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

182 linhas
6.0 KiB

  1. server:
  2. servlet:
  3. contextPath: /api
  4. encoding:
  5. charset: UTF-8
  6. enabled: true
  7. force: true
  8. port: 8090
  9. error:
  10. include-message: always
  11. # PostCompletedDn GRN: runs daily at 00:01, processes all POs with receipt date = yesterday.
  12. # Set enabled: false to disable. Optional receiptDate: "yyyy-MM-dd" overrides for testing only.
  13. # m18Grn.createEnabled: M18 GRN PUT/create — false outside production so UAT/dev never posts GRNs.
  14. # m18Sync: M18 cron jobs for PO, DO1, DO2, DO1 catch-up, BOM→M18 udfBomForShop, master data — false outside production (manual /trigger/* still works except do1-catchup).
  15. truck:
  16. lane:
  17. schedule:
  18. enabled: true
  19. cron: "0 * * * * *"
  20. scheduler:
  21. m18Sync:
  22. enabled: false
  23. m18Grn:
  24. createEnabled: false
  25. postCompletedDnGrn:
  26. enabled: false
  27. # receiptDate: # leave unset for production (uses yesterday)
  28. grnCodeSync:
  29. enabled: false # set true in prod; backfills grn_code from M18 GET /root/api/read/an
  30. # Lookback: created from start of (today − N days) through now, missing grn_code. E.g. 4 = last 4 days + today.
  31. syncOffsetDays: 0
  32. inventoryLotExpiry:
  33. enabled: true
  34. # Daily stock_lot_day close (yesterday) at 00:15 — moves + carry; catchUpDays caps missed days.
  35. stockLotDayClose:
  36. enabled: true
  37. catchUpDays: 7
  38. # Job order: at 00:00:15 daily, process JOs whose planStart was yesterday (hide or reschedule).
  39. jo:
  40. planStart:
  41. enabled: true
  42. # One-time DO1 catch-up jobs (production only — requires scheduler.m18Sync.enabled=true in application-prod.yml).
  43. do1CatchUp:
  44. enabled: false
  45. do1CatchUp2:
  46. enabled: false
  47. # SMS alerts when M18 PO/DO1/DO2/master-data sync looks wrong (see SchedulerSyncAlertService).
  48. sync-alert:
  49. enabled: ${SYNC_ALERT_ENABLED:false}
  50. check-cron: "0 */15 * * * *"
  51. sms:
  52. enabled: false
  53. provider: log # WhatsApp/Twilio off; use email below
  54. channel: whatsapp
  55. account-sid: ${TWILIO_ACCOUNT_SID:}
  56. auth-token: ${TWILIO_AUTH_TOKEN:}
  57. from-number: ${TWILIO_FROM_NUMBER:}
  58. to-numbers: ""
  59. content-sid: ${TWILIO_WHATSAPP_CONTENT_SID:}
  60. email:
  61. enabled: ${SYNC_ALERT_EMAIL_ENABLED:true}
  62. to-addresses: "[email protected],[email protected]"
  63. do1:
  64. min-records-processed: 400
  65. grace-minutes-after-schedule: 30
  66. presence:
  67. grace-minutes-after-schedule: 60
  68. po-line:
  69. enabled: ${SYNC_ALERT_PO_LINE_ENABLED:true}
  70. # Nav: PO stock_in_line pending/receiving within last N days (see ProductProcessService for 工單 QC/上架:今日+昨日).
  71. fpsms:
  72. purchase-stock-in-alert:
  73. lookback-days: 7
  74. # Device + printer monitoring: enable only on production profile (application-prod*.yml).
  75. monitoring:
  76. enabled: false
  77. # Delete device/printer connectivity events older than this (daily job).
  78. event-retention-days: 30
  79. retention-purge-cron: "0 0 3 * * *"
  80. client-presence:
  81. offline-threshold-sec: 90
  82. idle-threshold-sec: 300
  83. history-sample-sec: 60
  84. history-max-range-days: 30
  85. # Live monitor omits devices with no heartbeat longer than this; stale rows are purged daily.
  86. live-presence-retention-days: 7
  87. offline-scan-interval-ms: 60000
  88. printer-monitor:
  89. scan-interval-ms: 120000
  90. connect-timeout-ms: 3000
  91. default-port: 9100
  92. offline-event-sample-sec: 300
  93. history-max-range-days: 30
  94. label-printer-monitor:
  95. zebra-odometer-enabled: true
  96. connect-timeout-ms: 3000
  97. zebra-query-timeout-ms: 2500
  98. default-port: 9100
  99. check-interval-ms: 120000
  100. history-max-range-days: 30
  101. spring:
  102. servlet:
  103. multipart:
  104. max-file-size: 500MB
  105. max-request-size: 600MB
  106. jpa:
  107. hibernate:
  108. naming:
  109. physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
  110. database-platform: org.hibernate.dialect.MySQL8Dialect
  111. properties:
  112. hibernate:
  113. dialect:
  114. storage_engine: innodb
  115. # JWT: access token expiry and refresh token expiry. Frontend calls /refresh-token before access token expires.
  116. # Signing key must be STABLE across server restarts (do not use a random key per boot). Override with env JWT_SECRET in production.
  117. # Prod overrides to 16h access (floor shifts ~08:00–22:00); see application-prod.yml.
  118. jwt:
  119. expiration-minutes: 14400 # access token: 10 days (default); override in application-prod for shorter session
  120. refresh-expiration-days: 30 # refresh token validity (days)
  121. secret: ${JWT_SECRET:fpsms-dev-jwt-signing-secret-change-for-production-use-long-random-JWT_SECRET}
  122. logging:
  123. config: 'classpath:log4j2.yml'
  124. # Optional NGPCL gateway: receives the same bytes as /plastic/download-onpack-qr-text (Content-Type: application/zip).
  125. # Leave empty to disable; set NGPCL_PUSH_URL in production if you expose an HTTP receiver for the lemon OnPack ZIP.
  126. ngpcl:
  127. push-url: ${NGPCL_PUSH_URL:}
  128. # Laser Bag2 (/laserPrint) auto-send: same as listing + TCP send using DB LASER_PRINT.host / port / itemCodes.
  129. # Scheduler is off by default. Service enforces first matching job order only (limit-per-run values >1 are ignored).
  130. # sends-per-job: TCP payloads per job order per tick (1 = single send; each send may retry once on failure inside sendLaserBag2Job).
  131. laser:
  132. bag2:
  133. auto-send:
  134. enabled: false
  135. interval-ms: 60000
  136. limit-per-run: 1
  137. sends-per-job: 1
  138. delay-between-sends-ms: 3000
  139. bom:
  140. import:
  141. temp-dir: ${java.io.tmpdir}/fpsms-bom-import
  142. m18:
  143. config:
  144. grant-type: password
  145. client-id: M2Y1OGYxMmQtZDRiOS00OTA4LTgyNTktZDRkNzEzNWVkMzRm
  146. client-secret: M2Y2YjQzYzQtZTc2Mi00OTFhLTkwYmItYmJhMzFjZjEyYmY5
  147. username: testingMTMS
  148. password: db25f2fc14cd2d2b1e7af307241f548fb03c312a
  149. base-url: https://toa.m18saas.com/jsf/rfws
  150. base-url-uat: https://toauat.m18saas.com/jsf/rfws
  151. base-password: qwer1234
  152. supplier:
  153. shop-po: P06, P07
  154. oem-po: T62
  155. supplier-not:
  156. material-po: P06, P07
  157. beId:
  158. toa: 1
  159. pf: 27
  160. pp: 29
  161. seriesId:
  162. pp: 26
  163. pf: 33
  164. fa: 2
  165. fb: 3
  166. fc: 4
  167. fd: 5
  168. ff: 6
  169. sc: 27
  170. se: 28
  171. sf: 70
  172. sr: 29