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
b2a611dc
Commit
b2a611dc
authored
Jul 21, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/base_platform_enterprise/gic-store
into developer
parents
d0cf6410
63138fef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
ClerkApiServiceImpl.java
...com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
+3
-5
TabClerkMapper.xml
...tore-service/src/main/resources/mapper/TabClerkMapper.xml
+0
-3
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
View file @
b2a611dc
...
...
@@ -466,11 +466,9 @@ public class ClerkApiServiceImpl implements ClerkApiService {
public
ServiceResponse
<
ClerkDTO
>
getHeadClerk
(
Integer
enterpriseId
,
Integer
storeId
)
{
ServiceResponse
<
StoreDTO
>
response
=
storeApiService
.
getStoreById
(
enterpriseId
,
storeId
);
if
(
response
.
isSuccess
()
&&
response
.
getResult
()
!=
null
)
{
List
<
Integer
>
storeInfoIds
=
new
ArrayList
<>();
storeInfoIds
.
add
(
response
.
getResult
().
getStoreInfoId
());
List
<
TabClerk
>
clerkList
=
clerkService
.
listClerkByStoreInfoId
(
enterpriseId
,
storeInfoIds
,
null
,
1
);
if
(
CollectionUtils
.
isNotEmpty
(
clerkList
))
{
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityNew
(
ClerkDTO
.
class
,
clerkList
.
get
(
0
)));
TabClerk
clerkLeader
=
clerkService
.
getClerkLeaderByStoreInfoId
(
enterpriseId
,
response
.
getResult
().
getStoreInfoId
());
if
(
clerkLeader
!=
null
)
{
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityNew
(
ClerkDTO
.
class
,
clerkLeader
));
}
}
return
ServiceResponse
.
success
();
...
...
gic-store-service/src/main/resources/mapper/TabClerkMapper.xml
View file @
b2a611dc
...
...
@@ -247,9 +247,6 @@
<if
test=
"search != null and search != '' "
>
and (clerk_code like concat('%', #{search} ,'%') or clerk_name like concat('%', #{search} ,'%') )
</if>
<if
test=
"clerkType != null "
>
and clerk_type = #{clerkType}
</if>
<if
test=
"status != null "
>
and status = #{status}
</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