Backup local changes before resolving remote repository issue
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package com.openhis.web.debug;
|
||||
|
||||
import com.core.common.core.domain.R;
|
||||
import com.openhis.web.basedatamanage.appservice.IPractitionerAppService;
|
||||
import com.openhis.web.basedatamanage.dto.UserAndPractitionerDto;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 调试控制器 - 用于检查API返回数据
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/debug")
|
||||
public class DebugController {
|
||||
|
||||
@Resource
|
||||
private IPractitionerAppService practitionerAppService;
|
||||
|
||||
/**
|
||||
* 获取用户及参与者数据用于调试
|
||||
*/
|
||||
@GetMapping("/user-practitioner-debug")
|
||||
public R<UserAndPractitionerDto> getUserPractitionerDebug() {
|
||||
// 获取第一页第一条数据用于调试
|
||||
var page = practitionerAppService.getUserPractitionerPage(new UserAndPractitionerDto(), "", 1, 1);
|
||||
if (page.getRecords() != null && !page.getRecords().isEmpty()) {
|
||||
return R.ok(page.getRecords().get(0));
|
||||
}
|
||||
return R.fail("没有找到数据");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user