| | |
| | | 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) { |