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
adafe97d
Commit
adafe97d
authored
Nov 15, 2018
by
wangyihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 新增 简介字段
parent
bc444cb2
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
97 additions
and
15 deletions
+97
-15
WebShopController.java
...in/java/cn/com/fqy/controller/mapi/WebShopController.java
+7
-2
WebWorkerController.java
.../java/cn/com/fqy/controller/mapi/WebWorkerController.java
+7
-2
PCAController.java
...rc/main/java/cn/com/fqy/controller/mgt/PCAController.java
+19
-1
Store.java
...ore-system/src/main/java/cn/com/fqy/core/model/Store.java
+12
-1
Worker.java
...re-system/src/main/java/cn/com/fqy/core/model/Worker.java
+11
-1
StoreServiceImpl.java
...n/java/cn/com/fqy/core/service/impl/StoreServiceImpl.java
+4
-0
WorkerServiceImpl.java
.../java/cn/com/fqy/core/service/impl/WorkerServiceImpl.java
+3
-0
StoreMapper.xml
...-system/src/main/resources/mybatis/mapper/StoreMapper.xml
+17
-4
WorkerMapper.xml
...system/src/main/resources/mybatis/mapper/WorkerMapper.xml
+17
-4
No files found.
2code/server/store-system/src/main/java/cn/com/fqy/controller/mapi/WebShopController.java
View file @
adafe97d
...
@@ -67,9 +67,14 @@ public class WebShopController {
...
@@ -67,9 +67,14 @@ public class WebShopController {
*/
*/
@RequestMapping
(
"storeDetails"
)
@RequestMapping
(
"storeDetails"
)
@ResponseBody
@ResponseBody
public
ResultInfo
<
Store
>
getStores
(
St
ore
store
){
public
ResultInfo
<
Store
>
getStores
(
St
ring
storeId
){
ResultInfo
<
Store
>
resultInfo
=
new
ResultInfo
<>();
ResultInfo
<
Store
>
resultInfo
=
new
ResultInfo
<>();
Store
res
=
storeService
.
getStore
(
store
.
getStoreId
());
if
(
storeId
==
null
||
""
.
equals
(
storeId
))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"店铺参数为空"
);
return
resultInfo
;
}
Store
res
=
storeService
.
getStore
(
storeId
);
if
(
null
!=
res
)
{
if
(
null
!=
res
)
{
resultInfo
.
setCode
(
"1"
);
resultInfo
.
setCode
(
"1"
);
resultInfo
.
setData
(
res
);
resultInfo
.
setData
(
res
);
...
...
2code/server/store-system/src/main/java/cn/com/fqy/controller/mapi/WebWorkerController.java
View file @
adafe97d
...
@@ -67,9 +67,14 @@ public class WebWorkerController {
...
@@ -67,9 +67,14 @@ public class WebWorkerController {
*/
*/
@RequestMapping
(
"workerDetails"
)
@RequestMapping
(
"workerDetails"
)
@ResponseBody
@ResponseBody
public
ResultInfo
<
Worker
>
workerDetails
(
Worker
worker
){
public
ResultInfo
<
Worker
>
workerDetails
(
String
workerId
){
ResultInfo
<
Worker
>
resultInfo
=
new
ResultInfo
<>();
ResultInfo
<
Worker
>
resultInfo
=
new
ResultInfo
<>();
Worker
res
=
workerService
.
getWorker
(
worker
.
getWorkerId
());
if
(
workerId
==
null
||
""
.
equals
(
workerId
))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"员工参数为空"
);
return
resultInfo
;
}
Worker
res
=
workerService
.
getWorker
(
workerId
);
if
(
null
!=
res
)
{
if
(
null
!=
res
)
{
resultInfo
.
setCode
(
"1"
);
resultInfo
.
setCode
(
"1"
);
resultInfo
.
setData
(
res
);
resultInfo
.
setData
(
res
);
...
...
2code/server/store-system/src/main/java/cn/com/fqy/controller/mgt/PCAController.java
View file @
adafe97d
...
@@ -74,7 +74,25 @@ public class PCAController extends BaseController{
...
@@ -74,7 +74,25 @@ public class PCAController extends BaseController{
return
resultInfo
;
return
resultInfo
;
}
}
/**
* 市、区(全部)
* @param codeP
* @return
*/
@RequestMapping
(
"getCitys"
)
@ResponseBody
public
ResultInfo
<
List
<
City
>>
getCitys
(){
ResultInfo
<
List
<
City
>>
resultInfo
=
new
ResultInfo
<>();
List
<
City
>
cityList
=
cityService
.
getCityList
(
new
Query
());
if
(
cityList
.
size
()>
0
&&
cityList
!=
null
)
{
resultInfo
.
setCode
(
"1"
);
resultInfo
.
setData
(
cityList
);
}
else
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"暂无市、区数据"
);
}
return
resultInfo
;
}
/**
/**
* 区、县
* 区、县
* @param codeC
* @param codeC
...
...
2code/server/store-system/src/main/java/cn/com/fqy/core/model/Store.java
View file @
adafe97d
...
@@ -99,6 +99,8 @@ public class Store extends Entity<String> {
...
@@ -99,6 +99,8 @@ public class Store extends Entity<String> {
private
String
provinceId
;
private
String
provinceId
;
//区ID
//区ID
private
String
countyId
;
private
String
countyId
;
//简介
private
String
brief
;
/*Auto generated properties end*/
/*Auto generated properties end*/
...
@@ -111,6 +113,14 @@ public class Store extends Entity<String> {
...
@@ -111,6 +113,14 @@ public class Store extends Entity<String> {
/*Auto generated methods start*/
/*Auto generated methods start*/
public
String
getBrief
()
{
return
brief
;
}
public
void
setBrief
(
String
brief
)
{
this
.
brief
=
brief
;
}
public
String
getAdministratorsName
()
{
public
String
getAdministratorsName
()
{
return
administratorsName
;
return
administratorsName
;
}
}
...
@@ -486,6 +496,7 @@ public class Store extends Entity<String> {
...
@@ -486,6 +496,7 @@ public class Store extends Entity<String> {
+
updateTimeStart
+
", updateTimeEnd="
+
updateTimeEnd
+
", operatorId="
+
operatorId
+
updateTimeStart
+
", updateTimeEnd="
+
updateTimeEnd
+
", operatorId="
+
operatorId
+
", operatorType="
+
operatorType
+
", serialNumber="
+
serialNumber
+
", isDeleted="
+
isDeleted
+
", operatorType="
+
operatorType
+
", serialNumber="
+
serialNumber
+
", isDeleted="
+
isDeleted
+
", isAvailable="
+
isAvailable
+
", administratorsName="
+
administratorsName
+
", cityName="
+
", isAvailable="
+
isAvailable
+
", administratorsName="
+
administratorsName
+
", cityName="
+
cityName
+
", cityId="
+
cityId
+
", provinceId="
+
provinceId
+
", countyId="
+
countyId
+
"]"
;
+
cityName
+
", cityId="
+
cityId
+
", provinceId="
+
provinceId
+
", countyId="
+
countyId
+
", brief="
+
brief
+
"]"
;
}
}
}
}
2code/server/store-system/src/main/java/cn/com/fqy/core/model/Worker.java
View file @
adafe97d
...
@@ -92,6 +92,8 @@ public class Worker extends Entity<String> {
...
@@ -92,6 +92,8 @@ public class Worker extends Entity<String> {
private
Integer
isDeleted
;
private
Integer
isDeleted
;
//店铺名称
//店铺名称
private
String
storeName
;
private
String
storeName
;
//简介
private
String
brief
;
/*Auto generated properties end*/
/*Auto generated properties end*/
...
@@ -108,6 +110,14 @@ public class Worker extends Entity<String> {
...
@@ -108,6 +110,14 @@ public class Worker extends Entity<String> {
return
isDeleted
;
return
isDeleted
;
}
}
public
String
getBrief
()
{
return
brief
;
}
public
void
setBrief
(
String
brief
)
{
this
.
brief
=
brief
;
}
public
String
getStoreName
()
{
public
String
getStoreName
()
{
return
storeName
;
return
storeName
;
}
}
...
@@ -446,6 +456,6 @@ public class Worker extends Entity<String> {
...
@@ -446,6 +456,6 @@ public class Worker extends Entity<String> {
+
createTime
+
", createTimeStart="
+
createTimeStart
+
", createTimeEnd="
+
createTimeEnd
+
createTime
+
", createTimeStart="
+
createTimeStart
+
", createTimeEnd="
+
createTimeEnd
+
", updateTime="
+
updateTime
+
", updateTimeStart="
+
updateTimeStart
+
", updateTimeEnd="
+
", updateTime="
+
updateTime
+
", updateTimeStart="
+
updateTimeStart
+
", updateTimeEnd="
+
updateTimeEnd
+
", operatorId="
+
operatorId
+
", operatorType="
+
operatorType
+
", serialNumber="
+
updateTimeEnd
+
", operatorId="
+
operatorId
+
", operatorType="
+
operatorType
+
", serialNumber="
+
serialNumber
+
", isDeleted="
+
isDeleted
+
", storeName="
+
storeName
+
"]"
;
+
serialNumber
+
", isDeleted="
+
isDeleted
+
", storeName="
+
storeName
+
"
, brief="
+
brief
+
"
]"
;
}
}
}
}
2code/server/store-system/src/main/java/cn/com/fqy/core/service/impl/StoreServiceImpl.java
View file @
adafe97d
...
@@ -101,7 +101,11 @@ public class StoreServiceImpl implements StoreService {
...
@@ -101,7 +101,11 @@ public class StoreServiceImpl implements StoreService {
//调用dao,根据主键查询
//调用dao,根据主键查询
obj
=
storeDao
.
get
(
id
);
obj
=
storeDao
.
get
(
id
);
if
(
null
!=
obj
)
{
if
(
null
!=
obj
)
{
if
(
obj
.
getClicks
()==
null
||
""
.
equals
(
obj
.
getClicks
()))
{
obj
.
setClicks
(
0
);
}
Store
store
=
new
Store
();
Store
store
=
new
Store
();
store
.
setStoreId
(
obj
.
getStoreId
());
store
.
setStoreId
(
obj
.
getStoreId
());
store
.
setClicks
(
obj
.
getClicks
()+
1
);
store
.
setClicks
(
obj
.
getClicks
()+
1
);
storeDao
.
update
(
obj
);
storeDao
.
update
(
obj
);
...
...
2code/server/store-system/src/main/java/cn/com/fqy/core/service/impl/WorkerServiceImpl.java
View file @
adafe97d
...
@@ -101,6 +101,9 @@ public class WorkerServiceImpl implements WorkerService {
...
@@ -101,6 +101,9 @@ public class WorkerServiceImpl implements WorkerService {
//调用dao,根据主键查询
//调用dao,根据主键查询
obj
=
workerDao
.
get
(
id
);
obj
=
workerDao
.
get
(
id
);
if
(
null
!=
obj
)
{
if
(
null
!=
obj
)
{
if
(
obj
.
getClicks
()==
null
||
""
.
equals
(
obj
.
getClicks
()))
{
obj
.
setClicks
(
0
);
}
Worker
worker
=
new
Worker
();
Worker
worker
=
new
Worker
();
worker
.
setWorkerId
(
obj
.
getWorkerId
());
worker
.
setWorkerId
(
obj
.
getWorkerId
());
worker
.
setClicks
(
obj
.
getClicks
()+
1
);
worker
.
setClicks
(
obj
.
getClicks
()+
1
);
...
...
2code/server/store-system/src/main/resources/mybatis/mapper/StoreMapper.xml
View file @
adafe97d
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
<result
column=
"CITY_ID"
property=
"cityId"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"CITY_ID"
property=
"cityId"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"PROVINCE_ID"
property=
"provinceId"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"PROVINCE_ID"
property=
"provinceId"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"COUNTY_ID"
property=
"countyId"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"COUNTY_ID"
property=
"countyId"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"BRIEF"
property=
"brief"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
...
@@ -48,7 +49,7 @@ ADMINISTRATORS_ID,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS
...
@@ -48,7 +49,7 @@ ADMINISTRATORS_ID,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS
STORE_DETAILS,QR_CODE,STORE_HOME_PIC,STORE_PIC,IS_AUDITING,IS_SHOPPING,
STORE_DETAILS,QR_CODE,STORE_HOME_PIC,STORE_PIC,IS_AUDITING,IS_SHOPPING,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,CREATE_TIME,UPDATE_TIME,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,CREATE_TIME,UPDATE_TIME,
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE,ADMINISTRATORS_NAME,
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE,ADMINISTRATORS_NAME,
CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
,BRIEF
</sql>
</sql>
<!-- 常见字段,一般用于列表查询,可能不包含备注之类的字段 -->
<!-- 常见字段,一般用于列表查询,可能不包含备注之类的字段 -->
...
@@ -58,7 +59,7 @@ ADMINISTRATORS_ID,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS
...
@@ -58,7 +59,7 @@ ADMINISTRATORS_ID,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS
STORE_DETAILS,QR_CODE,STORE_HOME_PIC,STORE_PIC,IS_AUDITING,IS_SHOPPING,
STORE_DETAILS,QR_CODE,STORE_HOME_PIC,STORE_PIC,IS_AUDITING,IS_SHOPPING,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,CREATE_TIME,UPDATE_TIME,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,CREATE_TIME,UPDATE_TIME,
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE,ADMINISTRATORS_NAME,
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE,ADMINISTRATORS_NAME,
CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
,BRIEF
</sql>
</sql>
<insert
id=
"add"
parameterType=
"Store"
useGeneratedKeys=
"true"
keyProperty=
"storeId"
>
<insert
id=
"add"
parameterType=
"Store"
useGeneratedKeys=
"true"
keyProperty=
"storeId"
>
...
@@ -99,7 +100,8 @@ CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
...
@@ -99,7 +100,8 @@ CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
CITY_NAME,
CITY_NAME,
CITY_ID,
CITY_ID,
PROVINCE_ID,
PROVINCE_ID,
COUNTY_ID
COUNTY_ID,
BRIEF
) values (
) values (
<if
test=
"storeId!=null"
>
<if
test=
"storeId!=null"
>
#{storeId,jdbcType = VARCHAR},
#{storeId,jdbcType = VARCHAR},
...
@@ -137,7 +139,8 @@ CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
...
@@ -137,7 +139,8 @@ CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
#{cityName,jdbcType = VARCHAR},
#{cityName,jdbcType = VARCHAR},
#{cityId,jdbcType = VARCHAR},
#{cityId,jdbcType = VARCHAR},
#{provinceId,jdbcType = VARCHAR},
#{provinceId,jdbcType = VARCHAR},
#{countyId,jdbcType = VARCHAR}
#{countyId,jdbcType = VARCHAR},
#{brief,jdbcType = VARCHAR}
)
)
</insert>
</insert>
...
@@ -246,6 +249,9 @@ CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
...
@@ -246,6 +249,9 @@ CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
<if
test=
"countyId!=null and countyId!=''"
>
<if
test=
"countyId!=null and countyId!=''"
>
COUNTY_ID=#{countyId,jdbcType = VARCHAR},
COUNTY_ID=#{countyId,jdbcType = VARCHAR},
</if>
</if>
<if
test=
"brief!=null and brief!=''"
>
BRIEF=#{brief,jdbcType = VARCHAR},
</if>
</set>
</set>
<where>
<where>
AND STORE_ID=#{storeId}
AND STORE_ID=#{storeId}
...
@@ -429,6 +435,9 @@ CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
...
@@ -429,6 +435,9 @@ CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
<if
test=
"q.countyId!=null and q.countyId!=''"
>
<if
test=
"q.countyId!=null and q.countyId!=''"
>
AND COUNTY_ID=#{q.countyId}
AND COUNTY_ID=#{q.countyId}
</if>
</if>
<if
test=
"q.brief!=null and q.brief!=''"
>
AND BRIEF=#{q.brief}
</if>
</if>
</if>
</sql>
</sql>
...
@@ -566,6 +575,9 @@ CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
...
@@ -566,6 +575,9 @@ CITY_NAME,CITY_ID,PROVINCE_ID,COUNTY_ID
<if
test=
"q.countyId!=null and q.countyId!=''"
>
<if
test=
"q.countyId!=null and q.countyId!=''"
>
AND COUNTY_ID=#{q.countyId}
AND COUNTY_ID=#{q.countyId}
</if>
</if>
<if
test=
"q.brief!=null and q.brief!=''"
>
AND BRIEF=#{q.brief}
</if>
</if>
</if>
</sql>
</sql>
</mapper>
</mapper>
\ No newline at end of file
2code/server/store-system/src/main/resources/mybatis/mapper/WorkerMapper.xml
View file @
adafe97d
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
<result
column=
"SERIAL_NUMBER"
property=
"serialNumber"
javaType=
"java.lang.Integer"
jdbcType=
"INTEGER"
/>
<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_DELETED"
property=
"isDeleted"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<result
column=
"STORE_NAME"
property=
"storeName"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"STORE_NAME"
property=
"storeName"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"BRIEF"
property=
"brief"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
...
@@ -43,7 +44,7 @@ WORKER_ID,WORKER_NAME,WORKER_NUMBER,WORKER_SEX,WORKER_AGE,WORKER_BIRTHDAY,WORKER
...
@@ -43,7 +44,7 @@ WORKER_ID,WORKER_NAME,WORKER_NUMBER,WORKER_SEX,WORKER_AGE,WORKER_BIRTHDAY,WORKER
WORKER_HEIGHT,WORKER_WEIGHT,WORKER_BUST,WORKER_WAIST,WORKER_HIPLINE,WORKER_HOME_PIC,
WORKER_HEIGHT,WORKER_WEIGHT,WORKER_BUST,WORKER_WAIST,WORKER_HIPLINE,WORKER_HOME_PIC,
WORKER_PIC,WORKER_RESUME,STORE_ID,ADMINISTRATORS_ID,IS_AUDITING,IS_SHOPPING,
WORKER_PIC,WORKER_RESUME,STORE_ID,ADMINISTRATORS_ID,IS_AUDITING,IS_SHOPPING,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,WORKER_PLACE_OF_ADDRESS,CREATE_TIME,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,WORKER_PLACE_OF_ADDRESS,CREATE_TIME,
UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
,BRIEF
</sql>
</sql>
<!-- 常见字段,一般用于列表查询,可能不包含备注之类的字段 -->
<!-- 常见字段,一般用于列表查询,可能不包含备注之类的字段 -->
...
@@ -52,7 +53,7 @@ WORKER_ID,WORKER_NAME,WORKER_NUMBER,WORKER_SEX,WORKER_AGE,WORKER_BIRTHDAY,WORKER
...
@@ -52,7 +53,7 @@ WORKER_ID,WORKER_NAME,WORKER_NUMBER,WORKER_SEX,WORKER_AGE,WORKER_BIRTHDAY,WORKER
WORKER_HEIGHT,WORKER_WEIGHT,WORKER_BUST,WORKER_WAIST,WORKER_HIPLINE,WORKER_HOME_PIC,
WORKER_HEIGHT,WORKER_WEIGHT,WORKER_BUST,WORKER_WAIST,WORKER_HIPLINE,WORKER_HOME_PIC,
WORKER_PIC,WORKER_RESUME,STORE_ID,ADMINISTRATORS_ID,IS_AUDITING,IS_SHOPPING,
WORKER_PIC,WORKER_RESUME,STORE_ID,ADMINISTRATORS_ID,IS_AUDITING,IS_SHOPPING,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,WORKER_PLACE_OF_ADDRESS,CREATE_TIME,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,WORKER_PLACE_OF_ADDRESS,CREATE_TIME,
UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
,BRIEF
</sql>
</sql>
<insert
id=
"add"
parameterType=
"Worker"
useGeneratedKeys=
"true"
keyProperty=
"workerId"
>
<insert
id=
"add"
parameterType=
"Worker"
useGeneratedKeys=
"true"
keyProperty=
"workerId"
>
...
@@ -89,7 +90,8 @@ UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
...
@@ -89,7 +90,8 @@ UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
OPERATOR_TYPE,
OPERATOR_TYPE,
SERIAL_NUMBER,
SERIAL_NUMBER,
IS_DELETED,
IS_DELETED,
STORE_NAME
STORE_NAME,
BRIEF
) values (
) values (
<if
test=
"workerId!=null"
>
<if
test=
"workerId!=null"
>
#{workerId,jdbcType = VARCHAR},
#{workerId,jdbcType = VARCHAR},
...
@@ -123,7 +125,8 @@ UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
...
@@ -123,7 +125,8 @@ UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
#{operatorType,jdbcType = TINYINT},
#{operatorType,jdbcType = TINYINT},
#{serialNumber,jdbcType = INTEGER},
#{serialNumber,jdbcType = INTEGER},
#{isDeleted,jdbcType = TINYINT},
#{isDeleted,jdbcType = TINYINT},
#{storeName,jdbcType = VARCHAR}
#{storeName,jdbcType = VARCHAR},
#{brief,jdbcType = VARCHAR}
)
)
</insert>
</insert>
...
@@ -220,6 +223,9 @@ UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
...
@@ -220,6 +223,9 @@ UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
<if
test=
"storeName!=null and storeName!=''"
>
<if
test=
"storeName!=null and storeName!=''"
>
STORE_NAME=#{storeName,jdbcType = VARCHAR},
STORE_NAME=#{storeName,jdbcType = VARCHAR},
</if>
</if>
<if
test=
"brief!=null and brief!=''"
>
BRIEF=#{brief,jdbcType = VARCHAR},
</if>
</set>
</set>
<where>
<where>
AND WORKER_ID=#{workerId}
AND WORKER_ID=#{workerId}
...
@@ -391,6 +397,9 @@ UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
...
@@ -391,6 +397,9 @@ UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
<if
test=
"q.storeName!=null and q.storeName!=''"
>
<if
test=
"q.storeName!=null and q.storeName!=''"
>
AND STORE_NAME=#{q.storeName}
AND STORE_NAME=#{q.storeName}
</if>
</if>
<if
test=
"q.brief!=null and q.brief!=''"
>
AND BRIEF=#{q.brief}
</if>
</if>
</if>
</sql>
</sql>
...
@@ -516,6 +525,9 @@ UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
...
@@ -516,6 +525,9 @@ UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME
<if
test=
"q.storeName!=null and q.storeName!=''"
>
<if
test=
"q.storeName!=null and q.storeName!=''"
>
AND STORE_NAME=#{q.storeName}
AND STORE_NAME=#{q.storeName}
</if>
</if>
<if
test=
"q.brief!=null and q.brief!=''"
>
AND BRIEF=#{q.brief}
</if>
</if>
</if>
</sql>
</sql>
</mapper>
</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