Commit c940e6dd by manxiaoqiang

Merge remote-tracking branch 'remotes/origin/20180328_sale' into 9637230e

* remotes/origin/20180328_sale: 客户表 客户表 客户表 客户表 客户表 # Conflicts: # .idea/workspace.xml
parent 94b5a00a
...@@ -89,7 +89,12 @@ public class TkioAccountServiceImpl implements TkioAccountService { ...@@ -89,7 +89,12 @@ public class TkioAccountServiceImpl implements TkioAccountService {
User user1 = userRepository.findByEmail(one.getEmail()); User user1 = userRepository.findByEmail(one.getEmail());
map.put("old", user1.getName()); map.put("old", user1.getName());
} }
List<User> list = userService.findbyRole(user.getRole()); List<User> list = new ArrayList<>();
if(user.getRole().equals(RoleEnum.NORTH_BUSSINUSS.getKey()) || user.getRole().equals(RoleEnum.SOUTH_BUSSINUSS.getKey())){
list = userService.findbyRole(user.getRole());
}else {
list = userRepository.findSales();
}
map.put("new", list); map.put("new", list);
return map; return map;
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<bean id="tkioAccountTask" class="tkio.task.AccountTask"></bean> <bean id="tkioAccountTask" class="tkio.task.AccountTask"></bean>
<task:scheduled-tasks> <task:scheduled-tasks>
<!--//定时同步短链数据(每5分钟执行一次)--> <!--//定时同步短链数据(每5分钟执行一次)-->
<task:scheduled ref="tkioAccountTask" method="task" cron="0 45 10 * * ?"/> <task:scheduled ref="tkioAccountTask" method="task" cron="0 1 11 * * ?"/>
</task:scheduled-tasks> </task:scheduled-tasks>
<bean id="tkioNoticeTask" class="tkio.task.NoticeTask"></bean> <bean id="tkioNoticeTask" class="tkio.task.NoticeTask"></bean>
......
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