|
|
@@ -1,10 +1,11 @@
|
|
|
package com.goafanti.order.controller;
|
|
|
|
|
|
|
|
|
-
|
|
|
import com.goafanti.common.bo.Result;
|
|
|
+import com.goafanti.common.constant.AFTConstants;
|
|
|
import com.goafanti.common.controller.CertifyApiController;
|
|
|
import com.goafanti.common.utils.excel.NewExcelUtil;
|
|
|
+import com.goafanti.core.shiro.token.TokenManager;
|
|
|
import com.goafanti.order.bo.*;
|
|
|
import com.goafanti.order.bo.outStatistics.OutOrderSalesSourceAmount;
|
|
|
import com.goafanti.order.service.OrderStatisticsService;
|
|
|
@@ -54,6 +55,11 @@ public class StatisticsApiController extends CertifyApiController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/exporTaskList", method = RequestMethod.GET)
|
|
|
public Result exporTaskList(InputProjectStatistics ib,HttpServletResponse response) {
|
|
|
+ Result res = res();
|
|
|
+ if (!TokenManager.hasRole(AFTConstants.SUPERADMIN)){
|
|
|
+ res.getError().add(buildError("权限不足"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
return projectStatisticsService.exporTaskList(ib,response);
|
|
|
}
|
|
|
|