XMTT 6 years ago
parent
commit
292eedfa19

+ 1 - 1
src/main/java/com/ekexiu/portal/dao/ArticleDao.java

@ -245,7 +245,7 @@ public abstract class ArticleDao {
245 245

246 246
	public String[] queryArticleIdWithSameKeyWord(Connection con, String id, int rows) throws SQLException {
247 247
		List<String> ret = new ArrayList<String>();
248
		String sql = "select id,count(1) sort from art_key_word where kw in (select kw from art_key_word where id=?) and id <>? group by id order by sort desc limit ?";
248
		String sql = "select id,count(1) sort from art_key_word where kw in (select kw from art_key_word where id=?) and id <>? and status='1' group by id order by sort desc limit ?";
249 249
		PreparedStatement ps = con.prepareStatement(sql);
250 250
		try {
251 251
			ps.setString(1, id);

+ 27 - 29
src/main/java/com/ekexiu/portal/service/SysService.java

@ -1,34 +1,5 @@
1 1
package com.ekexiu.portal.service;
2 2
3
import java.io.IOException;
4
import java.sql.Connection;
5
import java.sql.SQLException;
6
import java.text.SimpleDateFormat;
7
import java.util.Date;
8
import java.util.HashMap;
9
import java.util.Map;
10
import java.util.Random;
11
import java.util.concurrent.TimeUnit;
12
13
import javax.mail.MessagingException;
14
15
import org.jfw.apt.annotation.Autowrie;
16
import org.jfw.apt.annotation.DefaultValue;
17
import org.jfw.apt.annotation.Nullable;
18
import org.jfw.apt.web.annotation.Path;
19
import org.jfw.apt.web.annotation.method.SetCookie;
20
import org.jfw.apt.web.annotation.operate.Get;
21
import org.jfw.apt.web.annotation.operate.Post;
22
import org.jfw.apt.web.annotation.param.JdbcConn;
23
import org.jfw.apt.web.annotation.param.PathVar;
24
import org.jfw.apt.web.annotation.param.SessionVal;
25
import org.jfw.util.StringUtil;
26
import org.jfw.util.context.JfwAppContext;
27
import org.jfw.util.exception.JfwBaseException;
28
import org.jfw.util.log.LogFactory;
29
import org.jfw.util.log.Logger;
30
import org.jfw.util.state.StateCode;
31
32 3
import com.ekexiu.portal.dao.OrgDao;
33 4
import com.ekexiu.portal.dao.OrgUserDao;
34 5
import com.ekexiu.portal.dao.PaperAuthorDao;
@ -47,6 +18,33 @@ import com.ekexiu.portal.po.User;
47 18
import com.ekexiu.portal.po.UserOpenId;
48 19
import com.ekexiu.portal.pojo.SessionUser;
49 20
import com.ekexiu.portal.util.PictureVC;
21
import org.jfw.apt.annotation.Autowrie;
22
import org.jfw.apt.annotation.DefaultValue;
23
import org.jfw.apt.annotation.Nullable;
24
import org.jfw.apt.web.annotation.Path;
25
import org.jfw.apt.web.annotation.method.SetCookie;
26
import org.jfw.apt.web.annotation.operate.Get;
27
import org.jfw.apt.web.annotation.operate.Post;
28
import org.jfw.apt.web.annotation.param.JdbcConn;
29
import org.jfw.apt.web.annotation.param.PathVar;
30
import org.jfw.apt.web.annotation.param.SessionVal;
31
import org.jfw.util.StringUtil;
32
import org.jfw.util.context.JfwAppContext;
33
import org.jfw.util.exception.JfwBaseException;
34
import org.jfw.util.log.LogFactory;
35
import org.jfw.util.log.Logger;
36
import org.jfw.util.state.StateCode;
37
38
import javax.mail.MessagingException;
39
import java.io.IOException;
40
import java.sql.Connection;
41
import java.sql.SQLException;
42
import java.text.SimpleDateFormat;
43
import java.util.Date;
44
import java.util.HashMap;
45
import java.util.Map;
46
import java.util.Random;
47
import java.util.concurrent.TimeUnit;
50 48
51 49
@Path
52 50
public class SysService {