|
@ -124,7 +124,7 @@ public class ConsultService {
|
124
|
124
|
// if(consult.getDemandId() != null){
|
125
|
125
|
// this.growthLogService.demandConfirm(con, consult.getProfessorId());
|
126
|
126
|
// }
|
127
|
|
/*Professor professor = this.professorDao.queryOne(con, consult.getProfessorId());
|
|
127
|
Professor professor = this.professorDao.queryOne(con, consult.getProfessorId());
|
128
|
128
|
User user = this.userDao.query(con, consult.getProfessorId());
|
129
|
129
|
String email = null;
|
130
|
130
|
String mobile = null;
|
|
@ -143,7 +143,7 @@ public class ConsultService {
|
143
|
143
|
}
|
144
|
144
|
if(mobile != null){
|
145
|
145
|
this.sysService.sendConsultSMS(mobile);
|
146
|
|
}*/
|
|
146
|
}
|
147
|
147
|
return consultId;
|
148
|
148
|
}
|
149
|
149
|
|
|
@ -156,9 +156,9 @@ public class ConsultService {
|
156
|
156
|
@Post
|
157
|
157
|
@Path("/agree")
|
158
|
158
|
public void agreeConsult(@JdbcConn(true) Connection con,String consultId)throws SQLException{
|
159
|
|
Consult consult = this.consultDao.query(con, consultId);
|
160
|
159
|
//点击确认接受咨询,更新咨询状态为进行中
|
161
|
160
|
this.consultDao.updateConsultStatus(con, consultId, 0);
|
|
161
|
//Consult consult = this.consultDao.query(con, consultId);
|
162
|
162
|
//接受咨询给专家增加积分
|
163
|
163
|
//this.growthLogService.consultReceive(con, consult.getProfessorId());
|
164
|
164
|
}
|