¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.basic.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.basic.mapper.LaboratoryMapper; |
| | | import com.ruoyi.basic.pojo.Laboratory; |
| | | import com.ruoyi.basic.service.LaboratoryService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å®éªå®¤ç®¡ç(Laboratory)表æå¡å®ç°ç±» |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class LaboratoryServiceImpl extends ServiceImpl<LaboratoryMapper, Laboratory> implements LaboratoryService { |
| | | |
| | | |
| | | private LaboratoryMapper laboratoryMapper; |
| | | |
| | | @Override |
| | | public IPage<Laboratory> selectItemParameter(Page page, Laboratory itemParameter) { |
| | | return laboratoryMapper.selectItemParameter(page, QueryWrappers.queryWrappers(itemParameter)); |
| | | } |
| | | |
| | | @Override |
| | | public int addParameter(Laboratory itemParameter) { |
| | | return laboratoryMapper.insert(itemParameter); |
| | | } |
| | | |
| | | @Override |
| | | public int delParameter(Integer id) { |
| | | return laboratoryMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public int upParameter(Laboratory itemParameter) { |
| | | return laboratoryMapper.updateById(itemParameter); |
| | | } |
| | | |
| | | @Override |
| | | public List<Laboratory> obtainItemParameterList() { |
| | | return laboratoryMapper.selectList(Wrappers.<Laboratory>lambdaQuery().select(Laboratory::getLaboratoryName, Laboratory::getId)); |
| | | } |
| | | |
| | | |
| | | } |
| | | |