| | |
| | | int count = sysReagentService.reagentCount(getUser(), applyNewReagentName, applyNewCas, null, applyNewSn); |
| | | this.setRowCount(count); |
| | | if (count > 0) { |
| | | list = sysReagentService.reagentList(getUser(), applyNewReagentName, applyNewCas, null, applyNewSn, first, pageSize); |
| | | list = sysReagentService.reagentList(getUser(), applyNewReagentName, applyNewCas, null, applyNewSn, first, pageSize,count); |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error(e); |
| | |
| | | |
| | | int reagentCount(SysUser user, String name, String cas, String supplierId, String productSn); |
| | | |
| | | List<SysReagent> reagentList(SysUser user, String name, String cas, String supplierId, String productSn, int first, int pageSize); |
| | | List<SysReagent> reagentList(SysUser user, String name, String cas, String supplierId, String productSn, int first, int pageSize,int count); |
| | | |
| | | String getReagentUnitByReagentId(String reagentId); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<SysReagent> reagentList(SysUser user, String name, String cas, String supplierId, String productSn, int first, int pageSize) { |
| | | public List<SysReagent> reagentList(SysUser user, String name, String cas, String supplierId, String productSn, int first, int pageSize,int count) { |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("user", user.getId()); |
| | | params.put("name", name); |
| | |
| | | params.put("productSn", productSn); |
| | | params.put("first", first); |
| | | params.put("pageSize", pageSize); |
| | | params.put("MaxSize", first+pageSize); |
| | | params.put("MaxSize", count); |
| | | return sysReagentDao.reagentList(params); |
| | | } |
| | | |