Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-api
Commits
02341f2d
Commit
02341f2d
authored
Jan 08, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了动态查询接口
parent
9c566ffa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
10 deletions
+61
-10
OpmArticle.java
...va/org/rcisoft/business/opmArticle/entity/OpmArticle.java
+49
-6
OpmArticleMapper.xml
...es/mapper/business/opmArticle/mapper/OpmArticleMapper.xml
+12
-4
No files found.
src/main/java/org/rcisoft/business/opmArticle/entity/OpmArticle.java
View file @
02341f2d
...
...
@@ -72,11 +72,59 @@ public class OpmArticle extends CyIdIncreEntity<OpmArticle> {
private
String
topic
;
/**
*
创建人
会员号
* 会员号
*/
@TableField
(
exist
=
false
)
private
String
memCode
;
/**
* 会员昵称
*/
@TableField
(
exist
=
false
)
private
String
memNickName
;
/**
* 会员性别
*/
@TableField
(
exist
=
false
)
private
String
memSex
;
/**
* 会员头像
*/
@TableField
(
exist
=
false
)
private
String
memAvatar
;
/**
* 会员生日
*/
@TableField
(
exist
=
false
)
private
String
memBirthday
;
/**
* 会员居住地省份
*/
@TableField
(
exist
=
false
)
private
String
memResidenceProvince
;
/**
* 会员居住地城市
*/
@TableField
(
exist
=
false
)
private
String
memResidenceCity
;
/**
* 教育经历
*/
@TableField
(
exist
=
false
)
private
String
memMaxEducation
;
/**
* 职业
*/
@TableField
(
exist
=
false
)
private
String
memCareer
;
/**
* 开始时间
*/
...
...
@@ -97,11 +145,6 @@ public class OpmArticle extends CyIdIncreEntity<OpmArticle> {
@TableField
(
exist
=
false
)
List
<
ArticleCommentDTO
>
articleCommentDTOList
;
/**
* 会员头像
*/
@TableField
(
exist
=
false
)
private
String
memAvatar
;
/**
* 动态图片,以逗号分割
...
...
src/main/resources/mapper/business/opmArticle/mapper/OpmArticleMapper.xml
View file @
02341f2d
...
...
@@ -78,10 +78,18 @@
opa.exam_status,
opa.is_article,
opa.create_date,
opa.content,
opt.topic_name AS topic,
mi.mem_code AS memCode,
oi.path AS memAvatar,
GROUP_CONCAT(DISTINCT pic_urls.path ORDER BY pic_urls.path SEPARATOR ',') AS pictureUrls
mi.mem_code,
mi.mem_nick_name,
mi.mem_sex,
mi.mem_birthday,
mi.mem_residence_province,
mi.mem_residence_city,
mi.mem_max_education,
mi.mem_career,
oi.url AS memAvatar,
GROUP_CONCAT(DISTINCT pic_urls.url ORDER BY pic_urls.url SEPARATOR ',') AS pictureUrls
FROM
opm_article opa
LEFT JOIN opm_topic opt ON opa.topic_id = opt.business_id
...
...
@@ -106,7 +114,7 @@
<if
test=
"entity.isArticle !=null and entity.isArticle != '' "
>
and opa.is_article = #{entity.isArticle}
</if>
<if
test=
"entity.topicId !=null and entity.topicId !=
''
"
>
<if
test=
"entity.topicId !=null and entity.topicId !=
0
"
>
and opa.topic_id = #{entity.topicId}
</if>
<if
test=
"entity.businessId !=null and entity.businessId != '' "
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment