|
@@ -2,8 +2,8 @@ package com.jeeplus.test.reimbursement.reimbursementType.controller;
|
|
|
|
|
|
import com.jeeplus.test.reimbursement.reimbursementType.domain.ReimbursementTypeInfo;
|
|
|
import com.jeeplus.test.reimbursement.reimbursementType.mapper.ReimbursementTypeMapper;
|
|
|
+import com.jeeplus.test.reimbursement.reimbursementType.service.ReimbursementTypeForTreeDataService;
|
|
|
import com.jeeplus.test.reimbursement.reimbursementType.service.ReimbursementTypeService;
|
|
|
-import com.jeeplus.test.reimbursement.reimbursementType.service.dto.ReimbursementTypeDto;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
@@ -21,6 +21,9 @@ public class ReimbursementTypeController {
|
|
|
private ReimbursementTypeService service;
|
|
|
|
|
|
@Resource
|
|
|
+ private ReimbursementTypeForTreeDataService treeService;
|
|
|
+
|
|
|
+ @Resource
|
|
|
private ReimbursementTypeMapper mapper;
|
|
|
|
|
|
/**
|
|
@@ -71,4 +74,16 @@ public class ReimbursementTypeController {
|
|
|
return ResponseEntity.ok("操作完成");
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询树形
|
|
|
+ * @param extId 排除的ID
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "查询树形")
|
|
|
+ @GetMapping("/treeData")
|
|
|
+ public ResponseEntity<List<ReimbursementTypeInfo>> treeData(@RequestParam(required = false) String extId) {
|
|
|
+ List<ReimbursementTypeInfo> infos = treeService.treeData(extId);
|
|
|
+ return ResponseEntity.ok(infos);
|
|
|
+ }
|
|
|
+
|
|
|
}
|