|
@ -191,7 +191,7 @@ public class PatientHealthGuidanceService extends BaseService {
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONArray findByPatientAndGuidanceAndTeam(String patient,long teamCode,int page,int pageSize){
|
|
|
Sort sort = new Sort(Sort.Direction.DESC,"czrq");
|
|
|
Sort sort = new Sort(Sort.Direction.DESC,"createTime");
|
|
|
PageRequest pageRequest = new PageRequest(0, pageSize, sort);
|
|
|
Page<Object> result = patientHealthGuidanceDao.findByPatientAndTeamCode(patient,teamCode,pageRequest);
|
|
|
JSONArray array = new JSONArray();
|
|
@ -204,7 +204,7 @@ public class PatientHealthGuidanceService extends BaseService {
|
|
|
json.put("doctorPhoto", temp[1]);
|
|
|
json.put("id", temp[2]);
|
|
|
json.put("content", temp[3]);
|
|
|
json.put("czrq", DateUtil.dateToStrLong((Date) temp[4]));
|
|
|
json.put("createTime", DateUtil.dateToStrLong((Date) temp[4]));
|
|
|
json.put("adminTeamCode", temp[7]);
|
|
|
array.put(json);
|
|
|
}
|