Backup local changes before resolving remote repository issue

This commit is contained in:
2026-01-27 10:05:25 +08:00
parent 11c2758289
commit 86bca03b04
29 changed files with 2626 additions and 126 deletions

View File

@@ -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("没有找到数据");
}
}