| | |
| | | params.put("number", encodeReplaceDictFilter.getNumber()); |
| | | params.put("type", encodeReplaceDictFilter.getType()); |
| | | } |
| | | params.put("first", offset); |
| | | params.put("pageSize", pageSize); |
| | | return encodeReplaceDictMapper.selectAll(params); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public boolean checkAddOne(EncodeReplaceDict encodeReplaceDict) throws Exception { |
| | | public void checkAddOne(EncodeReplaceDict encodeReplaceDict) throws Exception { |
| | | Map<String, Object> params = null; |
| | | params = new HashMap<>(); |
| | | //同一个类型下的编号是否重复 |
| | |
| | | throw new Exception("信息重复"); |
| | | } |
| | | //同时不存在就合格 |
| | | return check1 == 0 && check2 == 0; |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public EncodeReplaceDict getOne(Long id) { |
| | | return encodeReplaceDictMapper.selectByPrimaryKey(id); |
| | | } |
| | | |
| | | |
| | | } |