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
e582517b
Commit
e582517b
authored
Dec 15, 2021
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:欢迎语修改
parent
41556b93
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
85 deletions
+5
-85
WelcomeDTO.java
...c/main/java/com/gic/haoban/manage/api/dto/WelcomeDTO.java
+0
-13
TabWelcome.java
...java/com/gic/haoban/manage/service/entity/TabWelcome.java
+0
-14
WxEnterpriseServiceImpl.java
.../manage/service/service/impl/WxEnterpriseServiceImpl.java
+1
-4
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+0
-46
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+1
-1
TabHaobanWelcomeMapper.xml
...vice/src/main/resources/mapper/TabHaobanWelcomeMapper.xml
+3
-7
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/WelcomeDTO.java
View file @
e582517b
...
@@ -35,11 +35,6 @@ public class WelcomeDTO implements Serializable {
...
@@ -35,11 +35,6 @@ public class WelcomeDTO implements Serializable {
private
String
welcomeContent
;
private
String
welcomeContent
;
/**
/**
* 图片
*/
private
String
welcomeImg
;
/**
* 0删除 1正常
* 0删除 1正常
*/
*/
private
Integer
openFlag
;
private
Integer
openFlag
;
...
@@ -90,14 +85,6 @@ public class WelcomeDTO implements Serializable {
...
@@ -90,14 +85,6 @@ public class WelcomeDTO implements Serializable {
this
.
welcomeContent
=
welcomeContent
;
this
.
welcomeContent
=
welcomeContent
;
}
}
public
String
getWelcomeImg
()
{
return
welcomeImg
;
}
public
void
setWelcomeImg
(
String
welcomeImg
)
{
this
.
welcomeImg
=
welcomeImg
;
}
public
Integer
getOpenFlag
()
{
public
Integer
getOpenFlag
()
{
return
openFlag
;
return
openFlag
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/TabWelcome.java
View file @
e582517b
...
@@ -4,7 +4,6 @@ import java.io.Serializable;
...
@@ -4,7 +4,6 @@ import java.io.Serializable;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
* Description:
* 欢迎语配置表
* 欢迎语配置表
*
*
...
@@ -34,11 +33,6 @@ public class TabWelcome implements Serializable {
...
@@ -34,11 +33,6 @@ public class TabWelcome implements Serializable {
private
String
welcomeContent
;
private
String
welcomeContent
;
/**
/**
* 图片
*/
private
String
welcomeImg
;
/**
* 0删除 1正常
* 0删除 1正常
*/
*/
private
Integer
openFlag
;
private
Integer
openFlag
;
...
@@ -90,14 +84,6 @@ public class TabWelcome implements Serializable {
...
@@ -90,14 +84,6 @@ public class TabWelcome implements Serializable {
this
.
welcomeContent
=
welcomeContent
;
this
.
welcomeContent
=
welcomeContent
;
}
}
public
String
getWelcomeImg
()
{
return
welcomeImg
;
}
public
void
setWelcomeImg
(
String
welcomeImg
)
{
this
.
welcomeImg
=
welcomeImg
;
}
public
Integer
getOpenFlag
()
{
public
Integer
getOpenFlag
()
{
return
openFlag
;
return
openFlag
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseServiceImpl.java
View file @
e582517b
...
@@ -6,7 +6,6 @@ import com.gic.haoban.manage.api.dto.WxEnterpriseDTO;
...
@@ -6,7 +6,6 @@ import com.gic.haoban.manage.api.dto.WxEnterpriseDTO;
import
com.gic.haoban.manage.service.dao.mapper.WxEnterpriseMapper
;
import
com.gic.haoban.manage.service.dao.mapper.WxEnterpriseMapper
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise
;
import
com.gic.haoban.manage.service.service.WxEnterpriseService
;
import
com.gic.haoban.manage.service.service.WxEnterpriseService
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -15,10 +14,9 @@ import java.util.List;
...
@@ -15,10 +14,9 @@ import java.util.List;
@Service
@Service
public
class
WxEnterpriseServiceImpl
implements
WxEnterpriseService
{
public
class
WxEnterpriseServiceImpl
implements
WxEnterpriseService
{
@Autowired
@Autowired
private
WxEnterpriseMapper
mapper
;
private
WxEnterpriseMapper
mapper
;
@Autowired
private
QywxUserApiService
qywxUserApiService
;
@Override
@Override
public
String
add
(
WxEnterpriseDTO
wxDTO
)
{
public
String
add
(
WxEnterpriseDTO
wxDTO
)
{
...
@@ -31,7 +29,6 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
...
@@ -31,7 +29,6 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
tabHaobanWxEnterprise
.
setBindFlag
(
1
);
tabHaobanWxEnterprise
.
setBindFlag
(
1
);
mapper
.
insertSelective
(
tabHaobanWxEnterprise
);
mapper
.
insertSelective
(
tabHaobanWxEnterprise
);
return
wxDTO
.
getWxEnterpriseId
();
return
wxDTO
.
getWxEnterpriseId
();
}
}
@Override
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
e582517b
...
@@ -1053,52 +1053,6 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -1053,52 +1053,6 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
return
PageUtil
.
changePageHelperToCurrentPage
(
memberUnionRelatedService
.
pageMemberUnionByParams
(
userIdList
,
sendMemberIds
,
enterpriseId
),
MemberUnionidRelatedDTO
.
class
);
return
PageUtil
.
changePageHelperToCurrentPage
(
memberUnionRelatedService
.
pageMemberUnionByParams
(
userIdList
,
sendMemberIds
,
enterpriseId
),
MemberUnionidRelatedDTO
.
class
);
}
}
// @Override
// public String sendMessage(String wxEnterpriseId,String userId,List<String> extendUserList,String materialId){
// WxEnterpriseDTO enterprise = wxEnterpriseService.selectById(wxEnterpriseId);
// MaterialDTO material = materialApiService.selectMaterialById(materialId);
// if(material == null){
// return "";
// }
// JSONResponse jp = null;
// if(material.getMaterialType() == 2 || material.getMaterialType() == 4 || material.getMaterialType() == 5){
// Date wxLastTime = material.getWxLastUploadTime();
// String maerialId = material.getMediaId();
// if(DateUtil.addDay(wxLastTime, 3).getTime() < System.currentTimeMillis()){
// maerialId = materialApiService.reUpdalodMetail(materialId);
// }
// QywxImageExternalMessageDTO dto = new QywxImageExternalMessageDTO();
// dto.setMediaId(maerialId);
// dto.setChatType("single");
// dto.setExternalUserid(extendUserList);
// dto.setSenderUserId(userId);
// log.info("【发送消息】dto = {}",JSON.toJSONString(dto));
// jp = qywxSuiteApiService.sendExternalMessage(enterprise.getCorpid(), config.getWxSuiteid(), dto);
// }else if(material.getMaterialType() == 1){
// QywxTextExternalMessageDTO dto = new QywxTextExternalMessageDTO();
// dto.setChatType("single");
// dto.setExternalUserid(extendUserList);
// dto.setSenderUserId(userId);
// dto.setText(material.getMaterialContent());
// log.info("【发送消息】dto = {}",JSON.toJSONString(dto));
// jp = qywxSuiteApiService.sendExternalMessage(enterprise.getCorpid(), config.getWxSuiteid(), dto);
// }else if(material.getMaterialType() == 3){
// QywxIinkExternalMessageDTO dto = new QywxIinkExternalMessageDTO();
// dto.setChatType("single");
// dto.setExternalUserid(extendUserList);
// dto.setSenderUserId(userId);
// dto.setDesc(material.getMaterialDesc());
// dto.setPicurl(material.getWxImgUrl());
// dto.setTitle(material.getMaterialTitle());
// dto.setUrl(material.getLink());
// log.info("【发送消息】dto = {}",JSON.toJSONString(dto));
// jp = qywxSuiteApiService.sendExternalMessage(enterprise.getCorpid(), config.getWxSuiteid(), dto);
// }
// log.info("【发送消息】jp = {}",JSON.toJSONString(jp));
// Map<String,Object> returnMap = jp.getReturnMap();
// return returnMap.get("msgid") == null?"":returnMap.get("msgid").toString();
// }
/**
/**
* 老的单个素材群发的api
* 老的单个素材群发的api
*
*
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
e582517b
...
@@ -69,7 +69,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
...
@@ -69,7 +69,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
String
wxEnterpriseId
=
""
;
String
wxEnterpriseId
=
""
;
//授权好办小程序
//授权好办小程序
if
(
isCustomizedApp
==
null
||
isCustomizedApp
!=
1
)
{
if
(
isCustomizedApp
==
null
||
isCustomizedApp
!=
1
)
{
//只需要插入好办小程序企业
//只需要插入好办小程序企业
,代开发 企业表不插入
TabHaobanWxEnterprise
enterprise
=
this
.
wxEnterpriseService
.
getEnterpriseBycorpIdNoStatus
(
corpid
);
TabHaobanWxEnterprise
enterprise
=
this
.
wxEnterpriseService
.
getEnterpriseBycorpIdNoStatus
(
corpid
);
if
(
enterprise
!=
null
)
{
if
(
enterprise
!=
null
)
{
wxEnterpriseId
=
enterprise
.
getWxEnterpriseId
();
wxEnterpriseId
=
enterprise
.
getWxEnterpriseId
();
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanWelcomeMapper.xml
View file @
e582517b
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
<result
column=
"wx_enterprise_id"
jdbcType=
"VARCHAR"
property=
"wxEnterpriseId"
/>
<result
column=
"wx_enterprise_id"
jdbcType=
"VARCHAR"
property=
"wxEnterpriseId"
/>
<result
column=
"title"
jdbcType=
"VARCHAR"
property=
"title"
/>
<result
column=
"title"
jdbcType=
"VARCHAR"
property=
"title"
/>
<result
column=
"welcome_content"
jdbcType=
"VARCHAR"
property=
"welcomeContent"
/>
<result
column=
"welcome_content"
jdbcType=
"VARCHAR"
property=
"welcomeContent"
/>
<result
column=
"welcome_img"
jdbcType=
"VARCHAR"
property=
"welcomeImg"
/>
<result
column=
"status_flag"
jdbcType=
"INTEGER"
property=
"statusFlag"
/>
<result
column=
"status_flag"
jdbcType=
"INTEGER"
property=
"statusFlag"
/>
<result
column=
"open_flag"
jdbcType=
"INTEGER"
property=
"openFlag"
/>
<result
column=
"open_flag"
jdbcType=
"INTEGER"
property=
"openFlag"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
...
@@ -14,7 +13,7 @@
...
@@ -14,7 +13,7 @@
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
welcome_id, wx_enterprise_id, title, welcome_content,
welcome_img,
open_flag, status_flag, create_time, update_time
welcome_id, wx_enterprise_id, title, welcome_content,open_flag, status_flag, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
...
@@ -32,10 +31,10 @@
...
@@ -32,10 +31,10 @@
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.TabWelcome"
>
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.TabWelcome"
>
insert into tab_haoban_welcome (welcome_id, wx_enterprise_id, title,
insert into tab_haoban_welcome (welcome_id, wx_enterprise_id, title,
welcome_content,
welcome_img,
open_flag, status_flag, create_time,
welcome_content, open_flag, status_flag, create_time,
update_time)
update_time)
values (#{welcomeId,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
values (#{welcomeId,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
#{welcomeContent,jdbcType=VARCHAR}, #{
welcomeImg,jdbcType=VARCHAR}, #{
openFlag},
#{welcomeContent,jdbcType=VARCHAR}, #{openFlag},
#{statusFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{statusFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
#{updateTime,jdbcType=TIMESTAMP})
</insert>
</insert>
...
@@ -52,9 +51,6 @@
...
@@ -52,9 +51,6 @@
<if
test=
"welcomeContent != null"
>
<if
test=
"welcomeContent != null"
>
welcome_content = #{welcomeContent,jdbcType=VARCHAR},
welcome_content = #{welcomeContent,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"welcomeImg != null"
>
welcome_img = #{welcomeImg,jdbcType=VARCHAR},
</if>
<if
test=
"openFlag != null"
>
<if
test=
"openFlag != null"
>
open_flag = #{openFlag,jdbcType=INTEGER},
open_flag = #{openFlag,jdbcType=INTEGER},
</if>
</if>
...
...
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