重构接口
parent
e23f95ad73
commit
dd5526c680
|
@ -0,0 +1,12 @@
|
||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
|
||||||
|
**/.idea/
|
||||||
|
|
||||||
|
**/.target/
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="Encoding">
|
|
||||||
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
|
||||||
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
|
|
||||||
<file url="file://$APPLICATION_HOME_DIR$/jbr/bin/src/main/java" charset="UTF-8" />
|
|
||||||
<file url="file://$APPLICATION_HOME_DIR$/jbr/bin/src/main/resources" charset="UTF-8" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -1,36 +0,0 @@
|
||||||
<component name="InspectionProjectProfileManager">
|
|
||||||
<profile version="1.0">
|
|
||||||
<option name="myName" value="Project Default" />
|
|
||||||
<inspection_tool class="JavaDoc" enabled="true" level="WARNING" enabled_by_default="true">
|
|
||||||
<option name="TOP_LEVEL_CLASS_OPTIONS">
|
|
||||||
<value>
|
|
||||||
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
|
|
||||||
<option name="REQUIRED_TAGS" value="" />
|
|
||||||
</value>
|
|
||||||
</option>
|
|
||||||
<option name="INNER_CLASS_OPTIONS">
|
|
||||||
<value>
|
|
||||||
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
|
|
||||||
<option name="REQUIRED_TAGS" value="" />
|
|
||||||
</value>
|
|
||||||
</option>
|
|
||||||
<option name="METHOD_OPTIONS">
|
|
||||||
<value>
|
|
||||||
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
|
|
||||||
<option name="REQUIRED_TAGS" value="@return@param@throws or @exception" />
|
|
||||||
</value>
|
|
||||||
</option>
|
|
||||||
<option name="FIELD_OPTIONS">
|
|
||||||
<value>
|
|
||||||
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
|
|
||||||
<option name="REQUIRED_TAGS" value="" />
|
|
||||||
</value>
|
|
||||||
</option>
|
|
||||||
<option name="IGNORE_DEPRECATED" value="false" />
|
|
||||||
<option name="IGNORE_JAVADOC_PERIOD" value="true" />
|
|
||||||
<option name="IGNORE_DUPLICATED_THROWS" value="false" />
|
|
||||||
<option name="IGNORE_POINT_TO_ITSELF" value="false" />
|
|
||||||
<option name="myAdditionalJavadocTags" value="date" />
|
|
||||||
</inspection_tool>
|
|
||||||
</profile>
|
|
||||||
</component>
|
|
|
@ -1,35 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="RemoteRepositoriesConfiguration">
|
|
||||||
<remote-repository>
|
|
||||||
<option name="id" value="public" />
|
|
||||||
<option name="name" value="aliyun nexus" />
|
|
||||||
<option name="url" value="https://maven.aliyun.com/repository/public" />
|
|
||||||
</remote-repository>
|
|
||||||
<remote-repository>
|
|
||||||
<option name="id" value="central" />
|
|
||||||
<option name="name" value="Central Repository" />
|
|
||||||
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
|
|
||||||
</remote-repository>
|
|
||||||
<remote-repository>
|
|
||||||
<option name="id" value="central" />
|
|
||||||
<option name="name" value="Central Repository" />
|
|
||||||
<option name="url" value="http://10.100.1.4:8081/repository/maven-public/" />
|
|
||||||
</remote-repository>
|
|
||||||
<remote-repository>
|
|
||||||
<option name="id" value="central" />
|
|
||||||
<option name="name" value="Maven Central repository" />
|
|
||||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
|
||||||
</remote-repository>
|
|
||||||
<remote-repository>
|
|
||||||
<option name="id" value="jboss.community" />
|
|
||||||
<option name="name" value="JBoss Community repository" />
|
|
||||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
|
||||||
</remote-repository>
|
|
||||||
<remote-repository>
|
|
||||||
<option name="id" value="central" />
|
|
||||||
<option name="name" value="Central Repository" />
|
|
||||||
<option name="url" value="http://47.120.40.48:8081/repository/maven-public/" />
|
|
||||||
</remote-repository>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="SqlDialectMappings">
|
|
||||||
<file url="file://$PROJECT_DIR$/src/main/resources/mapper/RegistrationInformationMapper.xml" dialect="GenericSQL" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
9
pom.xml
9
pom.xml
|
@ -102,5 +102,14 @@
|
||||||
<artifactId>forest-spring-boot-starter</artifactId>
|
<artifactId>forest-spring-boot-starter</artifactId>
|
||||||
<version>1.5.33</version>
|
<version>1.5.33</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web-services</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -4,12 +4,6 @@ package com.four.patient.controller;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.four.common.core.domain.Result;
|
import com.four.common.core.domain.Result;
|
||||||
import com.four.common.duck.communitypatients.SymptomsDrugs;
|
import com.four.common.duck.communitypatients.SymptomsDrugs;
|
||||||
import com.four.common.duck.domain.GiftRecord;
|
|
||||||
import com.four.common.duck.gift.Gift;
|
|
||||||
import com.four.common.duck.interrogation.FollowDoctor;
|
|
||||||
import com.four.common.duck.interrogation.HistoricalConsultation;
|
|
||||||
import com.four.common.duck.interrogation.PatientEvaluator;
|
|
||||||
import com.four.common.duck.my.User;
|
|
||||||
import com.four.common.duck.response.ResponseRegistrationInformation;
|
import com.four.common.duck.response.ResponseRegistrationInformation;
|
||||||
import com.four.patient.service.RegistrationInformationService;
|
import com.four.patient.service.RegistrationInformationService;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
|
@ -31,6 +25,8 @@ public class RegistrationInformationController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private HttpServletRequest request;
|
private HttpServletRequest request;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询全部科室
|
* 查询全部科室
|
||||||
* @return
|
* @return
|
||||||
|
@ -51,12 +47,12 @@ public class RegistrationInformationController {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PostMapping("/ShowRegistrationInformationAllPrice")
|
@PostMapping("/ShowRegistrationInformationAllPrice")
|
||||||
public Result<List<ResponseRegistrationInformation>> ShowRegistrationInformationAllPrice(Long medicalDepartmentId) {
|
public Result<List<ResponseRegistrationInformation>> ShowRegistrationInformationAllPrice(@RequestParam Long medicalDepartmentId){
|
||||||
log.info("功能名称:查询不同科室价格倒序的医生信息,请求URI:{},请求方法:{},请求参数:{}", request.getRequestURI(),
|
log.info("功能名称:查询价格倒序的医生信息,请求URI:{},请求方法:{},请求参数:{}",request.getRequestURI(),
|
||||||
request.getMethod(), JSONObject.toJSONString(medicalDepartmentId));
|
request.getMethod(),JSONObject.toJSONString(medicalDepartmentId));
|
||||||
List<ResponseRegistrationInformation> list = registrationInformationService.ShowRegistrationInformationAllPrice(medicalDepartmentId);
|
List<ResponseRegistrationInformation> list=registrationInformationService.ShowRegistrationInformationAllPrice(medicalDepartmentId);
|
||||||
log.info("功能名称:查询不同科室价格倒序的医生信息,请求URI:{},请求方法:{},请求参数:{}", request.getRequestURI(),
|
log.info("功能名称:查询价格倒序到医生信息,请求URI:{},请求方法:{},返回结果:{}",request.getRequestURI(),
|
||||||
request.getMethod(), JSONObject.toJSONString(list));
|
request.getMethod(),JSONObject.toJSONString(list));
|
||||||
return Result.success(list);
|
return Result.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,15 +63,17 @@ public class RegistrationInformationController {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PostMapping("/ShowRegistrationInformationNumber")
|
@PostMapping("/ShowRegistrationInformationNumber")
|
||||||
public Result<List<ResponseRegistrationInformation>> ShowRegistrationInformationNumber(Long medicalDepartmentId) {
|
public Result<List<ResponseRegistrationInformation>> ShowRegistrationInformationNumber(@RequestParam Long medicalDepartmentId){
|
||||||
log.info("功能名称:查询不同科室接待患者人数倒序的医生信息,请求URI:{},请求方法:{},请求参数:{}", request.getRequestURI(),
|
log.info("功能名称:查询不同科室医生诊金倒序信息,请求URI:{}。请求方法:{},请求参数:{}",request.getRequestURI(),
|
||||||
request.getMethod(), JSONObject.toJSONString(medicalDepartmentId));
|
request.getMethod(),JSONObject.toJSONString(medicalDepartmentId));
|
||||||
List<ResponseRegistrationInformation> list = registrationInformationService.ShowRegistrationInformationNumber(medicalDepartmentId);
|
List<ResponseRegistrationInformation> list=registrationInformationService.ShowRegistrationInformationNumber(medicalDepartmentId);
|
||||||
log.info("功能名称:查询不同科室接待患者人数倒序的医生信息,请求URI:{},请求方法:{},请求参数:{}", request.getRequestURI(),
|
log.info("功能名称:查询不同科室医生诊金倒序信息,请求URI:{},请求方法:{},请求参数:{}",request.getRequestURI(),
|
||||||
request.getMethod(), JSONObject.toJSONString(list));
|
request.getMethod(),JSONObject.toJSONString(list));
|
||||||
return Result.success(list);
|
return Result.success(list);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询不同科室好评人数倒序排序的医生信息
|
* 查询不同科室好评人数倒序排序的医生信息
|
||||||
* @param medicalDepartmentId
|
* @param medicalDepartmentId
|
||||||
|
|
|
@ -0,0 +1,67 @@
|
||||||
|
package com.four.patient.feign;
|
||||||
|
|
||||||
|
import com.four.common.core.web.domain.AjaxResult;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
|
||||||
|
@FeignClient("four-system")
|
||||||
|
public interface DoctorFeign {
|
||||||
|
/**
|
||||||
|
* 查询综合排序倒序医生信息
|
||||||
|
* @param medicalDepartmentId
|
||||||
|
* @author 李闯
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping("/user/findDoctorComprehensive/{medicalDepartmentId}")
|
||||||
|
public AjaxResult findDoctorComprehensive(@PathVariable(value = "medicalDepartmentId") Long medicalDepartmentId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询好评人数倒序的医生信息
|
||||||
|
* @param medicalDepartmentId;
|
||||||
|
* @author 李闯
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping("/user/findDoctorNumber/{medicalDepartmentId}")
|
||||||
|
public AjaxResult findDoctorNumber(@PathVariable(value = "medicalDepartmentId") Long medicalDepartmentId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询接待患者人数倒序排序医生信息
|
||||||
|
* @param medicalDepartmentId
|
||||||
|
* @author 李闯
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping("/user/findDoctorPraise/{medicalDepartmentId}")
|
||||||
|
public AjaxResult findDoctorPraise(@PathVariable(value = "medicalDepartmentId") Long medicalDepartmentId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询价格倒序的医生信息
|
||||||
|
* @param medicalDepartmentId
|
||||||
|
* @author 李闯
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping("/user/findDoctorInformation/{medicalDepartmentId}")
|
||||||
|
public AjaxResult findDoctorInformation(@PathVariable(value = "medicalDepartmentId") Long medicalDepartmentId);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据userId来查询用户信息
|
||||||
|
* @param userId
|
||||||
|
* @author 李闯
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("/user/findByUserId/{userId}")
|
||||||
|
public AjaxResult findByUserId(@PathVariable(value = "userId") Long userId);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据registrationInformationId
|
||||||
|
* 来查询医生注册信息
|
||||||
|
* @param registrationInformationId
|
||||||
|
* @author 李闯
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -1,18 +0,0 @@
|
||||||
package com.four.patient.feign;
|
|
||||||
|
|
||||||
import com.four.common.core.web.domain.AjaxResult;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
|
|
||||||
@FeignClient("four-system")
|
|
||||||
public interface DoctorNumberFeign {
|
|
||||||
/**
|
|
||||||
* 查询好评人数倒序的医生信息
|
|
||||||
* @param medicalDepartmentId;
|
|
||||||
* @author 李闯
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@PostMapping("/user/findDoctorNumber/{medicalDepartmentId}")
|
|
||||||
public AjaxResult findDoctorNumber(@PathVariable Long medicalDepartmentId);
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
package com.four.patient.feign;
|
|
||||||
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
|
||||||
|
|
||||||
@FeignClient("four-system")
|
|
||||||
public interface DoctorPrice {
|
|
||||||
}
|
|
|
@ -1,12 +0,0 @@
|
||||||
package com.four.patient.feign;
|
|
||||||
|
|
||||||
import com.four.common.core.web.domain.AjaxResult;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
|
||||||
|
|
||||||
@FeignClient("four-system")
|
|
||||||
public interface UserFeign {
|
|
||||||
|
|
||||||
@GetMapping("/user/findByuserId/{userId}")public AjaxResult findByUserId(@PathVariable("userId") Long userId);
|
|
||||||
}
|
|
|
@ -1,14 +1,17 @@
|
||||||
package com.four.patient.service.Impl;
|
package com.four.patient.service.Impl;
|
||||||
|
|
||||||
|
import com.four.common.core.web.domain.AjaxResult;
|
||||||
import com.four.common.duck.Result;
|
import com.four.common.duck.Result;
|
||||||
import com.four.common.duck.communitypatients.SymptomsDrugs;
|
import com.four.common.duck.communitypatients.SymptomsDrugs;
|
||||||
import com.four.common.duck.response.ResponseRegistrationInformation;
|
import com.four.common.duck.response.ResponseRegistrationInformation;
|
||||||
|
import com.four.patient.feign.DoctorFeign;
|
||||||
import com.four.patient.feign.SymptomsDrugsFeign;
|
import com.four.patient.feign.SymptomsDrugsFeign;
|
||||||
import com.four.patient.mapper.RegistrationInformationMapper;
|
import com.four.patient.mapper.RegistrationInformationMapper;
|
||||||
import com.four.patient.service.RegistrationInformationService;
|
import com.four.patient.service.RegistrationInformationService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
|
@ -19,16 +22,10 @@ public class RegistrationInformationServiceImpl implements RegistrationInformati
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SymptomsDrugsFeign symptomsDrugsFeign;
|
private SymptomsDrugsFeign symptomsDrugsFeign;
|
||||||
|
@Autowired
|
||||||
|
private DoctorFeign doctorFeign;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<ResponseRegistrationInformation> ShowRegistrationInformationAllPrice(Long medicalDepartmentId) {
|
|
||||||
List<ResponseRegistrationInformation> list = registrationInformationMapper.ShowRegistrationInformationAllPrice(medicalDepartmentId);
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ResponseRegistrationInformation> ShowRegistrationInformationNumber(Long medicalDepartmentId) {
|
public List<ResponseRegistrationInformation> ShowRegistrationInformationNumber(Long medicalDepartmentId) {
|
||||||
List<ResponseRegistrationInformation> list = registrationInformationMapper.ShowRegistrationInformationNumber(medicalDepartmentId);
|
List<ResponseRegistrationInformation> list = registrationInformationMapper.ShowRegistrationInformationNumber(medicalDepartmentId);
|
||||||
|
@ -60,5 +57,12 @@ public class RegistrationInformationServiceImpl implements RegistrationInformati
|
||||||
return informationList;
|
return informationList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ResponseRegistrationInformation> ShowRegistrationInformationAllPrice(Long medicalDepartmentId) {
|
||||||
|
AjaxResult ajaxResult = doctorFeign.findDoctorInformation(medicalDepartmentId);
|
||||||
|
List<ResponseRegistrationInformation> sysRedis = (List<ResponseRegistrationInformation>) ajaxResult.get("SysRedis");
|
||||||
|
return sysRedis;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.four.patient.service.Impl;
|
||||||
|
|
||||||
|
|
||||||
|
public class RemoteServiceImpl implements RemoteService {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String sayHello(String username) {
|
||||||
|
return "Hello,"+username+"!";
|
||||||
|
}
|
||||||
|
}
|
|
@ -9,7 +9,6 @@ public interface RegistrationInformationService {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
List<ResponseRegistrationInformation> ShowRegistrationInformationAllPrice(Long medicalDepartmentId);
|
|
||||||
|
|
||||||
List<ResponseRegistrationInformation> ShowRegistrationInformationNumber(Long medicalDepartmentId);
|
List<ResponseRegistrationInformation> ShowRegistrationInformationNumber(Long medicalDepartmentId);
|
||||||
|
|
||||||
|
@ -17,8 +16,11 @@ public interface RegistrationInformationService {
|
||||||
|
|
||||||
List<ResponseRegistrationInformation> ShowRegistrationInformationAll(Long medicalDepartmentId);
|
List<ResponseRegistrationInformation> ShowRegistrationInformationAll(Long medicalDepartmentId);
|
||||||
|
|
||||||
|
|
||||||
List<SymptomsDrugs> ShowSymptomsDrug();
|
List<SymptomsDrugs> ShowSymptomsDrug();
|
||||||
|
|
||||||
List<ResponseRegistrationInformation> ShowRegistration(Long registrationInformationId);
|
List<ResponseRegistrationInformation> ShowRegistration(Long registrationInformationId);
|
||||||
|
|
||||||
|
List<ResponseRegistrationInformation> ShowRegistrationInformationAllPrice(Long medicalDepartmentId);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,29 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper
|
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.four.patient.mapper.FollowDoctorMapper">
|
|
||||||
|
|
||||||
|
|
||||||
<insert id="insertFollowDoctor">
|
|
||||||
insert into follow_doctor(
|
|
||||||
<if test="null!=userId and ''!=userId">user_id,</if>
|
|
||||||
<if test="null!=registrationInformationId and ''!=registrationInformationId">registration_information_id</if>
|
|
||||||
)
|
|
||||||
values (
|
|
||||||
<if test="null!=userId and ''!=userId">#{userId},</if>
|
|
||||||
<if test="null!=registrationInformationId and ''!=registrationInformationId">#{registrationInformationId}</if>
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
<delete id="delFollowDoctor">
|
|
||||||
delete
|
|
||||||
from follow_doctor
|
|
||||||
where registration_informaion_id = #{registrationInformationId}
|
|
||||||
</delete>
|
|
||||||
<select id="ShowFollowDoctor" resultType="com.four.common.duck.interrogation.FollowDoctor">
|
|
||||||
select follow_doctor_id,
|
|
||||||
user_id,
|
|
||||||
registration_information_id
|
|
||||||
from follow_doctor
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
|
@ -1,64 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper
|
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.four.patient.mapper.GiftMapper">
|
|
||||||
<insert id="insertGiftLog">
|
|
||||||
insert into gift_record(
|
|
||||||
<if test="null!=giverId and ''!=giverId">giver_id,</if>
|
|
||||||
<if test="null!=giftId and giftId!=''"> gift_id,</if>
|
|
||||||
gift_giving_time)
|
|
||||||
values (
|
|
||||||
<if test="null!=giverId and ''!=giverId">#{giverId},</if>
|
|
||||||
<if test="null!=giftId and ''!=giftId">#{giftId},</if>
|
|
||||||
#{giftGivingTime}
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
<update id="updPatientMoney">
|
|
||||||
update sys_user set
|
|
||||||
<if test="null!=userMoney and ''!=userMoney">user_money=#{patientMoney}</if>
|
|
||||||
where user_id=#{userid}
|
|
||||||
</update>
|
|
||||||
<update id="updDoctorMoney">
|
|
||||||
update sys_user set
|
|
||||||
<if test="null!=userMoney and ''!=userMoney">user_money=#{doctorMoney}</if>
|
|
||||||
where user_id=#{userId}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
|
|
||||||
<select id="ShowGiftAll" resultType="com.four.common.duck.gift.Gift">
|
|
||||||
select
|
|
||||||
gift_id,
|
|
||||||
gift_name,
|
|
||||||
gift_photo,
|
|
||||||
gift_price
|
|
||||||
from gift
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="findByGiftId" resultType="com.four.common.duck.gift.Gift">
|
|
||||||
select gift_id,
|
|
||||||
gift_name,
|
|
||||||
gift_photo,
|
|
||||||
gift_price
|
|
||||||
from gift
|
|
||||||
<where>
|
|
||||||
<if test="null!=gift_id and ''!=gift_id">
|
|
||||||
and gift_id = #{giftId}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
<select id="findByRegistration" resultType="com.four.common.duck.interrogation.RegistrationInformation">
|
|
||||||
select user_id from registration_information
|
|
||||||
<where>
|
|
||||||
<if test="null!=registration_information_id and ''!=registration_information_id">
|
|
||||||
and registration_information_id=#{registrationInformationId}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
<select id="findByUserId" resultType="com.four.common.duck.my.User">
|
|
||||||
select user_id,
|
|
||||||
user_money
|
|
||||||
from sys_user
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
|
|
@ -1,30 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper
|
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.four.patient.mapper.PatientEvaluatorMapper">
|
|
||||||
<insert id="insertPatientEvaluator">
|
|
||||||
insert into patient_evaluator(
|
|
||||||
<if test="null!=patientId and ''!=patientId">patient_id,</if>
|
|
||||||
<if test="null!=registrationInformationId and ''!=registrationInformationId">registration_information_id,</if>
|
|
||||||
<if test="null!=commentContent and ''!=commentContent"> comment_content,</if>
|
|
||||||
comment_time
|
|
||||||
)
|
|
||||||
values (
|
|
||||||
<if test="null!=patientId and ''!=patientId">#{patientId},</if>
|
|
||||||
<if test="null!=registrationInformationId and ''!=registrationInformationId">${registrationInformationId},</if>
|
|
||||||
<if test="null!=commentContent and ''!=commentContent">${commentContent},</if>
|
|
||||||
#{commentTime}
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
|
|
||||||
<select id="ShowPatientEvaluatorAll" resultType="com.four.common.duck.interrogation.PatientEvaluator">
|
|
||||||
select patient_evaluator_id,
|
|
||||||
patient_id,
|
|
||||||
registration_information_id,
|
|
||||||
comment_content,
|
|
||||||
comment_time
|
|
||||||
from patient_evaluator
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
|
@ -1,85 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper
|
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.four.patient.mapper.RegistrationInformationMapper">
|
|
||||||
<resultMap id="ResponseRegistrationInformation" type="com.four.common.duck.response.ResponseRegistrationInformation">
|
|
||||||
<id property="registrationInformationId" column="registration_information_id"/>
|
|
||||||
<result property="userId" column="user_id"/>
|
|
||||||
<result property="realName" column="real_name"/>
|
|
||||||
<result property="affiliatedHospital" column="affiliated_hospital"/>
|
|
||||||
<result property="medicalDepartmentId" column="medical_department_id"/>
|
|
||||||
<result property="professionalTitleDoctorId" column="professional_title_doctor_id"/>
|
|
||||||
<result property="personalResume" column="personal_resume"/>
|
|
||||||
<result property="areaExpertise" column="area_expertise"/>
|
|
||||||
<result property="registrationTime" column="registration_time"/>
|
|
||||||
<result property="numberPatientsServed" column="number_patients_served"/>
|
|
||||||
<result property="consultingPrice" column="consulting_price"/>
|
|
||||||
<result property="praise" column="praise"/>
|
|
||||||
<result property="registrationInformationExamineStatus" column="registration_information_examine_status"/>
|
|
||||||
<result property="registrationInformationMedicStatus" column="registration_information_medic_status"/>
|
|
||||||
<result property="name" column="name"/>
|
|
||||||
<result property="professionalTitleDoctorName" column="professional_title_doctor_name"/>
|
|
||||||
<result property="username" column="username"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectRegistrationInformation">
|
|
||||||
SELECT r.registration_information_id,
|
|
||||||
r.user_id,r.real_name,
|
|
||||||
r.affiliated_hospital,
|
|
||||||
r.medical_department_id,
|
|
||||||
r.professional_title_doctor_id,
|
|
||||||
r.personal_resume,
|
|
||||||
r.area_expertise,
|
|
||||||
r.registration_time,
|
|
||||||
r.number_patients_served,
|
|
||||||
r.consulting_price,
|
|
||||||
r.praise,
|
|
||||||
r.registration_information_examine_status,
|
|
||||||
r.registration_information_medic_status,
|
|
||||||
s.`name`, p.professional_title_doctor_name
|
|
||||||
FROM `registration_information` r
|
|
||||||
LEFT JOIN symptoms_drugs s ON r.medical_department_id = s.id
|
|
||||||
LEFT JOIN professional_title_doctor p
|
|
||||||
ON r.professional_title_doctor_id = p.professional_title_doctor_id
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
|
|
||||||
<select id="ShowRegistrationInformationAllPrice" resultMap="ResponseRegistrationInformation">
|
|
||||||
<include refid="selectRegistrationInformation"></include>
|
|
||||||
<where>
|
|
||||||
<if test="null!=medicalDepartmentId and ''!=medicalDepartmentId">
|
|
||||||
and r.medical_department_id = #{medicalDepartmentId}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
ORDER BY r.consulting_price DESC
|
|
||||||
</select>
|
|
||||||
<select id="ShowRegistrationInformationNumber" resultMap="ResponseRegistrationInformation">
|
|
||||||
<include refid="selectRegistrationInformation"></include>
|
|
||||||
<where>
|
|
||||||
<if test="null!=medicalDepartmentId and ''!=medicalDepartmentId">
|
|
||||||
and r.medical_department_id = #{medicalDepartmentId}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
ORDER BY r.number_patients_served DESC
|
|
||||||
</select>
|
|
||||||
<select id="ShowRegistrationInformationPraise" resultMap="ResponseRegistrationInformation">
|
|
||||||
<include refid="selectRegistrationInformation"></include>
|
|
||||||
<where>
|
|
||||||
<if test="null!=medicalDepartmentId and ''!=medicalDepartmentId">
|
|
||||||
and r.medical_department_id = #{medicalDepartmentId}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
ORDER BY r.praise DESC
|
|
||||||
</select>
|
|
||||||
<select id="ShowRegistrationInformationAll" resultMap="ResponseRegistrationInformation">
|
|
||||||
<include refid="selectRegistrationInformation"></include>
|
|
||||||
<where>
|
|
||||||
<if test="null!=medicalDepartmentId and ''!=medicalDepartmentId">
|
|
||||||
and r.medical_department_id=#{medicalDepartmentId}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
ORDER BY r.consulting_price,r.number_patients_served,r.praise DESC
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
|
@ -1,5 +0,0 @@
|
||||||
#Generated by Maven
|
|
||||||
#Mon Oct 30 20:34:36 CST 2023
|
|
||||||
groupId=com.four
|
|
||||||
artifactId=dimensional-health-interrogation
|
|
||||||
version=1.0-SNAPSHOT
|
|
|
@ -1,41 +0,0 @@
|
||||||
com\four\patient\service\GiftService.class
|
|
||||||
com\four\patient\service\HistoricalConsultationService.class
|
|
||||||
com\four\util\HXUtil.class
|
|
||||||
com\four\util\HXUser.class
|
|
||||||
com\four\doctor\controller\HistoricalDoctorController.class
|
|
||||||
com\four\patient\mapper\GiftMapper.class
|
|
||||||
com\four\Instantmessaging\service\InstantService.class
|
|
||||||
com\four\patient\mapper\RegistrationInformationMapper.class
|
|
||||||
com\four\patient\service\Impl\FollowDoctorServiceImpl.class
|
|
||||||
com\four\patient\controller\PatientEvaluatorController.class
|
|
||||||
com\four\patient\controller\RegistrationInformationController.class
|
|
||||||
com\four\patient\feign\SymptomsDrugsFeign.class
|
|
||||||
com\four\doctor\service\GiftRecordDoctorService.class
|
|
||||||
com\four\doctor\mapper\PatientDoctorMapper.class
|
|
||||||
com\four\Instantmessaging\controller\InstantController.class
|
|
||||||
com\four\patient\service\RegistrationInformationService.class
|
|
||||||
com\four\patient\mapper\FollowDoctorMapper.class
|
|
||||||
com\four\patient\mapper\PatientEvaluatorMapper.class
|
|
||||||
com\four\patient\service\Impl\RegistrationInformationServiceImpl.class
|
|
||||||
com\four\util\Token.class
|
|
||||||
com\four\doctor\service\Impl\HistoricalDoctorServiceImpl.class
|
|
||||||
com\four\util\HXUtil$HXMessageType.class
|
|
||||||
com\four\patient\service\FollowDoctorService.class
|
|
||||||
com\four\patient\service\Impl\GiftServiceImpl.class
|
|
||||||
com\four\doctor\service\HistoricalDoctorService.class
|
|
||||||
com\four\patient\controller\HistoricalConsultationController.class
|
|
||||||
com\four\doctor\service\PatientDoctorService.class
|
|
||||||
com\four\doctor\service\Impl\GiftRecordDoctorServiceImpl.class
|
|
||||||
com\four\patient\controller\FollowDoctorController.class
|
|
||||||
com\four\patient\service\Impl\HistoricalConsultationServiceImpl.class
|
|
||||||
com\four\doctor\controller\GiftRecordDoctorController.class
|
|
||||||
com\four\doctor\service\Impl\PatientDoctorServiceImpl.class
|
|
||||||
com\four\patient\service\PatientEvaluatorService.class
|
|
||||||
com\four\doctor\mapper\GiftRecordDoctorMapper.class
|
|
||||||
com\four\doctor\mapper\HistoricalDoctorMapper.class
|
|
||||||
com\four\Instantmessaging\service\Impl\InstantServiceImpl.class
|
|
||||||
com\four\InterrogationApp.class
|
|
||||||
com\four\patient\service\Impl\PatientEvaluatorServiceImpl.class
|
|
||||||
com\four\patient\mapper\HistoricalConsultationMapper.class
|
|
||||||
com\four\doctor\controller\PatientDoctorController.class
|
|
||||||
com\four\patient\controller\GiftController.class
|
|
|
@ -1,40 +0,0 @@
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\service\Impl\PatientDoctorServiceImpl.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\service\Impl\HistoricalDoctorServiceImpl.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\service\Impl\PatientEvaluatorServiceImpl.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\controller\GiftRecordDoctorController.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\util\Token.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\controller\FollowDoctorController.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\mapper\GiftMapper.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\mapper\FollowDoctorMapper.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\service\Impl\FollowDoctorServiceImpl.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\mapper\HistoricalDoctorMapper.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\mapper\RegistrationInformationMapper.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\util\HXUser.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\controller\HistoricalConsultationController.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\service\RegistrationInformationService.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\controller\RegistrationInformationController.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\InterrogationApp.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\mapper\GiftRecordDoctorMapper.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\service\FollowDoctorService.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\service\HistoricalDoctorService.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\feign\SymptomsDrugsFeign.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\controller\HistoricalDoctorController.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\Instantmessaging\controller\InstantController.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\controller\GiftController.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\service\HistoricalConsultationService.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\service\Impl\RegistrationInformationServiceImpl.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\service\Impl\HistoricalConsultationServiceImpl.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\service\PatientEvaluatorService.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\service\GiftService.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\service\Impl\GiftRecordDoctorServiceImpl.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\mapper\PatientDoctorMapper.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\mapper\HistoricalConsultationMapper.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\controller\PatientEvaluatorController.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\service\Impl\GiftServiceImpl.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\service\PatientDoctorService.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\patient\mapper\PatientEvaluatorMapper.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\service\GiftRecordDoctorService.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\Instantmessaging\service\InstantService.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\doctor\controller\PatientDoctorController.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\util\HXUtil.java
|
|
||||||
D:\Project\dimensional-health-interrogation\src\main\java\com\four\Instantmessaging\service\Impl\InstantServiceImpl.java
|
|
Loading…
Reference in New Issue