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
1806e680
Commit
1806e680
authored
Jul 22, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
有活码门店列表查询带上wxEnterpriseId
parent
3ce6ca1e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
35 additions
and
11 deletions
+35
-11
HmLinkWxaDTO.java
...n/java/com/gic/haoban/manage/api/dto/hm/HmLinkWxaDTO.java
+18
-0
HmQrcodeApiService.java
.../gic/haoban/manage/api/service/hm/HmQrcodeApiService.java
+3
-3
TabHaobanHmQrcodeMapper.java
...manage/service/dao/mapper/hm/TabHaobanHmQrcodeMapper.java
+1
-1
HmQrcodeService.java
...gic/haoban/manage/service/service/hm/HmQrcodeService.java
+1
-1
HmQrcodeServiceImpl.java
...n/manage/service/service/hm/impl/HmQrcodeServiceImpl.java
+2
-2
HmLinkApiServiceImpl.java
...age/service/service/out/impl/hm/HmLinkApiServiceImpl.java
+2
-0
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+2
-2
TabHaobanHmQrcodeMapper.xml
.../src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
+5
-1
HmStoreController.java
...ic/haoban/manage/web/controller/hm/HmStoreController.java
+1
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/hm/HmLinkWxaDTO.java
View file @
1806e680
...
...
@@ -19,6 +19,8 @@ public class HmLinkWxaDTO implements Serializable {
private
Long
pageId
;
private
Long
hmId
;
private
String
wxEnterpriseId
;
private
String
enterpriseId
;
private
HmPageDTO
page
;
// 二维码
private
String
hmQrcode
;
...
...
@@ -33,6 +35,22 @@ public class HmLinkWxaDTO implements Serializable {
// 说明
private
Map
<
String
,
String
>
remarkMap
;
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
this
.
wxEnterpriseId
=
wxEnterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Long
getHmId
()
{
return
hmId
;
}
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/hm/HmQrcodeApiService.java
View file @
1806e680
package
com
.
gic
.
haoban
.
manage
.
api
.
service
.
hm
;
import
java.util.List
;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
...
...
@@ -9,8 +11,6 @@ import com.gic.haoban.manage.api.dto.hm.HmQrcodeStoreDTO;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO
;
import
java.util.List
;
/**
* @author mozhu
* @date 2022/7/5 09:33
...
...
@@ -141,7 +141,7 @@ public interface HmQrcodeApiService {
* @author mozhu
* @date 2022-07-08 15:07:15
*/
List
<
HmQrcodeStoreDTO
>
getHmStoreByEnterpriseId
(
String
enterpriseId
);
List
<
HmQrcodeStoreDTO
>
getHmStoreByEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
);
/**
*
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/hm/TabHaobanHmQrcodeMapper.java
View file @
1806e680
...
...
@@ -157,7 +157,7 @@ public interface TabHaobanHmQrcodeMapper {
* @author mozhu
* @date 2022-07-08 15:10:57
*/
List
<
TabHaobanHmQrcode
>
getHmStoreByEnterpriseId
(
@Param
(
"enterpriseId"
)
String
enterpriseId
);
List
<
TabHaobanHmQrcode
>
getHmStoreByEnterpriseId
(
@Param
(
"
wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"
enterpriseId"
)
String
enterpriseId
);
/**
* 根据分组id获取活码数量
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/HmQrcodeService.java
View file @
1806e680
...
...
@@ -146,7 +146,7 @@ public interface HmQrcodeService {
* @author mozhu
* @date 2022-07-08 15:09:50
*/
List
<
HmQrcodeBO
>
getHmStoreByEnterpriseId
(
String
enterpriseId
);
List
<
HmQrcodeBO
>
getHmStoreByEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
);
/**
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmQrcodeServiceImpl.java
View file @
1806e680
...
...
@@ -117,9 +117,9 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
}
@Override
public
List
<
HmQrcodeBO
>
getHmStoreByEnterpriseId
(
String
enterpriseId
)
{
public
List
<
HmQrcodeBO
>
getHmStoreByEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
)
{
return
EntityUtil
.
changeEntityListNew
(
HmQrcodeBO
.
class
,
tabHaobanHmQrcodeMapper
.
getHmStoreByEnterpriseId
(
enterpriseId
));
tabHaobanHmQrcodeMapper
.
getHmStoreByEnterpriseId
(
wxEnterpriseId
,
enterpriseId
));
}
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmLinkApiServiceImpl.java
View file @
1806e680
...
...
@@ -174,6 +174,8 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
}
Long
linkId
=
link
.
getLinkId
();
String
wxEnterpriseId
=
link
.
getWxEnterpriseId
();
retDTO
.
setWxEnterpriseId
(
wxEnterpriseId
);
retDTO
.
setEnterpriseId
(
enterpriseId
);
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseService
.
selectById
(
wxEnterpriseId
);
if
(
wxEnterpriseDTO
==
null
)
{
log
.
error
(
"未查询到微信企业,id={}"
,
wxEnterpriseId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
1806e680
...
...
@@ -719,13 +719,13 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
}
@Override
public
List
<
HmQrcodeStoreDTO
>
getHmStoreByEnterpriseId
(
String
enterpriseId
)
{
public
List
<
HmQrcodeStoreDTO
>
getHmStoreByEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
)
{
String
key
=
"HM:STORE:"
+
enterpriseId
;
Object
cache
=
RedisUtil
.
getCache
(
key
);
if
(
cache
!=
null
)
{
return
(
List
<
HmQrcodeStoreDTO
>)
cache
;
}
List
<
HmQrcodeStoreDTO
>
hmQrcodeStoreDTOS
=
EntityUtil
.
changeEntityListNew
(
HmQrcodeStoreDTO
.
class
,
hmQrcodeService
.
getHmStoreByEnterpriseId
(
enterpriseId
));
List
<
HmQrcodeStoreDTO
>
hmQrcodeStoreDTOS
=
EntityUtil
.
changeEntityListNew
(
HmQrcodeStoreDTO
.
class
,
hmQrcodeService
.
getHmStoreByEnterpriseId
(
wxEnterpriseId
,
enterpriseId
));
RedisUtil
.
setCache
(
key
,
hmQrcodeStoreDTOS
,
10L
,
TimeUnit
.
MINUTES
);
return
hmQrcodeStoreDTOS
;
}
...
...
haoban-manage3-service/src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
View file @
1806e680
...
...
@@ -315,7 +315,11 @@
select store_id storeId,
MIN(over_flag) overFlag
from tab_haoban_hm_qrcode
where enterprise_id = #{enterpriseId} and status_flag = 1
where
<if
test=
"null != wxEnterpriseId"
>
wx_enterprise_id = #{wxEnterpriseId}
</if>
enterprise_id = #{enterpriseId} and status_flag = 1
and store_id is not null
GROUP BY store_id
</select>
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmStoreController.java
View file @
1806e680
...
...
@@ -214,7 +214,7 @@ public class HmStoreController {
searchDTO
.
setSearchName
(
storeSearchParams
);
// 企业ID
searchDTO
.
setEnterpriseId
(
enterpriseId
);
List
<
HmQrcodeStoreDTO
>
hmStoreList
=
this
.
hmQrcodeApiService
.
getHmStoreByEnterpriseId
(
enterpriseId
);
List
<
HmQrcodeStoreDTO
>
hmStoreList
=
this
.
hmQrcodeApiService
.
getHmStoreByEnterpriseId
(
wxEnterpriseId
,
enterpriseId
);
if
(
CollectionUtils
.
isEmpty
(
hmStoreList
))
{
return
RestResponse
.
failure
(
"-1"
,
"无活码门店"
);
}
...
...
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