| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.stylefeng.guns.core.base.controller.BaseController; |
| | | import com.stylefeng.guns.core.beetl.ShiroExtUtil; |
| | | import com.stylefeng.guns.core.log.LogObjectHolder; |
| | | import com.stylefeng.guns.core.shiro.ShiroKit; |
| | | import com.stylefeng.guns.core.util.JwtTokenUtil; |
| | |
| | | |
| | | @Value("${filePath}") |
| | | private String filePath; |
| | | |
| | | @Autowired |
| | | private ShiroExtUtil shiroExtUtil; |
| | | |
| | | /** |
| | | * 跳转到首页 |
| | |
| | | */ |
| | | @RequestMapping("/addOrder") |
| | | public String addOrder(Model model) { |
| | | Integer objectId = ShiroKit.getUser().getObjectId(); |
| | | Integer objectId = shiroExtUtil.getUser().getObjectId(); |
| | | if(objectId==1){ |
| | | // 地图默认展示柳州区 |
| | | model.addAttribute("lon",104.043246); |
| | |
| | | // return null; |
| | | // } |
| | | // JSONObject jsonObject = JSON.parseObject(systemConfig.getContent()); |
| | | Integer roleType = ShiroKit.getUser().getRoleType(); |
| | | Integer roleType = shiroExtUtil.getUser().getRoleType(); |
| | | List<TDriver> tDrivers = new ArrayList<>(); |
| | | |
| | | //找到中心点 |
| | |
| | | if (roleType==2){ |
| | | tDrivers = driverService.selectList(new EntityWrapper<TDriver>().in("id", driverIds) |
| | | .eq("serverStatus",1) |
| | | .eq("branchOfficeId", ShiroKit.getUser().getObjectId())); |
| | | .eq("branchOfficeId", shiroExtUtil.getUser().getObjectId())); |
| | | }else{ |
| | | tDrivers = driverService.selectList(new EntityWrapper<TDriver>() |
| | | .eq("serverStatus",1).in("id", driverIds)); |