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
78b23b59
Commit
78b23b59
authored
May 19, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增自建应用配置信息
parent
33c49e0a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
3 deletions
+77
-3
WxEnterpriseDTO.java
...n/java/com/gic/haoban/manage/api/dto/WxEnterpriseDTO.java
+12
-0
WxEnterpriseApiService.java
...gic/haoban/manage/api/service/WxEnterpriseApiService.java
+7
-0
EnterpriseController.java
...ic/haoban/manage/web/controller/EnterpriseController.java
+1
-0
TabHaobanWxEnterprise.java
...c/haoban/manage/service/entity/TabHaobanWxEnterprise.java
+13
-1
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+14
-0
WxEnterpriseMapper.xml
...-service/src/main/resources/mapper/WxEnterpriseMapper.xml
+30
-2
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/WxEnterpriseDTO.java
View file @
78b23b59
...
...
@@ -110,6 +110,18 @@ public class WxEnterpriseDTO implements Serializable {
private
String
openCorpid
;
private
String
wxaAppid
;
private
String
urlHost
;
/**
* 应用类型,0第三方 1自建
*/
private
Integer
appType
;
public
Integer
getAppType
()
{
return
appType
;
}
public
void
setAppType
(
Integer
appType
)
{
this
.
appType
=
appType
;
}
public
String
getUrlHost
()
{
return
urlHost
;
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/WxEnterpriseApiService.java
View file @
78b23b59
...
...
@@ -232,4 +232,11 @@ public interface WxEnterpriseApiService {
public
String
getEndDate
(
String
enterpriseId
)
;
/**
* 新增或者修改企业微信配置信息
* @param enterpriseDTO
* @return
*/
ServiceResponse
<
Boolean
>
saveOrUpdate
(
WxEnterpriseDTO
enterpriseDTO
);
}
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/EnterpriseController.java
View file @
78b23b59
...
...
@@ -9,6 +9,7 @@ import com.gic.authcenter.commons.util.SessionContextUtil;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.GlobalVar
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.api.dto.EnterpriseAndUserDTO
;
import
com.gic.enterprise.api.dto.EnterpriseDTO
;
import
com.gic.enterprise.api.dto.PowerStoreGroupDTO
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/TabHaobanWxEnterprise.java
View file @
78b23b59
...
...
@@ -93,7 +93,19 @@ public class TabHaobanWxEnterprise implements Serializable {
private
String
openCorpid
;
private
String
wxaAppid
;
private
String
urlHost
;
/**
* 应用类型,0第三方 1自建
*/
private
Integer
appType
;
public
Integer
getAppType
()
{
return
appType
;
}
public
void
setAppType
(
Integer
appType
)
{
this
.
appType
=
appType
;
}
public
String
getUrlHost
()
{
return
urlHost
;
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
78b23b59
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
;
import
cn.hutool.core.util.StrUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.DateUtil
;
...
...
@@ -513,4 +514,17 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
}
return
"好办服务已到期"
;
}
@Override
public
ServiceResponse
<
Boolean
>
saveOrUpdate
(
WxEnterpriseDTO
enterpriseDTO
)
{
if
(
null
==
enterpriseDTO
){
return
ServiceResponse
.
failure
(
"-9999"
,
"参数不能为空!"
);
}
if
(
StrUtil
.
isNotBlank
(
enterpriseDTO
.
getWxEnterpriseId
())){
wxEnterpriseService
.
add
(
enterpriseDTO
);
}
else
{
wxEnterpriseService
.
update
(
enterpriseDTO
);
}
return
ServiceResponse
.
success
(
true
);
}
}
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseMapper.xml
View file @
78b23b59
...
...
@@ -45,6 +45,7 @@
<result
column=
"open_corpid"
property=
"openCorpid"
/>
<result
column=
"wxa_appid"
property=
"wxaAppid"
/>
<result
column=
"url_host"
property=
"urlHost"
/>
<result
column=
"app_type"
property=
"appType"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
...
...
@@ -52,7 +53,7 @@
corp_user_max, corp_full_name, subject_type, verified_end_time, corp_wxqrcode, corp_scale,
corp_industry, corp_sub_industry, location, auth_info, agent, agentid, appid, name,
square_logo_url, round_logo_url, level, bind_flag, status_flag, create_time, update_time,contact_flag,wx_secret_key,wx_secret_key_last_time,member_secret_last_time,contact_secret_last_time
,member_secret,contact_secret,agree_external_userid_flag,agree_external_userid_time,external_flag,userid_flag ,wx_security_type , wx_corpid , open_corpid , auto_active_flag , wxa_appid , url_host
,member_secret,contact_secret,agree_external_userid_flag,agree_external_userid_time,external_flag,userid_flag ,wx_security_type , wx_corpid , open_corpid , auto_active_flag , wxa_appid , url_host
,app_type
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
...
...
@@ -176,6 +177,15 @@
<if
test=
"null != openCorpid"
>
open_corpid ,
</if>
<if
test=
"null != wxaAppid"
>
wxa_appid ,
</if>
<if
test=
"null != urlHost"
>
url_host ,
</if>
<if
test=
"null != appType"
>
app_type ,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"wxEnterpriseId != null"
>
...
...
@@ -280,9 +290,18 @@
<if
test=
"null != wxCorpid"
>
#{wxCorpid} ,
</if>
<if
test=
"null != openCorpid"
>
<if
test=
"null != openCorpid"
>
#{openCorpid} ,
</if>
<if
test=
"null != wxaAppid"
>
#{wxaAppid} ,
</if>
<if
test=
"null != urlHost"
>
#{urlHost} ,
</if>
<if
test=
"null != appType"
>
#{appType} ,
</if>
</trim>
</insert>
...
...
@@ -403,6 +422,15 @@
<if
test=
"null != openCorpid"
>
open_corpid = #{openCorpid}
</if>
<if
test=
"null != wxaAppid"
>
wxa_appid = #{wxaAppid}
</if>
<if
test=
"null != urlHost"
>
url_host = #{urlHost}
</if>
<if
test=
"null != appType"
>
app_type = #{appType}
</if>
</set>
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
</update>
...
...
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