优化图片问诊代码
This commit is contained in:
parent
35318d8ca8
commit
d5513d193b
@ -9,6 +9,8 @@ import com.xinelu.common.core.domain.R;
|
|||||||
import com.xinelu.common.core.page.TableDataInfo;
|
import com.xinelu.common.core.page.TableDataInfo;
|
||||||
import com.xinelu.common.custominterface.Insert;
|
import com.xinelu.common.custominterface.Insert;
|
||||||
import com.xinelu.manage.domain.consultationInfo.ConsultationInfo;
|
import com.xinelu.manage.domain.consultationInfo.ConsultationInfo;
|
||||||
|
import com.xinelu.manage.domain.hospitalpersoninfo.HospitalPersonInfo;
|
||||||
|
import com.xinelu.manage.service.hospitalpersoninfo.IHospitalPersonInfoService;
|
||||||
import com.xinelu.manage.vo.consultationInfo.ConsultationInfoVO;
|
import com.xinelu.manage.vo.consultationInfo.ConsultationInfoVO;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
@ -33,7 +35,8 @@ import java.util.Objects;
|
|||||||
public class ConsultationInfoController extends BaseController {
|
public class ConsultationInfoController extends BaseController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private IConsultationInfoService consultationInfoService;
|
private IConsultationInfoService consultationInfoService;
|
||||||
|
@Autowired
|
||||||
|
private IHospitalPersonInfoService hospitalPersonInfoService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询在线问诊-问诊信息列表
|
* 查询在线问诊-问诊信息列表
|
||||||
@ -45,6 +48,16 @@ public class ConsultationInfoController extends BaseController {
|
|||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取在线问诊-问诊信息详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取在线问诊-问诊信息详细信息")
|
||||||
|
@GetMapping(value = "/getHospitalPersonInfo")
|
||||||
|
public R<HospitalPersonInfo> getHospitalPersonInfo(@RequestParam("personCode") String personCode,
|
||||||
|
@RequestParam("status") String status) {
|
||||||
|
return R.ok(hospitalPersonInfoService.getByPersonCode(personCode,status));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取在线问诊-问诊信息详细信息
|
* 获取在线问诊-问诊信息详细信息
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -56,9 +56,9 @@ public class HealthConsultationController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@MobileRequestAuthorization
|
@MobileRequestAuthorization
|
||||||
@GetMapping("/selectHospitalPerson")
|
@GetMapping("/selectHospitalPerson")
|
||||||
public TableDataInfo selectHospitalPerson(Long departmentId) {
|
public TableDataInfo selectHospitalPerson(HospitalPersonInfo hospitalPersonInfo) {
|
||||||
startPage();
|
startPage();
|
||||||
List<HospitalPersonInfo> list = healthConsultationService.selectHospitalPerson(departmentId);
|
List<HospitalPersonInfo> list = healthConsultationService.selectHospitalPerson(hospitalPersonInfo);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ public interface HealthConsultationService {
|
|||||||
* @param departmentId 科室id
|
* @param departmentId 科室id
|
||||||
* @return AjaxResult
|
* @return AjaxResult
|
||||||
*/
|
*/
|
||||||
List<HospitalPersonInfo> selectHospitalPerson(Long departmentId);
|
List<HospitalPersonInfo> selectHospitalPerson(HospitalPersonInfo hospitalPersonInfo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 健康咨询-信息确认
|
* 健康咨询-信息确认
|
||||||
|
|||||||
@ -103,15 +103,15 @@ public class HealthConsultationServiceImpl implements HealthConsultationService
|
|||||||
/**
|
/**
|
||||||
* 单查科室人员
|
* 单查科室人员
|
||||||
*
|
*
|
||||||
* @param departmentId 科室id
|
* @param hospitalPersonInfo 科室id
|
||||||
* @return AjaxResult
|
* @return AjaxResult
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<HospitalPersonInfo> selectHospitalPerson(Long departmentId) {
|
public List<HospitalPersonInfo> selectHospitalPerson(HospitalPersonInfo hospitalPersonInfo) {
|
||||||
if (Objects.isNull(departmentId)) {
|
if (Objects.isNull(hospitalPersonInfo.getDepartmentId())) {
|
||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
return hospitalPersonInfoMapper.selectHospitalPerson(departmentId);
|
return hospitalPersonInfoMapper.selectHospitalPerson(hospitalPersonInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -97,10 +97,10 @@ public interface HospitalPersonInfoMapper {
|
|||||||
/**
|
/**
|
||||||
* 健康咨询 根据科室查询医院人员
|
* 健康咨询 根据科室查询医院人员
|
||||||
*
|
*
|
||||||
* @param departmentId 科室人员信息
|
* @param hospitalPersonInfo 科室人员信息
|
||||||
* @return AjaxResult
|
* @return AjaxResult
|
||||||
*/
|
*/
|
||||||
List<HospitalPersonInfo> selectHospitalPerson(Long departmentId);
|
List<HospitalPersonInfo> selectHospitalPerson(HospitalPersonInfo hospitalPersonInfo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据科室人员id查询科室人员数量
|
* 根据科室人员id查询科室人员数量
|
||||||
|
|||||||
@ -497,6 +497,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectHospitalPerson"
|
<select id="selectHospitalPerson"
|
||||||
|
parameterType="com.xinelu.manage.domain.hospitalpersoninfo.HospitalPersonInfo"
|
||||||
resultType="com.xinelu.manage.domain.hospitalpersoninfo.HospitalPersonInfo">
|
resultType="com.xinelu.manage.domain.hospitalpersoninfo.HospitalPersonInfo">
|
||||||
select id,
|
select id,
|
||||||
department_id,
|
department_id,
|
||||||
@ -507,6 +508,9 @@
|
|||||||
person_introduce
|
person_introduce
|
||||||
from hospital_person_info
|
from hospital_person_info
|
||||||
where department_id = #{departmentId}
|
where department_id = #{departmentId}
|
||||||
|
<if test="status != null and status != ''">
|
||||||
|
and status = #{status}
|
||||||
|
</if>
|
||||||
order by person_sort asc
|
order by person_sort asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user