Commit 22c03e42 authored by liwei's avatar liwei

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

parent 80e9a60c
......@@ -166,6 +166,12 @@ public class OpmArticle extends CyIdIncreEntity<OpmArticle> {
@TableField(exist = false)
private String userId;
/**
* 会员ID
*/
@TableField(exist = false)
private String memberId;
/**
* 当前登录人ID
*/
......
......@@ -78,7 +78,7 @@
ORDER BY opa.business_id DESC
</select>
<select id="queryOpmArticlePaged" resultMap="BaseResultMap">
<select id="queryOpmArticlePaged" resultType="org.rcisoft.business.opmArticle.entity.OpmArticle">
SELECT
opa.business_id,
opa.flag,
......@@ -89,6 +89,7 @@
opa.is_article,
opa.create_date,
opa.content,
opa.create_by AS userId,
opt.topic_name AS topic,
mi.mem_code,
mi.mem_nick_name,
......@@ -98,6 +99,7 @@
mi.mem_residence_city,
mi.mem_max_education,
mi.mem_career,
mi.business_id AS memberId,
CASE
WHEN opl.business_id IS NOT NULL THEN 1 ELSE 0
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