| | |
| | | @ManagerAuth |
| | | public R update(DocType docType){ |
| | | if (Cools.isEmpty(docType) || null==docType.getDocId()){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | docType.setUpdateBy(getUserId()); |
| | | docType.setUpdateTime(new Date()); |
| | |
| | | public R query(String condition) { |
| | | EntityWrapper<DocType> wrapper = new EntityWrapper<>(); |
| | | wrapper.like("doc_name", condition); |
| | | Page<DocType> page = docTypeService.selectPage(new Page<>(0, 10), wrapper); |
| | | Page<DocType> page = docTypeService.selectPage(new Page<>(0, 50), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (DocType docType : page.getRecords()){ |
| | | Map<String, Object> map = new HashMap<>(); |