No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 

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