123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- package com.cool.bang.api;
- import com.cool.bang.modules.mysql.service.*;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import javax.annotation.Resource;
- @RestController
- @RequestMapping("/match")
- public class DataMatch {
- @Resource
- private MySQLService mySQLService;
- @Autowired
- private MySQLSecondService mySQLSecondService;
- @Resource
- private UserService userService;
- @Resource
- private AccountService accountService;
- @Resource
- private RefundService refundService;
- /**
- * 用户表导入
- */
- @GetMapping("user")
- public void user () {
- userService.execute();
- }
- /**
- * 项目表导入
- */
- @GetMapping("project")
- public void project(){
- mySQLService.project();
- }
- /**
- * 账户表导入
- */
- @GetMapping("account")
- public void account(){
- accountService.execute();
- }
- /**
- * 项目虚拟户、楼幢虚拟户表导入
- */
- @GetMapping("projectAccount")
- public void projectAccount(){
- mySQLService.projectAccount();
- }
- /**
- * 托管申请业务 托管协议导入
- */
- @GetMapping("trusteeshipBusiness")
- public void trusteeshipBusiness(){
- mySQLService.trusteeshipBusiness();
- }
- /**
- * 监管开户申请业务表导入
- */
- @GetMapping("superviseBusiness")
- public void superviseBusiness(){
- mySQLService.superviseBusiness();
- }
- /**
- * 项目解除业务信息导入
- */
- @GetMapping("relieve")
- public void relieve(){
- mySQLService.relieve();
- }
- /**
- * 监管开户解除业务表导入
- */
- @GetMapping("superviseRelieve")
- public void superviseRelieve(){
- //mySQLService.superviseRelieve();
- }
- /**
- * 监管资金转托管业务表、明细表导入
- */
- @GetMapping("superviseTo")
- public void superviseTo(){
- mySQLService.superviseTo();
- }
- /**
- * 工程形象进度业务表、明细表导入
- */
- @GetMapping("progressBusiness")
- public void progressBusiness() {
- mySQLService.progressBusiness();
- }
- /**
- * 拨付业务信息导入
- */
- @GetMapping("appropriation")
- public void appropriation() {
- mySQLService.trusteeshipAppropriation();
- mySQLService.superviseAppropriation();
- }
- /**
- * 合同
- */
- @GetMapping("htTo")
- public void htTo(){
- mySQLService.htTo();
- }
- /**
- *交存
- */
- @GetMapping("htPayTo")
- public void htPayTo(){
- mySQLService.htPayTo();
- }
- /**
- * 定金
- */
- @GetMapping("djTo")
- public void djTo(){
- mySQLService.djTo();
- }
- /**
- * 退款(合同)
- */
- @GetMapping("refund")
- public void refund(){
- refundService.execute();
- }
- /**
- * 楼栋解除
- */
- @GetMapping("buildingRelieve")
- public void buildingRelieve(){
- mySQLSecondService.buildingRelieve();
- }
- /**
- * 交易表记录(托管记录)
- */
- @GetMapping("trade")
- public void trade(){
- mySQLSecondService.tradeTgTo();
- }
- /**
- * 对账
- */
- @GetMapping("accountChecking")
- public void accountChecking(){
- mySQLSecondService.accountChecking();
- }
- /**
- * 托管账户对账
- */
- @GetMapping("bankAccountCheck")
- public void bankAccountCheck(){mySQLSecondService.bankAccountCheck();}
- /**
- * 托管合同交存跟交易对账
- */
- @GetMapping("contractFundCheckTrade")
- public void contractFundCheckTrade(){mySQLSecondService.contractFundCheckTrade();}
- /**
- * 查询银行账单,按日期
- */
- @GetMapping("bank/{bankCode}/{startDate}/{endDate}")
- public void bank(@PathVariable String bankCode, @PathVariable String startDate, @PathVariable String endDate) {
- mySQLService.bankBill(bankCode, startDate, endDate);
- }
- }
|