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
64f9d592
Commit
64f9d592
authored
Jun 11, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微托管账号
parent
a3c9992d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
137 additions
and
4 deletions
+137
-4
StaffListDTO.java
...main/java/com/gic/haoban/manage/api/dto/StaffListDTO.java
+13
-0
OpenStaffMapper.java
...gic/haoban/manage/service/dao/mapper/OpenStaffMapper.java
+3
-0
OpenStaffService.java
...m/gic/haoban/manage/service/service/OpenStaffService.java
+4
-0
OpenStaffServiceImpl.java
...ban/manage/service/service/impl/OpenStaffServiceImpl.java
+5
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+12
-0
OpenStaffMapper.xml
...ge3-service/src/main/resources/mapper/OpenStaffMapper.xml
+6
-0
QywxOpenController.java
...haoban/manage/web/controller/open/QywxOpenController.java
+6
-3
StaffListQO.java
...c/main/java/com/gic/haoban/manage/web/qo/StaffListQO.java
+13
-0
OpenStaffQO.java
...n/java/com/gic/haoban/manage/web/qo/open/OpenStaffQO.java
+75
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/StaffListDTO.java
View file @
64f9d592
...
@@ -73,6 +73,19 @@ public class StaffListDTO implements Serializable {
...
@@ -73,6 +73,19 @@ public class StaffListDTO implements Serializable {
private
String
loginEnterpriseId
;
private
String
loginEnterpriseId
;
/**
* 企微托管页面查询1是0否
*/
private
int
qwOpenFlag
;
public
int
getQwOpenFlag
()
{
return
qwOpenFlag
;
}
public
void
setQwOpenFlag
(
int
qwOpenFlag
)
{
this
.
qwOpenFlag
=
qwOpenFlag
;
}
public
String
getLoginEnterpriseId
()
{
public
String
getLoginEnterpriseId
()
{
return
loginEnterpriseId
;
return
loginEnterpriseId
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/OpenStaffMapper.java
View file @
64f9d592
...
@@ -39,4 +39,6 @@ public interface OpenStaffMapper {
...
@@ -39,4 +39,6 @@ public interface OpenStaffMapper {
List
<
OpenStaffDTO
>
list
(
OpenStaffPageQDTO
qdto
);
List
<
OpenStaffDTO
>
list
(
OpenStaffPageQDTO
qdto
);
TabOpenStaff
getByQwUserId
(
@Param
(
"qwUserId"
)
Long
qwUserId
);
TabOpenStaff
getByQwUserId
(
@Param
(
"qwUserId"
)
Long
qwUserId
);
List
<
String
>
listAllStaffId
(
String
wxEnterpriseId
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/OpenStaffService.java
View file @
64f9d592
...
@@ -7,6 +7,8 @@ import com.gic.haoban.manage.api.dto.OpenStaffDTO;
...
@@ -7,6 +7,8 @@ import com.gic.haoban.manage.api.dto.OpenStaffDTO;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
import
com.gic.haoban.manage.service.entity.TabOpenStaff
;
import
com.gic.haoban.manage.service.entity.TabOpenStaff
;
import
java.util.List
;
public
interface
OpenStaffService
{
public
interface
OpenStaffService
{
public
TabOpenStaff
save
(
TabOpenStaff
tab
)
;
public
TabOpenStaff
save
(
TabOpenStaff
tab
)
;
...
@@ -16,4 +18,6 @@ public interface OpenStaffService {
...
@@ -16,4 +18,6 @@ public interface OpenStaffService {
public
void
logout
(
String
uuid
)
;
public
void
logout
(
String
uuid
)
;
ServiceResponse
<
Page
<
OpenStaffDTO
>>
page
(
OpenStaffPageQDTO
qdto
,
BasePageInfo
basePageInfo
);
ServiceResponse
<
Page
<
OpenStaffDTO
>>
page
(
OpenStaffPageQDTO
qdto
,
BasePageInfo
basePageInfo
);
List
<
String
>
listAllStaffId
(
String
wxEnterpriseId
)
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/OpenStaffServiceImpl.java
View file @
64f9d592
...
@@ -81,4 +81,9 @@ public class OpenStaffServiceImpl implements OpenStaffService {
...
@@ -81,4 +81,9 @@ public class OpenStaffServiceImpl implements OpenStaffService {
Page
<
OpenStaffDTO
>
retPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
list
,
OpenStaffDTO
.
class
);
Page
<
OpenStaffDTO
>
retPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
list
,
OpenStaffDTO
.
class
);
return
ServiceResponse
.
success
(
retPage
);
return
ServiceResponse
.
success
(
retPage
);
}
}
@Override
public
List
<
String
>
listAllStaffId
(
String
wxEnterpriseId
)
{
return
this
.
openStaffMapper
.
listAllStaffId
(
wxEnterpriseId
);
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
64f9d592
...
@@ -135,6 +135,8 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -135,6 +135,8 @@ public class StaffApiServiceImpl implements StaffApiService {
private
MessageApiService
messageApiService
;
private
MessageApiService
messageApiService
;
@Autowired
@Autowired
private
StoreService
storeService
;
private
StoreService
storeService
;
@Autowired
private
OpenStaffService
openStaffService
;
@Override
@Override
public
StaffDTO
selectById
(
String
staffId
)
{
public
StaffDTO
selectById
(
String
staffId
)
{
...
@@ -174,6 +176,9 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -174,6 +176,9 @@ public class StaffApiServiceImpl implements StaffApiService {
String
wxEnterpriseId
=
staffListDTO
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
staffListDTO
.
getWxEnterpriseId
();
BasePageInfo
pageInfo
=
staffListDTO
.
getPageInfo
();
BasePageInfo
pageInfo
=
staffListDTO
.
getPageInfo
();
String
enterpriseIdParam
=
staffListDTO
.
getEnterpriseIdParam
();
String
enterpriseIdParam
=
staffListDTO
.
getEnterpriseIdParam
();
if
(
staffListDTO
.
getQwOpenFlag
()==
1
)
{
enterpriseIdParam
=
staffListDTO
.
getLoginEnterpriseId
()
;
}
List
<
String
>
staffIds
=
new
ArrayList
<>();
List
<
String
>
staffIds
=
new
ArrayList
<>();
//查询所属品牌成员id
//查询所属品牌成员id
if
(
StrUtil
.
isNotBlank
(
enterpriseIdParam
)){
if
(
StrUtil
.
isNotBlank
(
enterpriseIdParam
)){
...
@@ -196,6 +201,13 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -196,6 +201,13 @@ public class StaffApiServiceImpl implements StaffApiService {
}
}
}
}
}
}
if
(
staffListDTO
.
getQwOpenFlag
()==
1
)
{
List
<
String
>
list
=
this
.
openStaffService
.
listAllStaffId
(
wxEnterpriseId
)
;
staffIds
=
staffIds
.
stream
().
filter
(
o
->!
list
.
contains
(
o
)).
collect
(
Collectors
.
toList
());
}
if
(
CollectionUtils
.
isEmpty
(
staffIds
)){
return
new
Page
<>();
}
StaffListBO
staffListBO
=
EntityUtil
.
changeEntityByJSON
(
StaffListBO
.
class
,
staffListDTO
);
StaffListBO
staffListBO
=
EntityUtil
.
changeEntityByJSON
(
StaffListBO
.
class
,
staffListDTO
);
staffListBO
.
setStaffIds
(
staffIds
);
staffListBO
.
setStaffIds
(
staffIds
);
staffListBO
.
setRelationFlag
(
relationFlag
);
staffListBO
.
setRelationFlag
(
relationFlag
);
...
...
haoban-manage3-service/src/main/resources/mapper/OpenStaffMapper.xml
View file @
64f9d592
...
@@ -129,4 +129,9 @@
...
@@ -129,4 +129,9 @@
from tab_haoban_open_staff where qw_user_id = #{qwUserId} and delete_flag = 0
from tab_haoban_open_staff where qw_user_id = #{qwUserId} and delete_flag = 0
</select>
</select>
<select
id=
"listAllStaffId"
resultType=
"java.lang.String"
>
select staff_id from tab_haoban_open_staff where wx_enterprise_id = #{wxEnterpriseId} and delete_flag = 0
</select>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/open/QywxOpenController.java
View file @
64f9d592
...
@@ -52,11 +52,14 @@ public class QywxOpenController {
...
@@ -52,11 +52,14 @@ public class QywxOpenController {
* @return
* @return
*/
*/
@RequestMapping
(
"open-staff-page"
)
@RequestMapping
(
"open-staff-page"
)
public
RestResponse
<
Page
<
OpenStaffVO
>>
page
(
@RequestBody
OpenStaffQO
qo
,
BasePageInfo
basePageInfo
)
{
public
RestResponse
<
Page
<
OpenStaffVO
>>
page
(
@RequestBody
OpenStaffQO
qo
)
{
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
OpenStaffPageQDTO
qdto
=
EntityUtil
.
changeEntityByJSON
(
OpenStaffPageQDTO
.
class
,
qo
)
;
OpenStaffPageQDTO
qdto
=
EntityUtil
.
changeEntityByJSON
(
OpenStaffPageQDTO
.
class
,
qo
)
;
qdto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
qdto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
qdto
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
qdto
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
BasePageInfo
basePageInfo
=
new
BasePageInfo
()
;
basePageInfo
.
setPageNum
(
qo
.
getPageNum
());
basePageInfo
.
setPageSize
(
qo
.
getPageSize
());
ServiceResponse
<
Page
<
OpenStaffDTO
>>
pageResp
=
this
.
openStaffApiService
.
page
(
qdto
,
basePageInfo
);
ServiceResponse
<
Page
<
OpenStaffDTO
>>
pageResp
=
this
.
openStaffApiService
.
page
(
qdto
,
basePageInfo
);
Page
<
OpenStaffDTO
>
page
=
pageResp
.
getResult
();
Page
<
OpenStaffDTO
>
page
=
pageResp
.
getResult
();
Page
<
OpenStaffVO
>
retPage
=
PageHelperUtils
.
changePageToCurrentPage
(
page
,
OpenStaffVO
.
class
);
Page
<
OpenStaffVO
>
retPage
=
PageHelperUtils
.
changePageToCurrentPage
(
page
,
OpenStaffVO
.
class
);
...
@@ -64,7 +67,7 @@ public class QywxOpenController {
...
@@ -64,7 +67,7 @@ public class QywxOpenController {
}
}
/**
/**
* 托管列表
* 托管列表
导出
* @param qo
* @param qo
* @return
* @return
*/
*/
...
@@ -140,7 +143,7 @@ public class QywxOpenController {
...
@@ -140,7 +143,7 @@ public class QywxOpenController {
* @return
* @return
*/
*/
@RequestMapping
(
"check-code"
)
@RequestMapping
(
"check-code"
)
public
RestResponse
<
OpenStaffDTO
>
checkCode
(
Long
openStaffId
,
String
code
)
{
public
RestResponse
<
Void
>
checkCode
(
Long
openStaffId
,
String
code
)
{
ServiceResponse
<
Void
>
resp
=
this
.
openStaffApiService
.
checkCode
(
openStaffId
,
code
)
;
ServiceResponse
<
Void
>
resp
=
this
.
openStaffApiService
.
checkCode
(
openStaffId
,
code
)
;
if
(!
resp
.
isSuccess
())
{
if
(!
resp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
())
;
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
())
;
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/StaffListQO.java
View file @
64f9d592
...
@@ -65,6 +65,19 @@ public class StaffListQO implements Serializable {
...
@@ -65,6 +65,19 @@ public class StaffListQO implements Serializable {
private
String
clerkId
;
private
String
clerkId
;
/**
* 企微托管页面查询1是0否
*/
private
int
qwOpenFlag
;
public
int
getQwOpenFlag
()
{
return
qwOpenFlag
;
}
public
void
setQwOpenFlag
(
int
qwOpenFlag
)
{
this
.
qwOpenFlag
=
qwOpenFlag
;
}
public
String
getClerkId
()
{
public
String
getClerkId
()
{
return
clerkId
;
return
clerkId
;
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/open/OpenStaffQO.java
View file @
64f9d592
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
open
;
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
open
;
import
com.gic.api.base.commons.BasePageInfo
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
public
class
OpenStaffQO
extends
BasePageInfo
implements
Serializable
{
/**
* 1授权中 2已过期 3待验证 4待授权 0全部
*/
private
int
status
;
/**
* 导购
*/
private
String
clerkId
;
/**
* 成员
*/
private
String
staffParams
;
/**
* 门店分组
*/
private
List
<
String
>
storeGroupIdList
;
/**
* 开始日期
*/
private
Date
startDate
;
/**
* 结束日期
*/
private
Date
endDate
;
public
int
getStatus
()
{
return
status
;
}
public
void
setStatus
(
int
status
)
{
this
.
status
=
status
;
}
public
String
getClerkId
()
{
return
clerkId
;
}
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
String
getStaffParams
()
{
return
staffParams
;
}
public
void
setStaffParams
(
String
staffParams
)
{
this
.
staffParams
=
staffParams
;
}
public
List
<
String
>
getStoreGroupIdList
()
{
return
storeGroupIdList
;
}
public
void
setStoreGroupIdList
(
List
<
String
>
storeGroupIdList
)
{
this
.
storeGroupIdList
=
storeGroupIdList
;
}
public
class
OpenStaffQO
implements
Serializable
{
public
Date
getStartDate
()
{
return
startDate
;
}
public
void
setStartDate
(
Date
startDate
)
{
this
.
startDate
=
startDate
;
}
public
Date
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
Date
endDate
)
{
this
.
endDate
=
endDate
;
}
}
}
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