package com.dpkj.modules.chs.controller; import cn.hutool.core.date.DatePattern; import cn.hutool.core.date.DateUnit; import cn.hutool.core.date.DateUtil; 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; import org.springframework.web.bind.annotation.RequestParam; 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 { private final IHispayService iHispayService; @RequestMapping("getPatientInfo") public Result getPatientInfo() { try { iHispayService.getPatientInfo("2", null); return Result.ok("成功", null); } catch (Exception e) { e.printStackTrace(); return Result.error("失败"); } } @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); } }