| | |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.cwgl.domain.FundFlow; |
| | | import com.ruoyi.cwgl.service.IFundFlowService; |
| | | import com.ruoyi.cwgl.service.ICmbsBankSyncService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | |
| | | @Autowired |
| | | private IFundFlowService fundFlowService; |
| | | |
| | | @Autowired |
| | | private ICmbsBankSyncService cmbsBankSyncService; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 从CMBS同步银行流水到资金流水表 |
| | | * |
| | | * @param acctNum 账号 |
| | | * @param startDate 开始日期 yyyy-MM-dd |
| | | * @param endDate 结束日期 yyyy-MM-dd |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('cwgl:fundFlow:sync')") |
| | | @Log(title = "CMBS银行流水同步", businessType = BusinessType.OTHER) |
| | | @PostMapping("/syncFromCmbs") |
| | | public AjaxResult syncFromCmbs(String acctNum, String startDate, String endDate) |
| | | { |
| | | try { |
| | | String result = cmbsBankSyncService.syncFromCmbs(acctNum, startDate, endDate); |
| | | return AjaxResult.success(result); |
| | | } catch (Exception e) { |
| | | return AjaxResult.error("同步失败: " + e.getMessage()); |
| | | } |
| | | } |
| | | /** |
| | | * 查询资金流水列表 |
| | | */ |