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
b929ec41
Commit
b929ec41
authored
Oct 09, 2019
by
郑永强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1001743 增加早晚报推送规则
parent
9ff714a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
1 deletions
+40
-1
AdNewsSet.java
...rc/main/java/com/pcloud/book/adnews/entity/AdNewsSet.java
+3
-0
AdNewsSendRuleEnum.java
...java/com/pcloud/book/adnews/enums/AdNewsSendRuleEnum.java
+30
-0
AdNewsSetMapper.xml
...book/src/main/resources/mapper/adnews/AdNewsSetMapper.xml
+7
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/adnews/entity/AdNewsSet.java
View file @
b929ec41
...
...
@@ -33,6 +33,9 @@ public class AdNewsSet extends BaseEntity {
@ApiModelProperty
(
"发送次数"
)
private
Integer
sendCount
;
@ApiModelProperty
(
"发送规则"
)
private
Integer
sendRule
;
@ApiModelProperty
(
"开场语"
)
private
String
startContent
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/adnews/enums/AdNewsSendRuleEnum.java
0 → 100644
View file @
b929ec41
package
com
.
pcloud
.
book
.
adnews
.
enums
;
/**
* @author zhengyongqiang
* @date 2019/10/9 9:39
*/
public
enum
AdNewsSendRuleEnum
{
LAST_UPDATE
(
0
,
"最近更新"
),
MATCH_LABEL
(
1
,
"匹配标签"
);
public
final
Integer
key
;
public
final
String
description
;
AdNewsSendRuleEnum
(
Integer
key
,
String
description
)
{
this
.
key
=
key
;
this
.
description
=
description
;
}
public
static
String
getDescriptionByKey
(
Integer
key
)
{
AdNewsSendRuleEnum
[]
var1
=
values
();
int
var2
=
var1
.
length
;
for
(
int
var3
=
0
;
var3
<
var2
;
++
var3
)
{
AdNewsSendRuleEnum
methodEnum
=
var1
[
var3
];
if
(
methodEnum
.
key
.
equals
(
key
))
{
return
methodEnum
.
description
;
}
}
return
null
;
}
}
pcloud-service-book/src/main/resources/mapper/adnews/AdNewsSetMapper.xml
View file @
b929ec41
...
...
@@ -8,6 +8,7 @@
<result
column=
"has_morning_open"
property=
"hasMorningOpen"
jdbcType=
"BOOLEAN"
/>
<result
column=
"has_evening_open"
property=
"hasEveningOpen"
jdbcType=
"BOOLEAN"
/>
<result
column=
"send_count"
property=
"sendCount"
jdbcType=
"INTEGER"
/>
<result
column=
"send_rule"
property=
"sendRule"
jdbcType=
"INTEGER"
/>
<result
column=
"start_content"
property=
"startContent"
jdbcType=
"VARCHAR"
/>
<result
column=
"end_content"
property=
"endContent"
jdbcType=
"VARCHAR"
/>
<result
column=
"has_start_content"
property=
"hasStartContent"
jdbcType=
"BOOLEAN"
/>
...
...
@@ -22,7 +23,7 @@
</resultMap>
<sql
id=
"Base_Column_List"
>
id, morning_time, evening_time, has_morning_open, has_evening_open, send_count, start_content,
id, morning_time, evening_time, has_morning_open, has_evening_open, send_count,
send_rule,
start_content,
end_content, has_start_content, has_end_content, create_user, create_time, update_user, update_time
,content_from,morning_content,evening_content
</sql>
...
...
@@ -42,6 +43,7 @@
has_morning_open,
has_evening_open,
send_count,
send_rule,
start_content,
end_content,
has_start_content,
...
...
@@ -60,6 +62,7 @@
#{hasMorningOpen,jdbcType=BOOLEAN},
#{hasEveningOpen,jdbcType=BOOLEAN},
#{sendCount,jdbcType=INTEGER},
#{sendRule,jdbcType=INTEGER},
#{startContent,jdbcType=VARCHAR},
#{endContent,jdbcType=VARCHAR},
#{hasStartContent,jdbcType=BOOLEAN},
...
...
@@ -92,6 +95,9 @@
<if
test=
"sendCount != null"
>
send_count = #{sendCount,jdbcType=INTEGER},
</if>
<if
test=
"sendRule != null"
>
send_rule = #{sendRule,jdbcType=INTEGER}
</if>
<if
test=
"startContent != null"
>
start_content = #{startContent,jdbcType=VARCHAR},
</if>
...
...
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