zhaowenxuan
2024-10-14 7d702f59202496e28a80582b4aeeab2a9b9da76d
ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiController.java
@@ -1,37 +1,52 @@
//package com.ltkj.web.controller.his;
//
//
//import com.ltkj.common.core.controller.BaseController;
//import com.ltkj.common.core.domain.AjaxResult;
//import com.ltkj.common.core.page.TableDataInfo;
//import com.ltkj.common.utils.http.HttpUtils;
//import com.ltkj.hosp.domain.DictSsdm;
//import com.ltkj.hosp.domain.TjCustomer;
//import com.ltkj.hosp.hisDto.*;
//import com.ltkj.hosp.service.ITjCustomerService;
//import com.ltkj.web.wxUtils.HttpClientUtils;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//import java.util.Date;
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
//
//@Api(tags = "AAAAA-----HISAPI相关接口文档")
//@RestController
//@RequestMapping("/api/His")
//public class HisApiController extends BaseController {
package com.ltkj.web.controller.his;
import com.alibaba.fastjson.JSONObject;
import com.ltkj.common.core.controller.BaseController;
import com.ltkj.hosp.hisDto.*;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;
@Api(tags = "AAAAA-----HISAPI相关接口文档")
@RestController
@RequestMapping("/api/His")
public class HisApiController extends BaseController {
        @PostMapping(value = "/callback")
        public void callback(@RequestBody JSONObject json) {
            System.out.println("===================记录打印次数====================");
            System.out.println(json.toJSONString());
            String tjNumber = json.get("tjNumber").toString();
            String reportName = json.get("reportName").toString();
            System.out.println("用户: "+tjNumber+reportName+" 已打印");
        }
//    @Autowired
//    private ITjCustomerService tjCustomerService;
//
//    @Autowired
//    private HisApiGetMethodService service;
//
//    private static final String HIS_URL = "https://mock.mengxuegu.com/mock/664d3dbce45d2156fa209c80/example/api/His/HisRequest";
//
//
//    @GetMapping("/his")
//    public AjaxResult Outpinconapply() {
//        Map<String, Object> maps = new HashMap<>();
//        maps.put("his_registration_id","20240704000218");
//        maps.put("ksbm", "体检中心");
//        maps.put("pagecount", 100);
//        maps.put("page", 1);
//       service.getHISDataNew("", maps);
//        return AjaxResult.success();
//    }
//    @PostMapping("/Outpincreateapply")
//    @ApiOperation(value = "新增/修改门诊注册信息")
//    public AjaxResult Outpincreateapply(@RequestBody TjCustomer customer) {
@@ -716,4 +731,4 @@
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//}
}