Bladeren bron

增加手动批量划扣功能

liuj 3 dagen geleden
bovenliggende
commit
0faa99427b

+ 19 - 5
src/main/java/com/sunxung/factoring/web/smb/FinancingReconciliationInfoController.java

@@ -1,18 +1,17 @@
 package com.sunxung.factoring.web.smb;
 
-
 import com.sunxung.factoring.entity.GridPage;
 import com.sunxung.factoring.entity.ResponseJson;
 import com.sunxung.factoring.entity.smb.FinancingReconciliationInfo;
 import com.sunxung.factoring.entity.smb.vo.FinancingReconciliationInfoSearch;
 import com.sunxung.factoring.service.smb.IFinancingReconciliationInfoService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
-
-import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RestController;
 
-import java.util.List;
+import java.time.LocalDate;
+import java.time.format.DateTimeFormatter;
 
 /**
  * 资方对账记录 前端控制器
@@ -29,11 +28,26 @@ public class FinancingReconciliationInfoController {
 
     /**
      * 根据条件查询
+     *
      * @param search
      * @return
      */
     @RequestMapping("findBySearch")
-    public GridPage<FinancingReconciliationInfo> findBySearch(FinancingReconciliationInfoSearch search){
+    public GridPage<FinancingReconciliationInfo> findBySearch(FinancingReconciliationInfoSearch search) {
         return financingReconciliationInfoService.findBySearch(search);
     }
+
+    /**
+     * 批量划扣手动处理
+     *
+     * @param
+     * @return
+     */
+    @GetMapping("repaymentFileProcess")
+    public ResponseJson<String> repaymentFileProcess(String dateStr) {
+        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
+        LocalDate localDate = LocalDate.parse(dateStr, formatter);
+        financingReconciliationInfoService.repaymentFileProcess(localDate);
+        return new ResponseJson<>("处理成功!");
+    }
 }

+ 1 - 1
src/main/resources/application-prod.yml

@@ -240,5 +240,5 @@ smb:
   sys-code: V2CV62Lw
   platform-code: EOLBIMS
   cert-file-path: D:/smb_ssl/
-  sftp-path: D:/freeFTPd/sftproot/smb_prod/trade
+  sftp-path: D:/freeFTPd/sptproot/smb_prod/trade
   file-url: https://fsofts.smb956101.com:2443/fsofts/

+ 4 - 0
src/main/resources/data/update/smb0826.sql

@@ -114,3 +114,7 @@ ALTER TABLE `invoice_his_goods_info` MODIFY `open_amount` decimal(17,4) DEFAULT
 ALTER TABLE `c_sales_invoice_info` MODIFY `amount` decimal(17,4) DEFAULT NULL COMMENT '金额';
 ALTER TABLE `c_sales_invoice_info` MODIFY `tax_amount` decimal(17,4) DEFAULT NULL COMMENT '税额';
 ALTER TABLE `c_sales_invoice_info` MODIFY `price_tax_total` decimal(17,4) DEFAULT NULL COMMENT '价税合计';
+
+-- 资方对账列表权限
+INSERT INTO `t_permission`( `parentId`, `type`, `cname`, `ename`, `gradation`, `moduleName`, `url`, `icon`, `user_create`, `user_modified`, `gmt_create`, `gmt_modified`)
+VALUES ( (select t.id from t_permission t where t.ename = 'CapitalBillRecord'), 'button', '手动处理批量划扣', 'manuallyBatchDeduction', 0, ' 资方对账列表', null, NULL, NULL, NULL, now(), now());