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
18dd4be2
Commit
18dd4be2
authored
Mar 22, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:授权优化
parent
d1458414
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+6
-2
WxEnterpriseMapper.xml
...-service/src/main/resources/mapper/WxEnterpriseMapper.xml
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
18dd4be2
...
...
@@ -31,7 +31,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
java.util.*
;
import
java.util.stream.Collectors
;
@Service
public
class
WxEnterpriseApiServiceImpl
implements
WxEnterpriseApiService
{
...
...
@@ -71,8 +70,13 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
Integer
isCustomizedApp
=
dto
.
getIsCustomizedApp
();
WxEnterpriseDTO
wxDTO
=
EntityUtil
.
changeEntityByJSON
(
WxEnterpriseDTO
.
class
,
dto
);
String
wxEnterpriseId
=
""
;
TabHaobanWxEnterprise
wxEnterprise
=
null
;
//获取授权好办小程序
TabHaobanWxEnterprise
wxEnterprise
=
this
.
wxEnterpriseService
.
getEnterpriseByCorpName
(
corpName
);
wxEnterprise
=
this
.
wxEnterpriseService
.
getEnterpriseBycorpId
(
corpid
);
if
(
wxEnterprise
==
null
)
{
wxEnterprise
=
this
.
wxEnterpriseService
.
getEnterpriseByCorpName
(
corpName
);
}
if
(
wxEnterprise
!=
null
)
{
wxEnterpriseId
=
wxEnterprise
.
getWxEnterpriseId
();
WxEnterpriseDTO
wxEnterpriseDTO
=
new
WxEnterpriseDTO
();
...
...
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseMapper.xml
View file @
18dd4be2
...
...
@@ -456,14 +456,14 @@
<if
test=
"statusFlag != null"
>
and status_flag = #{statusFlag}
</if>
limit 1
order by create_time desc
limit 1
</select>
<select
id=
"getEnterpriseByCorpName"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_wx_enterprise
where
(corp_name = #{corpName} or corpid= #{corpName})
where
corp_name = #{corpName} and status_flag = 1
order by create_time desc limit 1
</select>
...
...
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