@@ -45,8 +45,8 @@ public class DoctorInfoFacade extends DoctorInfoServiceImpl {
.collect(Collectors.toMap(DoctorInfo::getId, i -> i));
return doctorInfoMap;
}
- public DoctorInfoFindDTO findDoctorInfo(HospitalCodeSetVO hospitalCodeSetVO){
- DoctorInfoFindDTO data= findDoctorInfo(hospitalCodeSetVO);
- return data;
+
+ public DoctorInfoFindDTO findDoctorInfo(HospitalCodeSetVO hospitalCodeSetVO) {
+ return this.baseMapper.findDoctorInfo(hospitalCodeSetVO);
@@ -29,5 +29,4 @@ public interface DoctorInfoService extends IService<DoctorInfo> {
*/
public List<DoctorInfoDTO> getDoctorInfos(String doctorCode, String hospitalCode, String deptCode);
- public DoctorInfoFindDTO findDoctorInfo(HospitalCodeSetVO hospitalCodeSetVO);
@@ -27,8 +27,4 @@ public class DoctorInfoServiceImpl extends ServiceImpl<DoctorInfoMapper, DoctorI
return baseMapper.getDoctorInfos(doctorCode, hospitalCode, deptCode);
- @Override
- public DoctorInfoFindDTO findDoctorInfo(HospitalCodeSetVO hospitalCodeSetVO) {
- return baseMapper.findDoctorInfo(hospitalCodeSetVO);
- }
@@ -41,7 +41,7 @@
JOIN tran_hospital_info b ON a.hospital_code = b.code
WHERE a.is_deleted = 'N' AND b.is_deleted = 'N'
<if test="hospitalId != null ">
- a.id = #{hospitalId}
+ and a.id = #{hospitalId}
</if>
<if test="doctorId != null ">
AND b.id = #{doctorId}