| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.EsModel; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.MapUtils; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZSelfNote; |
| | | import com.ruoyi.domain.ZSelfNote; |
| | | import com.ruoyi.mapper.ZSelfNoteMapper; |
| | | import com.ruoyi.service.EsService; |
| | | import com.ruoyi.service.ZSelfNoteService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import javax.annotation.Resource; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | public class ZSelfNoteServiceImpl extends ServiceImpl<ZSelfNoteMapper, ZSelfNote> implements ZSelfNoteService { |
| | | |
| | | @Autowired |
| | | ZSelfNoteServiceImpl zSelfNoteService; |
| | | ZSelfNoteService zSelfNoteService; |
| | | |
| | | @Resource |
| | | private EsService esSer; |
| | | |
| | | private LambdaQueryWrapper<ZSelfNote> uniqueCondition(ZSelfNote zSelfNote) { |
| | | LambdaQueryWrapper<ZSelfNote> lqw = new LambdaQueryWrapper<>(); |
| | |
| | | assert dataList != null; |
| | | |
| | | for (ZSelfNote zSelfNote : dataList) { |
| | | zSelfNoteService.mySave(zSelfNote); |
| | | |
| | | if (zSelfNote.getTitle().length() != 0 && zSelfNote.getPeople().length() !=0){ |
| | | mySave(zSelfNote);} |
| | | else { |
| | | throw new RuntimeException("有数据的标题或人物为空"); |
| | | } |
| | | } |
| | | |
| | | return AjaxResult.success(); |