Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-evaluate
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
base_platform_enterprise
gic-evaluate
Commits
bcc3edaa
Commit
bcc3edaa
authored
Jan 07, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
咨询建议
parent
0cee6bcc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
7 deletions
+56
-7
TabEvaluateOrderConfig.java
.../java/com/gic/evaluate/entity/TabEvaluateOrderConfig.java
+26
-0
EvaluateOrderConfigServiceImpl.java
...evaluate/service/impl/EvaluateOrderConfigServiceImpl.java
+2
-3
TabEvaluateOrderConfigMapper.xml
...rc/main/resources/mapper/TabEvaluateOrderConfigMapper.xml
+28
-4
No files found.
gic-evaluate-service/src/main/java/com/gic/evaluate/entity/TabEvaluateOrderConfig.java
View file @
bcc3edaa
...
...
@@ -92,11 +92,21 @@ public class TabEvaluateOrderConfig {
private
Integer
badEvaluateTag
;
/**
* X小时内禁止评论, -1代表永久
*/
private
Integer
badEvaluateTagType
;
/**
* 恶意投诉标记功能
*/
private
Integer
badSuggestionTag
;
/**
* X小时内禁止用户再次发表投诉建议
*/
private
Integer
badSuggestionTagType
;
/**
*
*/
private
Date
updateTime
;
...
...
@@ -237,6 +247,14 @@ public class TabEvaluateOrderConfig {
this
.
badEvaluateTag
=
badEvaluateTag
;
}
public
Integer
getBadEvaluateTagType
()
{
return
badEvaluateTagType
;
}
public
void
setBadEvaluateTagType
(
Integer
badEvaluateTagType
)
{
this
.
badEvaluateTagType
=
badEvaluateTagType
;
}
public
Integer
getBadSuggestionTag
()
{
return
badSuggestionTag
;
}
...
...
@@ -245,6 +263,14 @@ public class TabEvaluateOrderConfig {
this
.
badSuggestionTag
=
badSuggestionTag
;
}
public
Integer
getBadSuggestionTagType
()
{
return
badSuggestionTagType
;
}
public
void
setBadSuggestionTagType
(
Integer
badSuggestionTagType
)
{
this
.
badSuggestionTagType
=
badSuggestionTagType
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
...
...
gic-evaluate-service/src/main/java/com/gic/evaluate/service/impl/EvaluateOrderConfigServiceImpl.java
View file @
bcc3edaa
...
...
@@ -39,11 +39,10 @@ public class EvaluateOrderConfigServiceImpl implements EvaluateOrderConfigServic
evaluateOrderConfig
.
setCommentModule
(
1
);
evaluateOrderConfig
.
setReward
(
Constants
.
OPEN
);
evaluateOrderConfig
.
setOrderType
(
Constants
.
EVALUATE_ORDER_SORT_SCORE
);
// evaluateOrderConfig.setGoodEvaluateQuick(copy.getGoodEvaluateQuick());
// evaluateOrderConfig.setBadEvaluateQuick(copy.getBadEvaluateQuick());
// evaluateOrderConfig.setReplyQuick(copy.getReplyQuick());
evaluateOrderConfig
.
setBadEvaluateTag
(
Constants
.
OPEN
);
evaluateOrderConfig
.
setBadEvaluateTagType
(-
1
);
evaluateOrderConfig
.
setBadSuggestionTag
(
Constants
.
OPEN
);
evaluateOrderConfig
.
setBadSuggestionTagType
(
3
);
this
.
tabEvaluateOrderConfigMapper
.
insertSelective
(
evaluateOrderConfig
);
}
...
...
gic-evaluate-service/src/main/resources/mapper/TabEvaluateOrderConfigMapper.xml
View file @
bcc3edaa
...
...
@@ -19,14 +19,16 @@
<result
column=
"reward"
jdbcType=
"INTEGER"
property=
"reward"
/>
<result
column=
"order_type"
jdbcType=
"INTEGER"
property=
"orderType"
/>
<result
column=
"bad_evaluate_tag"
jdbcType=
"INTEGER"
property=
"badEvaluateTag"
/>
<result
column=
"bad_evaluate_tag_type"
jdbcType=
"INTEGER"
property=
"badEvaluateTagType"
/>
<result
column=
"bad_suggestion_tag"
jdbcType=
"INTEGER"
property=
"badSuggestionTag"
/>
<result
column=
"bad_suggestion_tag_type"
jdbcType=
"INTEGER"
property=
"badSuggestionTagType"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
evaluate_order_config_id, enterprise_id, goods, store, service, mind_hour, remind_day,
evaluate_limitday, default_content, review, review_limitday, review_user_hidden,
review_times, comment_module, reward, order_type, bad_evaluate_tag, bad_
suggestion_tag
,
update_time
review_times, comment_module, reward, order_type, bad_evaluate_tag, bad_
evaluate_tag_type
,
bad_suggestion_tag, bad_suggestion_tag_type,
update_time
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
...
...
@@ -45,14 +47,16 @@
default_content, review, review_limitday,
review_user_hidden, review_times, comment_module,
reward, order_type, bad_evaluate_tag,
bad_suggestion_tag, update_time)
bad_evaluate_tag_type, bad_suggestion_tag, bad_suggestion_tag_type,
update_time)
values (#{evaluateOrderConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
#{goods,jdbcType=INTEGER}, #{store,jdbcType=INTEGER}, #{service,jdbcType=INTEGER},
#{mindHour,jdbcType=INTEGER}, #{remindDay,jdbcType=INTEGER}, #{evaluateLimitday,jdbcType=INTEGER},
#{defaultContent,jdbcType=VARCHAR}, #{review,jdbcType=INTEGER}, #{reviewLimitday,jdbcType=INTEGER},
#{reviewUserHidden,jdbcType=INTEGER}, #{reviewTimes,jdbcType=INTEGER}, #{commentModule,jdbcType=INTEGER},
#{reward,jdbcType=INTEGER}, #{orderType,jdbcType=INTEGER}, #{badEvaluateTag,jdbcType=INTEGER},
#{badSuggestionTag,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP})
#{badEvaluateTagType,jdbcType=INTEGER}, #{badSuggestionTag,jdbcType=INTEGER}, #{badSuggestionTagType,jdbcType=INTEGER},
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.evaluate.entity.TabEvaluateOrderConfig"
>
insert into tab_evaluate_order_config
...
...
@@ -108,9 +112,15 @@
<if
test=
"badEvaluateTag != null"
>
bad_evaluate_tag,
</if>
<if
test=
"badEvaluateTagType != null"
>
bad_evaluate_tag_type,
</if>
<if
test=
"badSuggestionTag != null"
>
bad_suggestion_tag,
</if>
<if
test=
"badSuggestionTagType != null"
>
bad_suggestion_tag_type,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
...
...
@@ -167,9 +177,15 @@
<if
test=
"badEvaluateTag != null"
>
#{badEvaluateTag,jdbcType=INTEGER},
</if>
<if
test=
"badEvaluateTagType != null"
>
#{badEvaluateTagType,jdbcType=INTEGER},
</if>
<if
test=
"badSuggestionTag != null"
>
#{badSuggestionTag,jdbcType=INTEGER},
</if>
<if
test=
"badSuggestionTagType != null"
>
#{badSuggestionTagType,jdbcType=INTEGER},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
...
...
@@ -226,9 +242,15 @@
<if
test=
"badEvaluateTag != null"
>
bad_evaluate_tag = #{badEvaluateTag,jdbcType=INTEGER},
</if>
<if
test=
"badEvaluateTagType != null"
>
bad_evaluate_tag_type = #{badEvaluateTagType,jdbcType=INTEGER},
</if>
<if
test=
"badSuggestionTag != null"
>
bad_suggestion_tag = #{badSuggestionTag,jdbcType=INTEGER},
</if>
<if
test=
"badSuggestionTagType != null"
>
bad_suggestion_tag_type = #{badSuggestionTagType,jdbcType=INTEGER},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
...
...
@@ -253,7 +275,9 @@
reward = #{reward,jdbcType=INTEGER},
order_type = #{orderType,jdbcType=INTEGER},
bad_evaluate_tag = #{badEvaluateTag,jdbcType=INTEGER},
bad_evaluate_tag_type = #{badEvaluateTagType,jdbcType=INTEGER},
bad_suggestion_tag = #{badSuggestionTag,jdbcType=INTEGER},
bad_suggestion_tag_type = #{badSuggestionTagType,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where evaluate_order_config_id = #{evaluateOrderConfigId,jdbcType=INTEGER}
</update>
...
...
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