App新增医生诊断次数接口

master
gongzhenkun 2 years ago
parent c96cf917a0
commit 06c378d1c2

@ -657,4 +657,17 @@ public class AppController extends BaseController
}
return AjaxResult.success("预约成功。");
}
/**
*
*
* @param doctorId id
* @return {@code AjaxResult}
*/
@ApiOperation("查询医生数量诊断")
@Log(title = "APP查询医生数量诊断", businessType = BusinessType.OTHER)
@GetMapping("/doctor/recordCount/{id}")
public AjaxResult numberOfDiagnosis(@PathVariable("id") long doctorId){
return AjaxResult.success(tRecordService.queryDoctorNumberOfDiagnosis(doctorId));
}
}

@ -152,4 +152,12 @@ public interface TRecordMapper
* @return {@code List<TRecord>}
*/
public List<TRecordResp> queryRecordListByPHDids(TPatientHospitalDoctor tPatientHospitalDoctor);
/**
*
*
* @param doctorId id
* @return int
*/
int queryDoctorNumberOfDiagnosis(Long doctorId);
}

@ -97,4 +97,12 @@ public interface ITRecordService
* @return {@code AjaxResult}
*/
AjaxResult getHistoryList(TRecord tRecord);
/**
*
*
* @param doctorId id
* @return int
*/
int queryDoctorNumberOfDiagnosis(Long doctorId);
}

@ -180,6 +180,17 @@ public class TRecordServiceImpl implements ITRecordService
return AjaxResult.success(recordHistoryDataRespMap);
}
/**
*
*
* @param doctorId id
* @return int
*/
@Override
public int queryDoctorNumberOfDiagnosis(Long doctorId) {
return tRecordMapper.queryDoctorNumberOfDiagnosis(doctorId);
}
private RecordHistoryDataResp getDataList(List<TRecord> records, List<String> jsonKeyList)
{

@ -403,4 +403,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="hospitalId != null and hospitalId != ''"> and tr.hospital_id = #{hospitalId}</if>
</where>
</select>
<select id="queryDoctorNumberOfDiagnosis" resultType="java.lang.Integer">
SELECT COUNT(*) FROM t_record where doctor_id = #{doctorId};
</select>
</mapper>

Loading…
Cancel
Save