| | |
| | | return R.ok(result); |
| | | } |
| | | |
| | | // 只查入库单据 |
| | | @RequestMapping(value = "/docTypeQueryIn/auth") |
| | | @ManagerAuth |
| | | public R queryIn(String condition) { |
| | | EntityWrapper<DocType> wrapper = new EntityWrapper<>(); |
| | | wrapper.like("doc_name", condition); |
| | | wrapper.eq("status", 1); |
| | | wrapper.eq("pakin", 1); |
| | | Page<DocType> page = docTypeService.selectPage(new Page<>(0, 30), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (DocType docType : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", docType.getDocId()); |
| | | map.put("value", docType.getDocName()); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |
| | | } |
| | | |
| | | // 只查出库单据 |
| | | @RequestMapping(value = "/docTypeQueryOut/auth") |
| | | @ManagerAuth |
| | | public R queryOut(String condition) { |
| | | EntityWrapper<DocType> wrapper = new EntityWrapper<>(); |
| | | wrapper.like("doc_name", condition); |
| | | wrapper.eq("status", 1); |
| | | wrapper.eq("pakout", 1); |
| | | Page<DocType> page = docTypeService.selectPage(new Page<>(0, 30), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (DocType docType : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", docType.getDocId()); |
| | | map.put("value", docType.getDocName()); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |
| | | } |
| | | |
| | | @RequestMapping(value = "/docType/check/column/auth") |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |