|
@ -1041,7 +1041,7 @@ public class SpecialistService{
|
|
|
*/
|
|
|
public ObjEnvelop<SpecialistPatientRelationDO> createPatientInSpeciaRelation(SpecialistPatientRelationDO specialistPatientRelationDO) throws Exception {
|
|
|
if(StringUtils.isNotEmpty(specialistPatientRelationDO.getId())){
|
|
|
//获取
|
|
|
//获取专科相关的信息
|
|
|
Map<String,Object> m= getMessageByRelationId(specialistPatientRelationDO.getId());
|
|
|
if(null!=m){
|
|
|
updateMessageByRelationId(specialistPatientRelationDO.getId());
|
|
@ -1184,7 +1184,7 @@ public class SpecialistService{
|
|
|
* @return
|
|
|
*/
|
|
|
public Map<String,Object> getMessageByRelationId(String relationId){
|
|
|
String sql = "select w.* from wlyy_message w where w.type='16' and w.relation_code='" + relationId + "' ";
|
|
|
String sql = "select w.* from wlyy.wlyy_message w where w.type='16' and w.relation_code='" + relationId + "' ";
|
|
|
List<Map<String,Object>> res= jdbcTemplate.queryForList(sql);
|
|
|
if(null!=res&&res.size()>0){
|
|
|
return res.get(0);
|
|
@ -1198,7 +1198,7 @@ public class SpecialistService{
|
|
|
* @return
|
|
|
*/
|
|
|
public void updateMessageByRelationId(String relationId){
|
|
|
String sql = "update wlyy_message set has_read=0 ,over=0 where relation_code='" + relationId + "' ";
|
|
|
String sql = "update wlyy.wlyy_message set has_read=0 ,over=0 where relation_code='" + relationId + "' ";
|
|
|
jdbcTemplate.execute(sql);
|
|
|
}
|
|
|
}
|