|
|
@@ -1,5 +1,6 @@
|
|
|
package org.jeecg.modules.hlwaccount.service.impl;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
@@ -13,6 +14,8 @@ import org.jeecg.modules.hlwaccount.service.IHlwCompanyCpService;
|
|
|
import org.jeecg.modules.hlwaccount.service.IHlwCompanySubcontractorService;
|
|
|
import org.jeecg.modules.hlwcpmanager.entity.HlwCpSubcontractorBankAccount;
|
|
|
import org.jeecg.modules.hlwcpmanager.service.IHlwCpSubcontractorBankAccountService;
|
|
|
+import org.jeecg.modules.hlworder.entity.HlwRequirement;
|
|
|
+import org.jeecg.modules.hlworder.service.IHlwRequirementService;
|
|
|
import org.jeecg.modules.hlwpayment.entity.HlwPayment;
|
|
|
import org.jeecg.modules.hlwpayment.service.IHlwPaymentService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -45,6 +48,8 @@ public class HlwCompanyAccountDetailServiceImpl extends ServiceImpl<HlwCompanyAc
|
|
|
private IHlwCompanyCpService hlwCompanyCpService;
|
|
|
@Autowired
|
|
|
private IHlwPaymentService hlwPaymentService;
|
|
|
+ @Autowired
|
|
|
+ private IHlwRequirementService hlwRequirementService;
|
|
|
|
|
|
@Override
|
|
|
public Page<HlwCompanyAccountDetail> pageList(Page<HlwCompanyAccountDetail> page, HlwCompanyAccountDetail hlwCompanyAccountDetail, QueryWrapper<HlwCompanyAccountDetail> queryWrapper) {
|
|
|
@@ -383,4 +388,23 @@ public class HlwCompanyAccountDetailServiceImpl extends ServiceImpl<HlwCompanyAc
|
|
|
map.put("bankList", list);
|
|
|
return Result.ok(map);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取企业所有服务商数据
|
|
|
+ *
|
|
|
+ * @param hlwCompany
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Result<?> getAllSubcontractorData(HlwCompany hlwCompany) {
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ //已付款订单数
|
|
|
+ QueryWrapper<HlwPayment> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("application_id", hlwCompany.getApplicationId());
|
|
|
+ queryWrapper.eq("company_id", hlwCompany.getId());
|
|
|
+ queryWrapper.eq("status", 3);
|
|
|
+ int count = hlwPaymentService.count(queryWrapper);
|
|
|
+ map.put("paymentCount", count);
|
|
|
+ return Result.ok(map);
|
|
|
+ }
|
|
|
}
|