|
@ -9,6 +9,7 @@ import org.jfw.apt.web.annotation.Path;
|
9
|
9
|
import org.jfw.apt.web.annotation.operate.Get;
|
10
|
10
|
import org.jfw.apt.web.annotation.operate.Post;
|
11
|
11
|
import org.jfw.apt.web.annotation.param.*;
|
|
12
|
import org.jfw.util.DateUtil;
|
12
|
13
|
import org.jfw.util.ListUtil;
|
13
|
14
|
import org.jfw.util.StringUtil;
|
14
|
15
|
import org.jfw.util.exception.JfwBaseException;
|
|
@ -265,6 +266,7 @@ public class Service {
|
265
|
266
|
throw new JfwBaseException(50000, "question[" + qid + "] not found");
|
266
|
267
|
}
|
267
|
268
|
String id = StringUtil.buildUUID();
|
|
269
|
String time = DateUtil.formatDateTime(System.currentTimeMillis());
|
268
|
270
|
Answer a = new Answer();
|
269
|
271
|
a.setId(id);
|
270
|
272
|
a.setAgree(0);
|
|
@ -273,6 +275,8 @@ public class Service {
|
273
|
275
|
a.setQid(qid);
|
274
|
276
|
a.setState("1");
|
275
|
277
|
a.setUid(uid);
|
|
278
|
a.setCreateTime(time);
|
|
279
|
a.setTimeDesc(time+id);
|
276
|
280
|
try {
|
277
|
281
|
questionDao.insert(con, a);
|
278
|
282
|
} catch (SQLException e) {
|