| | |
| | | package com.stylefeng.guns.modular.system.service.impl; |
| | | |
| | | import com.stylefeng.guns.core.beetl.ShiroExtUtil; |
| | | import com.stylefeng.guns.core.shiro.ShiroKit; |
| | | import com.stylefeng.guns.modular.system.controller.resp.TEvaluateResp; |
| | | import com.stylefeng.guns.modular.system.dao.*; |
| | |
| | | @Autowired |
| | | private TBranchOfficeMapper tBranchOfficeMapper; |
| | | |
| | | @Autowired |
| | | private ShiroExtUtil shiroExtUtil; |
| | | |
| | | @Override |
| | | public List<TEvaluateResp> selectPageList(String createTime, String userName, String driverName, Integer orderType, Integer score) { |
| | | String startTime = null; |
| | |
| | | endTime = split[1] + " 23:59:59"; |
| | | } |
| | | List<TEvaluateResp> list = tEvaluateMapper.selectPageList(startTime, endTime, userName, driverName, orderType, score); |
| | | Integer roleType = Objects.requireNonNull(ShiroKit.getUser()).getRoleType(); |
| | | Integer objectId = Objects.requireNonNull(ShiroKit.getUser()).getObjectId(); |
| | | Integer roleType = Objects.requireNonNull(shiroExtUtil.getUser()).getRoleType(); |
| | | Integer objectId = Objects.requireNonNull(shiroExtUtil.getUser()).getObjectId(); |
| | | if(3 == roleType){ |
| | | list = list.stream().filter(tEvaluate -> tEvaluate.getAgentId().equals(objectId)).collect(Collectors.toList()); |
| | | } |