| | |
| | | import org.springblade.modules.social.mapper.SocialMapper; |
| | | import org.springblade.modules.social.service.ISocialService; |
| | | import org.springblade.modules.social.vo.SocialVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | |
| | | */ |
| | | @Service |
| | | public class SocialServiceImpl extends ServiceImpl<SocialMapper, Social> implements ISocialService { |
| | | |
| | | |
| | | |
| | | @Override |
| | | public IPage<SocialVO> selectSocialPage(IPage<SocialVO> page, SocialVO social) { |
| | | return page.setRecords(baseMapper.selectSocialPage(page, social)); |
| | |
| | | data.forEach(SocialExcel -> { |
| | | Social social = Objects.requireNonNull(BeanUtil.copy(SocialExcel, Social.class)); |
| | | social.setDeptid(deptid); |
| | | this.upSoil(social.getCardid()); |
| | | this.save(social); |
| | | }); |
| | | } |