|
|
@@ -11,6 +11,8 @@ import org.jeecg.modules.hlwaccount.entity.HlwCompanyAccountDetailExport;
|
|
|
import org.jeecg.modules.hlwaccount.mapper.HlwCompanyAccountDetailMapper;
|
|
|
import org.jeecg.modules.hlwaccount.service.IHlwCompanyAccountDetailService;
|
|
|
import org.jeecg.modules.hlwaccount.service.IHlwCompanyAccountService;
|
|
|
+import org.jeecg.modules.hlwcpmanager.entity.HlwCpSubcontractorBankAccount;
|
|
|
+import org.jeecg.modules.hlwcpmanager.service.IHlwCpSubcontractorBankAccountService;
|
|
|
import org.jeecg.modules.hlwpayment.entity.HlwPayment;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -31,6 +33,8 @@ public class HlwCompanyAccountDetailServiceImpl extends ServiceImpl<HlwCompanyAc
|
|
|
|
|
|
@Autowired
|
|
|
private IHlwCompanyAccountService hlwCompanyAccountService;
|
|
|
+ @Autowired
|
|
|
+ private IHlwCpSubcontractorBankAccountService hlwCpSubcontractorBankAccountService;
|
|
|
|
|
|
@Override
|
|
|
public Page<HlwCompanyAccountDetail> pageList(Page<HlwCompanyAccountDetail> page, HlwCompanyAccountDetail hlwCompanyAccountDetail, QueryWrapper<HlwCompanyAccountDetail> queryWrapper) {
|
|
|
@@ -286,4 +290,22 @@ public class HlwCompanyAccountDetailServiceImpl extends ServiceImpl<HlwCompanyAc
|
|
|
}
|
|
|
return Result.error("暂无数据");
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 服务商银行信息
|
|
|
+ *
|
|
|
+ * @param hlwCompanyAccount
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Result<?> getSubcontractorBankInfo(HlwCompanyAccount hlwCompanyAccount) {
|
|
|
+ QueryWrapper<HlwCpSubcontractorBankAccount> queryWrapper = new QueryWrapper<>();
|
|
|
+ if (hlwCompanyAccount.getCpType() == 1) {
|
|
|
+ queryWrapper.eq("subcontractor_id", hlwCompanyAccount.getSubcontractorId());
|
|
|
+ } else {
|
|
|
+ queryWrapper.eq("cp_id", hlwCompanyAccount.getSubcontractorId());
|
|
|
+ }
|
|
|
+ List<HlwCpSubcontractorBankAccount> list = hlwCpSubcontractorBankAccountService.list(queryWrapper);
|
|
|
+ return Result.ok(list);
|
|
|
+ }
|
|
|
}
|