2 Commits 5c8f7e3b8b ... df9ac04741

Author SHA1 Message Date
  liulingchao df9ac04741 Merge remote-tracking branch 'origin/master' 4 years ago
  liulingchao c8c737eb1c 接口api 4 years ago

+ 9 - 1
dgtly-api/src/main/java/com/dgtly/api/controller/SysCompanyController.java

@@ -11,8 +11,10 @@ import com.dgtly.companyext.domain.CompanyHonour;
 import com.dgtly.companyext.domain.CompanyReviewed;
 import com.dgtly.companyext.service.ICompanyHonourService;
 import com.dgtly.companyext.service.ICompanyReviewedService;
+import com.dgtly.goods.service.IGoodsInfoService;
 import com.dgtly.member.domain.MemberFollow;
 import com.dgtly.member.service.IMemberFollowService;
+import com.dgtly.member.service.IMemberInfoService;
 import com.dgtly.system.domain.SysCompany;
 import com.dgtly.system.service.ISysCompanyService;
 import com.dgtly.system.service.ISysDictDataService;
@@ -47,6 +49,10 @@ public class SysCompanyController extends ApiBaseController {
     private ICompanyHonourService companyHonourService;
     @Autowired
     private ISysDictDataService dictDataService;
+    @Autowired
+    private IMemberInfoService memberInfoService;
+    @Autowired
+    private IGoodsInfoService goodsInfoService;
 
     @ApiOperation(value = "商家详情")
     @ApiImplicitParam(name = "params" , paramType = "body")
@@ -158,7 +164,9 @@ public class SysCompanyController extends ApiBaseController {
     public Object countCompanyInfo(){
 
         int companyNum = companyService.countCompany();
-        return AjaxResult.success().putKV("companyNum",companyNum-1);
+        int memberNum = memberInfoService.countMemberInfo();
+        int goodsNum = goodsInfoService.countGoodsInfo();
+        return AjaxResult.success().putKV("companyNum",companyNum-1).putKV("memberNum",memberNum).putKV("goodsNum",goodsNum);
     }