Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

79 lignes
2.0 KiB

  1. package com.ffii.fpsms.m18
  2. import org.springframework.beans.factory.annotation.Value
  3. import org.springframework.cloud.context.config.annotation.RefreshScope
  4. import org.springframework.context.annotation.Bean
  5. import org.springframework.context.annotation.Configuration
  6. @Configuration
  7. open class M18Config {
  8. // Account
  9. @Value("\${m18.config.grant-type}")
  10. lateinit var GRANT_TYPE: String;
  11. @Value("\${m18.config.client-id}")
  12. lateinit var CLIENT_ID: String;
  13. @Value("\${m18.config.client-secret}")
  14. lateinit var CLIENT_SECRET: String;
  15. @Value("\${m18.config.username}")
  16. lateinit var USERNAME: String;
  17. @Value("\${m18.config.password}")
  18. lateinit var PASSWORD: String;
  19. // Series
  20. @Value("\${m18.config.seriesId.pp}")
  21. var SERIESID_PP: Long? = null;
  22. @Value("\${m18.config.seriesId.pf}")
  23. var SERIESID_PF: Long? = null;
  24. @Value("\${m18.config.seriesId.sc}")
  25. var SERIESID_SC: Long? = null;
  26. @Value("\${m18.config.seriesId.se}")
  27. var SERIESID_SE: Long? = null;
  28. @Value("\${m18.config.seriesId.sf}")
  29. var SERIESID_SF: Long? = null;
  30. @Value("\${m18.config.seriesId.sr}")
  31. var SERIESID_SR: Long? = null;
  32. // BE
  33. @Value("\${m18.config.beId.pp}")
  34. var BEID_PP: Long? = null;
  35. @Value("\${m18.config.beId.pf}")
  36. var BEID_PF: Long? = null;
  37. @Value("\${m18.config.beId.toa}")
  38. var BEID_TOA: Long? = null;
  39. // Fetch
  40. var ACCESS_TOKEN: String? = null;
  41. /**
  42. * Condition Detail
  43. * Conds Format:
  44. * Id=lessThan=5=and=id=largerOrEqual=3=or=(name=contains =ss=or=name=contains=bb)
  45. * Which means:
  46. * Id<5 and id >=3 or (name like ‘%ss%’ or name like ‘%bb%’)
  47. * **Please use these formats to write the conds: **
  48. * ("equal", "="),
  49. * ("unequal", "<>"),
  50. * ("largerThan", ">"),
  51. * ("lessThan", "<"),
  52. * ("largerOrEqual", ">="),
  53. * ("lessOrEqual", "<="),
  54. * ("contains", "like"),
  55. * ("doseNotContain", "notlike"),
  56. * ("in", "in"),
  57. * ("notIn", "notin"),
  58. * ("startWith", "like"),
  59. * ("endWith", "like");
  60. */
  61. }