|
@@ -0,0 +1,33 @@
|
|
|
|
|
+package com.fs.app.controller;
|
|
|
|
|
+
|
|
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
|
|
+import com.fs.qw.domain.QwCompany;
|
|
|
|
|
+import com.fs.qw.service.IQwCompanyService;
|
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
+
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
+@Slf4j
|
|
|
|
|
+@Api("企微主体接口")
|
|
|
|
|
+@RestController
|
|
|
|
|
+@RequestMapping(value="/app/qwCompany")
|
|
|
|
|
+public class QwCompanyController extends AppBaseController{
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IQwCompanyService qwCompanyService;
|
|
|
|
|
+
|
|
|
|
|
+ @PostMapping("/getQwCompanyList")
|
|
|
|
|
+ public R getQwCompanyList(){
|
|
|
|
|
+ Long companyUserId = getCompanyUserId();
|
|
|
|
|
+ if (companyUserId==null){
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+ //查询销售的企微主体列表
|
|
|
|
|
+ List<QwCompany> qwCompanies = qwCompanyService.selectQwCompanyListByCompanyUser(companyUserId);
|
|
|
|
|
+ return R.ok().put("qwCompanyList",qwCompanies);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|