Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
store-system
Project
Project
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
luoyangfei
store-system
Commits
7499e1f7
Commit
7499e1f7
authored
Nov 09, 2018
by
wangyihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
店铺表 新增字段 店铺管理员ID 店铺管理员名称
parent
859045c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
22 deletions
+45
-22
Store.java
...ore-system/src/main/java/cn/com/fqy/core/model/Store.java
+17
-7
StoreMapper.xml
...-system/src/main/resources/mybatis/mapper/StoreMapper.xml
+28
-15
No files found.
2code/server/store-system/src/main/java/cn/com/fqy/core/model/Store.java
View file @
7499e1f7
...
...
@@ -28,7 +28,7 @@ public class Store extends Entity<String> {
//省份
private
String
province
;
//祖籍
private
String
a
ncestral
;
private
String
a
dministratorsId
;
//区县
private
String
county
;
//位置
...
...
@@ -89,6 +89,8 @@ public class Store extends Entity<String> {
private
Integer
isDeleted
;
//是否启用(0不启用1 启用)
private
Integer
isAvailable
;
//店铺管理员名称
private
String
administratorsName
;
/*Auto generated properties end*/
...
...
@@ -101,6 +103,14 @@ public class Store extends Entity<String> {
/*Auto generated methods start*/
public
String
getAdministratorsName
()
{
return
administratorsName
;
}
public
void
setAdministratorsName
(
String
administratorsName
)
{
this
.
administratorsName
=
administratorsName
;
}
public
Integer
getIsDeleted
()
{
return
isDeleted
;
}
...
...
@@ -178,12 +188,12 @@ public class Store extends Entity<String> {
this
.
province
=
province
;
}
public
String
getA
ncestral
(){
return
a
ncestral
;
public
String
getA
dministratorsId
(){
return
a
dministratorsId
;
}
public
void
setA
ncestral
(
String
ancestral
){
this
.
a
ncestral
=
ancestral
;
public
void
setA
dministratorsId
(
String
administratorsId
){
this
.
a
dministratorsId
=
administratorsId
;
}
public
String
getCounty
(){
...
...
@@ -424,7 +434,7 @@ public class Store extends Entity<String> {
public
String
toString
()
{
return
"Store [storeId="
+
storeId
+
", storeName="
+
storeName
+
", contactNumber="
+
contactNumber
+
", contacts="
+
contacts
+
", qq="
+
qq
+
", wechat="
+
wechat
+
", province="
+
province
+
", a
ncestral="
+
ancestral
+
", county="
+
county
+
", storePosition="
+
storePosition
+
", a
dministratorsId="
+
administratorsId
+
", county="
+
county
+
", storePosition="
+
storePosition
+
", storeBusinessTimeStart="
+
storeBusinessTimeStart
+
", storeBusinessTimeEnd="
+
storeBusinessTimeEnd
+
", consumeInterval="
+
consumeInterval
+
", storeDetails="
+
storeDetails
+
", qrCode="
+
qrCode
+
", storeHomePic="
+
storeHomePic
+
", storePic="
+
storePic
+
", isAuditing="
...
...
@@ -435,6 +445,6 @@ public class Store extends Entity<String> {
+
", createTimeEnd="
+
createTimeEnd
+
", updateTime="
+
updateTime
+
", updateTimeStart="
+
updateTimeStart
+
", updateTimeEnd="
+
updateTimeEnd
+
", operatorId="
+
operatorId
+
", operatorType="
+
operatorType
+
", serialNumber="
+
serialNumber
+
", isDeleted="
+
isDeleted
+
", isAvailable="
+
isAvailable
+
"]"
;
+
", isAvailable="
+
isAvailable
+
"
, administratorsName="
+
administratorsName
+
"
]"
;
}
}
2code/server/store-system/src/main/resources/mybatis/mapper/StoreMapper.xml
View file @
7499e1f7
...
...
@@ -10,7 +10,7 @@
<result
column=
"QQ"
property=
"qq"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"WECHAT"
property=
"wechat"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"PROVINCE"
property=
"province"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"A
NCESTRAL"
property=
"ancestral
"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"A
DMINISTRATORS_ID"
property=
"administratorsId
"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"COUNTY"
property=
"county"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"STORE_POSITION"
property=
"storePosition"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"STORE_BUSINESS_TIME_START"
property=
"storeBusinessTimeStart"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
...
...
@@ -33,25 +33,26 @@
<result
column=
"SERIAL_NUMBER"
property=
"serialNumber"
javaType=
"java.lang.Integer"
jdbcType=
"INTEGER"
/>
<result
column=
"IS_DELETED"
property=
"isDeleted"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<result
column=
"IS_AVAILABLE"
property=
"isAvailable"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<result
column=
"ADMINISTRATORS_NAME"
property=
"administratorsName"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
</resultMap>
<!-- 全部字段,一般用于明细查询 -->
<sql
id=
"AllColumnlist"
>
STORE_ID,STORE_NAME,CONTACT_NUMBER,CONTACTS,QQ,WECHAT,PROVINCE,
A
NCESTRAL
,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS_TIME_END,CONSUME_INTERVAL,
A
DMINISTRATORS_ID
,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS_TIME_END,CONSUME_INTERVAL,
STORE_DETAILS,QR_CODE,STORE_HOME_PIC,STORE_PIC,IS_AUDITING,IS_SHOPPING,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,CREATE_TIME,UPDATE_TIME,
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
,ADMINISTRATORS_NAME
</sql>
<!-- 常见字段,一般用于列表查询,可能不包含备注之类的字段 -->
<sql
id=
"CommonColumnlist"
>
STORE_ID,STORE_NAME,CONTACT_NUMBER,CONTACTS,QQ,WECHAT,PROVINCE,
A
NCESTRAL
,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS_TIME_END,CONSUME_INTERVAL,
A
DMINISTRATORS_ID
,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS_TIME_END,CONSUME_INTERVAL,
STORE_DETAILS,QR_CODE,STORE_HOME_PIC,STORE_PIC,IS_AUDITING,IS_SHOPPING,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,CREATE_TIME,UPDATE_TIME,
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
,ADMINISTRATORS_NAME
</sql>
<insert
id=
"add"
parameterType=
"Store"
useGeneratedKeys=
"true"
keyProperty=
"storeId"
>
...
...
@@ -65,7 +66,7 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
QQ,
WECHAT,
PROVINCE,
A
NCESTRAL
,
A
DMINISTRATORS_ID
,
COUNTY,
STORE_POSITION,
STORE_BUSINESS_TIME_START,
...
...
@@ -87,7 +88,8 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
OPERATOR_TYPE,
SERIAL_NUMBER,
IS_DELETED,
IS_AVAILABLE
IS_AVAILABLE,
ADMINISTRATORS_NAME
) values (
<if
test=
"storeId!=null"
>
#{storeId,jdbcType = VARCHAR},
...
...
@@ -98,7 +100,7 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
#{qq,jdbcType = VARCHAR},
#{wechat,jdbcType = VARCHAR},
#{province,jdbcType = VARCHAR},
#{a
ncestral
,jdbcType = VARCHAR},
#{a
dministratorsId
,jdbcType = VARCHAR},
#{county,jdbcType = VARCHAR},
#{storePosition,jdbcType = VARCHAR},
#{storeBusinessTimeStart,jdbcType = VARCHAR},
...
...
@@ -120,7 +122,8 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
#{operatorType,jdbcType = TINYINT},
#{serialNumber,jdbcType = INTEGER},
#{isDeleted,jdbcType = TINYINT},
#{isAvailable,jdbcType = TINYINT}
#{isAvailable,jdbcType = TINYINT},
#{administratorsName,jdbcType = VARCHAR}
)
</insert>
...
...
@@ -145,8 +148,8 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if
test=
"province!=null and province!=''"
>
PROVINCE=#{province,jdbcType = VARCHAR},
</if>
<if
test=
"a
ncestral!=null and ancestral
!=''"
>
A
NCESTRAL=#{ancestral
,jdbcType = VARCHAR},
<if
test=
"a
dministratorsId!=null and administratorsId
!=''"
>
A
DMINISTRATORS_ID=#{administratorsId
,jdbcType = VARCHAR},
</if>
<if
test=
"county!=null and county!=''"
>
COUNTY=#{county,jdbcType = VARCHAR},
...
...
@@ -214,6 +217,9 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if
test=
"isAvailable!=null "
>
IS_AVAILABLE=#{isAvailable,jdbcType = TINYINT},
</if>
<if
test=
"administratorsName!=null and administratorsName!=''"
>
ADMINISTRATORS_NAME=#{administratorsName,jdbcType = VARCHAR},
</if>
</set>
<where>
AND STORE_ID=#{storeId}
...
...
@@ -288,8 +294,8 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if
test=
"q.province!=null and q.province!=''"
>
AND PROVINCE=#{q.province}
</if>
<if
test=
"q.a
ncestral!=null and q.ancestral
!=''"
>
AND A
NCESTRAL=#{q.ancestral
}
<if
test=
"q.a
dministratorsId!=null and q.administratorsId
!=''"
>
AND A
DMINISTRATORS_ID=#{q.administratorsId
}
</if>
<if
test=
"q.county!=null and q.county!=''"
>
AND COUNTY=#{q.county}
...
...
@@ -381,6 +387,9 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if
test=
"q.isAvailable!=null "
>
AND IS_AVAILABLE=#{q.isAvailable}
</if>
<if
test=
"q.administratorsName!=null and q.administratorsName!=''"
>
AND ADMINISTRATORS_NAME=#{q.administratorsName}
</if>
</if>
</sql>
...
...
@@ -410,8 +419,8 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if
test=
"q.province!=null and q.province!=''"
>
AND PROVINCE=#{q.province}
</if>
<if
test=
"q.a
ncestral!=null and q.ancestral
!=''"
>
AND A
NCESTRAL=#{q.ancestral
}
<if
test=
"q.a
dministratorsId!=null and q.administratorsId
!=''"
>
AND A
DMINISTRATORS_ID=#{q.administratorsId
}
</if>
<if
test=
"q.county!=null and q.county!=''"
>
AND COUNTY LIKE '%${q.county}%'
...
...
@@ -503,6 +512,9 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if
test=
"q.isAvailable!=null "
>
AND IS_AVAILABLE=#{q.isAvailable}
</if>
<if
test=
"q.administratorsName!=null and q.administratorsName!=''"
>
AND ADMINISTRATORS_NAME=#{q.administratorsName}
</if>
</if>
</sql>
</mapper>
\ No newline at end of file
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