| | |
| | | if (sysUser.getSeeFlag().getKey() != SeeFlag.MANAGE.getKey()) { |
| | | params.put("applyUserId", applyUserId); |
| | | } |
| | | |
| | | if("连悦".equals(sysUser.getName())){ |
| | | params.remove("applyUserId"); |
| | | } |
| | | } |
| | | |
| | | params.put("approveUserId", approveUserId); |
| | |
| | | if (sysUser.getSeeFlag().getKey() != SeeFlag.MANAGE.getKey()) { |
| | | params.put("applyUserId", applyUserId); |
| | | } |
| | | |
| | | if("连悦".equals(sysUser.getName())){ |
| | | params.remove("applyUserId"); |
| | | } |
| | | } |
| | | |
| | | params.put("approveUserId", approveUserId); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int getOpeApplyReserveTotalCountByNameFor(String id,String reagentName, String personName) { |
| | | public int getOpeApplyReserveTotalCountByNameFor(String id,String reagentName, String personName,String productSn,String applyCode,Integer status) { |
| | | try { |
| | | Map<String, Object> params = new HashMap<String, Object>(); |
| | | params.put("reagentName", reagentName); |
| | | params.put("personName", personName); |
| | | params.put("userId",id); |
| | | params.put("productSn",productSn); |
| | | params.put("applyCode",applyCode); |
| | | params.put("status",status); |
| | | return this.opeApplyDao.getOpeApplyReserveTotalCountFor(params); |
| | | } catch (DataAccessException e) { |
| | | logger.error(e.getMessage(), e); |
| | |
| | | } |
| | | @Override |
| | | public List<OpeApplyReserve> getOpeApplyReserveListByNameFor(String id,String reagentName, String personName, Integer first, |
| | | Integer pageSize) { |
| | | Integer pageSize,String productSn,String applyCode,Integer status) { |
| | | try { |
| | | Map<String, Object> params = new HashMap<String, Object>(); |
| | | params.put("reagentName", reagentName); |
| | |
| | | params.put("userId",id); |
| | | params.put("first", first); |
| | | params.put("pageSize", pageSize); |
| | | params.put("productSn",productSn); |
| | | params.put("applyCode",applyCode); |
| | | params.put("status",status); |
| | | return this.opeApplyDao.getOpeApplyReserveListFor(params); |
| | | } catch (DataAccessException e) { |
| | | logger.error(e.getMessage(), e); |