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
QianQiXiang
haoban-manage3.0
Commits
4292a7fc
Commit
4292a7fc
authored
Jun 03, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑定流程门店下判断
parent
c5a8df19
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
0 deletions
+28
-0
TabHaobanStaffClerkRelationMapper.java
...service/dao/mapper/TabHaobanStaffClerkRelationMapper.java
+3
-0
StaffClerkRelationService.java
...ban/manage/service/service/StaffClerkRelationService.java
+2
-0
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+5
-0
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+7
-0
TabHaobanStaffClerkRelationMapper.xml
...in/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
+11
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanStaffClerkRelationMapper.java
View file @
4292a7fc
...
...
@@ -66,4 +66,6 @@ public interface TabHaobanStaffClerkRelationMapper {
int
cleanStaffDepart
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
TabHaobanStaffClerkRelation
getOneBindCodeNoStatus
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"clerkCode"
)
String
clerkCode
);
TabHaobanStaffClerkRelation
getOneBindStoreId
(
@Param
(
"staffId"
)
String
staffId
,
@Param
(
"storeId"
)
String
storeId
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StaffClerkRelationService.java
View file @
4292a7fc
...
...
@@ -49,4 +49,6 @@ public interface StaffClerkRelationService {
StaffClerkRelationDTO
getOneBindCodeNoStatus
(
String
enterpriseId
,
String
clerkCode
);
StaffClerkRelationDTO
getOneBindByStoreId
(
String
staffId
,
String
storeId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
4292a7fc
...
...
@@ -95,4 +95,9 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
public
StaffClerkRelationDTO
getOneBindCodeNoStatus
(
String
enterpriseId
,
String
clerkCode
)
{
return
EntityUtil
.
changeEntityByJSON
(
StaffClerkRelationDTO
.
class
,
mapper
.
getOneBindCodeNoStatus
(
enterpriseId
,
clerkCode
));
}
@Override
public
StaffClerkRelationDTO
getOneBindByStoreId
(
String
staffId
,
String
storeId
)
{
return
EntityUtil
.
changeEntityByJSON
(
StaffClerkRelationDTO
.
class
,
mapper
.
getOneBindStoreId
(
staffId
,
storeId
));
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
4292a7fc
...
...
@@ -110,6 +110,13 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
response
.
setMessage
(
"已经被绑定,不能绑定"
);
return
response
;
}
StaffClerkRelationDTO
storeHasBind
=
staffClerkRelatinService
.
getOneBindByStoreId
(
staffClerkRelationDTO
.
getStaffId
(),
staffClerkRelationDTO
.
getStoreId
());
if
(
storeHasBind
!=
null
)
{
response
.
setCode
(
3
);
response
.
setMessage
(
"该导购已在该门店下有其它成员绑定"
);
return
response
;
}
staffClerkRelatinService
.
bind
(
staffClerkRelationDTO
);
return
response
;
}
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
View file @
4292a7fc
...
...
@@ -284,4 +284,14 @@
and clerk_code = #{clerkCode}
order by update_time desc limit 1
</select>
<select
id=
"getOneBindStoreId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_staff_clerk_relation
where store_id = #{storeId,jdbcType=VARCHAR}
and staff_id = #{staffId}
and status_flag=1
order by update_time desc limit 1
</select>
</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