| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springblade.common.cache.DictCache; |
| | | import org.springblade.common.cache.ParamCache; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.common.cache.UserCache; |
| | | import org.springblade.common.enums.DictEnum; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springblade.modules.information.entity.Information; |
| | | import org.springblade.modules.information.excel.InforExcel; |
| | | import org.springblade.modules.information.mapper.InformationMapper; |
| | | import org.springblade.modules.information.service.IInformationService; |
| | | import org.springblade.modules.information.vo.InformationVO; |
| | | import org.springblade.modules.system.entity.User; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | | import static org.springblade.common.constant.CommonConstant.DEFAULT_PARAM_PASSWORD; |
| | | |
| | | /** |
| | | * 服务实现类 |
| | |
| | | public class InformationServiceImpl extends ServiceImpl<InformationMapper, Information> implements IInformationService { |
| | | |
| | | @Override |
| | | public IPage<InformationVO> selectInformationPage(IPage<InformationVO> page, InformationVO information) { |
| | | public IPage<Information> selectInformationPage(IPage<Information> page, Information information) { |
| | | return page.setRecords(baseMapper.selectInformationPage(page, information)); |
| | | } |
| | | |
| | |
| | | return baseMapper.selectSoil(deptid); |
| | | } |
| | | |
| | | /** |
| | | * 查询培训单位信息(可以报名) |
| | | * @param page |
| | | * @param information 保安单位信息对象 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<InformationVO> securityPage(IPage<InformationVO> page, InformationVO information) { |
| | | return page.setRecords(baseMapper.securityPage(page, information)); |
| | | } |
| | | |
| | | @Override |
| | | public void importInfor(List<InforExcel> data, Boolean isCovered,String deptid,String jurisdiction) { |
| | | data.forEach(InforExcel -> { |
| | | Information information = Objects.requireNonNull(BeanUtil.copy(InforExcel, Information.class)); |
| | | information.setDepartmentid(deptid); |
| | | information.setJurisdiction(jurisdiction); |
| | | this.save(information); |
| | | }); |
| | | } |
| | | } |