|
@ -120,7 +120,7 @@ public class MessageService extends BaseJpaService<BaseMessageDO, MessageDao> {
|
|
|
|
|
|
|
|
|
public List<Map<String, Object>> applyMessageList(String patient, String msgTypeCode){
|
|
|
String sql = "select m.* from base_message m join patient_apply_for_log l on m.relation_data=l.id where m.msg_type_code='"+msgTypeCode+"' and m.receiver='"+patient+"'";
|
|
|
String sql = "select m.* from base_message m join patient_apply_for_log l on m.relation_data=l.id where m.read_state=0 and m.msg_type_code='"+msgTypeCode+"' and m.receiver='"+patient+"'";
|
|
|
return jdbcTemplate.queryForList(sql);
|
|
|
// return messageDao.applyMessageList(patient,failureTime,msgTypeCode);
|
|
|
}
|