2025-03-24 22:12:01 +08:00
|
|
|
package com.dpkj.modules.chs.controller;
|
|
|
|
|
2025-05-20 18:03:31 +08:00
|
|
|
import cn.hutool.core.date.DatePattern;
|
|
|
|
import cn.hutool.core.date.DateUnit;
|
|
|
|
import cn.hutool.core.date.DateUtil;
|
2025-03-24 22:12:01 +08:00
|
|
|
import cn.hutool.core.lang.Console;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.dpkj.common.vo.Result;
|
|
|
|
import com.dpkj.modules.chs.service.IHispayService;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
2025-05-20 18:03:31 +08:00
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
2025-03-24 22:12:01 +08:00
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Auther: 萧道子
|
|
|
|
* @Date: 2025/3/22 16:25
|
|
|
|
* @Description: 医保模块-HIS医保
|
|
|
|
*/
|
|
|
|
@Slf4j
|
|
|
|
@AllArgsConstructor
|
|
|
|
@RestController
|
|
|
|
@RequestMapping("/chs/hispay")
|
|
|
|
public class HispayController {
|
|
|
|
|
2025-05-20 18:03:31 +08:00
|
|
|
private final IHispayService iHispayService;
|
2025-03-24 22:12:01 +08:00
|
|
|
|
|
|
|
|
2025-05-20 18:03:31 +08:00
|
|
|
@RequestMapping("getPatientInfo")
|
|
|
|
public Result<?> getPatientInfo() {
|
2025-03-24 22:12:01 +08:00
|
|
|
try {
|
2025-05-20 18:03:31 +08:00
|
|
|
iHispayService.getPatientInfo("2", null);
|
2025-03-24 22:12:01 +08:00
|
|
|
return Result.ok("成功", null);
|
|
|
|
} catch (Exception e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
return Result.error("失败");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2025-05-20 18:03:31 +08:00
|
|
|
@RequestMapping("t1")
|
|
|
|
public Result<?> t1(@RequestBody JSONObject map) throws InterruptedException {
|
|
|
|
// Console.log("41 - {}\n", map);
|
|
|
|
// Thread.sleep(100);
|
|
|
|
String format = DateUtil.format(DateUtil.date(), DatePattern.PURE_DATETIME_MS_FORMAT);
|
|
|
|
System.out.println(format);
|
|
|
|
return Result.ok("成功", format);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2025-03-24 22:12:01 +08:00
|
|
|
}
|