| | |
| | | import com.gkhy.safePlatform.targetDuty.repository.ExamineItemRepository; |
| | | import com.gkhy.safePlatform.targetDuty.entity.ExamineItem; |
| | | import com.gkhy.safePlatform.targetDuty.service.ExamineItemService; |
| | | import com.gkhy.safePlatform.targetDuty.service.baseService.ExamineItemBaseService; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | |
| | | * @since 2022-07-21 11:01:38 |
| | | */ |
| | | @Service("examineItemService") |
| | | public class ExamineItemServiceImpl extends ServiceImpl<ExamineItemRepository, ExamineItem> implements ExamineItemService { |
| | | public class ExamineItemServiceImpl implements ExamineItemService { |
| | | |
| | | @Autowired |
| | | private ExamineItemRepository examineItemRepository; |
| | | private ExamineItemBaseService examineItemBaseService; |
| | | |
| | | |
| | | |
| | |
| | | Long pageSize = pageQuery.getPageSize(); |
| | | IPage<ExamineItem> page = new Page<>(pageIndex, pageSize); |
| | | |
| | | page = baseMapper.selectPage(page, |
| | | page = examineItemBaseService.selectPage(page, |
| | | QueryHelpPlus.getPredicate(ExamineItem.class, pageQuery.getSearchParams())); |
| | | List<ExamineItemDto> respList = BeanCopyUtils.copyBeanList(page.getRecords(), ExamineItemDto.class); |
| | | |
| | |
| | | |
| | | @Override |
| | | public List<ExamineItem> queryAll(ExamineItemQueryCriteria criteria) { |
| | | return baseMapper.selectList(QueryHelpPlus.getPredicate(ExamineItem.class, criteria)); |
| | | return examineItemBaseService.queryAll(criteria); |
| | | } |
| | | } |