Commit f98e6821 by huang

1111

parent b4a84349
...@@ -113,6 +113,12 @@ ...@@ -113,6 +113,12 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.gic</groupId> <groupId>com.gic</groupId>
<artifactId>haoban-data-api</artifactId>
<version>${haoban-data-api}</version>
</dependency>
<dependency>
<groupId>com.gic</groupId>
<artifactId>haoban-contacts-api</artifactId> <artifactId>haoban-contacts-api</artifactId>
<version>${haoban-contacts-api}</version> <version>${haoban-contacts-api}</version>
</dependency> </dependency>
......
...@@ -15,12 +15,14 @@ import com.gic.clerk.api.dto.ClerkDTO; ...@@ -15,12 +15,14 @@ import com.gic.clerk.api.dto.ClerkDTO;
import com.gic.clerk.api.service.ClerkService; import com.gic.clerk.api.service.ClerkService;
import com.gic.commons.util.EntityUtil; import com.gic.commons.util.EntityUtil;
import com.gic.haoban.common.utils.HaobanResponse; import com.gic.haoban.common.utils.HaobanResponse;
import com.gic.haoban.data.api.service.HaobanDataApiService;
import com.gic.haoban.manage.api.dto.DepartmentDTO; import com.gic.haoban.manage.api.dto.DepartmentDTO;
import com.gic.haoban.manage.api.dto.StaffDTO; import com.gic.haoban.manage.api.dto.StaffDTO;
import com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO; import com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO;
import com.gic.haoban.manage.api.service.DepartmentApiService; import com.gic.haoban.manage.api.service.DepartmentApiService;
import com.gic.haoban.manage.api.service.StaffApiService; import com.gic.haoban.manage.api.service.StaffApiService;
import com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService; import com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService;
import com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService;
import com.gic.haoban.manage.web.errCode.HaoBanErrCode; import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
import com.gic.haoban.manage.web.vo.ClerkVo; import com.gic.haoban.manage.web.vo.ClerkVo;
...@@ -34,6 +36,10 @@ public class StoreController extends WebBaseController{ ...@@ -34,6 +36,10 @@ public class StoreController extends WebBaseController{
private DepartmentApiService departmentApiService; private DepartmentApiService departmentApiService;
@Autowired @Autowired
private StaffDepartmentRelatedApiService staffDepartmentRelatedApiService; private StaffDepartmentRelatedApiService staffDepartmentRelatedApiService;
@Autowired
private WxEnterpriseRelatedApiService wxEnterpriseRelatedApiService;
@Autowired
private HaobanDataApiService haobanDataApiService;
//门店列表 //门店列表
@RequestMapping("/store-list") @RequestMapping("/store-list")
public HaobanResponse storeList(String staffId) { public HaobanResponse storeList(String staffId) {
...@@ -46,5 +52,13 @@ public class StoreController extends WebBaseController{ ...@@ -46,5 +52,13 @@ public class StoreController extends WebBaseController{
List<DepartmentDTO> resultList = departmentApiService.listByDepartmentIds(departmentIds, 1); List<DepartmentDTO> resultList = departmentApiService.listByDepartmentIds(departmentIds, 1);
return resultResponse(HaoBanErrCode.ERR_1,resultList); return resultResponse(HaoBanErrCode.ERR_1,resultList);
} }
//获取首页销售数据
@RequestMapping("/sale-date")
public HaobanResponse saleDate(String storeId,String wxEnterpriseId) {
wxEnterpriseRelatedApiService.listEnterpriseByWxEnterpriseId(wxEnterpriseId)
// haobanDataApiService.getSaleDataByDate(arg0, storeId, arg2);
// return resultResponse(HaoBanErrCode.ERR_1,resultList);
}
} }
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<!--<dubbo:registry address="zookeeper://localhost:2181|zookeeper://115.159.182.172:2199" protocol="dubbo"/>--> <!--<dubbo:registry address="zookeeper://localhost:2181|zookeeper://115.159.182.172:2199" protocol="dubbo"/>-->
<dubbo:reference interface="com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService" id="staffDepartmentRelatedApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService" id="staffDepartmentRelatedApiService"/>
<dubbo:reference interface="com.gic.clerk.api.service.ClerkService" id="clerkService"/> <dubbo:reference interface="com.gic.clerk.api.service.ClerkService" id="clerkService"/>
<dubbo:reference interface="com.gic.haoban.data.api.service.HaobanDataApiService" id="haobanDataApiService"/>
</beans> </beans>
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