| | |
| | | // 获取所有单据类型 |
| | | @RequestMapping("/docType/all/get") |
| | | @ManagerAuth |
| | | public R getDocTypeData() { |
| | | List<DocType> docTypes = docTypeService.selectList(new EntityWrapper<DocType>().eq("status", 1).eq("host_id", getHostId()).orderBy("create_time", false).eq("doc_class",1)); |
| | | public R getDocTypeData(Integer docClass) { |
| | | List<DocType> docTypes = docTypeService.selectList(new EntityWrapper<DocType>().eq("status", 1). |
| | | eq("host_id", getHostId()).orderBy("create_time", false).eq("doc_class",docClass)); |
| | | return R.ok().add(docTypes); |
| | | } |
| | | |