Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
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
徐少华
midjourney-proxy
Commits
56b16cd1
Commit
56b16cd1
authored
Aug 15, 2019
by
郑永强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加“使用状态”筛选
parent
f7cd5817
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
AdNewsListParam.java
...main/java/com/pcloud/book/adnews/dto/AdNewsListParam.java
+3
-0
AdNewsMapper.xml
...ce-book/src/main/resources/mapper/adnews/AdNewsMapper.xml
+6
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/adnews/dto/AdNewsListParam.java
View file @
56b16cd1
...
@@ -33,6 +33,9 @@ public class AdNewsListParam {
...
@@ -33,6 +33,9 @@ public class AdNewsListParam {
@ApiModelProperty
(
"已被禁用;0:没禁用; 1:已禁用;"
)
@ApiModelProperty
(
"已被禁用;0:没禁用; 1:已禁用;"
)
private
Integer
hasBan
;
private
Integer
hasBan
;
@ApiModelProperty
(
"使用状态;0:未使用; 1:已使用;"
)
private
Integer
hasUsed
;
@ApiModelProperty
(
"当前页"
)
@ApiModelProperty
(
"当前页"
)
private
Integer
currentPage
;
private
Integer
currentPage
;
...
...
pcloud-service-book/src/main/resources/mapper/adnews/AdNewsMapper.xml
View file @
56b16cd1
...
@@ -162,6 +162,12 @@
...
@@ -162,6 +162,12 @@
<if
test=
"hasBan==1"
>
<if
test=
"hasBan==1"
>
AND EXISTS (SELECT 1 FROM ad_news_ban WHERE ad_news_id=a.id and adviser_id=#{partyId} LIMIT 1)
AND EXISTS (SELECT 1 FROM ad_news_ban WHERE ad_news_id=a.id and adviser_id=#{partyId} LIMIT 1)
</if>
</if>
<if
test=
"hasUsed==0"
>
AND NOT EXISTS (SELECT 1 FROM ad_news_group_record WHERE ad_news_id=a.id and create_user=#{partyId} LIMIT 1)
</if>
<if
test=
"hasUsed==1"
>
AND EXISTS (SELECT 1 FROM ad_news_group_record WHERE ad_news_id=a.id and create_user=#{partyId} LIMIT 1)
</if>
</select>
</select>
<!--获取编辑选择的素材-->
<!--获取编辑选择的素材-->
...
...
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