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
b359f2cf
Commit
b359f2cf
authored
Nov 21, 2018
by
wangyihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 图片 校验
parent
32b7ca01
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
1 deletion
+51
-1
WebShopController.java
...in/java/cn/com/fqy/controller/mapi/WebShopController.java
+1
-1
StoreController.java
.../main/java/cn/com/fqy/controller/mgt/StoreController.java
+30
-0
WorkerController.java
...main/java/cn/com/fqy/controller/mgt/WorkerController.java
+20
-0
No files found.
2code/server/store-system/src/main/java/cn/com/fqy/controller/mapi/WebShopController.java
View file @
b359f2cf
...
@@ -34,7 +34,7 @@ public class WebShopController {
...
@@ -34,7 +34,7 @@ public class WebShopController {
@Resource
@Resource
private
StoreService
storeService
;
private
StoreService
storeService
;
@Resource
@Resource
WorkerService
workerService
;
private
WorkerService
workerService
;
/**
/**
* 根据条件查询商家列表
* 根据条件查询商家列表
...
...
2code/server/store-system/src/main/java/cn/com/fqy/controller/mgt/StoreController.java
View file @
b359f2cf
...
@@ -61,6 +61,21 @@ public class StoreController extends BaseController {
...
@@ -61,6 +61,21 @@ public class StoreController extends BaseController {
if
(
store
.
getUserId
()
!=
null
&&
!
""
.
equals
(
store
.
getUserId
()))
{
if
(
store
.
getUserId
()
!=
null
&&
!
""
.
equals
(
store
.
getUserId
()))
{
store
.
setUserId
(
null
);
store
.
setUserId
(
null
);
}
}
if
(
store
.
getStoreHomePic
()==
null
||
""
.
equals
(
store
.
getStoreHomePic
()))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"店铺主图为空"
);
return
resultInfo
;
}
if
(
store
.
getStorePic
()==
null
||
""
.
equals
(
store
.
getStorePic
()))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"店铺详情图为空"
);
return
resultInfo
;
}
if
(
store
.
getQrCode
()==
null
||
""
.
equals
(
store
.
getQrCode
()))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"店铺二维码为空"
);
return
resultInfo
;
}
resultInfo
=
storeService
.
updateStore
(
store
,
op
);
resultInfo
=
storeService
.
updateStore
(
store
,
op
);
}
else
{
}
else
{
if
(
store
.
getUserId
()
==
null
||
""
.
equals
(
store
.
getUserId
()))
{
if
(
store
.
getUserId
()
==
null
||
""
.
equals
(
store
.
getUserId
()))
{
...
@@ -68,6 +83,21 @@ public class StoreController extends BaseController {
...
@@ -68,6 +83,21 @@ public class StoreController extends BaseController {
resultInfo
.
setMsg
(
"系统用户id为空"
);
resultInfo
.
setMsg
(
"系统用户id为空"
);
return
resultInfo
;
return
resultInfo
;
}
}
if
(
store
.
getStoreHomePic
()==
null
||
""
.
equals
(
store
.
getStoreHomePic
()))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"店铺主图为空"
);
return
resultInfo
;
}
if
(
store
.
getStorePic
()==
null
||
""
.
equals
(
store
.
getStorePic
()))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"店铺详情图为空"
);
return
resultInfo
;
}
if
(
store
.
getQrCode
()==
null
||
""
.
equals
(
store
.
getQrCode
()))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"店铺二维码为空"
);
return
resultInfo
;
}
resultInfo
=
storeService
.
addStore
(
store
,
op
);
resultInfo
=
storeService
.
addStore
(
store
,
op
);
}
}
return
resultInfo
;
return
resultInfo
;
...
...
2code/server/store-system/src/main/java/cn/com/fqy/controller/mgt/WorkerController.java
View file @
b359f2cf
...
@@ -66,6 +66,16 @@ public class WorkerController extends BaseController {
...
@@ -66,6 +66,16 @@ public class WorkerController extends BaseController {
//操作人
//操作人
Operator
op
=
getOperator
();
Operator
op
=
getOperator
();
if
(
worker
!=
null
&&
worker
.
getWorkerId
()!=
null
&&!
""
.
equals
(
worker
.
getWorkerId
()))
{
if
(
worker
!=
null
&&
worker
.
getWorkerId
()!=
null
&&!
""
.
equals
(
worker
.
getWorkerId
()))
{
if
(
worker
.
getWorkerPic
()
==
null
||
""
.
equals
(
worker
.
getWorkerPic
()))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"员工详情图片为空"
);
return
resultInfo
;
}
if
(
worker
.
getWorkerHomePic
()
==
null
||
""
.
equals
(
worker
.
getWorkerHomePic
()))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"员工主图为空"
);
return
resultInfo
;
}
if
(
worker
.
getUserId
()
!=
null
&&
!
""
.
equals
(
worker
.
getUserId
()))
{
if
(
worker
.
getUserId
()
!=
null
&&
!
""
.
equals
(
worker
.
getUserId
()))
{
worker
.
setUserId
(
null
);
worker
.
setUserId
(
null
);
}
}
...
@@ -76,6 +86,16 @@ public class WorkerController extends BaseController {
...
@@ -76,6 +86,16 @@ public class WorkerController extends BaseController {
resultInfo
.
setMsg
(
"系统用户id为空"
);
resultInfo
.
setMsg
(
"系统用户id为空"
);
return
resultInfo
;
return
resultInfo
;
}
}
if
(
worker
.
getWorkerPic
()
==
null
||
""
.
equals
(
worker
.
getWorkerPic
()))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"员工详情图片为空"
);
return
resultInfo
;
}
if
(
worker
.
getWorkerHomePic
()
==
null
||
""
.
equals
(
worker
.
getWorkerHomePic
()))
{
resultInfo
.
setCode
(
"0"
);
resultInfo
.
setMsg
(
"员工主图为空"
);
return
resultInfo
;
}
resultInfo
=
workerService
.
addWorker
(
worker
,
op
);
resultInfo
=
workerService
.
addWorker
(
worker
,
op
);
}
}
return
resultInfo
;
return
resultInfo
;
...
...
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