|
@@ -4,6 +4,7 @@ import cn.hutool.core.lang.TypeReference;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.gree.mall.manager.annotation.ZfireList;
|
|
|
import com.gree.mall.manager.bean.settle.repair.DailyBankAccountVO;
|
|
|
+import com.gree.mall.manager.bean.settle.repair.SettleDailyBankTransferRecordVO;
|
|
|
import com.gree.mall.manager.constant.Constant;
|
|
|
import com.gree.mall.manager.exception.RemoteServiceException;
|
|
|
import com.gree.mall.manager.helper.ResponseHelper;
|
|
@@ -11,7 +12,6 @@ import com.gree.mall.manager.logic.settle.repair.DailyTransferLogic;
|
|
|
import com.gree.mall.manager.logic.settle.repair.RepairSettleAccountLogic;
|
|
|
import com.gree.mall.manager.plus.entity.SettleDailyBankAccount;
|
|
|
import com.gree.mall.manager.plus.entity.SettleDailyBankCardBalance;
|
|
|
-import com.gree.mall.manager.plus.entity.SettleDailyBankTransferRecord;
|
|
|
import com.gree.mall.manager.zfire.bean.ZfireParamBean;
|
|
|
import com.gree.mall.manager.zfire.util.FieldUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -118,17 +118,12 @@ public class BankAccountController {
|
|
|
|
|
|
@PostMapping("/transfer/list")
|
|
|
@ApiOperation(value = "转帐记录列表")
|
|
|
- public ResponseHelper<IPage<SettleDailyBankTransferRecord>> transferList(
|
|
|
- @ApiParam(value = "服务人员编号") @RequestParam(required = false) String workerNumber,
|
|
|
- @ApiParam(value = "批次号") @RequestParam(required = false) String batchNo,
|
|
|
- @ApiParam(value = "开始日期") @RequestParam(required = false) String startTime,
|
|
|
- @ApiParam(value = "结束日期") @RequestParam(required = false) String endTime,
|
|
|
- @ApiParam(required = true, value = "页号") @RequestParam Integer pageNo,
|
|
|
- @ApiParam(required = true, value = "页大小") @RequestParam Integer pageSize,
|
|
|
- HttpServletRequest request
|
|
|
+ public ResponseHelper<IPage<SettleDailyBankTransferRecordVO>> transferList(
|
|
|
+ @RequestBody ZfireParamBean zfireParamBean
|
|
|
) {
|
|
|
- IPage<SettleDailyBankTransferRecord> list = repairSettleAccountLogic.transferList(workerNumber, startTime, endTime, batchNo, pageNo, pageSize);
|
|
|
- return ResponseHelper.success(list);
|
|
|
+ IPage<SettleDailyBankTransferRecordVO> page = repairSettleAccountLogic.transferList(zfireParamBean);
|
|
|
+ return ResponseHelper.success(page, new TypeReference<SettleDailyBankTransferRecordVO>() {
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
@PostMapping("/company/account/list")
|
|
@@ -141,16 +136,6 @@ public class BankAccountController {
|
|
|
return ResponseHelper.success(list);
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/send/msg")
|
|
|
- @ApiOperation(value = "查询余额/(发放工资)发送验证码")
|
|
|
- public ResponseHelper sendMsg(
|
|
|
- @ApiParam(required = true, value = "手机号") @RequestParam String mobile,
|
|
|
- @ApiParam(value = "类型 发放:issue , 余额:balance") @RequestParam(required = false) String type
|
|
|
- ) throws Exception {
|
|
|
- repairSettleAccountLogic.sendMsg(mobile, type);
|
|
|
- return ResponseHelper.success();
|
|
|
- }
|
|
|
-
|
|
|
@PostMapping("/company/account/balance")
|
|
|
@ApiOperation(value = "查询公司卡余额")
|
|
|
public ResponseHelper<SettleDailyBankCardBalance> selBankCardBalance(
|
|
@@ -162,6 +147,16 @@ public class BankAccountController {
|
|
|
return ResponseHelper.success(bean);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/send/msg")
|
|
|
+ @ApiOperation(value = "查询余额/(发放工资)发送验证码")
|
|
|
+ public ResponseHelper sendMsg(
|
|
|
+ @ApiParam(required = true, value = "手机号") @RequestParam String mobile,
|
|
|
+ @ApiParam(value = "类型 发放:issue , 余额:balance") @RequestParam(required = false) String type
|
|
|
+ ) throws Exception {
|
|
|
+ repairSettleAccountLogic.sendMsg(mobile, type);
|
|
|
+ return ResponseHelper.success();
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/template/import")
|
|
|
@ApiOperation("导入银行账户")
|
|
|
public ResponseHelper importData(MultipartFile file) throws Exception {
|