|
|
@@ -1,6 +1,9 @@
|
|
|
package com.huyi.service.common.companyAcc.controller;
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.huyi.service.base.entity.PayAccInf;
|
|
|
+import com.huyi.service.base.service.IPayAccInfService;
|
|
|
import com.huyi.service.common.companyAcc.service.CompanyAccService;
|
|
|
import com.tianhu.common.core.constant.SalaryConstants;
|
|
|
import com.tianhu.common.core.utils.CommonUtil;
|
|
|
@@ -33,7 +36,8 @@ public class companyAccController extends BaseController {
|
|
|
private TokenService tokenService;
|
|
|
@Autowired
|
|
|
private CompanyAccService companyAccService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private IPayAccInfService iPayAccInfService;
|
|
|
|
|
|
/**
|
|
|
* 查询核心企业还款账户
|
|
|
@@ -61,5 +65,27 @@ public class companyAccController extends BaseController {
|
|
|
return AjaxResult.success(list);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 查询本企业的电子账户
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/listAcc")
|
|
|
+ public AjaxResult listAcc(){
|
|
|
+ //查询当前操作员
|
|
|
+ LoginUser userInfo = tokenService.getLoginUser();
|
|
|
+ SysUser use = userInfo.getSysUser();
|
|
|
+ //获取企业
|
|
|
+ String companyId = use.getCompanyId();
|
|
|
+ LambdaQueryWrapper<PayAccInf> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ //企业
|
|
|
+ queryWrapper.eq(PayAccInf::getPaiCstno,companyId);
|
|
|
+ //账户状态(0:未开通,1:冻结,2已开通3:待激活)
|
|
|
+ queryWrapper.eq(PayAccInf::getPaiStatus,"02");
|
|
|
+ //账户类型(00基本账户01贷款账户02信用账户03手续费账户04待结算账户05提现账户06虚拟账户)
|
|
|
+ queryWrapper.eq(PayAccInf::getPaiAcctype,"06");
|
|
|
+ //开户行号(302:中信银行)
|
|
|
+ queryWrapper.eq(PayAccInf::getPaiQlbankno,"302");
|
|
|
+ List<PayAccInf> list = iPayAccInfService.findPayAccInfs(queryWrapper);
|
|
|
+ return AjaxResult.success(list);
|
|
|
+ }
|
|
|
}
|