Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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-store
Commits
17ab6c2e
Commit
17ab6c2e
authored
Sep 30, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店授权
parent
185a53d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
TabStoreInfo.java
...vice/src/main/java/com/gic/store/entity/TabStoreInfo.java
+11
-0
StoreServiceImpl.java
...ain/java/com/gic/store/service/impl/StoreServiceImpl.java
+1
-0
TabStoreInfoMapper.xml
...-service/src/main/resources/mapper/TabStoreInfoMapper.xml
+8
-2
No files found.
gic-store-service/src/main/java/com/gic/store/entity/TabStoreInfo.java
View file @
17ab6c2e
...
...
@@ -116,6 +116,8 @@ public class TabStoreInfo {
*/
private
Date
updateTime
;
private
Integer
enterpriseId
;
public
Integer
getStoreInfoId
()
{
return
storeInfoId
;
}
...
...
@@ -291,4 +293,12 @@ public class TabStoreInfo {
public
void
setIndexId
(
Long
indexId
)
{
this
.
indexId
=
indexId
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/service/impl/StoreServiceImpl.java
View file @
17ab6c2e
...
...
@@ -68,6 +68,7 @@ public class StoreServiceImpl implements StoreService {
tabStoreInfo
.
setStoreType
(
copy
.
getStoreType
());
tabStoreInfo
.
setCreateType
(
copy
.
getCreateType
());
tabStoreInfo
.
setCreateTime
(
new
Date
());
tabStoreInfo
.
setEnterpriseId
(
copy
.
getEnterpriseId
());
tabStoreInfoMapper
.
insertSelective
(
tabStoreInfo
);
TabStore
store
=
new
TabStore
();
store
.
setEnterpriseId
(
copy
.
getEnterpriseId
());
...
...
gic-store-service/src/main/resources/mapper/TabStoreInfoMapper.xml
View file @
17ab6c2e
...
...
@@ -55,7 +55,7 @@
city_id, area_id, provinces,
longitude, latitude, overflow_status,
complete_status, status, erp_status,
store_type,create_type, create_time, update_time
store_type,create_type, create_time, update_time
,enterprise_id
)
values (#{storeInfoId,jdbcType=INTEGER}, #{storeName,jdbcType=VARCHAR},
#{storeCode,jdbcType=VARCHAR}, #{regionId,jdbcType=INTEGER}, #{conactsPhone,jdbcType=VARCHAR},
...
...
@@ -64,7 +64,7 @@
#{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{overflowStatus,jdbcType=INTEGER},
#{completeStatus,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{erpStatus,jdbcType=INTEGER},
#{storeType,jdbcType=INTEGER}, #{createType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}
#{updateTime,jdbcType=TIMESTAMP}
,#{enterpriseId,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.store.entity.TabStoreInfo"
>
...
...
@@ -136,6 +136,9 @@
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"enterpriseId != null"
>
enterprise_id,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"storeInfoId != null"
>
...
...
@@ -201,6 +204,9 @@
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"enterpriseId != null"
>
#{enterpriseId}
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.store.entity.TabStoreInfo"
>
...
...
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