|
@ -1,5 +1,6 @@
|
1
|
1
|
package com.ekexiu.portal.question;
|
2
|
2
|
|
|
3
|
import com.ekexiu.portal.dao.WatchDao;
|
3
|
4
|
import com.ekexiu.portal.notify.NotifyService;
|
4
|
5
|
import com.ekexiu.portal.notify.NotifyType;
|
5
|
6
|
import com.ekexiu.portal.service.GrowthLogService;
|
|
@ -55,7 +56,17 @@ public class Service {
|
55
|
56
|
@Autowrie
|
56
|
57
|
private GrowthLogService growthLogService;
|
57
|
58
|
|
|
59
|
@Autowrie
|
|
60
|
private WatchDao watchDao;
|
58
|
61
|
|
|
62
|
public WatchDao getWatchDao() {
|
|
63
|
return watchDao;
|
|
64
|
}
|
|
65
|
|
|
66
|
public void setWatchDao(WatchDao watchDao) {
|
|
67
|
this.watchDao = watchDao;
|
|
68
|
}
|
|
69
|
|
59
|
70
|
public GrowthLogService getGrowthLogService() {
|
60
|
71
|
return growthLogService;
|
61
|
72
|
}
|
|
@ -693,6 +704,7 @@ public class Service {
|
693
|
704
|
@Path("/answer/delete")
|
694
|
705
|
public int logicDelete(@JdbcConn(true) Connection con, String id, String qid) throws SQLException {
|
695
|
706
|
if (questionDao.logicDeleteAnswer(con, id, qid) > 0) {
|
|
707
|
watchDao.deleteWatch(con, (short)9, id);
|
696
|
708
|
questionDao.decQuestionReply(con, qid);
|
697
|
709
|
return 1;
|
698
|
710
|
}
|