| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.common.param.CommonParamSet; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.system.entity.Dept; |
| | | import org.springblade.modules.system.service.IDeptService; |
| | |
| | | @Service |
| | | public class ECallEventServiceImpl extends ServiceImpl<EcCallEventMapper, ECallEventEntity> implements IECallEventService { |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Override |
| | | public IPage<ECallEventVO> selectECallEventPage(IPage<ECallEventVO> page, ECallEventVO eCallEvent) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | eCallEvent.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | return page.setRecords(baseMapper.selectECallEventPage(page, eCallEvent)); |
| | | CommonParamSet invoke = new CommonParamSet<>().invoke(ECallEventVO.class, eCallEvent); |
| | | return page.setRecords(baseMapper.selectECallEventPage(page, |
| | | eCallEvent, |
| | | invoke.getRegionChildCodesList(), |
| | | invoke.getGridCodeList(), |
| | | invoke.getIsAdministrator())); |
| | | } |
| | | |
| | | /** |