package com.yuanchu.limslaboratory.service.impl; import com.yuanchu.limslaboratory.pojo.Inspection; import com.yuanchu.limslaboratory.mapper.InspectionMapper; import com.yuanchu.limslaboratory.pojo.dto.InspectionDto; import com.yuanchu.limslaboratory.service.InspectionService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; import java.util.Map; /** *

* 服务实现类 *

* * @author 江苏鵷雏网络科技有限公司 * @since 2023-07-17 */ @Service public class InspectionServiceImpl extends ServiceImpl implements InspectionService { @Resource private InspectionMapper inspectionMapper; @Override public Inspection addInspection(String userName,int type) { Inspection inspection = new Inspection(type, 0,1,1, userName); int judge = inspectionMapper.insert(inspection); return judge>0?inspection:null; } @Override public List selectAllInspection(int pageSize, int countSize, Integer state) { return inspectionMapper.selectAllInspection((pageSize - 1) * countSize,pageSize * countSize, state); } }