Commit 22c03e42 authored by liwei's avatar liwei

修改了动态查询接口,增加了会员id和用户id

parent 80e9a60c
...@@ -166,6 +166,12 @@ public class OpmArticle extends CyIdIncreEntity<OpmArticle> { ...@@ -166,6 +166,12 @@ public class OpmArticle extends CyIdIncreEntity<OpmArticle> {
@TableField(exist = false) @TableField(exist = false)
private String userId; private String userId;
/**
* 会员ID
*/
@TableField(exist = false)
private String memberId;
/** /**
* 当前登录人ID * 当前登录人ID
*/ */
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
ORDER BY opa.business_id DESC ORDER BY opa.business_id DESC
</select> </select>
<select id="queryOpmArticlePaged" resultMap="BaseResultMap"> <select id="queryOpmArticlePaged" resultType="org.rcisoft.business.opmArticle.entity.OpmArticle">
SELECT SELECT
opa.business_id, opa.business_id,
opa.flag, opa.flag,
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
opa.is_article, opa.is_article,
opa.create_date, opa.create_date,
opa.content, opa.content,
opa.create_by AS userId,
opt.topic_name AS topic, opt.topic_name AS topic,
mi.mem_code, mi.mem_code,
mi.mem_nick_name, mi.mem_nick_name,
...@@ -98,6 +99,7 @@ ...@@ -98,6 +99,7 @@
mi.mem_residence_city, mi.mem_residence_city,
mi.mem_max_education, mi.mem_max_education,
mi.mem_career, mi.mem_career,
mi.business_id AS memberId,
CASE CASE
WHEN opl.business_id IS NOT NULL THEN 1 ELSE 0 WHEN opl.business_id IS NOT NULL THEN 1 ELSE 0
END AS isLike, END AS isLike,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment