Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-platform-enterprise
Commits
182818c8
Commit
182818c8
authored
Oct 14, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装修页面-附近门店:添加快捷导航开关
parent
f48d8853
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
4 deletions
+64
-4
CustomStoreDTO.java
.../src/main/java/com/gic/enterprise/dto/CustomStoreDTO.java
+16
-0
TabCustomStore.java
...c/main/java/com/gic/enterprise/entity/TabCustomStore.java
+15
-0
CustomStoreServiceImpl.java
...m/gic/enterprise/service/impl/CustomStoreServiceImpl.java
+4
-0
TabCustomStoreMapper.xml
...ervice/src/main/resources/mapper/TabCustomStoreMapper.xml
+15
-4
CustomStoreController.java
.../gic/enterprise/web/controller/CustomStoreController.java
+1
-0
CustomStoreQO.java
...rc/main/java/com/gic/enterprise/web/qo/CustomStoreQO.java
+13
-0
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/CustomStoreDTO.java
View file @
182818c8
...
...
@@ -53,6 +53,11 @@ public class CustomStoreDTO implements Serializable {
*/
private
Integer
appType
;
/**
* 快捷导航开关 1:开启 0:关闭
*/
private
Integer
quickGuideSwitch
;
public
Integer
getCustomStoreId
()
{
return
customStoreId
;
}
...
...
@@ -125,6 +130,15 @@ public class CustomStoreDTO implements Serializable {
this
.
title
=
title
;
}
public
Integer
getQuickGuideSwitch
()
{
return
quickGuideSwitch
;
}
public
CustomStoreDTO
setQuickGuideSwitch
(
Integer
quickGuideSwitch
)
{
this
.
quickGuideSwitch
=
quickGuideSwitch
;
return
this
;
}
@Override
public
String
toString
()
{
return
"CustomStoreDTO{"
+
...
...
@@ -137,6 +151,7 @@ public class CustomStoreDTO implements Serializable {
", updateTime="
+
updateTime
+
", storeWidgetId="
+
storeWidgetId
+
", appType="
+
appType
+
", quickGuideSwitch="
+
quickGuideSwitch
+
'}'
;
}
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabCustomStore.java
View file @
182818c8
...
...
@@ -55,6 +55,11 @@ public class TabCustomStore {
*/
private
Integer
appType
;
/**
* 快捷导航开关 1:开启 0:关闭
*/
private
Integer
quickGuideSwitch
;
public
Integer
getCustomStoreId
()
{
return
customStoreId
;
}
...
...
@@ -126,4 +131,13 @@ public class TabCustomStore {
public
void
setAppType
(
Integer
appType
)
{
this
.
appType
=
appType
;
}
public
Integer
getQuickGuideSwitch
()
{
return
quickGuideSwitch
;
}
public
TabCustomStore
setQuickGuideSwitch
(
Integer
quickGuideSwitch
)
{
this
.
quickGuideSwitch
=
quickGuideSwitch
;
return
this
;
}
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/CustomStoreServiceImpl.java
View file @
182818c8
...
...
@@ -25,6 +25,10 @@ public class CustomStoreServiceImpl implements CustomStoreService {
@Override
public
int
saveCustomStore
(
TabCustomStore
tabCustomStore
)
{
tabCustomStore
.
setUpdateTime
(
new
Date
());
if
(
tabCustomStore
.
getQuickGuideSwitch
()
==
null
)
{
//默认开启
tabCustomStore
.
setQuickGuideSwitch
(
1
);
}
if
(
tabCustomStore
.
getCustomStoreId
()
!=
null
){
return
this
.
tabCustomStoreMapper
.
updateByPrimaryKeySelective
(
tabCustomStore
);
}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabCustomStoreMapper.xml
View file @
182818c8
...
...
@@ -11,10 +11,11 @@
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"store_widget_id"
jdbcType=
"INTEGER"
property=
"storeWidgetId"
/>
<result
column=
"app_type"
jdbcType=
"INTEGER"
property=
"appType"
/>
<result
column=
"quick_guide_switch"
jdbcType=
"INTEGER"
property=
"quickGuideSwitch"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
custom_store_id, title, enterprise_id, appid, status, create_time, update_time, store_widget_id,
app_type
app_type
, quick_guide_switch
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
...
...
@@ -26,11 +27,11 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabCustomStore"
>
insert into tab_custom_store (custom_store_id, title, enterprise_id,
appid, status, create_time,
update_time, store_widget_id, app_type
update_time, store_widget_id, app_type
, quick_guide_switch
)
values (#{customStoreId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER},
#{appid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{storeWidgetId,jdbcType=INTEGER}, #{appType,jdbcType=INTEGER}
#{updateTime,jdbcType=TIMESTAMP}, #{storeWidgetId,jdbcType=INTEGER}, #{appType,jdbcType=INTEGER}
#{quickGuideSwitch,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabCustomStore"
>
...
...
@@ -63,6 +64,9 @@
<if
test=
"appType != null"
>
app_type,
</if>
<if
test=
"quickGuideSwitch != null"
>
quick_guide_switch,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"customStoreId != null"
>
...
...
@@ -92,6 +96,9 @@
<if
test=
"appType != null"
>
#{appType,jdbcType=INTEGER},
</if>
<if
test=
"quickGuideSwitch != null"
>
#{quickGuideSwitch,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabCustomStore"
>
...
...
@@ -121,6 +128,9 @@
<if
test=
"appType != null"
>
app_type = #{appType,jdbcType=INTEGER},
</if>
<if
test=
"quickGuideSwitch != null"
>
quick_guide_switch = #{quickGuideSwitch,jdbcType=INTEGER},
</if>
</set>
where custom_store_id = #{customStoreId,jdbcType=INTEGER}
</update>
...
...
@@ -133,7 +143,8 @@
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
store_widget_id = #{storeWidgetId,jdbcType=INTEGER},
app_type = #{appType,jdbcType=INTEGER}
app_type = #{appType,jdbcType=INTEGER},
quick_guide_switch = #{quickGuideSwitch,jdbcType=INTEGER}
where custom_store_id = #{customStoreId,jdbcType=INTEGER}
</update>
<select
id=
"pageCustomStore"
resultMap=
"BaseResultMap"
>
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/CustomStoreController.java
View file @
182818c8
...
...
@@ -41,6 +41,7 @@ public class CustomStoreController {
dto
.
setCustomStoreId
(
customStoreQO
.
getCustomStoreId
());
dto
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
dto
.
setStoreWidgetId
(
customStoreQO
.
getStorewidgetId
());
dto
.
setQuickGuideSwitch
(
customStoreQO
.
getQuickGuideSwitch
());
if
(
customStoreQO
.
getSaveType
().
intValue
()
==
Constants
.
TWO
.
intValue
()){
this
.
customStoreApiService
.
closeCustomStore
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
customStoreQO
.
getAppId
());
dto
.
setStatus
(
1
);
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/qo/CustomStoreQO.java
View file @
182818c8
...
...
@@ -13,6 +13,10 @@ public class CustomStoreQO {
private
Integer
appType
;
private
Integer
storewidgetId
;
private
Integer
saveType
;
//1保存 2保存发布
/**
* 快捷导航开关 1:开启 0:关闭
*/
private
Integer
quickGuideSwitch
;
public
Integer
getCustomStoreId
()
{
return
customStoreId
;
...
...
@@ -61,4 +65,13 @@ public class CustomStoreQO {
public
void
setStorewidgetId
(
Integer
storewidgetId
)
{
this
.
storewidgetId
=
storewidgetId
;
}
public
Integer
getQuickGuideSwitch
()
{
return
quickGuideSwitch
;
}
public
CustomStoreQO
setQuickGuideSwitch
(
Integer
quickGuideSwitch
)
{
this
.
quickGuideSwitch
=
quickGuideSwitch
;
return
this
;
}
}
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