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
38fd9473
Commit
38fd9473
authored
Apr 06, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix/2023-03-14' into 'master'
Bugfix/2023 03 14 See merge request
!1105
parents
b28495e8
ce038279
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
0 deletions
+52
-0
MiniprogramSettingDTO.java
.../com/gic/haoban/manage/api/dto/MiniprogramSettingDTO.java
+12
-0
TabHaobanWelcomeMediaMapper.java
...anage/service/dao/mapper/TabHaobanWelcomeMediaMapper.java
+2
-0
TabMiniprogramSetting.java
...c/haoban/manage/service/entity/TabMiniprogramSetting.java
+12
-0
MiniprogramSettingServiceImpl.java
...rvice/service/out/impl/MiniprogramSettingServiceImpl.java
+8
-0
TabHaobanWelcomeMediaMapper.xml
...src/main/resources/mapper/TabHaobanWelcomeMediaMapper.xml
+6
-0
MiniprogramSettingQo.java
...va/com/gic/haoban/manage/web/qo/MiniprogramSettingQo.java
+12
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/MiniprogramSettingDTO.java
View file @
38fd9473
...
...
@@ -72,6 +72,18 @@ public class MiniprogramSettingDTO implements Serializable {
private
Date
updateTime
;
private
Integer
miniprogramType
;
/**
* 是否同步更新欢迎语 0否1是
*/
public
Integer
renewWelcome
;
public
Integer
getRenewWelcome
()
{
return
renewWelcome
;
}
public
void
setRenewWelcome
(
Integer
renewWelcome
)
{
this
.
renewWelcome
=
renewWelcome
;
}
public
Integer
getMiniprogramType
()
{
return
miniprogramType
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanWelcomeMediaMapper.java
View file @
38fd9473
...
...
@@ -57,4 +57,6 @@ public interface TabHaobanWelcomeMediaMapper {
*/
List
<
TabHaobanWelcomeMedia
>
listByWelcomeId
(
@Param
(
"welcomeId"
)
String
welcomeId
);
int
updateByMiniProgramId
(
@Param
(
"mediaUrl"
)
String
mediaUrl
,
@Param
(
"miniProgramId"
)
String
miniProgramId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/TabMiniprogramSetting.java
View file @
38fd9473
...
...
@@ -72,6 +72,18 @@ public class TabMiniprogramSetting implements Serializable {
private
Date
updateTime
;
private
Integer
miniprogramType
;
/**
* 是否同步更新欢迎语 0否1是
*/
public
Integer
renewWelcome
;
public
Integer
getRenewWelcome
()
{
return
renewWelcome
;
}
public
void
setRenewWelcome
(
Integer
renewWelcome
)
{
this
.
renewWelcome
=
renewWelcome
;
}
public
Integer
getMiniprogramType
()
{
return
miniprogramType
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MiniprogramSettingServiceImpl.java
View file @
38fd9473
...
...
@@ -4,6 +4,7 @@ import java.util.Date;
import
java.util.List
;
import
java.util.Objects
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanWelcomeMediaMapper
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.time.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -42,6 +43,9 @@ public class MiniprogramSettingServiceImpl implements MiniprogramSettingService
@Autowired
private
WxEnterpriseService
wxEnterpriseService
;
@Autowired
private
TabHaobanWelcomeMediaMapper
tabHaobanWelcomeMediaMapper
;
@Override
public
TabMiniprogramSetting
getById
(
String
miniprogramSettingId
)
{
TabMiniprogramSetting
miniprogramSetting
=
tabMiniprogramSettingMapper
.
selectByPrimaryKey
(
miniprogramSettingId
);
...
...
@@ -84,6 +88,10 @@ public class MiniprogramSettingServiceImpl implements MiniprogramSettingService
miniprogramSetting
.
setMediaTime
(
date
);
miniprogramSetting
.
setUpdateTime
(
new
Date
());
tabMiniprogramSettingMapper
.
updateByPrimaryKeySelective
(
miniprogramSetting
);
//判断是否需要更新欢迎语里面冗余小程序的封面
if
(
null
!=
miniprogramSetting
.
getRenewWelcome
()
&&
miniprogramSetting
.
getRenewWelcome
()==
1
){
tabHaobanWelcomeMediaMapper
.
updateByMiniProgramId
(
miniprogramSetting
.
getImageUrl
(),
miniprogramSetting
.
getMiniprogramSettingId
());
}
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanWelcomeMediaMapper.xml
View file @
38fd9473
...
...
@@ -122,4 +122,10 @@
where welcome_id = #{welcomeId}
</update>
<update
id=
"updateByMiniProgramId"
>
update tab_haoban_welcome_media
set media_url = #{mediaUrl}
where mini_program_id = #{miniProgramId} and media_type = 5
</update>
</mapper>
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/MiniprogramSettingQo.java
View file @
38fd9473
...
...
@@ -49,6 +49,18 @@ public class MiniprogramSettingQo implements Serializable {
* 类型 0默认 1自定义
*/
private
Integer
miniprogramType
=
0
;
/**
* 是否同步更新欢迎语 0否1是
*/
public
Integer
renewWelcome
;
public
Integer
getRenewWelcome
()
{
return
renewWelcome
;
}
public
void
setRenewWelcome
(
Integer
renewWelcome
)
{
this
.
renewWelcome
=
renewWelcome
;
}
public
Integer
getMiniprogramType
()
{
return
miniprogramType
;
...
...
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