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
573c6950
Commit
573c6950
authored
Aug 15, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
废弃staff_department_related的wx_user_id
parent
cec6ccf5
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
54 deletions
+9
-54
StaffDepartmentRelatedDTO.java
.../gic/haoban/manage/api/dto/StaffDepartmentRelatedDTO.java
+0
-10
StaffDepartmentRelatedMapper.java
...nage/service/dao/mapper/StaffDepartmentRelatedMapper.java
+1
-3
TabHaobanStaffDepartmentRelated.java
...anage/service/entity/TabHaobanStaffDepartmentRelated.java
+0
-10
StaffDepartmentRelatedService.java
...manage/service/service/StaffDepartmentRelatedService.java
+1
-3
StaffDepartmentRelatedServiceImpl.java
...rvice/service/impl/StaffDepartmentRelatedServiceImpl.java
+2
-8
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+2
-2
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+0
-3
StaffDepartmentRelatedMapper.xml
...rc/main/resources/mapper/StaffDepartmentRelatedMapper.xml
+3
-15
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/StaffDepartmentRelatedDTO.java
View file @
573c6950
...
@@ -12,8 +12,6 @@ public class StaffDepartmentRelatedDTO implements Serializable {
...
@@ -12,8 +12,6 @@ public class StaffDepartmentRelatedDTO implements Serializable {
private
String
nationCode
;
private
String
nationCode
;
private
String
wxUserId
;
private
String
wxEnterpriseId
;
private
String
wxEnterpriseId
;
private
String
departmentId
;
private
String
departmentId
;
...
@@ -62,14 +60,6 @@ public class StaffDepartmentRelatedDTO implements Serializable {
...
@@ -62,14 +60,6 @@ public class StaffDepartmentRelatedDTO implements Serializable {
this
.
nationCode
=
nationCode
==
null
?
null
:
nationCode
.
trim
();
this
.
nationCode
=
nationCode
==
null
?
null
:
nationCode
.
trim
();
}
}
public
String
getWxUserId
()
{
return
wxUserId
;
}
public
void
setWxUserId
(
String
wxUserId
)
{
this
.
wxUserId
=
wxUserId
==
null
?
null
:
wxUserId
.
trim
();
}
public
String
getDepartmentId
()
{
public
String
getDepartmentId
()
{
return
departmentId
;
return
departmentId
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffDepartmentRelatedMapper.java
View file @
573c6950
...
@@ -21,7 +21,7 @@ public interface StaffDepartmentRelatedMapper {
...
@@ -21,7 +21,7 @@ public interface StaffDepartmentRelatedMapper {
TabHaobanStaffDepartmentRelated
getById
(
String
staffDepartmentRelatedId
);
TabHaobanStaffDepartmentRelated
getById
(
String
staffDepartmentRelatedId
);
int
delBy
Userid
(
@Param
(
"userid"
)
String
user
Id
);
int
delBy
Staffid
(
@Param
(
"staffId"
)
String
staff
Id
);
TabHaobanStaffDepartmentRelated
getDepartmentIdAndStaffId
(
@Param
(
"departmentId"
)
String
departmentId
,
@Param
(
"staffId"
)
String
staffId
);
TabHaobanStaffDepartmentRelated
getDepartmentIdAndStaffId
(
@Param
(
"departmentId"
)
String
departmentId
,
@Param
(
"staffId"
)
String
staffId
);
...
@@ -29,8 +29,6 @@ public interface StaffDepartmentRelatedMapper {
...
@@ -29,8 +29,6 @@ public interface StaffDepartmentRelatedMapper {
int
countByDepartmentIds
(
@Param
(
"departmentIds"
)
List
<
String
>
departmentIds
);
int
countByDepartmentIds
(
@Param
(
"departmentIds"
)
List
<
String
>
departmentIds
);
List
<
TabHaobanStaffDepartmentRelated
>
listByWxUserId
(
@Param
(
"wxUserId"
)
String
wxUserId
);
List
<
TabHaobanStaffDepartmentRelated
>
listStaffDepartmentByStaffIds
(
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
List
<
TabHaobanStaffDepartmentRelated
>
listStaffDepartmentByStaffIds
(
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
List
<
TabHaobanStaffDepartmentRelated
>
listByDepartmentIds
(
@Param
(
"departmentIds"
)
List
<
String
>
departmentIds
);
List
<
TabHaobanStaffDepartmentRelated
>
listByDepartmentIds
(
@Param
(
"departmentIds"
)
List
<
String
>
departmentIds
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/TabHaobanStaffDepartmentRelated.java
View file @
573c6950
...
@@ -11,8 +11,6 @@ public class TabHaobanStaffDepartmentRelated implements Serializable {
...
@@ -11,8 +11,6 @@ public class TabHaobanStaffDepartmentRelated implements Serializable {
private
String
phoneNumber
;
private
String
phoneNumber
;
private
String
nationCode
;
private
String
nationCode
;
private
String
wxUserId
;
private
String
wxEnterpriseId
;
private
String
wxEnterpriseId
;
...
@@ -63,14 +61,6 @@ public class TabHaobanStaffDepartmentRelated implements Serializable {
...
@@ -63,14 +61,6 @@ public class TabHaobanStaffDepartmentRelated implements Serializable {
this
.
nationCode
=
nationCode
==
null
?
null
:
nationCode
.
trim
();
this
.
nationCode
=
nationCode
==
null
?
null
:
nationCode
.
trim
();
}
}
public
String
getWxUserId
()
{
return
wxUserId
;
}
public
void
setWxUserId
(
String
wxUserId
)
{
this
.
wxUserId
=
wxUserId
==
null
?
null
:
wxUserId
.
trim
();
}
public
String
getDepartmentId
()
{
public
String
getDepartmentId
()
{
return
departmentId
;
return
departmentId
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StaffDepartmentRelatedService.java
View file @
573c6950
...
@@ -17,12 +17,10 @@ public interface StaffDepartmentRelatedService {
...
@@ -17,12 +17,10 @@ public interface StaffDepartmentRelatedService {
void
del
(
StaffDepartmentRelatedDTO
related
);
void
del
(
StaffDepartmentRelatedDTO
related
);
void
delBy
User
id
(
String
userid
);
void
delBy
Staff
id
(
String
userid
);
TabHaobanStaffDepartmentRelated
getDepartmentIdAndStaffId
(
String
departmentId
,
String
staffId
);
TabHaobanStaffDepartmentRelated
getDepartmentIdAndStaffId
(
String
departmentId
,
String
staffId
);
List
<
TabHaobanStaffDepartmentRelated
>
listByWxUserId
(
String
wxUserId
);
StaffDepartmentRelatedDTO
getById
(
String
staffDepartmentStaffRelatedId
);
StaffDepartmentRelatedDTO
getById
(
String
staffDepartmentStaffRelatedId
);
/**
/**
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffDepartmentRelatedServiceImpl.java
View file @
573c6950
...
@@ -19,13 +19,7 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
...
@@ -19,13 +19,7 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
private
StaffDepartmentRelatedMapper
mapper
;
private
StaffDepartmentRelatedMapper
mapper
;
@Override
@Override
public
List
<
TabHaobanStaffDepartmentRelated
>
listByWxUserId
(
String
wxUserId
){
List
<
TabHaobanStaffDepartmentRelated
>
list
=
mapper
.
listByWxUserId
(
wxUserId
);
return
list
;
}
@Override
public
List
<
TabHaobanStaffDepartmentRelated
>
listByDepartmentId
(
String
departmentId
)
{
public
List
<
TabHaobanStaffDepartmentRelated
>
listByDepartmentId
(
String
departmentId
)
{
return
mapper
.
listByDepartmentId
(
departmentId
);
return
mapper
.
listByDepartmentId
(
departmentId
);
}
}
...
@@ -61,8 +55,8 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
...
@@ -61,8 +55,8 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
}
}
@Override
@Override
public
void
delBy
Userid
(
String
user
id
)
{
public
void
delBy
Staffid
(
String
staff
id
)
{
mapper
.
delBy
Userid
(
user
id
);
mapper
.
delBy
Staffid
(
staff
id
);
}
}
@Override
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
573c6950
...
@@ -333,7 +333,7 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -333,7 +333,7 @@ public class MessageApiServiceImpl implements MessageApiService {
//销毁卡券
//销毁卡券
innerApiService
.
delCardByStaffId
(
staffId
);
innerApiService
.
delCardByStaffId
(
staffId
);
//删除导购好友关联关系表
//删除导购好友关联关系表
this
.
staffDepartmentRelatedService
.
delBy
Userid
(
useri
d
);
this
.
staffDepartmentRelatedService
.
delBy
Staffid
(
staffI
d
);
//删除员工表
//删除员工表
this
.
staffService
.
delByStaffId
(
staffId
);
this
.
staffService
.
delByStaffId
(
staffId
);
//员工解绑
//员工解绑
...
@@ -720,7 +720,7 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -720,7 +720,7 @@ public class MessageApiServiceImpl implements MessageApiService {
//销毁卡券
//销毁卡券
innerApiService
.
delCardByStaffId
(
staffId
);
innerApiService
.
delCardByStaffId
(
staffId
);
//删除导购好友关联关系表
//删除导购好友关联关系表
this
.
staffDepartmentRelatedService
.
delBy
Userid
(
useri
d
);
this
.
staffDepartmentRelatedService
.
delBy
Staffid
(
staffI
d
);
//删除员工表
//删除员工表
this
.
staffService
.
delByStaffId
(
staffId
);
this
.
staffService
.
delByStaffId
(
staffId
);
//员工解绑
//员工解绑
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
573c6950
...
@@ -369,7 +369,6 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -369,7 +369,6 @@ public class StaffApiServiceImpl implements StaffApiService {
if
(!
hasRelationMap
.
containsKey
(
departmentDTO
.
getDepartmentId
()))
{
if
(!
hasRelationMap
.
containsKey
(
departmentDTO
.
getDepartmentId
()))
{
StaffDepartmentRelatedDTO
dto
=
new
StaffDepartmentRelatedDTO
();
StaffDepartmentRelatedDTO
dto
=
new
StaffDepartmentRelatedDTO
();
dto
.
setPhoneNumber
(
staff
.
getPhoneNumber
());
dto
.
setPhoneNumber
(
staff
.
getPhoneNumber
());
dto
.
setWxUserId
(
user
.
getUserid
());
dto
.
setStaffId
(
staff
.
getStaffId
());
dto
.
setStaffId
(
staff
.
getStaffId
());
dto
.
setStaffName
(
user
.
getName
());
dto
.
setStaffName
(
user
.
getName
());
dto
.
setWxEnterpriseId
(
wxEnterpriseId
);
dto
.
setWxEnterpriseId
(
wxEnterpriseId
);
...
@@ -403,7 +402,6 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -403,7 +402,6 @@ public class StaffApiServiceImpl implements StaffApiService {
if
(
null
!=
departmentRelated
)
{
if
(
null
!=
departmentRelated
)
{
departmentRelated
.
setPhoneNumber
(
staff
.
getPhoneNumber
());
departmentRelated
.
setPhoneNumber
(
staff
.
getPhoneNumber
());
departmentRelated
.
setStaffName
(
staff
.
getStaffName
());
departmentRelated
.
setStaffName
(
staff
.
getStaffName
());
departmentRelated
.
setWxUserId
(
staff
.
getWxUserId
());
departmentRelated
.
setNationCode
(
staff
.
getNationCode
());
departmentRelated
.
setNationCode
(
staff
.
getNationCode
());
departmentRelated
.
setUpdateTime
(
new
Date
());
departmentRelated
.
setUpdateTime
(
new
Date
());
staffDepartmentRelatedService
.
update
(
departmentRelated
);
staffDepartmentRelatedService
.
update
(
departmentRelated
);
...
@@ -512,7 +510,6 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -512,7 +510,6 @@ public class StaffApiServiceImpl implements StaffApiService {
related
.
setNationCode
(
staff
.
getNationCode
());
related
.
setNationCode
(
staff
.
getNationCode
());
related
.
setPhoneNumber
(
staff
.
getPhoneNumber
());
related
.
setPhoneNumber
(
staff
.
getPhoneNumber
());
related
.
setStatusFlag
(
1
);
related
.
setStatusFlag
(
1
);
related
.
setWxUserId
(
staff
.
getWxUserId
());
related
.
setWxEnterpriseId
(
staff
.
getWxEnterpriseId
());
related
.
setWxEnterpriseId
(
staff
.
getWxEnterpriseId
());
related
.
setStaffName
(
staffName
);
related
.
setStaffName
(
staffName
);
staffDepartmentRelatedService
.
add
(
related
);
staffDepartmentRelatedService
.
add
(
related
);
...
...
haoban-manage3-service/src/main/resources/mapper/StaffDepartmentRelatedMapper.xml
View file @
573c6950
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
<result
column=
"staff_id"
property=
"staffId"
jdbcType=
"VARCHAR"
/>
<result
column=
"staff_id"
property=
"staffId"
jdbcType=
"VARCHAR"
/>
<result
column=
"phone_number"
property=
"phoneNumber"
jdbcType=
"VARCHAR"
/>
<result
column=
"phone_number"
property=
"phoneNumber"
jdbcType=
"VARCHAR"
/>
<result
column=
"nation_code"
property=
"nationCode"
jdbcType=
"VARCHAR"
/>
<result
column=
"nation_code"
property=
"nationCode"
jdbcType=
"VARCHAR"
/>
<result
column=
"wx_user_id"
property=
"wxUserId"
jdbcType=
"VARCHAR"
/>
<result
column=
"wx_enterprise_id"
property=
"wxEnterpriseId"
jdbcType=
"VARCHAR"
/>
<result
column=
"wx_enterprise_id"
property=
"wxEnterpriseId"
jdbcType=
"VARCHAR"
/>
<result
column=
"department_id"
property=
"departmentId"
jdbcType=
"VARCHAR"
/>
<result
column=
"department_id"
property=
"departmentId"
jdbcType=
"VARCHAR"
/>
<result
column=
"status_flag"
property=
"statusFlag"
jdbcType=
"INTEGER"
/>
<result
column=
"status_flag"
property=
"statusFlag"
jdbcType=
"INTEGER"
/>
...
@@ -16,7 +15,7 @@
...
@@ -16,7 +15,7 @@
<result
column=
"update_time"
property=
"updateTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"update_time"
property=
"updateTime"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
staff_department_related_id, staff_id, phone_number, nation_code,
wx_user_id,
department_id,
staff_department_related_id, staff_id, phone_number, nation_code, department_id,
status_flag, clerk_code, create_time, update_time,wx_enterprise_id,staff_name
status_flag, clerk_code, create_time, update_time,wx_enterprise_id,staff_name
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
...
@@ -28,11 +27,11 @@
...
@@ -28,11 +27,11 @@
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanStaffDepartmentRelated"
>
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanStaffDepartmentRelated"
>
insert into tab_haoban_staff_department_related (staff_department_related_id, staff_id,
insert into tab_haoban_staff_department_related (staff_department_related_id, staff_id,
phone_number, nation_code,
wx_user_id,
phone_number, nation_code,
department_id, status_flag, clerk_code,
department_id, status_flag, clerk_code,
create_time, update_time, wx_enterprise_id, staff_name)
create_time, update_time, wx_enterprise_id, staff_name)
values (#{staffDepartmentRelatedId,jdbcType=VARCHAR}, #{staffId,jdbcType=VARCHAR},
values (#{staffDepartmentRelatedId,jdbcType=VARCHAR}, #{staffId,jdbcType=VARCHAR},
#{phoneNumber,jdbcType=VARCHAR}, #{nationCode,jdbcType=VARCHAR},
#{wxUserId,jdbcType=VARCHAR},
#{phoneNumber,jdbcType=VARCHAR}, #{nationCode,jdbcType=VARCHAR},
#{departmentId,jdbcType=VARCHAR}, #{statusFlag,jdbcType=INTEGER}, #{clerkCode,jdbcType=VARCHAR},
#{departmentId,jdbcType=VARCHAR}, #{statusFlag,jdbcType=INTEGER}, #{clerkCode,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{wxEnterpriseId}, #{staffName})
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{wxEnterpriseId}, #{staffName})
</insert>
</insert>
...
@@ -50,9 +49,6 @@
...
@@ -50,9 +49,6 @@
<if
test=
"nationCode != null"
>
<if
test=
"nationCode != null"
>
nation_code = #{nationCode,jdbcType=VARCHAR},
nation_code = #{nationCode,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"wxUserId != null"
>
wx_user_id = #{wxUserId,jdbcType=VARCHAR},
</if>
<if
test=
"wxEnterpriseId != null"
>
<if
test=
"wxEnterpriseId != null"
>
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
</if>
</if>
...
@@ -129,14 +125,6 @@
...
@@ -129,14 +125,6 @@
limit 1
limit 1
</select>
</select>
<select
id=
"listByWxUserId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_staff_department_related
where wx_user_id = #{wxUserId}
and status_flag = 1
</select>
<select
id=
"getDepartmentIdAndCode"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
<select
id=
"getDepartmentIdAndCode"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
...
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