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
cdd9cd49
Commit
cdd9cd49
authored
Jan 10, 2025
by
guojx
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature-canvas' into feature-canvas
parents
fb185148
6d321a3a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
3 deletions
+31
-3
ContentMaterialDTO.java
...ava/com/gic/haoban/manage/api/dto/ContentMaterialDTO.java
+14
-0
MaterialServiceImpl.java
...oban/manage/service/service/impl/MaterialServiceImpl.java
+9
-1
QywxSendServiceImpl.java
...oban/manage/service/service/impl/QywxSendServiceImpl.java
+2
-1
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+5
-0
TabHaobanStaffClerkRelationMapper.xml
...in/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
+1
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/ContentMaterialDTO.java
View file @
cdd9cd49
...
...
@@ -29,6 +29,20 @@ public class ContentMaterialDTO implements Serializable {
private
String
materialDesc
;
/**
* 画布-群发-卡券素材ID
*/
private
String
canvasCouponUUID
;
public
String
getCanvasCouponUUID
()
{
return
canvasCouponUUID
;
}
public
void
setCanvasCouponUUID
(
String
canvasCouponUUID
)
{
this
.
canvasCouponUUID
=
canvasCouponUUID
;
}
public
String
getMaterialDesc
()
{
return
materialDesc
;
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/MaterialServiceImpl.java
View file @
cdd9cd49
...
...
@@ -307,7 +307,12 @@ public class MaterialServiceImpl implements MaterialService {
imageList
.
forEach
(
dto
->
{
String
imageUrl
=
dto
.
getImgUrl
();
int
type
=
dto
.
getMaterialType
();
String
md5
=
Md5Util
.
MD5
(
imageUrl
+
type
);
String
md5
=
null
;
if
(
type
==
7
)
{
md5
=
Md5Util
.
MD5
(
imageUrl
+
type
+
dto
.
getCanvasCouponUUID
());
}
else
{
md5
=
Md5Util
.
MD5
(
imageUrl
+
type
);
}
TabMaterialContent
tab
=
this
.
materialContentMapper
.
selectByUrl
(
wxEnterpriseId
,
md5
,
mediaType
);
if
(
null
!=
tab
)
{
Integer
materialType
=
tab
.
getMaterialType
();
...
...
@@ -329,6 +334,9 @@ public class MaterialServiceImpl implements MaterialService {
tab
.
setAppid
(
dto
.
getAppid
());
tab
.
setMaterialTitle
(
dto
.
getMaterialTitle
());
tab
.
setLink
(
dto
.
getLink
());
if
(
mediaType
==
7
)
{
tab
.
setLink
(
dto
.
getCanvasCouponUUID
());
}
this
.
materialContentMapper
.
insert
(
tab
);
materialIdList
.
add
(
id
);
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/QywxSendServiceImpl.java
View file @
cdd9cd49
...
...
@@ -253,7 +253,8 @@ public class QywxSendServiceImpl implements QywxSendService {
Long
clerkTaskTime
=
canvas
.
getTaskTime
();
String
clerkId
=
canvas
.
getClerkId
()
;
if
(
materialType
==
7
)
{
String
str
=
"{\"id\":48,\"url\":\"/pages/member-center/coupon/coupon-group-get/coupon-group-get?execLogId="
+
execLogId
+
"&canvasId="
+
canvasId
+
"&time="
+
clerkTaskTime
+
"&nodeId="
+
nodeId
+
"\"}"
;
String
unid
=
material
.
getLink
();
String
str
=
"{\"id\":48,\"url\":\"/pages/member-center/coupon/coupon-group-get/coupon-group-get?canvasCouponUUID="
+
unid
+
"&execLogId="
+
execLogId
+
"&canvasId="
+
canvasId
+
"&time="
+
clerkTaskTime
+
"&nodeId="
+
nodeId
+
"\"}"
;
EnterpriseWxaRelationDTO
en
=
this
.
enterpriseService
.
getByWxappkey
(
material
.
getAppId
())
;
//Map<String, Object> map = this.enterpriseWxaLinkService.getWxaLinkAndQrCodeWithChannelAndSceneOfNotUrl(en.getEnterpriseId(),str,canvasId+"","canvas",nodeId+"_"+execLogId+"_"+clerkTaskTime+"_"+clerkId) ;
path
=
this
.
enterpriseWxaLinkService
.
getLinkForCanvas
(
en
.
getEnterpriseId
(),
str
,
canvasId
,
nodeId
,
execLogId
,
new
Date
(
clerkTaskTime
),
clerkId
)
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
cdd9cd49
...
...
@@ -636,6 +636,11 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
}
@Override
public
List
<
String
>
listAlStoreIdsByEnterpriseId
(
String
enterpriseId
)
{
return
this
.
mapper
.
listAlStoreIdsByEnterpriseId
(
enterpriseId
);
}
@Override
public
List
<
StaffClerkRelationDTO
>
listByWxEnterpriseIdAndStaffId
(
String
wxEnterpriseId
,
Set
<
String
>
staffIdList
)
{
return
this
.
mapper
.
listByWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staffIdList
);
}
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
View file @
cdd9cd49
...
...
@@ -263,7 +263,7 @@
</foreach>
and a.status_flag = 1
group by a.staff_id, a.clerk_id) as scr on scr.staff_id = ecr.staff_id
where ecr.status_flag = 1 AND ecr.`external_status` in (1
, 3
)
where ecr.status_flag = 1 AND ecr.`external_status` in (1)
and ecr.enterprise_id = #{enterpriseId,jdbcType=VARCHAR}
and ecr.wx_enterprise_id=#{wxEnterpriseId}
and ecr.member_id in
...
...
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