DataMatch.java 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. package com.cool.bang.api;
  2. import com.cool.bang.modules.mysql.service.*;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.web.bind.annotation.*;
  5. import javax.annotation.Resource;
  6. @RestController
  7. @RequestMapping("/match")
  8. public class DataMatch {
  9. @Resource
  10. private MySQLService mySQLService;
  11. @Autowired
  12. private MySQLSecondService mySQLSecondService;
  13. @Resource
  14. private UserService userService;
  15. @Resource
  16. private AccountService accountService;
  17. @Resource
  18. private RefundService refundService;
  19. /**
  20. * 用户表导入
  21. */
  22. @GetMapping("user")
  23. public void user () {
  24. userService.execute();
  25. }
  26. /**
  27. * 项目表导入
  28. */
  29. @GetMapping("project")
  30. public void project(){
  31. mySQLService.project();
  32. }
  33. /**
  34. * 账户表导入
  35. */
  36. @GetMapping("account")
  37. public void account(){
  38. accountService.execute();
  39. }
  40. /**
  41. * 项目虚拟户、楼幢虚拟户表导入
  42. */
  43. @GetMapping("projectAccount")
  44. public void projectAccount(){
  45. mySQLService.projectAccount();
  46. }
  47. /**
  48. * 托管申请业务 托管协议导入
  49. */
  50. @GetMapping("trusteeshipBusiness")
  51. public void trusteeshipBusiness(){
  52. mySQLService.trusteeshipBusiness();
  53. }
  54. /**
  55. * 监管开户申请业务表导入
  56. */
  57. @GetMapping("superviseBusiness")
  58. public void superviseBusiness(){
  59. mySQLService.superviseBusiness();
  60. }
  61. /**
  62. * 项目解除业务信息导入
  63. */
  64. @GetMapping("relieve")
  65. public void relieve(){
  66. mySQLService.relieve();
  67. }
  68. /**
  69. * 监管开户解除业务表导入
  70. */
  71. @GetMapping("superviseRelieve")
  72. public void superviseRelieve(){
  73. //mySQLService.superviseRelieve();
  74. }
  75. /**
  76. * 监管资金转托管业务表、明细表导入
  77. */
  78. @GetMapping("superviseTo")
  79. public void superviseTo(){
  80. mySQLService.superviseTo();
  81. }
  82. /**
  83. * 工程形象进度业务表、明细表导入
  84. */
  85. @GetMapping("progressBusiness")
  86. public void progressBusiness() {
  87. mySQLService.progressBusiness();
  88. }
  89. /**
  90. * 拨付业务信息导入
  91. */
  92. @GetMapping("appropriation")
  93. public void appropriation() {
  94. mySQLService.trusteeshipAppropriation();
  95. mySQLService.superviseAppropriation();
  96. }
  97. /**
  98. * 合同
  99. */
  100. @GetMapping("htTo")
  101. public void htTo(){
  102. mySQLService.htTo();
  103. }
  104. /**
  105. *交存
  106. */
  107. @GetMapping("htPayTo")
  108. public void htPayTo(){
  109. mySQLService.htPayTo();
  110. }
  111. /**
  112. * 定金
  113. */
  114. @GetMapping("djTo")
  115. public void djTo(){
  116. mySQLService.djTo();
  117. }
  118. /**
  119. * 退款(合同)
  120. */
  121. @GetMapping("refund")
  122. public void refund(){
  123. refundService.execute();
  124. }
  125. /**
  126. * 楼栋解除
  127. */
  128. @GetMapping("buildingRelieve")
  129. public void buildingRelieve(){
  130. mySQLSecondService.buildingRelieve();
  131. }
  132. /**
  133. * 交易表记录(托管记录)
  134. */
  135. @GetMapping("trade")
  136. public void trade(){
  137. mySQLSecondService.tradeTgTo();
  138. }
  139. /**
  140. * 对账
  141. */
  142. @GetMapping("accountChecking")
  143. public void accountChecking(){
  144. mySQLSecondService.accountChecking();
  145. }
  146. /**
  147. * 托管账户对账
  148. */
  149. @GetMapping("bankAccountCheck")
  150. public void bankAccountCheck(){mySQLSecondService.bankAccountCheck();}
  151. /**
  152. * 托管合同交存跟交易对账
  153. */
  154. @GetMapping("contractFundCheckTrade")
  155. public void contractFundCheckTrade(){mySQLSecondService.contractFundCheckTrade();}
  156. /**
  157. * 查询银行账单,按日期
  158. */
  159. @GetMapping("bank/{bankCode}/{startDate}/{endDate}")
  160. public void bank(@PathVariable String bankCode, @PathVariable String startDate, @PathVariable String endDate) {
  161. mySQLService.bankBill(bankCode, startDate, endDate);
  162. }
  163. }