| | |
| | | |
| | | 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.shiro.ShiroKit; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @Autowired |
| | | private ITCheckCarExplainService tCheckCarExplainService; |
| | | |
| | | @Autowired |
| | | private ShiroExtUtil shiroExtUtil; |
| | | |
| | | /** |
| | | * 跳转到代检车说明内容管理首页 |
| | | */ |
| | |
| | | public String index(Model model) { |
| | | Integer branchOfficeId = -1; |
| | | if (!ShiroKit.isAdmin()) { |
| | | branchOfficeId = ShiroKit.getUser().getObjectId(); |
| | | branchOfficeId = shiroExtUtil.getUser().getObjectId(); |
| | | } |
| | | TCheckCarExplain tCheckCarExplain = tCheckCarExplainService.selectOne(new EntityWrapper<TCheckCarExplain>() |
| | | .eq("branchOfficeId", branchOfficeId).last("limit 1")); |