Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
3cb30744
Commit
3cb30744
authored
May 26, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
43e27529
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
MaidianLogController.java
...ic/haoban/manage/web/controller/MaidianLogController.java
+10
-3
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/MaidianLogController.java
View file @
3cb30744
...
...
@@ -9,6 +9,8 @@ import org.springframework.web.bind.annotation.RestController;
import
com.alibaba.fastjson.JSON
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.manage.api.dto.MaidianLogDTO
;
import
com.gic.haoban.manage.api.service.MaidianLogApiService
;
...
...
@@ -21,6 +23,8 @@ public class MaidianLogController extends WebBaseController{
private
MaidianLogApiService
maidianLogApiService
;
@Autowired
private
ClerkService
clerkService
;
@Autowired
private
StoreService
storeService
;
@RequestMapping
(
"save-maidian-log"
)
public
HaobanResponse
saveUserLoginLog
(
String
maidianLogStr
)
{
...
...
@@ -33,9 +37,12 @@ public class MaidianLogController extends WebBaseController{
if
(
StringUtils
.
isNotBlank
(
options
)
&&
options
.
length
()
>
2000
){
maidianLogDTO
.
setOptions
(
options
.
substring
(
0
,
1999
));
}
com
.
gic
.
clerk
.
api
.
dto
.
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkCode
(
maidianLogDTO
.
getEnterpriseId
(),
maidianLogDTO
.
getClerkCode
());
if
(
clerkDTO
!=
null
){
maidianLogDTO
.
setClerkId
(
clerkDTO
.
getClerkId
());
StoreDTO
store
=
storeService
.
getStore
(
maidianLogDTO
.
getStoreId
());
if
(
store
!=
null
){
com
.
gic
.
clerk
.
api
.
dto
.
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkCode
(
store
.
getEnterpriseId
(),
maidianLogDTO
.
getClerkCode
());
if
(
clerkDTO
!=
null
){
maidianLogDTO
.
setClerkId
(
clerkDTO
.
getClerkId
());
}
}
maidianLogApiService
.
insert
(
maidianLogDTO
);
}
...
...
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