|
@@ -1,18 +1,17 @@
|
|
package com.sunxung.factoring.web.smb;
|
|
package com.sunxung.factoring.web.smb;
|
|
|
|
|
|
-
|
|
|
|
import com.sunxung.factoring.entity.GridPage;
|
|
import com.sunxung.factoring.entity.GridPage;
|
|
import com.sunxung.factoring.entity.ResponseJson;
|
|
import com.sunxung.factoring.entity.ResponseJson;
|
|
import com.sunxung.factoring.entity.smb.FinancingReconciliationInfo;
|
|
import com.sunxung.factoring.entity.smb.FinancingReconciliationInfo;
|
|
import com.sunxung.factoring.entity.smb.vo.FinancingReconciliationInfoSearch;
|
|
import com.sunxung.factoring.entity.smb.vo.FinancingReconciliationInfoSearch;
|
|
import com.sunxung.factoring.service.smb.IFinancingReconciliationInfoService;
|
|
import com.sunxung.factoring.service.smb.IFinancingReconciliationInfoService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
-
|
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
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
|
|
* @param search
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping("findBySearch")
|
|
@RequestMapping("findBySearch")
|
|
- public GridPage<FinancingReconciliationInfo> findBySearch(FinancingReconciliationInfoSearch search){
|
|
|
|
|
|
+ public GridPage<FinancingReconciliationInfo> findBySearch(FinancingReconciliationInfoSearch search) {
|
|
return financingReconciliationInfoService.findBySearch(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<>("处理成功!");
|
|
|
|
+ }
|
|
}
|
|
}
|