|
@ -153,7 +153,7 @@ public class ConsultService {
|
153
|
153
|
|
154
|
154
|
@Get
|
155
|
155
|
@Path("/qapro")
|
156
|
|
public Consult queryPro(@JdbcConn Connection con, String consultId) throws SQLException {
|
|
156
|
public Consult queryPro(@JdbcConn(true) Connection con, String consultId) throws SQLException {
|
157
|
157
|
Consult consult = this.consultDao.queryPro(con, consultId);
|
158
|
158
|
this.tidingsDao.updateReadStatus(con, consult.getProfessorId(), consultId);
|
159
|
159
|
return consult;
|
|
@ -161,7 +161,7 @@ public class ConsultService {
|
161
|
161
|
|
162
|
162
|
@Get
|
163
|
163
|
@Path("/qacon")
|
164
|
|
public Consult queryCon(@JdbcConn Connection con, String consultId) throws SQLException {
|
|
164
|
public Consult queryCon(@JdbcConn(true) Connection con, String consultId) throws SQLException {
|
165
|
165
|
Consult consult = this.consultDao.queryCon(con, consultId);
|
166
|
166
|
this.tidingsDao.updateReadStatus(con, consult.getConsultantId(), consultId);
|
167
|
167
|
return consult;
|