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
ba670fbc
Commit
ba670fbc
authored
Jul 08, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
托管列表
parent
f4012a24
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
OpenStaffPageQDTO.java
...ava/com/gic/haoban/manage/api/qdto/OpenStaffPageQDTO.java
+10
-0
OpenStaffServiceImpl.java
...ban/manage/service/service/impl/OpenStaffServiceImpl.java
+12
-3
QywxOpenController.java
...haoban/manage/web/controller/open/QywxOpenController.java
+2
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/qdto/OpenStaffPageQDTO.java
View file @
ba670fbc
...
@@ -35,6 +35,16 @@ public class OpenStaffPageQDTO implements Serializable {
...
@@ -35,6 +35,16 @@ public class OpenStaffPageQDTO implements Serializable {
private
List
<
String
>
staffIds
;
private
List
<
String
>
staffIds
;
private
String
loginClerkId
;
public
String
getLoginClerkId
()
{
return
loginClerkId
;
}
public
void
setLoginClerkId
(
String
loginClerkId
)
{
this
.
loginClerkId
=
loginClerkId
;
}
public
List
<
String
>
getStaffIds
()
{
public
List
<
String
>
getStaffIds
()
{
return
staffIds
;
return
staffIds
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/OpenStaffServiceImpl.java
View file @
ba670fbc
...
@@ -20,6 +20,7 @@ import com.gic.haoban.manage.api.dto.StoreClerkDTO;
...
@@ -20,6 +20,7 @@ import com.gic.haoban.manage.api.dto.StoreClerkDTO;
import
com.gic.haoban.manage.api.enums.NoticeMessageTypeEnum
;
import
com.gic.haoban.manage.api.enums.NoticeMessageTypeEnum
;
import
com.gic.haoban.manage.api.enums.OpenStaffOfflineEnum
;
import
com.gic.haoban.manage.api.enums.OpenStaffOfflineEnum
;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.notify.NoticeMessageApiService
;
import
com.gic.haoban.manage.api.service.notify.NoticeMessageApiService
;
import
com.gic.haoban.manage.api.util.notify.NoticeMessageUtil
;
import
com.gic.haoban.manage.api.util.notify.NoticeMessageUtil
;
import
com.gic.haoban.manage.service.dao.mapper.OpenStaffMapper
;
import
com.gic.haoban.manage.service.dao.mapper.OpenStaffMapper
;
...
@@ -62,6 +63,8 @@ public class OpenStaffServiceImpl implements OpenStaffService {
...
@@ -62,6 +63,8 @@ public class OpenStaffServiceImpl implements OpenStaffService {
private
StaffMapper
staffMapper
;
private
StaffMapper
staffMapper
;
@Autowired
@Autowired
private
EnterpriseUseForbidService
enterpriseUseForbidService
;
private
EnterpriseUseForbidService
enterpriseUseForbidService
;
@Autowired
private
StaffApiService
staffApiService
;
@Override
@Override
public
TabOpenStaff
save
(
TabOpenStaff
tab
)
{
public
TabOpenStaff
save
(
TabOpenStaff
tab
)
{
...
@@ -124,9 +127,12 @@ public class OpenStaffServiceImpl implements OpenStaffService {
...
@@ -124,9 +127,12 @@ public class OpenStaffServiceImpl implements OpenStaffService {
log
.
info
(
"分页查询条件={}"
,
JSONObject
.
toJSONString
(
qdto
));
log
.
info
(
"分页查询条件={}"
,
JSONObject
.
toJSONString
(
qdto
));
String
wxEnterpriseId
=
qdto
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
qdto
.
getWxEnterpriseId
();
String
enterpriseId
=
qdto
.
getEnterpriseId
();
String
enterpriseId
=
qdto
.
getEnterpriseId
();
List
<
String
>
storeIdList
=
null
;
List
<
String
>
storeIdList
=
staffApiService
.
getHaoBanStoreIdsRolesByClerkId
(
qdto
.
getLoginClerkId
(),
enterpriseId
)
;
if
(
CollectionUtils
.
isNotEmpty
(
qdto
.
getStoreGroupIdList
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
qdto
.
getStoreGroupIdList
()))
{
storeIdList
=
this
.
getStoreIdList
(
enterpriseId
,
qdto
.
getStoreGroupIdList
());
storeIdList
=
this
.
getStoreIdList
(
enterpriseId
,
qdto
.
getStoreGroupIdList
(),
storeIdList
);
}
if
((
storeIdList
.
size
()==
1
&&
storeIdList
.
contains
(
"-1"
)))
{
storeIdList
=
null
;
}
}
if
(
StringUtils
.
isNotBlank
(
qdto
.
getClerkId
())
||
CollectionUtils
.
isNotEmpty
(
storeIdList
))
{
if
(
StringUtils
.
isNotBlank
(
qdto
.
getClerkId
())
||
CollectionUtils
.
isNotEmpty
(
storeIdList
))
{
List
<
String
>
staffIds
=
staffClerkRelationService
.
listAllStaffIdForOpenStaff
(
enterpriseId
,
wxEnterpriseId
,
qdto
.
getClerkId
(),
storeIdList
);
List
<
String
>
staffIds
=
staffClerkRelationService
.
listAllStaffIdForOpenStaff
(
enterpriseId
,
wxEnterpriseId
,
qdto
.
getClerkId
(),
storeIdList
);
...
@@ -188,7 +194,7 @@ public class OpenStaffServiceImpl implements OpenStaffService {
...
@@ -188,7 +194,7 @@ public class OpenStaffServiceImpl implements OpenStaffService {
}
}
private
List
<
String
>
getStoreIdList
(
String
enterpriseId
,
List
<
String
>
storeGroupIds
)
{
private
List
<
String
>
getStoreIdList
(
String
enterpriseId
,
List
<
String
>
storeGroupIds
,
List
<
String
>
storeList
)
{
StoreSearchDTO
storeSearch
=
new
StoreSearchDTO
();
StoreSearchDTO
storeSearch
=
new
StoreSearchDTO
();
List
<
String
>
groupIds
=
storeGroupService
.
getStoreGroupIdsByParentGroupId
(
enterpriseId
,
storeGroupIds
);
List
<
String
>
groupIds
=
storeGroupService
.
getStoreGroupIdsByParentGroupId
(
enterpriseId
,
storeGroupIds
);
storeSearch
.
setStoreGroupIdList
(
groupIds
);
storeSearch
.
setStoreGroupIdList
(
groupIds
);
...
@@ -197,6 +203,9 @@ public class OpenStaffServiceImpl implements OpenStaffService {
...
@@ -197,6 +203,9 @@ public class OpenStaffServiceImpl implements OpenStaffService {
Page
pageStore
=
new
Page
<>();
Page
pageStore
=
new
Page
<>();
//-1代表不分页
//-1代表不分页
pageStore
.
setCurrentPage
(-
1
);
pageStore
.
setCurrentPage
(-
1
);
if
(!(
storeList
.
size
()==
1
&&
storeList
.
contains
(
"-1"
)))
{
storeSearch
.
setStoreIdList
(
storeList
);
}
Page
resultPage
=
storeService
.
storeListPage
(
pageStore
,
storeSearch
);
Page
resultPage
=
storeService
.
storeListPage
(
pageStore
,
storeSearch
);
List
<
StoreDTO
>
storeDTOList
=
resultPage
.
getResult
();
List
<
StoreDTO
>
storeDTOList
=
resultPage
.
getResult
();
if
(
CollectionUtils
.
isEmpty
(
storeDTOList
))
{
if
(
CollectionUtils
.
isEmpty
(
storeDTOList
))
{
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/open/QywxOpenController.java
View file @
ba670fbc
...
@@ -87,6 +87,7 @@ public class QywxOpenController {
...
@@ -87,6 +87,7 @@ public class QywxOpenController {
if
(
null
!=
qdto
.
getEndDate
())
{
if
(
null
!=
qdto
.
getEndDate
())
{
qdto
.
setEndDate
(
DateUtil
.
getEndTimeOfDay
(
qdto
.
getEndDate
()));
qdto
.
setEndDate
(
DateUtil
.
getEndTimeOfDay
(
qdto
.
getEndDate
()));
}
}
qdto
.
setLoginClerkId
(
loginUser
.
getClerkId
());
ServiceResponse
<
Page
<
OpenStaffListDTO
>>
pageResp
=
this
.
openStaffApiService
.
page
(
qdto
,
basePageInfo
);
ServiceResponse
<
Page
<
OpenStaffListDTO
>>
pageResp
=
this
.
openStaffApiService
.
page
(
qdto
,
basePageInfo
);
Page
<
OpenStaffListDTO
>
page
=
pageResp
.
getResult
();
Page
<
OpenStaffListDTO
>
page
=
pageResp
.
getResult
();
Page
<
OpenStaffVO
>
retPage
=
PageHelperUtils
.
changePageToCurrentPage
(
page
,
OpenStaffVO
.
class
);
Page
<
OpenStaffVO
>
retPage
=
PageHelperUtils
.
changePageToCurrentPage
(
page
,
OpenStaffVO
.
class
);
...
@@ -117,6 +118,7 @@ public class QywxOpenController {
...
@@ -117,6 +118,7 @@ public class QywxOpenController {
if
(
null
!=
qdto
.
getEndDate
())
{
if
(
null
!=
qdto
.
getEndDate
())
{
qdto
.
setEndDate
(
DateUtil
.
getEndTimeOfDay
(
qdto
.
getEndDate
()));
qdto
.
setEndDate
(
DateUtil
.
getEndTimeOfDay
(
qdto
.
getEndDate
()));
}
}
qdto
.
setLoginClerkId
(
loginUser
.
getClerkId
());
ServiceResponse
<
Page
<
OpenStaffListDTO
>>
pageResp
=
this
.
openStaffApiService
.
page
(
qdto
,
basePageInfo
);
ServiceResponse
<
Page
<
OpenStaffListDTO
>>
pageResp
=
this
.
openStaffApiService
.
page
(
qdto
,
basePageInfo
);
final
int
totalCount
=
pageResp
.
getResult
().
getTotalCount
();
final
int
totalCount
=
pageResp
.
getResult
().
getTotalCount
();
if
(
totalCount
==
0
)
{
if
(
totalCount
==
0
)
{
...
...
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