|
@ -1045,4 +1045,37 @@ public class SynergyManageService extends BaseJpaService {
|
|
|
}
|
|
|
ws.addCell(label);
|
|
|
}
|
|
|
|
|
|
public List<Map<String,Object>> getDealList(String idcard){
|
|
|
Patient patient = patientDao.findByIdcard(idcard);
|
|
|
if (patient==null){
|
|
|
return null;
|
|
|
}
|
|
|
String sql ="SELECT" +
|
|
|
" s.create_time," +
|
|
|
" s.service_patient_name," +
|
|
|
" w.priority," +
|
|
|
" w.relation_code," +
|
|
|
" w.relation_code_name," +
|
|
|
" w.create_user_type," +
|
|
|
" w.create_user_name," +
|
|
|
" w.create_user," +
|
|
|
" w.remark," +
|
|
|
" w.service_time" +
|
|
|
" FROM" +
|
|
|
" `manage_synergy_workorder_servicer` s" +
|
|
|
" LEFT JOIN manage_synergy_workorder w ON s.workorder_code = w.`code`" +
|
|
|
" WHERE" +
|
|
|
" s.service_patient_code = '"+patient.getCode()+"'" +
|
|
|
" AND s.`status` = 1" +
|
|
|
" ORDER BY" +
|
|
|
" s.create_time" +
|
|
|
" LIMIT 2";
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
for (Map<String,Object> map : list){
|
|
|
int isOver = isServiceOverTime(DateUtil.strToDate(String.valueOf(map.get("service_time")),DateUtil.YYYY_MM_DD_HH_MM_SS));
|
|
|
map.put("isOver",isOver);
|
|
|
}
|
|
|
return list;
|
|
|
}
|
|
|
}
|