zhuth 7 years ago
parent
commit
5a44e22667
21 changed files with 1248 additions and 44 deletions
  1. 2 1
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/MoneyApplicatiion.java
  2. 58 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/controller/FundtransferController.java
  3. 6 8
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/controller/OthreceiptsController.java
  4. 11 8
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/controller/OthspengdingsController.java
  5. 12 9
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/controller/PaybalanceController.java
  6. 7 7
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/controller/RecbalanceContorller.java
  7. 21 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/FundtransferMapper.java
  8. 18 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/FundtransferdetailMapper.java
  9. 28 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Fundtran.java
  10. 175 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Fundtransfer.java
  11. 225 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Fundtransferdetail.java
  12. 24 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/FundtransferService.java
  13. 1 1
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/OthspendingsService.java
  14. 1 1
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/PaybalanceService.java
  15. 4 1
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/RecbalanceService.java
  16. 106 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/FundtransferServiceImpl.java
  17. 1 1
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/OthspendingsServiceImpl.java
  18. 1 1
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/PaybalanceServiceImpl.java
  19. 6 6
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/RecbalanceServiceImpl.java
  20. 241 0
      applications/money/money-server/src/main/resources/mapper/FundtransferMapper.xml
  21. 300 0
      applications/money/money-server/src/main/resources/mapper/FundtransferdetailMapper.xml

+ 2 - 1
applications/money/money-server/src/main/java/com/usoftchina/saas/money/MoneyApplicatiion.java

@@ -4,6 +4,7 @@ import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 //import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
+import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
 import org.springframework.cloud.openfeign.EnableFeignClients;
 import org.springframework.transaction.annotation.EnableTransactionManagement;
 
@@ -12,7 +13,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
  * @create: 2018-10-20 11:29
  **/
 @SpringBootApplication
-//@EnableEurekaClient
+@EnableEurekaClient
 @EnableTransactionManagement
 @EnableFeignClients("com.usoftchina.saas")
 //@EnableAuthClient

+ 58 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/controller/FundtransferController.java

@@ -0,0 +1,58 @@
+package com.usoftchina.saas.money.controller;
+
+import com.github.pagehelper.PageInfo;
+import com.usoftchina.saas.base.Result;
+import com.usoftchina.saas.money.po.Fundtran;
+import com.usoftchina.saas.money.po.Fundtransfer;
+import com.usoftchina.saas.money.service.FundtransferService;
+import com.usoftchina.saas.page.PageRequest;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * @author heqw
+ * @date 2018/10/25 19:21
+ **/
+@RestController
+@RequestMapping("/money/fundtransfer")
+public class FundtransferController {
+    @Autowired
+    private FundtransferService fundtransferService;
+
+    @RequestMapping("/save")
+    public Result insert(@RequestBody Fundtran body) {
+        int id = fundtransferService.insert(body);
+        return Result.success(id);
+    }
+
+
+    @PostMapping("/delete")
+    public Result delete(@RequestBody int id){
+        fundtransferService.delete(id);
+        return Result.success();
+    }
+
+
+    @GetMapping("/read")
+    public Result read(int id){
+        return Result.success(fundtransferService.select(id));
+    }
+
+    @GetMapping("/List")
+    public Result getList(PageRequest page){
+        PageInfo<Fundtransfer> list = fundtransferService.selectList(page);
+        return Result.success(list);
+    }
+
+    @RequestMapping("/audit")
+    public Result audit(@RequestBody Fundtran body){
+        fundtransferService.audit(body);
+        return Result.success();
+    }
+
+    @PostMapping("/unAudit")
+    public Result unAudit(@RequestBody int id){
+        fundtransferService.unAudit(id);
+        return Result.success();
+    }
+}

+ 6 - 8
applications/money/money-server/src/main/java/com/usoftchina/saas/money/controller/OthreceiptsController.java

@@ -7,10 +7,7 @@ import com.usoftchina.saas.money.po.Othte;
 import com.usoftchina.saas.money.service.OthreceiptsService;
 import com.usoftchina.saas.page.PageRequest;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 /**
  * @author heqw
@@ -29,12 +26,13 @@ public class OthreceiptsController {
     }
 
 
-    @GetMapping("/delete")
-    public Result deletePaybalance(int id){
+    @PostMapping("/delete")
+    public Result deletePaybalance(@RequestBody int id){
         othreceiptsService.delete(id);
         return Result.success();
     }
 
+
     @GetMapping("/read")
     public Result getPaybalance(int id){
         return Result.success(othreceiptsService.select(id));
@@ -52,8 +50,8 @@ public class OthreceiptsController {
         return Result.success();
     }
 
-    @GetMapping("/unAudit")
-    public Result unAudit(int id){
+    @PostMapping("/unAudit")
+    public Result unAudit(@RequestBody int id){
         othreceiptsService.unAudit(id);
         return Result.success();
     }

+ 11 - 8
applications/money/money-server/src/main/java/com/usoftchina/saas/money/controller/OthspengdingsController.java

@@ -10,10 +10,7 @@ import com.usoftchina.saas.money.service.OthspendingsService;
 import com.usoftchina.saas.page.PageRequest;
 import io.swagger.annotations.Api;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 /**
  * @author heqw
@@ -32,12 +29,18 @@ public class OthspengdingsController {
     }
 
 
-    @GetMapping("/delete")
-    public Result deletePaybalance(int id){
+    @PostMapping("/delete")
+    public Result deletePaybalance(@RequestBody int id){
         othspendingsService.delete(id);
         return Result.success();
     }
 
+    @PostMapping("/deleteItem/")
+    public Result deleteItem(@RequestBody int id){
+        othspendingsService.deleteItem(id);
+        return Result.success();
+    }
+
     @GetMapping("/read")
     public Result getPaybalance(int id){
         return Result.success(othspendingsService.select(id));
@@ -55,8 +58,8 @@ public class OthspengdingsController {
         return Result.success();
     }
 
-    @GetMapping("/unAudit")
-    public Result unAudit(int id){
+    @PostMapping("/unAudit")
+    public Result unAudit(@RequestBody int id){
         othspendingsService.unAudit(id);
         return Result.success();
     }

+ 12 - 9
applications/money/money-server/src/main/java/com/usoftchina/saas/money/controller/PaybalanceController.java

@@ -8,17 +8,14 @@ import com.usoftchina.saas.money.po.Paybalance;
 import com.usoftchina.saas.money.service.PaybalanceService;
 import com.usoftchina.saas.page.PageRequest;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 /**
  * @author heqw
  * @date 2018/10/22 15:03
  **/
 @RestController
