package com.yuanchu.limslaboratory.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.yuanchu.limslaboratory.pojo.Inspection;
|
import org.apache.ibatis.annotations.Result;
|
import org.apache.ibatis.annotations.ResultType;
|
import org.apache.ibatis.annotations.Results;
|
|
import java.util.HashMap;
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 申请表(Inspection)表数据库访问层
|
*
|
* @author zss
|
* @since 2023-08-03 13:03:36
|
*/
|
public interface InspectionMapper extends BaseMapper<Inspection> {
|
|
|
/**
|
* 查询检验申请单列表
|
* @param page
|
* @param message
|
* @return
|
*/
|
IPage<Map<String, Object>> selectInspectsList(Page<Object> page, String message);
|
|
//计算已检验检验单数量
|
Integer seleCountIns();
|
|
//计算未检验的数量
|
Integer seleCountUnIns();
|
|
//获取检验单总数
|
Integer getcount();
|
|
//获取检验结论,检验数量
|
List<Map<String, Object>> getResultNum();
|
|
//计算原材料的合格率
|
Long qualified(Integer b);
|
|
//计算原材料检验单总数
|
Integer getallmater();
|
|
//计算成品检验单总数
|
Integer getallfin();
|
|
//计算原材料合格率
|
Long qualifiedfin(Integer i);
|
|
//查询该日期的原材料检验数量
|
Integer getMaterByDay(String time);
|
|
//查询该日期的成品检验数量
|
Integer getFinByDay(String time);
|
|
//查询该日期的原材料合格数量
|
Long getOkMaterByDay(String time);
|
|
//查询该日期的成品合格数量
|
Long getOkFinByDay(String time);
|
|
//查询该月的原材料检验数量
|
Integer getMaterByMonth(String monthofYear);
|
|
//查询该月的成品检验数量
|
Integer getFinByMonth(String monthofYear);
|
|
//查询该月的原材料合格率
|
Long getOkMaterByMonth(String monthofYear);
|
|
//查询该月的成品合格率
|
Long getOkFinByMonth(String monthofYear);
|
}
|