|
@ -2258,7 +2258,7 @@ public class DoctorSchemeService {
|
|
|
*/
|
|
|
public List<Map<String, Object>> getLabelDetail(String doctorId, String labelType, String searchContent, int page, int pageSize) {
|
|
|
String sql = "SELECT DISTINCT a.id,a.`name`,a.idcard,a.mobile,a.ssc, TIMESTAMPDIFF(YEAR, a.birthday, CURDATE()) AS age " +
|
|
|
",a.sex,a.disease,a.disease_condition diseaseCondition,a.photo,a.standard_status standardStatus " +
|
|
|
",a.sex,a.disease,CAST(a.disease_condition AS CHAR) diseaseCondition,a.photo,CAST(a.standard_status AS CHAR) standardStatus " +
|
|
|
"FROM base_patient a \n" +
|
|
|
"INNER JOIN wlyy_outpatient b ON a.id=b.patient\n" +
|
|
|
"INNER join wlyy_patient_label l on l.patient=a.id AND l.label_type='2' " +
|