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
9906744d
Commit
9906744d
authored
Jun 11, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微托管
parent
a320443e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
77 additions
and
55 deletions
+77
-55
OpenStaffDTO.java
...main/java/com/gic/haoban/manage/api/dto/OpenStaffDTO.java
+0
-40
OpenStaffListDTO.java
.../java/com/gic/haoban/manage/api/dto/OpenStaffListDTO.java
+51
-0
OpenStaffApiService.java
...om/gic/haoban/manage/api/service/OpenStaffApiService.java
+2
-1
OpenStaffMapper.java
...gic/haoban/manage/service/dao/mapper/OpenStaffMapper.java
+2
-1
OpenStaffService.java
...m/gic/haoban/manage/service/service/OpenStaffService.java
+2
-1
OpenStaffServiceImpl.java
...ban/manage/service/service/impl/OpenStaffServiceImpl.java
+5
-4
OpenStaffApiServiceImpl.java
...age/service/service/out/impl/OpenStaffApiServiceImpl.java
+2
-1
OpenStaffMapper.xml
...ge3-service/src/main/resources/mapper/OpenStaffMapper.xml
+1
-1
QywxOpenController.java
...haoban/manage/web/controller/open/QywxOpenController.java
+12
-6
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/OpenStaffDTO.java
View file @
9906744d
...
...
@@ -23,9 +23,6 @@ public class OpenStaffDTO implements Serializable {
* 成员id
*/
private
String
staffId
;
private
String
wxUserId
;
private
String
wxOpenUserId
;
private
String
staffName
;
/**
* 创建时间
...
...
@@ -113,47 +110,10 @@ public class OpenStaffDTO implements Serializable {
private
String
loginRemark
;
/**
* 关联导购
*/
List
<
StoreClerkDTO
>
clerkList
;
/**
* tab_haoban_open_staff
*/
private
static
final
long
serialVersionUID
=
1L
;
public
List
<
StoreClerkDTO
>
getClerkList
()
{
return
clerkList
;
}
public
void
setClerkList
(
List
<
StoreClerkDTO
>
clerkList
)
{
this
.
clerkList
=
clerkList
;
}
public
String
getWxOpenUserId
()
{
return
wxOpenUserId
;
}
public
void
setWxOpenUserId
(
String
wxOpenUserId
)
{
this
.
wxOpenUserId
=
wxOpenUserId
;
}
public
String
getWxUserId
()
{
return
wxUserId
;
}
public
void
setWxUserId
(
String
wxUserId
)
{
this
.
wxUserId
=
wxUserId
;
}
public
String
getStaffName
()
{
return
staffName
;
}
public
void
setStaffName
(
String
staffName
)
{
this
.
staffName
=
staffName
;
}
public
String
getLoginRemark
()
{
return
loginRemark
;
}
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/OpenStaffListDTO.java
0 → 100644
View file @
9906744d
package
com
.
gic
.
haoban
.
manage
.
api
.
dto
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* tab_haoban_open_staff
*/
public
class
OpenStaffListDTO
extends
OpenStaffDTO
implements
Serializable
{
private
String
wxUserId
;
private
String
wxOpenUserId
;
private
String
staffName
;
/**
* 关联导购
*/
List
<
StoreClerkDTO
>
clerkList
;
public
String
getWxUserId
()
{
return
wxUserId
;
}
public
void
setWxUserId
(
String
wxUserId
)
{
this
.
wxUserId
=
wxUserId
;
}
public
String
getWxOpenUserId
()
{
return
wxOpenUserId
;
}
public
void
setWxOpenUserId
(
String
wxOpenUserId
)
{
this
.
wxOpenUserId
=
wxOpenUserId
;
}
public
String
getStaffName
()
{
return
staffName
;
}
public
void
setStaffName
(
String
staffName
)
{
this
.
staffName
=
staffName
;
}
public
List
<
StoreClerkDTO
>
getClerkList
()
{
return
clerkList
;
}
public
void
setClerkList
(
List
<
StoreClerkDTO
>
clerkList
)
{
this
.
clerkList
=
clerkList
;
}
}
\ No newline at end of file
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/OpenStaffApiService.java
View file @
9906744d
...
...
@@ -5,6 +5,7 @@ import com.gic.api.base.commons.Page;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.OpenStaffDTO
;
import
com.gic.haoban.manage.api.dto.OpenStaffLicenseDTO
;
import
com.gic.haoban.manage.api.dto.OpenStaffListDTO
;
import
com.gic.haoban.manage.api.qdto.OpenStaffInitQDTO
;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
...
...
@@ -84,5 +85,5 @@ public interface OpenStaffApiService {
ServiceResponse
<
OpenStaffLicenseDTO
>
getLicenseInfo
(
String
wxEnterpriseId
,
String
enterpriseId
);
ServiceResponse
<
Page
<
OpenStaffDTO
>>
page
(
OpenStaffPageQDTO
qdto
,
BasePageInfo
basePageInfo
);
ServiceResponse
<
Page
<
OpenStaff
List
DTO
>>
page
(
OpenStaffPageQDTO
qdto
,
BasePageInfo
basePageInfo
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/OpenStaffMapper.java
View file @
9906744d
...
...
@@ -2,6 +2,7 @@ package com.gic.haoban.manage.service.dao.mapper;
import
com.gic.haoban.manage.api.dto.OpenStaffDTO
;
import
com.gic.haoban.manage.api.dto.OpenStaffListDTO
;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
import
com.gic.haoban.manage.service.entity.TabOpenStaff
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -36,7 +37,7 @@ public interface OpenStaffMapper {
void
updateLoginStep
(
@Param
(
"id"
)
Long
openStaffId
,
@Param
(
"step"
)
int
step
);
List
<
OpenStaffDTO
>
list
(
OpenStaffPageQDTO
qdto
);
List
<
OpenStaff
List
DTO
>
list
(
OpenStaffPageQDTO
qdto
);
TabOpenStaff
getByQwUserId
(
@Param
(
"qwUserId"
)
Long
qwUserId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/OpenStaffService.java
View file @
9906744d
...
...
@@ -4,6 +4,7 @@ import com.gic.api.base.commons.BasePageInfo;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.OpenStaffDTO
;
import
com.gic.haoban.manage.api.dto.OpenStaffListDTO
;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
import
com.gic.haoban.manage.service.entity.TabOpenStaff
;
...
...
@@ -17,7 +18,7 @@ public interface OpenStaffService {
public
void
logout
(
String
uuid
,
String
loginRemark
,
int
step
)
;
ServiceResponse
<
Page
<
OpenStaffDTO
>>
page
(
OpenStaffPageQDTO
qdto
,
BasePageInfo
basePageInfo
);
ServiceResponse
<
Page
<
OpenStaff
List
DTO
>>
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 @
9906744d
...
...
@@ -13,6 +13,7 @@ import com.gic.enterprise.api.dto.StoreSearchDTO;
import
com.gic.enterprise.api.service.StoreGroupService
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.haoban.manage.api.dto.OpenStaffDTO
;
import
com.gic.haoban.manage.api.dto.OpenStaffListDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.dto.StoreClerkDTO
;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
...
...
@@ -93,7 +94,7 @@ public class OpenStaffServiceImpl implements OpenStaffService {
}
@Override
public
ServiceResponse
<
Page
<
OpenStaffDTO
>>
page
(
OpenStaffPageQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
public
ServiceResponse
<
Page
<
OpenStaff
List
DTO
>>
page
(
OpenStaffPageQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
log
.
info
(
"分页查询条件={}"
,
JSONObject
.
toJSONString
(
qdto
));
String
wxEnterpriseId
=
qdto
.
getWxEnterpriseId
();
String
enterpriseId
=
qdto
.
getEnterpriseId
();
...
...
@@ -109,7 +110,7 @@ public class OpenStaffServiceImpl implements OpenStaffService {
qdto
.
setStaffIds
(
staffIds
);
}
PageHelper
.
startPage
(
basePageInfo
);
List
<
OpenStaffDTO
>
list
=
this
.
openStaffMapper
.
list
(
qdto
);
List
<
OpenStaff
List
DTO
>
list
=
this
.
openStaffMapper
.
list
(
qdto
);
Set
<
String
>
staffIdList
=
list
.
stream
().
map
(
dto
->
dto
.
getStaffId
()).
collect
(
Collectors
.
toSet
());
List
<
StaffClerkRelationDTO
>
relationDTOList
=
staffClerkRelationService
.
listByWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staffIdList
);
relationDTOList
=
relationDTOList
.
stream
().
filter
(
o
->
o
.
getEnterpriseId
().
equals
(
enterpriseId
)).
collect
(
Collectors
.
toList
())
;
...
...
@@ -122,7 +123,7 @@ public class OpenStaffServiceImpl implements OpenStaffService {
}
}
log
.
info
(
"导购={}"
,
JSONObject
.
toJSONString
(
clerkMap
));
for
(
OpenStaffDTO
item
:
list
)
{
for
(
OpenStaff
List
DTO
item
:
list
)
{
String
staffId
=
item
.
getStaffId
()
;
List
<
StoreClerkDTO
>
clerkList
=
new
ArrayList
<>()
;
for
(
StaffClerkRelationDTO
clerkRelation
:
relationDTOList
){
...
...
@@ -147,7 +148,7 @@ public class OpenStaffServiceImpl implements OpenStaffService {
}
item
.
setClerkList
(
clerkList
);
}
Page
<
OpenStaff
DTO
>
retPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
list
,
OpenStaff
DTO
.
class
);
Page
<
OpenStaff
ListDTO
>
retPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
list
,
OpenStaffList
DTO
.
class
);
log
.
info
(
"分页查询结果={}"
,
JSONObject
.
toJSONString
(
retPage
,
true
));
return
ServiceResponse
.
success
(
retPage
);
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/OpenStaffApiServiceImpl.java
View file @
9906744d
...
...
@@ -7,6 +7,7 @@ import com.gic.api.base.commons.ServiceResponse;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.haoban.manage.api.dto.OpenStaffDTO
;
import
com.gic.haoban.manage.api.dto.OpenStaffLicenseDTO
;
import
com.gic.haoban.manage.api.dto.OpenStaffListDTO
;
import
com.gic.haoban.manage.api.enums.QwOpenStepEnum
;
import
com.gic.haoban.manage.api.qdto.OpenStaffInitQDTO
;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
...
...
@@ -215,7 +216,7 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
}
@Override
public
ServiceResponse
<
Page
<
OpenStaffDTO
>>
page
(
OpenStaffPageQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
public
ServiceResponse
<
Page
<
OpenStaff
List
DTO
>>
page
(
OpenStaffPageQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
return
this
.
openStaffService
.
page
(
qdto
,
basePageInfo
);
}
}
haoban-manage3-service/src/main/resources/mapper/OpenStaffMapper.xml
View file @
9906744d
...
...
@@ -123,7 +123,7 @@
from tab_haoban_open_staff where uuid = #{uuid} and delete_flag = 0
</select>
<select
id=
"list"
resultType=
"com.gic.haoban.manage.api.dto.OpenStaffDTO"
parameterType=
"com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO"
>
<select
id=
"list"
resultType=
"com.gic.haoban.manage.api.dto.OpenStaff
List
DTO"
parameterType=
"com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO"
>
select a.open_staff_id openStaffId ,
a.wx_enterprise_id wxEnterpriseId ,
a.enterprise_id enterpriseId ,
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/open/QywxOpenController.java
View file @
9906744d
...
...
@@ -10,10 +10,7 @@ import com.gic.enterprise.api.service.EnterpriseService;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.common.utils.AuthWebRequestUtil
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.manage.api.dto.OpenStaffDTO
;
import
com.gic.haoban.manage.api.dto.OpenStaffLicenseDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.dto.StaffDTO
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.qdto.OpenStaffInitQDTO
;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
import
com.gic.haoban.manage.api.service.OpenStaffApiService
;
...
...
@@ -63,8 +60,8 @@ public class QywxOpenController {
BasePageInfo
basePageInfo
=
new
BasePageInfo
()
;
basePageInfo
.
setPageNum
(
qo
.
getPageNum
());
basePageInfo
.
setPageSize
(
qo
.
getPageSize
());
ServiceResponse
<
Page
<
OpenStaffDTO
>>
pageResp
=
this
.
openStaffApiService
.
page
(
qdto
,
basePageInfo
);
Page
<
OpenStaffDTO
>
page
=
pageResp
.
getResult
();
ServiceResponse
<
Page
<
OpenStaff
List
DTO
>>
pageResp
=
this
.
openStaffApiService
.
page
(
qdto
,
basePageInfo
);
Page
<
OpenStaff
List
DTO
>
page
=
pageResp
.
getResult
();
Page
<
OpenStaffVO
>
retPage
=
PageHelperUtils
.
changePageToCurrentPage
(
page
,
OpenStaffVO
.
class
);
if
(
CollectionUtils
.
isNotEmpty
(
retPage
.
getResult
()))
{
EnterpriseDTO
en
=
this
.
enterpriseService
.
getEnterpriseById
(
enterpriseId
)
;
...
...
@@ -160,6 +157,15 @@ public class QywxOpenController {
return
RestResponse
.
successResult
();
}
@RequestMapping
(
"check-code"
)
public
RestResponse
<
Void
>
checkCode
(
Long
openStaffId
)
{
ServiceResponse
<
OpenStaffDTO
>
resp
=
this
.
openStaffApiService
.
get2Qrcode
(
openStaffId
)
;
if
(!
resp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
())
;
}
return
RestResponse
.
successResult
();
}
/**
* 许可数量查询
*/
...
...
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