Commit c93df271 authored by liuxun's avatar liuxun

merge

parent 4929aca2
......@@ -4,12 +4,15 @@ import com.hungraim.ltc.service.OrganService;
import com.hungraim.ltc.util.Result;
import com.hungraim.ltc.util.ResultCode;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Slf4j
@RestController
@RequestMapping("/api.apply/organ")
@AllArgsConstructor
......@@ -26,10 +29,11 @@ public class OrganController {
* @return 返回一个ids集合
*/
@GetMapping("/child")
public Result<List<Long>> getOrganChild(Long organId, Boolean isInvolveChild) {
public Result<List<Long>> getOrganChild(@RequestParam("organId") Long organId, @RequestParam("isInvolveChild") Boolean isInvolveChild){
if (null == organId || null == isInvolveChild) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
}
log.info("getOrganChild:{},{}",organId,isInvolveChild);
return Result.success(organService.getOrganIds(organId, isInvolveChild));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment