Pu Zhibing
7 天以前 f2530067b6cd16a87b76190cf524d2ed75bf9592
management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/checkCar/TCheckCarExplainController.java
@@ -2,6 +2,7 @@
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;
@@ -29,6 +30,9 @@
    @Autowired
    private ITCheckCarExplainService tCheckCarExplainService;
    @Autowired
    private ShiroExtUtil shiroExtUtil;
    /**
     * 跳转到代检车说明内容管理首页
     */
@@ -36,7 +40,7 @@
    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"));