-@RequestMapping("/money")
+@RequestMapping("/money/Paybalance")
 public class PaybalanceController {
     @Autowired
     private PaybalanceService paybalanceService;
@@ -30,12 +27,18 @@ public class PaybalanceController {
     }
 
 
-    @GetMapping("/delete")
-    public Result deletePaybalance(int id){
+    @PostMapping("/delete")
+    public Result deletePaybalance(@RequestBody int id){
         paybalanceService.delete(id);
         return Result.success();
     }
 
+    @PostMapping("/deleteItem/")
+    public Result deleteItem(@RequestBody int id){
+        paybalanceService.deleteItem(id);
+        return Result.success();
+    }
+
     @GetMapping("/read")
     public Result getPaybalance(int id){
         return Result.success(paybalanceService.select(id));
@@ -53,8 +56,8 @@ public class PaybalanceController {
         return Result.success();
     }
 
-    @GetMapping("/unAudit")
-    public Result unAudit(int id){
+    @PostMapping("/unAudit")
+    public Result unAudit(@RequestBody int id){
         paybalanceService.unAudit(id);
         return Result.success();
     }

+ 7 - 7
applications/money/money-server/src/main/java/com/usoftchina/saas/money/controller/RecbalanceContorller.java

@@ -23,15 +23,15 @@ public class RecbalanceContorller {
         return Result.success();
     }
 
-    @GetMapping("/delete")
-    public Result delete(int id){
+    @PostMapping("/delete")
+    public Result delete(@RequestBody int id){
         recbalanceService.delect(id);
         return Result.success();
     }
 
-    @GetMapping("/deleteItem/{id}")
-    public Result deleteItem(@PathVariable int id){
-        recbalanceService.delectItem(id);
+    @PostMapping("/deleteItem/")
+    public Result deleteItem(@RequestBody int id){
+        recbalanceService.deleteItem(id);
         return Result.success();
     }
 
@@ -51,8 +51,8 @@ public class RecbalanceContorller {
         return Result.success();
     }
 
-    @GetMapping("/unAudit")
-    public Result unAudit(int id){
+    @PostMapping("/unAudit")
+    public Result unAudit(@RequestBody int id){
         recbalanceService.unAudit(id);
         return Result.success();
     }

+ 21 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/FundtransferMapper.java

@@ -0,0 +1,21 @@
+package com.usoftchina.saas.money.mapper;
+
+import com.usoftchina.saas.money.po.Fundtransfer;
+
+import java.util.List;
+
+public interface FundtransferMapper {
+    int deleteByPrimaryKey(Integer ftId);
+    int deleteItem(int id);
+
+    int insert(Fundtransfer record);
+
+    int insertSelective(Fundtransfer record);
+    List<Fundtransfer> selectList();
+
+    Fundtransfer selectByPrimaryKey(Integer ftId);
+
+    int updateByPrimaryKeySelective(Fundtransfer record);
+
+    int updateByPrimaryKey(Fundtransfer record);
+}

+ 18 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/FundtransferdetailMapper.java

@@ -0,0 +1,18 @@
+package com.usoftchina.saas.money.mapper;
+
+import com.usoftchina.saas.money.po.Fundtransferdetail;
+
+public interface FundtransferdetailMapper {
+    int deleteByPrimaryKey(Integer ftdId);
+    int deleteItem(int id);
+
+    int insert(Fundtransferdetail record);
+
+    int insertSelective(Fundtransferdetail record);
+
+    Fundtransferdetail selectByPrimaryKey(Integer ftdId);
+
+    int updateByPrimaryKeySelective(Fundtransferdetail record);
+
+    int updateByPrimaryKey(Fundtransferdetail record);
+}

+ 28 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Fundtran.java

@@ -0,0 +1,28 @@
+package com.usoftchina.saas.money.po;
+
+import java.util.List;
+
+/**
+ * @author heqw
+ * @date 2018/10/25 19:28
+ **/
+public class Fundtran {
+    private Fundtransfer main;
+    private List<Fundtransferdetail> items;
+
+    public Fundtransfer getMain() {
+        return main;
+    }
+
+    public void setMain(Fundtransfer main) {
+        this.main = main;
+    }
+
+    public List<Fundtransferdetail> getItems() {
+        return items;
+    }
+
+    public void setItems(List<Fundtransferdetail> items) {
+        this.items = items;
+    }
+}

+ 175 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Fundtransfer.java

@@ -0,0 +1,175 @@
+package com.usoftchina.saas.money.po;
+
+import java.util.Date;
+
+public class Fundtransfer {
+    private Integer ftId;
+
+    private String ftCode;
+
+    private Date ftDate;
+
+    private Integer ftRecorderid;
+
+    private String ftRecorder;
+
+    private Date ftRecorddate;
+
+    private String ftStatus;
+
+    private String ftStatuscode;
+
+    private String ftRemark;
+
+    private Integer companyid;
+
+    private Integer updaterid;
+
+    private Date updatedate;
+
+    private String ftText1;
+
+    private String ftText2;
+
+    private String ftText3;
+
+    private String ftText4;
+
+    private String ftText5;
+
+    public Integer getFtId() {
+        return ftId;
+    }
+
+    public void setFtId(Integer ftId) {
+        this.ftId = ftId;
+    }
+
+    public String getFtCode() {
+        return ftCode;
+    }
+
+    public void setFtCode(String ftCode) {
+        this.ftCode = ftCode == null ? null : ftCode.trim();
+    }
+
+    public Date getFtDate() {
+        return ftDate;
+    }
+
+    public void setFtDate(Date ftDate) {
+        this.ftDate = ftDate;
+    }
+
+    public Integer getFtRecorderid() {
+        return ftRecorderid;
+    }
+
+    public void setFtRecorderid(Integer ftRecorderid) {
+        this.ftRecorderid = ftRecorderid;
+    }
+
+    public String getFtRecorder() {
+        return ftRecorder;
+    }
+
+    public void setFtRecorder(String ftRecorder) {
+        this.ftRecorder = ftRecorder == null ? null : ftRecorder.trim();
+    }
+
+    public Date getFtRecorddate() {
+        return ftRecorddate;
+    }
+
+    public void setFtRecorddate(Date ftRecorddate) {
+        this.ftRecorddate = ftRecorddate;
+    }
+
+    public String getFtStatus() {
+        return ftStatus;
+    }
+
+    public void setFtStatus(String ftStatus) {
+        this.ftStatus = ftStatus == null ? null : ftStatus.trim();
+    }
+
+    public String getFtStatuscode() {
+        return ftStatuscode;
+    }
+
+    public void setFtStatuscode(String ftStatuscode) {
+        this.ftStatuscode = ftStatuscode == null ? null : ftStatuscode.trim();
+    }
+
+    public String getFtRemark() {
+        return ftRemark;
+    }
+
+    public void setFtRemark(String ftRemark) {
+        this.ftRemark = ftRemark == null ? null : ftRemark.trim();
+    }
+
+    public Integer getCompanyid() {
+        return companyid;
+    }
+
+    public void setCompanyid(Integer companyid) {
+        this.companyid = companyid;
+    }
+
+    public Integer getUpdaterid() {
+        return updaterid;
+    }
+
+    public void setUpdaterid(Integer updaterid) {
+        this.updaterid = updaterid;
+    }
+
+    public Date getUpdatedate() {
+        return updatedate;
+    }
+
+    public void setUpdatedate(Date updatedate) {
+        this.updatedate = updatedate;
+    }
+
+    public String getFtText1() {
+        return ftText1;
+    }
+
+    public void setFtText1(String ftText1) {
+        this.ftText1 = ftText1 == null ? null : ftText1.trim();
+    }
+
+    public String getFtText2() {
+        return ftText2;
+    }
+
+    public void setFtText2(String ftText2) {
+        this.ftText2 = ftText2 == null ? null : ftText2.trim();
+    }
+
+    public String getFtText3() {
+        return ftText3;
+    }
+
+    public void setFtText3(String ftText3) {
+        this.ftText3 = ftText3 == null ? null : ftText3.trim();
+    }
+
+    public String getFtText4() {
+        return ftText4;
+    }
+
+    public void setFtText4(String ftText4) {
+        this.ftText4 = ftText4 == null ? null : ftText4.trim();
+    }
+
+    public String getFtText5() {
+        return ftText5;
+    }
+
+    public void setFtText5(String ftText5) {
+        this.ftText5 = ftText5 == null ? null : ftText5.trim();
+    }
+}

+ 225 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Fundtransferdetail.java

@@ -0,0 +1,225 @@
+package com.usoftchina.saas.money.po;
+
+import java.util.Date;
+
+public class Fundtransferdetail {
+    private Integer ftdId;
+
+    private Integer ftdFtid;
+
+    private Integer ftdDetno;
+
+    private Integer ftdYm;
+
+    private Integer ftdBankid;
+
+    private String ftdBankcode;
+
+    private String ftdBankname;
+
+    private Integer ftdInbankid;
+
+    private String ftdInbankcode;
+
+    private String ftdInbankname;
+
+    private Double ftdNowbalance;
+
+    private String ftdPaymethod;
+
+    private String ftdPaycode;
+
+    private String ftdRemark;
+
+    private Integer companyid;
+
+    private Integer updaterid;
+
+    private Date updatedate;
+
+    private String ftdText1;
+
+    private String ftdText2;
+
+    private String ftdText3;
+
+    private String ftdText4;
+
+    private String ftdText5;
+
+    public Integer getFtdId() {
+        return ftdId;
+    }
+
+    public void setFtdId(Integer ftdId) {
+        this.ftdId = ftdId;
+    }
+
+    public Integer getFtdFtid() {
+        return ftdFtid;
+    }
+
+    public void setFtdFtid(Integer ftdFtid) {
+        this.ftdFtid = ftdFtid;
+    }
+
+    public Integer getFtdDetno() {
+        return ftdDetno;
+    }
+
+    public void setFtdDetno(Integer ftdDetno) {
+        this.ftdDetno = ftdDetno;
+    }
+
+    public Integer getFtdYm() {
+        return ftdYm;
+    }
+
+    public void setFtdYm(Integer ftdYm) {
+        this.ftdYm = ftdYm;
+    }
+
+    public Integer getFtdBankid() {
+        return ftdBankid;
+    }
+
+    public void setFtdBankid(Integer ftdBankid) {
+        this.ftdBankid = ftdBankid;
+    }
+
+    public String getFtdBankcode() {
+        return ftdBankcode;
+    }
+
+    public void setFtdBankcode(String ftdBankcode) {
+        this.ftdBankcode = ftdBankcode == null ? null : ftdBankcode.trim();
+    }
+
+    public String getFtdBankname() {
+        return ftdBankname;
+    }
+
+    public void setFtdBankname(String ftdBankname) {
+        this.ftdBankname = ftdBankname == null ? null : ftdBankname.trim();
+    }
+
+    public Integer getFtdInbankid() {
+        return ftdInbankid;
+    }
+
+    public void setFtdInbankid(Integer ftdInbankid) {
+        this.ftdInbankid = ftdInbankid;
+    }
+
+    public String getFtdInbankcode() {
+        return ftdInbankcode;
+    }
+
+    public void setFtdInbankcode(String ftdInbankcode) {
+        this.ftdInbankcode = ftdInbankcode == null ? null : ftdInbankcode.trim();
+    }
+
+    public String getFtdInbankname() {
+        return ftdInbankname;
+    }
+
+    public void setFtdInbankname(String ftdInbankname) {
+        this.ftdInbankname = ftdInbankname == null ? null : ftdInbankname.trim();
+    }
+
+    public Double getFtdNowbalance() {
+        return ftdNowbalance;
+    }
+
+    public void setFtdNowbalance(Double ftdNowbalance) {
+        this.ftdNowbalance = ftdNowbalance;
+    }
+
+    public String getFtdPaymethod() {
+        return ftdPaymethod;
+    }
+
+    public void setFtdPaymethod(String ftdPaymethod) {
+        this.ftdPaymethod = ftdPaymethod == null ? null : ftdPaymethod.trim();
+    }
+
+    public String getFtdPaycode() {
+        return ftdPaycode;
+    }
+
+    public void setFtdPaycode(String ftdPaycode) {
+        this.ftdPaycode = ftdPaycode == null ? null : ftdPaycode.trim();
+    }
+
+    public String getFtdRemark() {
+        return ftdRemark;
+    }
+
+    public void setFtdRemark(String ftdRemark) {
+        this.ftdRemark = ftdRemark == null ? null : ftdRemark.trim();
+    }
+
+    public Integer getCompanyid() {
+        return companyid;
+    }
+
+    public void setCompanyid(Integer companyid) {
+        this.companyid = companyid;
+    }
+
+    public Integer getUpdaterid() {
+        return updaterid;
+    }
+
+    public void setUpdaterid(Integer updaterid) {
+        this.updaterid = updaterid;
+    }
+
+    public Date getUpdatedate() {
+        return updatedate;
+    }
+
+    public void setUpdatedate(Date updatedate) {
+        this.updatedate = updatedate;
+    }
+
+    public String getFtdText1() {
+        return ftdText1;
+    }
+
+    public void setFtdText1(String ftdText1) {
+        this.ftdText1 = ftdText1 == null ? null : ftdText1.trim();
+    }
+
+    public String getFtdText2() {
+        return ftdText2;
+    }
+
+    public void setFtdText2(String ftdText2) {
+        this.ftdText2 = ftdText2 == null ? null : ftdText2.trim();
+    }
+
+    public String getFtdText3() {
+        return ftdText3;
+    }
+
+    public void setFtdText3(String ftdText3) {
+        this.ftdText3 = ftdText3 == null ? null : ftdText3.trim();
+    }
+
+    public String getFtdText4() {
+        return ftdText4;
+    }
+
+    public void setFtdText4(String ftdText4) {
+        this.ftdText4 = ftdText4 == null ? null : ftdText4.trim();
+    }
+
+    public String getFtdText5() {
+        return ftdText5;
+    }
+
+    public void setFtdText5(String ftdText5) {
+        this.ftdText5 = ftdText5 == null ? null : ftdText5.trim();
+    }
+}

+ 24 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/FundtransferService.java

@@ -0,0 +1,24 @@
+package com.usoftchina.saas.money.service;
+
+import com.github.pagehelper.PageInfo;
+import com.usoftchina.saas.money.po.Fundtran;
+import com.usoftchina.saas.money.po.Fundtransfer;
+import com.usoftchina.saas.page.PageRequest;
+
+/**
+ * @author heqw
+ * @date 2018/10/25 19:26
+ **/
+public interface FundtransferService {
+    int insert(Fundtran fundtran);
+
+    void audit(Fundtran fundtran);
+
+    void unAudit(int id);
+
+    void delete(int id);
+
+    Fundtran select(int id);
+
+    PageInfo<Fundtransfer> selectList(PageRequest page);
+}

+ 1 - 1
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/OthspendingsService.java

@@ -17,7 +17,7 @@ public interface OthspendingsService {
 
     void delete(int id);
 
-    void delectItem(int id);
+    void deleteItem(int id);
 
     Othsp select(int id);
 

+ 1 - 1
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/PaybalanceService.java

@@ -19,7 +19,7 @@ public interface PaybalanceService {
 
     void delete(int id);
 
-    void delectItem(int id);
+    void deleteItem(int id);
 
     Pay select(int id);
 

+ 4 - 1
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/RecbalanceService.java

@@ -13,9 +13,12 @@ import com.usoftchina.saas.page.PageRequest;
 public interface RecbalanceService {
     int insert(Rec rec);
     void delect(int id);
-    void delectItem(int id);
+
+    void deleteItem(int id);
+
     Rec select(int id);
 
+
     void audit(Rec rec);
 
     void unAudit(int id);

+ 106 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/FundtransferServiceImpl.java

@@ -0,0 +1,106 @@
+package com.usoftchina.saas.money.service.impl;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import com.usoftchina.saas.commons.po.Status;
+import com.usoftchina.saas.money.mapper.FundtransferMapper;
+import com.usoftchina.saas.money.mapper.FundtransferdetailMapper;
+import com.usoftchina.saas.money.po.Fundtran;
+import com.usoftchina.saas.money.po.Fundtransfer;
+import com.usoftchina.saas.money.po.Fundtransferdetail;
+import com.usoftchina.saas.money.service.FundtransferService;
+import com.usoftchina.saas.page.PageRequest;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.Iterator;
+import java.util.List;
+
+/**
+ * @author heqw
+ * @date 2018/10/25 19:32
+ **/
+@Service
+public class FundtransferServiceImpl implements FundtransferService {
+    @Autowired
+    private FundtransferMapper fundtransferMapper;
+    @Autowired
+    private FundtransferdetailMapper fundtransferdetailMapper;
+
+    @Override
+    public int insert(Fundtran fundtran) {
+        Fundtransfer fundtransfer = fundtran.getMain();
+        List<Fundtransferdetail> fundtransferdetails = fundtran.getItems();
+
+        if (fundtransfer.getFtId() > 0){
+            fundtransferMapper.updateByPrimaryKeySelective(fundtransfer);
+        }else {
+            fundtransferMapper.insert(fundtransfer);
+        }
+
+        Iterator isdet = fundtransferdetails.iterator();
+        while (isdet.hasNext()){
+            Fundtransferdetail fundtransferdetail= (Fundtransferdetail) isdet.next();
+            if (fundtransferdetail.getFtdId() > 0 ){
+                fundtransferdetailMapper.updateByPrimaryKey(fundtransferdetail);
+            }else {
+                fundtransferdetailMapper.insertSelective(fundtransferdetail);
+            }
+        }
+        return 0;
+    }
+
+    @Override
+    public void audit(Fundtran fundtran) {
+        int id = fundtran.getMain().getFtId();
+        Fundtransfer fundtransfer = fundtransferMapper.selectByPrimaryKey(id);
+        if ( fundtransfer == null || "".equals(fundtransfer)){
+            this.insert(fundtran);
+        }else {
+            fundtransferMapper.updateByPrimaryKey(fundtransfer);
+        }
+    }
+
+    @Override
+    public void unAudit(int id) {
+        Fundtransfer fundtransfer = new Fundtransfer();
+        fundtransfer.setFtId(id);
+        fundtransfer.setFtStatus(com.usoftchina.saas.commons.po.Status.UNAUDITED.getDisplay());
+        fundtransfer.setFtStatuscode(Status.UNAUDITED.name());
+        fundtransferMapper.updateByPrimaryKey(fundtransfer);
+    }
+
+
+    @Override
+    public void delete(int id) {
+        fundtransferMapper.deleteByPrimaryKey(id);
+        fundtransferdetailMapper.deleteByPrimaryKey(id);
+    }
+
+    public void deleteItem(int id) {
+        fundtransferdetailMapper.deleteItem(id);
+    }
+
+    @Override
+    public Fundtran select(int id) {
+        Fundtran fundtran = new Fundtran();
+        fundtran.setMain(fundtransferMapper.selectByPrimaryKey(id));
+        fundtran.setItems((List<Fundtransferdetail>) fundtransferdetailMapper.selectByPrimaryKey(id));
+        return fundtran;
+    }
+
+    @Override
+    public PageInfo<Fundtransfer> selectList(PageRequest page) {
+        //设置默认分页
+        if (null == page || page.getSize() == 0 || page.getNumber() == 0) {
+            page = new PageRequest();
+            page.setNumber(1);
+            page.setSize(10);
+        }
+        PageHelper.startPage(page.getNumber(), page.getSize());
+        List<Fundtransfer> fundtransfers = fundtransferMapper.selectList();
+        //取分页信息
+        PageInfo<Fundtransfer> pageInfo = new PageInfo<>(fundtransfers);
+        return pageInfo;
+    }
+}

+ 1 - 1
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/OthspendingsServiceImpl.java

@@ -57,7 +57,7 @@ public class OthspendingsServiceImpl implements OthspendingsService {
     }
 
     @Override
-    public void delectItem(int id) {
+    public void deleteItem(int id) {
         othspendingsdetailMapper.deleteItem(id);
     }
 

+ 1 - 1
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/PaybalanceServiceImpl.java

@@ -89,7 +89,7 @@ public class PaybalanceServiceImpl implements PaybalanceService {
     }
 
     @Override
-    public void delectItem(int id) {
+    public void deleteItem(int id) {
         paybalancedetailMapper.deleteItem(id);
         paybalancedetMapper.deleteItem(id);
     }

+ 6 - 6
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/RecbalanceServiceImpl.java

@@ -70,12 +70,6 @@ public class RecbalanceServiceImpl implements RecbalanceService {
         recbalancedetailMapper.deleteByPrimaryKey(id);
     }
 
-    @Override
-    public void delectItem(int id) {
-        recbalancedetMapper.deleteItem(id);
-        recbalancedetailMapper.deleteItem(id);
-    }
-
     @Override
     public Rec select(int id) {
         Recbalance recbalance = recbalanceMapper.selectByPrimaryKey(id);
@@ -88,6 +82,12 @@ public class RecbalanceServiceImpl implements RecbalanceService {
         return rec;
     }
 
+    @Override
+    public void deleteItem(int id) {
+        recbalancedetailMapper.deleteItem(id);
+        recbalancedetMapper.deleteItem(id);
+    }
+
     @Override
     public void audit(Rec rec) {
         int id = rec.getMain().getRb_id();

+ 241 - 0
applications/money/money-server/src/main/resources/mapper/FundtransferMapper.xml

@@ -0,0 +1,241 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.usoftchina.saas.money.mapper.FundtransferMapper" >
+  <resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Fundtransfer" >
+    <id column="ft_id" property="ftId" jdbcType="INTEGER" />
+    <result column="ft_code" property="ftCode" jdbcType="VARCHAR" />
+    <result column="ft_date" property="ftDate" jdbcType="TIMESTAMP" />
+    <result column="ft_recorderid" property="ftRecorderid" jdbcType="INTEGER" />
+    <result column="ft_recorder" property="ftRecorder" jdbcType="VARCHAR" />
+    <result column="ft_recorddate" property="ftRecorddate" jdbcType="TIMESTAMP" />
+    <result column="ft_status" property="ftStatus" jdbcType="VARCHAR" />
+    <result column="ft_statuscode" property="ftStatuscode" jdbcType="VARCHAR" />
+    <result column="ft_remark" property="ftRemark" jdbcType="VARCHAR" />
+    <result column="companyid" property="companyid" jdbcType="INTEGER" />
+    <result column="updaterId" property="updaterid" jdbcType="INTEGER" />
+    <result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
+    <result column="ft_text1" property="ftText1" jdbcType="VARCHAR" />
+    <result column="ft_text2" property="ftText2" jdbcType="VARCHAR" />
+    <result column="ft_text3" property="ftText3" jdbcType="VARCHAR" />
+    <result column="ft_text4" property="ftText4" jdbcType="VARCHAR" />
+    <result column="ft_text5" property="ftText5" jdbcType="VARCHAR" />
+  </resultMap>
+  <sql id="Base_Column_List" >
+    ft_id, ft_code, ft_date, ft_recorderid, ft_recorder, ft_recorddate, ft_status, ft_statuscode, 
+    ft_remark, companyid, updaterId, updatedate, ft_text1, ft_text2, ft_text3, ft_text4, 
+    ft_text5
+  </sql>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from fundtransfer
+    where ft_id = #{ftId,jdbcType=INTEGER}
+  </select>
+
+  <select id="selectList" resultMap="BaseResultMap" >
+    select
+    <include refid="Base_Column_List" />
+    from fundtransfer
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from fundtransfer
+    where ft_id = #{ftId,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.usoftchina.saas.money.po.Fundtransfer" >
+    insert into fundtransfer (ft_id, ft_code, ft_date, 
+      ft_recorderid, ft_recorder, ft_recorddate, 
+      ft_status, ft_statuscode, ft_remark, 
+      companyid, updaterId, updatedate, 
+      ft_text1, ft_text2, ft_text3, 
+      ft_text4, ft_text5)
+    values (#{ftId,jdbcType=INTEGER}, #{ftCode,jdbcType=VARCHAR}, #{ftDate,jdbcType=TIMESTAMP}, 
+      #{ftRecorderid,jdbcType=INTEGER}, #{ftRecorder,jdbcType=VARCHAR}, #{ftRecorddate,jdbcType=TIMESTAMP}, 
+      #{ftStatus,jdbcType=VARCHAR}, #{ftStatuscode,jdbcType=VARCHAR}, #{ftRemark,jdbcType=VARCHAR}, 
+      #{companyid,jdbcType=INTEGER}, #{updaterid,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}, 
+      #{ftText1,jdbcType=VARCHAR}, #{ftText2,jdbcType=VARCHAR}, #{ftText3,jdbcType=VARCHAR}, 
+      #{ftText4,jdbcType=VARCHAR}, #{ftText5,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Fundtransfer" >
+    insert into fundtransfer
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="ftId != null" >
+        ft_id,
+      </if>
+      <if test="ftCode != null" >
+        ft_code,
+      </if>
+      <if test="ftDate != null" >
+        ft_date,
+      </if>
+      <if test="ftRecorderid != null" >
+        ft_recorderid,
+      </if>
+      <if test="ftRecorder != null" >
+        ft_recorder,
+      </if>
+      <if test="ftRecorddate != null" >
+        ft_recorddate,
+      </if>
+      <if test="ftStatus != null" >
+        ft_status,
+      </if>
+      <if test="ftStatuscode != null" >
+        ft_statuscode,
+      </if>
+      <if test="ftRemark != null" >
+        ft_remark,
+      </if>
+      <if test="companyid != null" >
+        companyid,
+      </if>
+      <if test="updaterid != null" >
+        updaterId,
+      </if>
+      <if test="updatedate != null" >
+        updatedate,
+      </if>
+      <if test="ftText1 != null" >
+        ft_text1,
+      </if>
+      <if test="ftText2 != null" >
+        ft_text2,
+      </if>
+      <if test="ftText3 != null" >
+        ft_text3,
+      </if>
+      <if test="ftText4 != null" >
+        ft_text4,
+      </if>
+      <if test="ftText5 != null" >
+        ft_text5,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="ftId != null" >
+        #{ftId,jdbcType=INTEGER},
+      </if>
+      <if test="ftCode != null" >
+        #{ftCode,jdbcType=VARCHAR},
+      </if>
+      <if test="ftDate != null" >
+        #{ftDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="ftRecorderid != null" >
+        #{ftRecorderid,jdbcType=INTEGER},
+      </if>
+      <if test="ftRecorder != null" >
+        #{ftRecorder,jdbcType=VARCHAR},
+      </if>
+      <if test="ftRecorddate != null" >
+        #{ftRecorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="ftStatus != null" >
+        #{ftStatus,jdbcType=VARCHAR},
+      </if>
+      <if test="ftStatuscode != null" >
+        #{ftStatuscode,jdbcType=VARCHAR},
+      </if>
+      <if test="ftRemark != null" >
+        #{ftRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="companyid != null" >
+        #{companyid,jdbcType=INTEGER},
+      </if>
+      <if test="updaterid != null" >
+        #{updaterid,jdbcType=INTEGER},
+      </if>
+      <if test="updatedate != null" >
+        #{updatedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="ftText1 != null" >
+        #{ftText1,jdbcType=VARCHAR},
+      </if>
+      <if test="ftText2 != null" >
+        #{ftText2,jdbcType=VARCHAR},
+      </if>
+      <if test="ftText3 != null" >
+        #{ftText3,jdbcType=VARCHAR},
+      </if>
+      <if test="ftText4 != null" >
+        #{ftText4,jdbcType=VARCHAR},
+      </if>
+      <if test="ftText5 != null" >
+        #{ftText5,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Fundtransfer" >
+    update fundtransfer
+    <set >
+      <if test="ftCode != null" >
+        ft_code = #{ftCode,jdbcType=VARCHAR},
+      </if>
+      <if test="ftDate != null" >
+        ft_date = #{ftDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="ftRecorderid != null" >
+        ft_recorderid = #{ftRecorderid,jdbcType=INTEGER},
+      </if>
+      <if test="ftRecorder != null" >
+        ft_recorder = #{ftRecorder,jdbcType=VARCHAR},
+      </if>
+      <if test="ftRecorddate != null" >
+        ft_recorddate = #{ftRecorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="ftStatus != null" >
+        ft_status = #{ftStatus,jdbcType=VARCHAR},
+      </if>
+      <if test="ftStatuscode != null" >
+        ft_statuscode = #{ftStatuscode,jdbcType=VARCHAR},
+      </if>
+      <if test="ftRemark != null" >
+        ft_remark = #{ftRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="companyid != null" >
+        companyid = #{companyid,jdbcType=INTEGER},
+      </if>
+      <if test="updaterid != null" >
+        updaterId = #{updaterid,jdbcType=INTEGER},
+      </if>
+      <if test="updatedate != null" >
+        updatedate = #{updatedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="ftText1 != null" >
+        ft_text1 = #{ftText1,jdbcType=VARCHAR},
+      </if>
+      <if test="ftText2 != null" >
+        ft_text2 = #{ftText2,jdbcType=VARCHAR},
+      </if>
+      <if test="ftText3 != null" >
+        ft_text3 = #{ftText3,jdbcType=VARCHAR},
+      </if>
+      <if test="ftText4 != null" >
+        ft_text4 = #{ftText4,jdbcType=VARCHAR},
+      </if>
+      <if test="ftText5 != null" >
+        ft_text5 = #{ftText5,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where ft_id = #{ftId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.money.po.Fundtransfer" >
+    update fundtransfer
+    set ft_code = #{ftCode,jdbcType=VARCHAR},
+      ft_date = #{ftDate,jdbcType=TIMESTAMP},
+      ft_recorderid = #{ftRecorderid,jdbcType=INTEGER},
+      ft_recorder = #{ftRecorder,jdbcType=VARCHAR},
+      ft_recorddate = #{ftRecorddate,jdbcType=TIMESTAMP},
+      ft_status = #{ftStatus,jdbcType=VARCHAR},
+      ft_statuscode = #{ftStatuscode,jdbcType=VARCHAR},
+      ft_remark = #{ftRemark,jdbcType=VARCHAR},
+      companyid = #{companyid,jdbcType=INTEGER},
+      updaterId = #{updaterid,jdbcType=INTEGER},
+      updatedate = #{updatedate,jdbcType=TIMESTAMP},
+      ft_text1 = #{ftText1,jdbcType=VARCHAR},
+      ft_text2 = #{ftText2,jdbcType=VARCHAR},
+      ft_text3 = #{ftText3,jdbcType=VARCHAR},
+      ft_text4 = #{ftText4,jdbcType=VARCHAR},
+      ft_text5 = #{ftText5,jdbcType=VARCHAR}
+    where ft_id = #{ftId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 300 - 0
applications/money/money-server/src/main/resources/mapper/FundtransferdetailMapper.xml

@@ -0,0 +1,300 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.usoftchina.saas.money.mapper.FundtransferdetailMapper" >
+  <resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Fundtransferdetail" >
+    <id column="ftd_id" property="ftdId" jdbcType="INTEGER" />
+    <result column="ftd_ftid" property="ftdFtid" jdbcType="INTEGER" />
+    <result column="ftd_detno" property="ftdDetno" jdbcType="INTEGER" />
+    <result column="ftd_ym" property="ftdYm" jdbcType="INTEGER" />
+    <result column="ftd_bankid" property="ftdBankid" jdbcType="INTEGER" />
+    <result column="ftd_bankcode" property="ftdBankcode" jdbcType="VARCHAR" />
+    <result column="ftd_bankname" property="ftdBankname" jdbcType="VARCHAR" />
+    <result column="ftd_inbankid" property="ftdInbankid" jdbcType="INTEGER" />
+    <result column="ftd_inbankcode" property="ftdInbankcode" jdbcType="VARCHAR" />
+    <result column="ftd_inbankname" property="ftdInbankname" jdbcType="VARCHAR" />
+    <result column="ftd_nowbalance" property="ftdNowbalance" jdbcType="DOUBLE" />
+    <result column="ftd_paymethod" property="ftdPaymethod" jdbcType="VARCHAR" />
+    <result column="ftd_paycode" property="ftdPaycode" jdbcType="VARCHAR" />
+    <result column="ftd_remark" property="ftdRemark" jdbcType="VARCHAR" />
+    <result column="companyid" property="companyid" jdbcType="INTEGER" />
+    <result column="updaterId" property="updaterid" jdbcType="INTEGER" />
+    <result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
+    <result column="ftd_text1" property="ftdText1" jdbcType="VARCHAR" />
+    <result column="ftd_text2" property="ftdText2" jdbcType="VARCHAR" />
+    <result column="ftd_text3" property="ftdText3" jdbcType="VARCHAR" />
+    <result column="ftd_text4" property="ftdText4" jdbcType="VARCHAR" />
+    <result column="ftd_text5" property="ftdText5" jdbcType="VARCHAR" />
+  </resultMap>
+  <sql id="Base_Column_List" >
+    ftd_id, ftd_ftid, ftd_detno, ftd_ym, ftd_bankid, ftd_bankcode, ftd_bankname, ftd_inbankid, 
+    ftd_inbankcode, ftd_inbankname, ftd_nowbalance, ftd_paymethod, ftd_paycode, ftd_remark, 
+    companyid, updaterId, updatedate, ftd_text1, ftd_text2, ftd_text3, ftd_text4, ftd_text5
+  </sql>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from fundtransferdetail
+    where ftd_id = #{ftdId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from fundtransferdetail
+    where ftd_id = #{ftdId,jdbcType=INTEGER}
+  </delete>
+
+  <delete id="deleteItem" parameterType="java.lang.Integer" >
+    delete from fundtransferdetail
+    where ftd_ftid = #{ftdFtid,jdbcType=INTEGER}
+  </delete>
+
+  <insert id="insert" parameterType="com.usoftchina.saas.money.po.Fundtransferdetail" >
+    insert into fundtransferdetail (ftd_id, ftd_ftid, ftd_detno, 
+      ftd_ym, ftd_bankid, ftd_bankcode, 
+      ftd_bankname, ftd_inbankid, ftd_inbankcode, 
+      ftd_inbankname, ftd_nowbalance, ftd_paymethod, 
+      ftd_paycode, ftd_remark, companyid, 
+      updaterId, updatedate, ftd_text1, 
+      ftd_text2, ftd_text3, ftd_text4, 
+      ftd_text5)
+    values (#{ftdId,jdbcType=INTEGER}, #{ftdFtid,jdbcType=INTEGER}, #{ftdDetno,jdbcType=INTEGER}, 
+      #{ftdYm,jdbcType=INTEGER}, #{ftdBankid,jdbcType=INTEGER}, #{ftdBankcode,jdbcType=VARCHAR}, 
+      #{ftdBankname,jdbcType=VARCHAR}, #{ftdInbankid,jdbcType=INTEGER}, #{ftdInbankcode,jdbcType=VARCHAR}, 
+      #{ftdInbankname,jdbcType=VARCHAR}, #{ftdNowbalance,jdbcType=DOUBLE}, #{ftdPaymethod,jdbcType=VARCHAR}, 
+      #{ftdPaycode,jdbcType=VARCHAR}, #{ftdRemark,jdbcType=VARCHAR}, #{companyid,jdbcType=INTEGER}, 
+      #{updaterid,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}, #{ftdText1,jdbcType=VARCHAR}, 
+      #{ftdText2,jdbcType=VARCHAR}, #{ftdText3,jdbcType=VARCHAR}, #{ftdText4,jdbcType=VARCHAR}, 
+      #{ftdText5,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Fundtransferdetail" >
+    insert into fundtransferdetail
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="ftdId != null" >
+        ftd_id,
+      </if>
+      <if test="ftdFtid != null" >
+        ftd_ftid,
+      </if>
+      <if test="ftdDetno != null" >
+        ftd_detno,
+      </if>
+      <if test="ftdYm != null" >
+        ftd_ym,
+      </if>
+      <if test="ftdBankid != null" >
+        ftd_bankid,
+      </if>
+      <if test="ftdBankcode != null" >
+        ftd_bankcode,
+      </if>
+      <if test="ftdBankname != null" >
+        ftd_bankname,
+      </if>
+      <if test="ftdInbankid != null" >
+        ftd_inbankid,
+      </if>
+      <if test="ftdInbankcode != null" >
+        ftd_inbankcode,
+      </if>
+      <if test="ftdInbankname != null" >
+        ftd_inbankname,
+      </if>
+      <if test="ftdNowbalance != null" >
+        ftd_nowbalance,
+      </if>
+      <if test="ftdPaymethod != null" >
+        ftd_paymethod,
+      </if>
+      <if test="ftdPaycode != null" >
+        ftd_paycode,
+      </if>
+      <if test="ftdRemark != null" >
+        ftd_remark,
+      </if>
+      <if test="companyid != null" >
+        companyid,
+      </if>
+      <if test="updaterid != null" >
+        updaterId,
+      </if>
+      <if test="updatedate != null" >
+        updatedate,
+      </if>
+      <if test="ftdText1 != null" >
+        ftd_text1,
+      </if>
+      <if test="ftdText2 != null" >
+        ftd_text2,
+      </if>
+      <if test="ftdText3 != null" >
+        ftd_text3,
+      </if>
+      <if test="ftdText4 != null" >
+        ftd_text4,
+      </if>
+      <if test="ftdText5 != null" >
+        ftd_text5,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="ftdId != null" >
+        #{ftdId,jdbcType=INTEGER},
+      </if>
+      <if test="ftdFtid != null" >
+        #{ftdFtid,jdbcType=INTEGER},
+      </if>
+      <if test="ftdDetno != null" >
+        #{ftdDetno,jdbcType=INTEGER},
+      </if>
+      <if test="ftdYm != null" >
+        #{ftdYm,jdbcType=INTEGER},
+      </if>
+      <if test="ftdBankid != null" >
+        #{ftdBankid,jdbcType=INTEGER},
+      </if>
+      <if test="ftdBankcode != null" >
+        #{ftdBankcode,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdBankname != null" >
+        #{ftdBankname,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdInbankid != null" >
+        #{ftdInbankid,jdbcType=INTEGER},
+      </if>
+      <if test="ftdInbankcode != null" >
+        #{ftdInbankcode,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdInbankname != null" >
+        #{ftdInbankname,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdNowbalance != null" >
+        #{ftdNowbalance,jdbcType=DOUBLE},
+      </if>
+      <if test="ftdPaymethod != null" >
+        #{ftdPaymethod,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdPaycode != null" >
+        #{ftdPaycode,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdRemark != null" >
+        #{ftdRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="companyid != null" >
+        #{companyid,jdbcType=INTEGER},
+      </if>
+      <if test="updaterid != null" >
+        #{updaterid,jdbcType=INTEGER},
+      </if>
+      <if test="updatedate != null" >
+        #{updatedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="ftdText1 != null" >
+        #{ftdText1,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdText2 != null" >
+        #{ftdText2,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdText3 != null" >
+        #{ftdText3,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdText4 != null" >
+        #{ftdText4,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdText5 != null" >
+        #{ftdText5,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Fundtransferdetail" >
+    update fundtransferdetail
+    <set >
+      <if test="ftdFtid != null" >
+        ftd_ftid = #{ftdFtid,jdbcType=INTEGER},
+      </if>
+      <if test="ftdDetno != null" >
+        ftd_detno = #{ftdDetno,jdbcType=INTEGER},
+      </if>
+      <if test="ftdYm != null" >
+        ftd_ym = #{ftdYm,jdbcType=INTEGER},
+      </if>
+      <if test="ftdBankid != null" >
+        ftd_bankid = #{ftdBankid,jdbcType=INTEGER},
+      </if>
+      <if test="ftdBankcode != null" >
+        ftd_bankcode = #{ftdBankcode,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdBankname != null" >
+        ftd_bankname = #{ftdBankname,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdInbankid != null" >
+        ftd_inbankid = #{ftdInbankid,jdbcType=INTEGER},
+      </if>
+      <if test="ftdInbankcode != null" >
+        ftd_inbankcode = #{ftdInbankcode,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdInbankname != null" >
+        ftd_inbankname = #{ftdInbankname,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdNowbalance != null" >
+        ftd_nowbalance = #{ftdNowbalance,jdbcType=DOUBLE},
+      </if>
+      <if test="ftdPaymethod != null" >
+        ftd_paymethod = #{ftdPaymethod,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdPaycode != null" >
+        ftd_paycode = #{ftdPaycode,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdRemark != null" >
+        ftd_remark = #{ftdRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="companyid != null" >
+        companyid = #{companyid,jdbcType=INTEGER},
+      </if>
+      <if test="updaterid != null" >
+        updaterId = #{updaterid,jdbcType=INTEGER},
+      </if>
+      <if test="updatedate != null" >
+        updatedate = #{updatedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="ftdText1 != null" >
+        ftd_text1 = #{ftdText1,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdText2 != null" >
+        ftd_text2 = #{ftdText2,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdText3 != null" >
+        ftd_text3 = #{ftdText3,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdText4 != null" >
+        ftd_text4 = #{ftdText4,jdbcType=VARCHAR},
+      </if>
+      <if test="ftdText5 != null" >
+        ftd_text5 = #{ftdText5,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where ftd_id = #{ftdId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.money.po.Fundtransferdetail" >
+    update fundtransferdetail
+    set ftd_ftid = #{ftdFtid,jdbcType=INTEGER},
+      ftd_detno = #{ftdDetno,jdbcType=INTEGER},
+      ftd_ym = #{ftdYm,jdbcType=INTEGER},
+      ftd_bankid = #{ftdBankid,jdbcType=INTEGER},
+      ftd_bankcode = #{ftdBankcode,jdbcType=VARCHAR},
+      ftd_bankname = #{ftdBankname,jdbcType=VARCHAR},
+      ftd_inbankid = #{ftdInbankid,jdbcType=INTEGER},
+      ftd_inbankcode = #{ftdInbankcode,jdbcType=VARCHAR},
+      ftd_inbankname = #{ftdInbankname,jdbcType=VARCHAR},
+      ftd_nowbalance = #{ftdNowbalance,jdbcType=DOUBLE},
+      ftd_paymethod = #{ftdPaymethod,jdbcType=VARCHAR},
+      ftd_paycode = #{ftdPaycode,jdbcType=VARCHAR},
+      ftd_remark = #{ftdRemark,jdbcType=VARCHAR},
+      companyid = #{companyid,jdbcType=INTEGER},
+      updaterId = #{updaterid,jdbcType=INTEGER},
+      updatedate = #{updatedate,jdbcType=TIMESTAMP},
+      ftd_text1 = #{ftdText1,jdbcType=VARCHAR},
+      ftd_text2 = #{ftdText2,jdbcType=VARCHAR},
+      ftd_text3 = #{ftdText3,jdbcType=VARCHAR},
+      ftd_text4 = #{ftdText4,jdbcType=VARCHAR},
+      ftd_text5 = #{ftdText5,jdbcType=VARCHAR}
+    where ftd_id = #{ftdId,jdbcType=INTEGER}
+  </update>
+</mapper>