| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.business.dto.BankStatementUpdateDTO; |
| | | import com.by4cloud.platformx.business.dto.BipQueryDTO; |
| | | import com.by4cloud.platformx.business.entity.BankStatement; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | |
| | | public List<BankStatement> export(BankStatement bankStatement,Long[] ids) { |
| | | return bankStatementService.list(Wrappers.lambdaQuery(bankStatement).in(ArrayUtil.isNotEmpty(ids), BankStatement::getId, ids)); |
| | | } |
| | | |
| | | /** |
| | | * 通过id查询银行流水历史确认 |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id查询银行流水历史确认" , description = "通过id查询银行流水历史确认" ) |
| | | @GetMapping("/history/{id}" ) |
| | | public R getHistoryById(@PathVariable("id" ) Long id) { |
| | | return bankStatementService.getHistoryById(id); |
| | | } |
| | | |
| | | /** |
| | | * 通过id删除银行流水历史确认 |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id删除银行流水历史确认" , description = "通过id删除银行流水历史确认" ) |
| | | @GetMapping("/itemDel/{id}" ) |
| | | public R delHistoryById(@PathVariable("id" ) Long id) { |
| | | return bankStatementService.delHistoryById(id); |
| | | } |
| | | |
| | | /** |
| | | * 通过id退回银行流水历史 |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id退回银行流水历史" , description = "通过id退回银行流水历史" ) |
| | | @GetMapping("/backHis/{id}" ) |
| | | public R backHis(@PathVariable("id" ) Long id) { |
| | | return bankStatementService.backHis(id); |
| | | } |
| | | |
| | | /** |
| | | * 通过id退回银行流水余额 |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id退回银行流水余额" , description = "通过id退回银行流水余额" ) |
| | | @GetMapping("/backBal/{id}" ) |
| | | public R backBal(@PathVariable("id" ) Long id) { |
| | | return bankStatementService.backBal(id); |
| | | } |
| | | |
| | | /** |
| | | * 通过id退回银行流水全部 |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id退回银行流水全部" , description = "通过id退回银行流水全部" ) |
| | | @GetMapping("/backAll/{id}" ) |
| | | public R backAll(@PathVariable("id" ) Long id) { |
| | | return bankStatementService.backAll(id); |
| | | } |
| | | |
| | | /** |
| | | * 生成收款单预信息并推送 |
| | | * @param updateDTO |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "生成收款单预信息并推送" , description = "生成收款单预信息并推送" ) |
| | | @PostMapping("/saveAndPush" ) |
| | | public R saveAndPush(@RequestBody BankStatementUpdateDTO updateDTO) { |
| | | return bankStatementService.saveAndPush(updateDTO); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param page 分页对象 |
| | | * @param queryDTO 银行流水 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "分页查询" , description = "分页查询" ) |
| | | @GetMapping("/pageBip" ) |
| | | public R pageBip(@ParameterObject Page page, @ParameterObject BipQueryDTO queryDTO) { |
| | | return R.ok(bankStatementService.pageBip(page, queryDTO)); |
| | | } |
| | | } |