gdg
2020-12-10 d4934eb71ed33c9b07cb0dc7bbcbd27450e0e122
src/main/java/com/nanometer/smartlab/service/SysReagentServiceImpl.java
@@ -112,6 +112,35 @@
        return sysReagentDao.favorList(params);
    }
    @Override
    public int reagentCount(SysUser user, String name, String cas, String supplierId, String productSn) {
        Map<String, Object> params = new HashMap<>();
        params.put("user", user.getId());
        params.put("name", name);
        params.put("cas", cas);
        params.put("supplierId", supplierId);
        params.put("productSn", productSn);
        return sysReagentDao.reagentCount(params);
    }
    @Override
    public List<SysReagent> reagentList(SysUser user, String name, String cas, String supplierId, String productSn, int first, int pageSize) {
        Map<String, Object> params = new HashMap<>();
        params.put("user", user.getId());
        params.put("name", name);
        params.put("cas", cas);
        params.put("supplierId", supplierId);
        params.put("productSn", productSn);
        params.put("first", first);
        params.put("pageSize", pageSize);
        return sysReagentDao.reagentList(params);
    }
    @Override
    public String getReagentUnitByReagentId(String reagentId) {
        return sysReagentDao.getReagentUnitByReagentId(reagentId);
    }
    @Transactional(propagation = Propagation.REQUIRED)
    public int getSysReagentTotalCount(String name, String cas, String supplierId,Integer type) {