Commit ee0f674d authored by Administrator's avatar Administrator

-

Signed-off-by: Administrator's avatarAdministrator <admin@example.com>
parent a1e37c8c
......@@ -43,6 +43,9 @@ public class EnterpriseService {
@Autowired
private ICustomerInfoService iCustomerInfoService;
@Autowired
private CompanyRelationTableV1Service relationTableV1Service;
public R label(EnterpriseInfoLabelBody body) throws Exception {
List<Map<String, Object>> mapList = new ArrayList<>();
if (body.isVaildCid()) {
......@@ -137,6 +140,27 @@ public class EnterpriseService {
if (code.equals(HttpStatus.OK.value())) {
statisticMapData.put("combineMember", MapUtils.getMap(combineMemberMap, "data", null));
}
// 咨询业务往来
JskCompanyRelationTableV1Dto v1Dto = new JskCompanyRelationTableV1Dto();
Map<String, Object> businessTransactionsMap = null;
v1Dto.setCompanyId(body.getCompanyId());
v1Dto.setCompanyType(1);
TableDataInfo page1 = relationTableV1Service.page(v1Dto);
long total1 = page1.getTotal();
businessTransactionsMap.put("owner", total1);
v1Dto.setCompanyType(2);
TableDataInfo page2 = relationTableV1Service.page(v1Dto);
long total2 = page2.getTotal();
businessTransactionsMap.put("construction", total2);
v1Dto.setCompanyType(3);
TableDataInfo page3 = relationTableV1Service.page(v1Dto);
long total3 = page3.getTotal();
businessTransactionsMap.put("combine", total3);
if (total1+total2+total3 >0) {
statisticMapData.put("businessTransactions", businessTransactionsMap);
} else {
statisticMapData.put("businessTransactions", null);
}
return R.ok(statisticMapData);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment