| | |
| | | SysSequenceService sysSequenceService; |
| | | @Resource |
| | | private SysUserService sysUserService; |
| | | @Resource |
| | | private BaseMetaService baseMetaService; |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public List<OpeApply> getOpeApplyList(String reagentName, Timestamp startDeadline, String controlProduct,Timestamp endDeadline, Integer status, |
| | |
| | | params.put("productSn",productSn); |
| | | params.put("applyCode",applyCode); |
| | | if (isExpired) { |
| | | params.put("status",ApplyStatus.EXPIRED); |
| | | params.put("status",ApplyStatus.EXPIRED.getKey()); |
| | | }else{ |
| | | params.put("status", status); |
| | | } |
| | |
| | | params.put("productSn",productSn); |
| | | params.put("applyCode",applyCode); |
| | | if (isExpired) { |
| | | params.put("status",ApplyStatus.EXPIRED); |
| | | params.put("status",ApplyStatus.EXPIRED.getKey()); |
| | | }else{ |
| | | params.put("status", status); |
| | | } |
| | |
| | | return opeApplyDao.getOpeApplyReserveListByNameForRowData(rowKey); |
| | | } |
| | | |
| | | @Override |
| | | public int getOpeApplySupplerRequireMngTotalCount(SysUser user,String reagentName, Timestamp startDeadline, Timestamp endDeadline, int status, byte isShow) { |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("reagentName",reagentName ); |
| | | params.put("startDeadline", startDeadline); |
| | | params.put("endDeadline", endDeadline); |
| | | params.put("status", status); |
| | | params.put("isShow", isShow); |
| | | //看到供应商是自己的单位的数据 |
| | | String company = baseMetaService.getBaseMetaValue(user.getCompany()); |
| | | if (user.getSeeFlag().getKey() != SeeFlag.MANAGE.getKey() |
| | | && user.getSeeFlag().getKey() != SeeFlag.LEADING.getKey()) { |
| | | params.put("company", company); |
| | | } |
| | | return this.opeApplyDao.getOpeApplySupplerRequireMngTotalCount(params); |
| | | } |
| | | |
| | | @Override |
| | | public List<OpeApply> getOpeApplySupplerRequireMngList(SysUser user,String reagentName, Timestamp startDeadline, Timestamp endDeadline, int status, int first, int pageSize, byte isShow) { |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("reagentName", reagentName); |
| | | params.put("startDeadline", startDeadline); |
| | | params.put("endDeadline", endDeadline); |
| | | params.put("status", status); |
| | | params.put("isShow", isShow); |
| | | //看到供应商是自己的单位的数据 |
| | | String company = baseMetaService.getBaseMetaValue(user.getCompany()); |
| | | if (user.getSeeFlag().getKey() != SeeFlag.MANAGE.getKey() |
| | | && user.getSeeFlag().getKey() != SeeFlag.LEADING.getKey()) { |
| | | params.put("company", company); |
| | | } |
| | | |
| | | return this.opeApplyDao.getOpeApplySupplerRequireMngList(params); |
| | | } |
| | | |
| | | } |