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
61c25f45
Commit
61c25f45
authored
Jun 12, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
c5156bd5
bcd6e3f7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletions
+27
-1
StaffClerkRelationApiService.java
...oban/manage/api/service/StaffClerkRelationApiService.java
+7
-1
TabHaobanStaffClerkRelationMapper.java
...service/dao/mapper/TabHaobanStaffClerkRelationMapper.java
+4
-0
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+6
-0
TabHaobanStaffClerkRelationMapper.xml
...in/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
+10
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffClerkRelationApiService.java
View file @
61c25f45
...
...
@@ -75,7 +75,13 @@ public interface StaffClerkRelationApiService {
* @return
*/
StaffClerkRelationDTO
getByClerkId
(
String
clerkId
);
/**
*
* @param enterpriseId
* @param wxUserId
* @return
*/
List
<
StaffClerkRelationDTO
>
listByEnterpriseIdAndWxUserId
(
String
enterpriseId
,
String
wxUserId
);
/**
* 删除关联关系
* @param clerkId
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanStaffClerkRelationMapper.java
View file @
61c25f45
...
...
@@ -5,6 +5,7 @@ import java.util.Set;
import
org.apache.ibatis.annotations.Param
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkRelation
;
public
interface
TabHaobanStaffClerkRelationMapper
{
...
...
@@ -76,4 +77,6 @@ public interface TabHaobanStaffClerkRelationMapper {
int
delByPrimaryKey
(
@Param
(
"staffClerkRelationId"
)
String
staffClerkRelationId
);
void
delByClerkId
(
@Param
(
"clerkId"
)
String
clerkId
);
List
<
TabHaobanStaffClerkRelation
>
listByEnterpriseIdAndWxUserId
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"wxUserId"
)
String
wxUserId
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
61c25f45
...
...
@@ -23,6 +23,7 @@ import com.gic.haoban.manage.service.service.StaffClerkRelationService;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.ibatis.annotations.Param
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -221,4 +222,9 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
public
void
delByClerkId
(
String
clerkId
)
{
tabHaobanStaffClerkRelationMapper
.
delByClerkId
(
clerkId
);
}
@Override
public
List
<
StaffClerkRelationDTO
>
listByEnterpriseIdAndWxUserId
(
String
enterpriseId
,
String
wxUserId
)
{
List
<
TabHaobanStaffClerkRelation
>
list
=
tabHaobanStaffClerkRelationMapper
.
listByEnterpriseIdAndWxUserId
(
enterpriseId
,
wxUserId
);
return
EntityUtil
.
changeEntityListByJSON
(
StaffClerkRelationDTO
.
class
,
list
);
}
}
haoban-manage3-service/src/main/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
View file @
61c25f45
...
...
@@ -329,4 +329,13 @@
and status_flag =1
</update>
<select
id=
"listByEnterpriseIdAndWxUserId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_staff_clerk_relation
where
enterprise_id = #{enterpriseId,jdbcType=VARCHAR}
and wx_user_id = #{wxUserId}
</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