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
712da396
Commit
712da396
authored
May 14, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加导购
parent
35147771
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
9 deletions
+84
-9
ClerkDTO.java
gic-store-api/src/main/java/com/gic/store/dto/ClerkDTO.java
+25
-0
TabClerk.java
...-service/src/main/java/com/gic/store/entity/TabClerk.java
+27
-0
TabClerkMapper.xml
...tore-service/src/main/resources/mapper/TabClerkMapper.xml
+32
-9
No files found.
gic-store-api/src/main/java/com/gic/store/dto/ClerkDTO.java
View file @
712da396
...
...
@@ -65,6 +65,15 @@ public class ClerkDTO implements Serializable {
private
Integer
status
;
/**
* 1店长 0店员
*/
private
Integer
clerkType
;
/**
* 头像
*/
private
String
headImg
;
/**
* 事由 1:web后台操作 2:外部触发 3:订单同步 4:会员同步 5:系统配置触发
*/
private
Integer
reason
;
...
...
@@ -210,4 +219,20 @@ public class ClerkDTO implements Serializable {
public
String
getHaobanStatusName
()
{
return
haobanStatusName
;
}
public
Integer
getClerkType
()
{
return
clerkType
;
}
public
void
setClerkType
(
Integer
clerkType
)
{
this
.
clerkType
=
clerkType
;
}
public
String
getHeadImg
()
{
return
headImg
;
}
public
void
setHeadImg
(
String
headImg
)
{
this
.
headImg
=
headImg
;
}
}
gic-store-service/src/main/java/com/gic/store/entity/TabClerk.java
View file @
712da396
...
...
@@ -71,6 +71,16 @@ public class TabClerk {
*/
private
Integer
status
;
/**
* 1店长 0店员
*/
private
Integer
clerkType
;
/**
* 头像
*/
private
String
headImg
;
public
Integer
getClerkId
()
{
return
clerkId
;
}
...
...
@@ -174,4 +184,20 @@ public class TabClerk {
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getClerkType
()
{
return
clerkType
;
}
public
void
setClerkType
(
Integer
clerkType
)
{
this
.
clerkType
=
clerkType
;
}
public
String
getHeadImg
()
{
return
headImg
;
}
public
void
setHeadImg
(
String
headImg
)
{
this
.
headImg
=
headImg
;
}
}
\ No newline at end of file
gic-store-service/src/main/resources/mapper/TabClerkMapper.xml
View file @
712da396
...
...
@@ -15,10 +15,13 @@
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"clerk_type"
jdbcType=
"INTEGER"
property=
"clerkType"
/>
<result
column=
"head_img"
jdbcType=
"VARCHAR"
property=
"headImg"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
clerk_id, clerk_name, clerk_code, enterprise_id, store_info_id, position_name, clerk_gender,
nationcode, phone_number, haoban_status, create_time, update_time, status
nationcode, phone_number, haoban_status, create_time, update_time, status, clerk_type,
head_img
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
...
...
@@ -35,17 +38,16 @@
enterprise_id, store_info_id, position_name,
clerk_gender, nationcode, phone_number,
haoban_status, create_time, update_time,
status)
status, clerk_type, head_img
)
values (#{clerkId,jdbcType=INTEGER}, #{clerkName,jdbcType=VARCHAR}, #{clerkCode,jdbcType=VARCHAR},
#{enterpriseId,jdbcType=INTEGER}, #{storeInfoId,jdbcType=INTEGER}, #{positionName,jdbcType=VARCHAR},
#{clerkGender,jdbcType=INTEGER}, #{nationcode,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR},
#{haobanStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER})
#{status,jdbcType=INTEGER}, #{clerkType,jdbcType=INTEGER}, #{headImg,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.store.entity.TabClerk"
>
<selectKey
keyProperty=
"clerkId"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into tab_clerk
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"clerkId != null"
>
...
...
@@ -87,6 +89,12 @@
<if
test=
"status != null"
>
status,
</if>
<if
test=
"clerkType != null"
>
clerk_type,
</if>
<if
test=
"headImg != null"
>
head_img,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"clerkId != null"
>
...
...
@@ -128,6 +136,12 @@
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"clerkType != null"
>
#{clerkType,jdbcType=INTEGER},
</if>
<if
test=
"headImg != null"
>
#{headImg,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.store.entity.TabClerk"
>
...
...
@@ -169,6 +183,12 @@
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"clerkType != null"
>
clerk_type = #{clerkType,jdbcType=INTEGER},
</if>
<if
test=
"headImg != null"
>
head_img = #{headImg,jdbcType=VARCHAR},
</if>
</set>
where clerk_id = #{clerkId,jdbcType=INTEGER}
</update>
...
...
@@ -185,9 +205,12 @@
haoban_status = #{haobanStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER}
status = #{status,jdbcType=INTEGER},
clerk_type = #{clerkType,jdbcType=INTEGER},
head_img = #{headImg,jdbcType=VARCHAR}
where clerk_id = #{clerkId,jdbcType=INTEGER}
</update>
<select
id=
"countByClerkCode"
resultType=
"java.lang.Integer"
>
select count(1)
from tab_clerk
...
...
@@ -291,9 +314,9 @@
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"null != ids and ids.size
>
0"
>
<if
test=
"null != ids and ids.size
>
0"
>
and clerk_id in
<foreach
c
ollection=
"ids"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")
"
>
<foreach
c
lose=
")"
collection=
"ids"
index=
"index"
item=
"item"
open=
"("
separator=
",
"
>
#{item}
</foreach>
</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