路泰机电科技体检——数据平台后端
zhaowenxuan
2024-12-18 a86b542a327a5b970b46825660149fc1bf2e5f36
src/main/java/com/example/controller/HisController.java
@@ -7,10 +7,12 @@
import com.example.service.HisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
/**
 * his接口请求
@@ -31,244 +33,155 @@
        hisService= serviceFactory.getService();
    }
    /**
     * 建档
     * @param customer
     * @return
     */
    @PostMapping("creat")
    public String jianDang (TjCustomer customer) {
        return hisService.jianDang(customer);
    public String jianDang (@RequestBody Map<String ,Object> map) {
        return hisService.jianDang(map);
    }
    /**
     * 验证身份证是否建过档
     * @param customer
     * @return
     */
    @PostMapping("isCreat")
    public String getBingRenXxByShengFenZheng (TjCustomer customer) {
        return hisService.getBingRenXxByShengFenZheng(customer);
    public String getBingRenXxByShengFenZheng (@RequestBody Map<String ,Object> map) {
        return hisService.getBingRenXxByShengFenZheng(map);
    }
    /**
     * 病人基本信息变更
     * @param customer
     * @return
     */
    @PostMapping("update")
    public String saveBingRenXx (TjCustomer customer) {
        return hisService.saveBingRenXx(customer);
    public String saveBingRenXx (@RequestBody Map<String ,Object> map) {
        return hisService.saveBingRenXx(map);
    }
    /**
     * 待收费费用查询
     * @param bingRenId
     * @param jiuZhenKh
     * @param yuanQuId
     * @return
     */
    @PostMapping("getPendingPaymentList")
    public String getListDaiShouFei (String bingRenId,String jiuZhenKh,String yuanQuId) {
        return hisService.getListDaiShouFei(bingRenId,jiuZhenKh,yuanQuId);
    public String getListDaiShouFei (@RequestBody Map<String ,Object> map) {
        return hisService.getListDaiShouFei(map);
    }
    /**
     * 生成待收费/待退费 费用
     * @param dto
     * @return
     */
    @PostMapping("creatCostInfo")
    public String createMenZhenFy (CreateMenZhenFyDto dto) {
        return hisService.createMenZhenFy(dto);
    public String createMenZhenFy (@RequestBody Map<String ,Object> map) {
        return hisService.createMenZhenFy(map);
    }
    /**
     * 门诊未收费费用撤销
     * @param dto
     * @return
     */
    @PostMapping("revokeCost")
    public String cheXiaoMzFy (CheXiaoMzFyDto dto) {
        return hisService.cheXiaoMzFy(dto);
    public String cheXiaoMzFy (@RequestBody Map<String ,Object> map) {
        return hisService.cheXiaoMzFy(map);
    }
    /**
     * 收费/退费完成通知第三方
     * @param feiYongId
     * @param yeWuLx
     * @return
     */
    @PostMapping("pushPayMsg")
    public String pushZhiFuMsg (String feiYongId,int yeWuLx ) {
        return hisService.pushZhiFuMsg(feiYongId,yeWuLx);
    public String pushZhiFuMsg (@RequestBody Map<String ,Object> map) {
        return hisService.pushZhiFuMsg(map);
    }
    /**
     * 科室信息查询
     * @param yuanQuId
     * @param keShiMc
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @PostMapping("getKeShiList")
    public String getKeShi (String yuanQuId,String keShiMc,int pageIndex,int pageSize ) {
        return hisService.getKeShi(yuanQuId,keShiMc,pageIndex,pageSize);
    public String getKeShi (@RequestBody Map<String ,Object> map) {
        return hisService.getKeShi(map);
    }
    /**
     * 医生信息查询
     * @param yuanQuId
     * @param keShiMc
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @PostMapping("getYiShengList")
    public String getListYiShengZd (String yuanQuId,String keShiMc,int pageIndex,int pageSize ) {
        return hisService.getListYiShengZd(yuanQuId,keShiMc,pageIndex,pageSize);
    public String getListYiShengZd (@RequestBody Map<String ,Object> map) {
        return hisService.getListYiShengZd(map);
    }
    /**
     * 获取收费项目分页
     * @param queryString
     * @param bianGengSj
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @PostMapping("getShouFeiXmList")
    public String getShouFeiXm (String queryString,String bianGengSj,int pageIndex,int pageSize ) {
        return hisService.getShouFeiXm(queryString,bianGengSj,pageIndex,pageSize);
    public String getShouFeiXm (@RequestBody Map<String ,Object> map) {
        return hisService.getShouFeiXm(map);
    }
    /**
     *科室信息推送
     * @param xingZhiSx 组织属性 第一位1 表示 挂号
     * 第二位 1表示临床
     * 第三位 1表示检查
     * 第四位 1 表示手术
     * 第五位 1 表示治疗
     * 第六位 1 表示护理
     * @param queryString 模糊匹配输⼊码1、科室名称
     * @param zuoFeiBz 作废标志:0 正常;1 作废
     * @param yuanQuId 院区id
     * @param keShiIds 科室ID集合
     * @param ifPlus 是否查询plus属性
     * @return
     */
    @PostMapping("getKeShiByConditionsList")
    public String getKeShiByConditions (int xingZhiSx, String queryString, int zuoFeiBz, String yuanQuId, List<String> keShiIds, int ifPlus) {
        return hisService.getKeShiByConditions(xingZhiSx, queryString, zuoFeiBz, yuanQuId, keShiIds,ifPlus);
    public String getKeShiByConditions (@RequestBody Map<String ,Object> map) {
        return hisService.getKeShiByConditions(map);
    }
    /**
     * 取样本字典
     * @param queryString 样本类型名称(样本名称/样本类型id)
     * @param pageIndex
     * @param pageSize 每⻚条数(最⼤不能超过100)
     * @return
     */
    @PostMapping("getYangBen")
    public String getYangBen (String queryString,int pageIndex,int pageSize ) {
        return hisService.getYangBen(queryString,pageIndex,pageSize);
    public String getYangBen (@RequestBody Map<String ,Object> map) {
        return hisService.getYangBen(map);
    }
    /**
     *  病区信息推送
     * @param yuanQuId 院区Id
     * @param keShiId 科室Id
     * @param pageIndex 当前⻚
     * @param pageSize 每⻚条数(最⼤不能超过100)
     * @return
     */
    @PostMapping("getBingQuList")
    public String getListBingQuZd (String yuanQuId,String keShiId,int pageIndex,int pageSize ) {
        return hisService.getListBingQuZd(yuanQuId,keShiId,pageIndex,pageSize);
    public String getListBingQuZd (@RequestBody Map<String ,Object> map) {
        return hisService.getListBingQuZd(map);
    }
    /**
     * 职⼯信息
     * @param bianGengSj 变更时间
     * @param pageIndex 当前⻚
     * @param pageSize 每⻚条数(最⼤不能超过100)
     * @return
     */
    @PostMapping("getZhiGongList")
    public String getZhiGongPage (String bianGengSj,int pageIndex,int pageSize ) {
        return hisService.getZhiGongPage(bianGengSj,pageIndex,pageSize);
    public String getZhiGongPage (@RequestBody Map<String ,Object> map) {
        return hisService.getZhiGongPage(map);
    }
    /**
     * 检查项目
     * @param queryString
     * @param bianGengSj
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @PostMapping("getJcxm")
    public String getJianChaXm (String queryString,String bianGengSj,int pageIndex,int pageSize ) {
        return hisService.getJianChaXm(queryString,bianGengSj,pageIndex,pageSize);
    public String getJianChaXm (@RequestBody Map<String ,Object> map) {
        return hisService.getJianChaXm(map);
    }
    /**
     * 检验项⽬推送
     * @param queryCode 查询码(项⽬编码/拼⾳码
     * @param page 当前⻚
     * @param size 每⻚条数(最⼤不能超过100
     * @return
     */
    @PostMapping("getJyxm")
    public String getJianYanXm(String queryCode,Integer page,Integer size){
        return hisService.getJianYanXm(queryCode,page,size);
    public String getJianYanXm(@RequestBody Map<String ,Object> map){
        return hisService.getJianYanXm(map);
    }
    /**
     * 检验项⽬收费推送
     * @param shouFeiXmId 收费项⽬id
     * @param jiaGeTx 价格体系
     * @return
     */
    @PostMapping("getShouFeiXmjg")
    public String getShouFeiXmJg(String shouFeiXmId,String jiaGeTx){
        return hisService.getShouFeiXmJg(shouFeiXmId,jiaGeTx);
    public String getShouFeiXmJg(@RequestBody Map<String ,Object> map){
        return hisService.getShouFeiXmJg(map);
    }
    /**
     * 检验容器
     * @param queryString 容器名称(容器名称/输⼊码1)
     * @param pageIndex 当前⻚
     * @param pageSize 每⻚条数(最⼤不能超过100)
     * @return
     */
    @PostMapping("getJyrqList")
    public String getRongQi(String queryString,Integer pageIndex,Integer pageSize){
        return hisService.getRongQi(queryString,pageIndex,pageSize);
    public String getRongQi(@RequestBody Map<String ,Object> map){
        return hisService.getRongQi(map);
    }
    /**
     *  检验样本
     * @param queryString 样本类型名称(样本名称/样本类型id)
     * @param pageIndex  当前⻚
     * @param pageSize 每⻚条数(最⼤不能超过100)
     * @return
     */
    @PostMapping("getJyybList")
    public String getYangBen(String queryString,Integer pageIndex,Integer pageSize){
        return hisService.getJyYangBen(queryString,pageIndex,pageSize);
    public String getJyYangBen(@RequestBody Map<String ,Object> map){
        return hisService.getJyYangBen(map);
    }
}