Commit 012e8254 by manxiaoqiang

track客户管理

parent 46942da2
...@@ -39,7 +39,7 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter { ...@@ -39,7 +39,7 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter {
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {
//放开登录 //放开登录
/*if (request.getRequestURL().indexOf("login/login") != -1){ if (request.getRequestURL().indexOf("login/login") != -1){
return true; return true;
} }
//从header中得到token //从header中得到token
...@@ -61,8 +61,7 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter { ...@@ -61,8 +61,7 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter {
} }
return true; return true;
} }
return false;*/ return false;
return true;
} }
private String getCookieToken(Cookie[] cookies, String name){ private String getCookieToken(Cookie[] cookies, String name){
......
...@@ -9,6 +9,7 @@ import org.springframework.stereotype.Controller; ...@@ -9,6 +9,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import security.annotation.CurrentAccount; import security.annotation.CurrentAccount;
import tkio.service.TkioAccountService; import tkio.service.TkioAccountService;
import track.service.TrackAccountService;
import util.ResultModel; import util.ResultModel;
/** /**
...@@ -19,7 +20,7 @@ import util.ResultModel; ...@@ -19,7 +20,7 @@ import util.ResultModel;
public class TrackAccountController { public class TrackAccountController {
@Autowired @Autowired
TkioAccountService tkioAccountService; TrackAccountService tkioAccountService;
//客户列表 //客户列表
@RequestMapping(value = "/findAll", method = RequestMethod.GET) @RequestMapping(value = "/findAll", method = RequestMethod.GET)
...@@ -68,14 +69,6 @@ public class TrackAccountController { ...@@ -68,14 +69,6 @@ public class TrackAccountController {
return ResultModel.OK(tkioAccountService.findFunTimes(accountId,startDate,endDate)); return ResultModel.OK(tkioAccountService.findFunTimes(accountId,startDate,endDate));
} }
//功能使用查询
@RequestMapping(value = "/find/pv/{accountId}", method = RequestMethod.GET)
@ResponseBody
public ResultModel pv(@CurrentAccount User loginAccount, @RequestParam String startDate,
@RequestParam String endDate, @PathVariable Long accountId) {
return ResultModel.OK(tkioAccountService.findPv(accountId,startDate,endDate));
}
//到期提醒查询 //到期提醒查询
@RequestMapping(value = "/find/reminder/{accountId}", method = RequestMethod.GET) @RequestMapping(value = "/find/reminder/{accountId}", method = RequestMethod.GET)
......
...@@ -132,6 +132,7 @@ public class TrackAccountServiceImpl implements TrackAccountService{ ...@@ -132,6 +132,7 @@ public class TrackAccountServiceImpl implements TrackAccountService{
Map<String, Integer> result = new HashMap<>(); Map<String, Integer> result = new HashMap<>();
List<Account> accountList = accountRepository.findByParent(account); List<Account> accountList = accountRepository.findByParent(account);
List<Long> idList = new ArrayList<>(); List<Long> idList = new ArrayList<>();
idList.add(account);
for(Account ac : accountList){ for(Account ac : accountList){
idList.add(ac.getId()); idList.add(ac.getId());
} }
......
...@@ -2,6 +2,7 @@ common\model\BackVisit.class ...@@ -2,6 +2,7 @@ common\model\BackVisit.class
security\TokenManager.class security\TokenManager.class
tkio\controller\TkioAccountController.class tkio\controller\TkioAccountController.class
tkio\model\UserLog.class tkio\model\UserLog.class
track\controller\TrackAccountController.class
dmp\model\TagCrawlerAppsWandoujia.class dmp\model\TagCrawlerAppsWandoujia.class
util\ValidateUtil.class util\ValidateUtil.class
tkio\repository\CampaignRepository.class tkio\repository\CampaignRepository.class
...@@ -9,16 +10,19 @@ util\HttpClientUtil.class ...@@ -9,16 +10,19 @@ util\HttpClientUtil.class
common\model\Auth.class common\model\Auth.class
tkio\repository\AccountRepository.class tkio\repository\AccountRepository.class
common\model\Menu.class common\model\Menu.class
track\repository\TrackAppRepository.class
exception\GlobalExceptionAdvice.class exception\GlobalExceptionAdvice.class
tkio\model\Campaign.class tkio\model\Campaign.class
security\RedisTokenManager.class security\RedisTokenManager.class
tkio\model\Account.class tkio\model\Account.class
security\AbstractTokenManager.class security\AbstractTokenManager.class
track\repository\TrackAccountRepository.class
common\model\UserLog.class common\model\UserLog.class
security\exception\MethodNotSupportException.class security\exception\MethodNotSupportException.class
tkio\repository\SalesManLeaderRepository.class tkio\repository\SalesManLeaderRepository.class
tkio\model\RoleAuth.class tkio\model\RoleAuth.class
common\service\impl\AppServiceImpl$1.class common\service\impl\AppServiceImpl$1.class
track\model\Account.class
common\controller\UserController.class common\controller\UserController.class
exception\TipException.class exception\TipException.class
common\context\AppUtils.class common\context\AppUtils.class
...@@ -26,6 +30,7 @@ util\RedisUtilNew.class ...@@ -26,6 +30,7 @@ util\RedisUtilNew.class
tkio\task\SyncAppDataTask.class tkio\task\SyncAppDataTask.class
common\model\User.class common\model\User.class
tkio\repository\IsNotifiedRepository.class tkio\repository\IsNotifiedRepository.class
track\repository\TrackChannelRepository.class
tkio\service\impl\TkioAccountServiceImpl.class tkio\service\impl\TkioAccountServiceImpl.class
util\DateUtil.class util\DateUtil.class
common\model\AppCategory.class common\model\AppCategory.class
...@@ -49,8 +54,11 @@ common\model\City.class ...@@ -49,8 +54,11 @@ common\model\City.class
common\service\impl\AppServiceImpl.class common\service\impl\AppServiceImpl.class
common\repository\ReminderRepository.class common\repository\ReminderRepository.class
util\StringUtil.class util\StringUtil.class
track\model\Channel.class
track\model\Campaign.class
security\interceptor\AuthorizationInterceptor.class security\interceptor\AuthorizationInterceptor.class
security\annotation\CurrentAccount.class security\annotation\CurrentAccount.class
track\model\App.class
common\model\AppInfo.class common\model\AppInfo.class
common\service\impl\UserServiceImpl.class common\service\impl\UserServiceImpl.class
util\IP.class util\IP.class
...@@ -59,6 +67,7 @@ tkio\model\RoleAuthDetail.class ...@@ -59,6 +67,7 @@ tkio\model\RoleAuthDetail.class
util\CharacterUtils.class util\CharacterUtils.class
tkio\repository\PackageTypeRepository.class tkio\repository\PackageTypeRepository.class
util\Constant.class util\Constant.class
common\repository\TrackAccount4WebRepository.class
common\repository\BackVisitRepository.class common\repository\BackVisitRepository.class
common\repository\RoleTypeRepository.class common\repository\RoleTypeRepository.class
tkio\service\AccountFlowRestrictService.class tkio\service\AccountFlowRestrictService.class
...@@ -66,6 +75,7 @@ util\UserLogThread.class ...@@ -66,6 +75,7 @@ util\UserLogThread.class
tkio\model\DataAuth.class tkio\model\DataAuth.class
common\model\KeyValue.class common\model\KeyValue.class
common\repository\UserRepository.class common\repository\UserRepository.class
track\repository\TrackCampaignRepository.class
util\ResultModel.class util\ResultModel.class
dic\RoleEnum.class dic\RoleEnum.class
util\CipherUtil.class util\CipherUtil.class
...@@ -73,6 +83,7 @@ common\controller\UserLogController.class ...@@ -73,6 +83,7 @@ common\controller\UserLogController.class
tkio\model\App.class tkio\model\App.class
security\resolvers\LoginUserMethodArgumentsResolver.class security\resolvers\LoginUserMethodArgumentsResolver.class
tkio\service\TkioAccountService.class tkio\service\TkioAccountService.class
common\model\TrackAccount4Web.class
common\model\RoleType.class common\model\RoleType.class
tkio\task\AccountTask.class tkio\task\AccountTask.class
security\annotation\Authorization.class security\annotation\Authorization.class
...@@ -84,10 +95,12 @@ common\service\MenuService.class ...@@ -84,10 +95,12 @@ common\service\MenuService.class
common\repository\AppCategoryRepository.class common\repository\AppCategoryRepository.class
tkio\repository\AppRepository.class tkio\repository\AppRepository.class
common\service\impl\UserLogServiceImpl.class common\service\impl\UserLogServiceImpl.class
track\service\impl\TrackAccountServiceImpl.class
dmp\repository\TagCrawlerAppsWandoujiaRepository.class dmp\repository\TagCrawlerAppsWandoujiaRepository.class
security\RedisLoginStatusManagerImpl.class security\RedisLoginStatusManagerImpl.class
tkio\model\AccountRestrict4Web.class tkio\model\AccountRestrict4Web.class
dic\OperateObjectTypeEnum.class dic\OperateObjectTypeEnum.class
track\service\TrackAccountService.class
common\service\UserService.class common\service\UserService.class
common\service\AppService.class common\service\AppService.class
common\service\UserLogService.class common\service\UserLogService.class
...@@ -102,4 +115,5 @@ common\model\Email.class ...@@ -102,4 +115,5 @@ common\model\Email.class
security\cors\CorsFilter.class security\cors\CorsFilter.class
util\ResultStatus.class util\ResultStatus.class
tkio\model\IsNotified.class tkio\model\IsNotified.class
track\task\AccountTask.class
tkio\model\Auth.class tkio\model\Auth.class
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