Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5portal
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
管理员
jfV5portal
Commits
bbf66fff
Commit
bbf66fff
authored
Apr 28, 2018
by
罗绍泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模拟登陆修改,返回base64编码的密码
详见:
http://localhost:8080/jfV5portal/jwAppsPortletView_portletApi
parent
bca92c3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
PortletBusinessImpl.java
...wapp/com/jw/app/business/portlet/PortletBusinessImpl.java
+10
-1
PortletDAO.xml
src_jwapp/com/jw/app/business/portlet/PortletDAO.xml
+4
-4
No files found.
src_jwapp/com/jw/app/business/portlet/PortletBusinessImpl.java
View file @
bbf66fff
...
...
@@ -10,7 +10,10 @@ import java.util.List;
import
java.util.Map
;
import
java.util.UUID
;
import
org.apache.commons.codec.binary.Base64
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Encipher
;
import
com.gaowj.business.util.SessionUtil
;
import
com.jw.app.business.PortletBusiness
;
import
com.jw.app.business.utils.QueryParamUtil
;
...
...
@@ -75,7 +78,13 @@ public class PortletBusinessImpl implements PortletBusiness {
appQuery
.
put
(
"USER_ID"
,
SessionUtil
.
getEmid
());
List
<
Map
<
String
,
Object
>>
listWebInfo
=
portletDAO
.
list_app_acount
(
appQuery
);
if
(
listWebInfo
.
size
()
>
0
)
{
map
.
put
(
"WEB_INFO"
,
listWebInfo
.
get
(
0
));
Map
<
String
,
Object
>
webInfo
=
listWebInfo
.
get
(
0
);
//将登陆密码临时修改为base64编码传给前台
String
userPwd
=
webInfo
.
get
(
"USER_PWD"
).
toString
();
userPwd
=
Encipher
.
DecodePasswd
(
userPwd
);
byte
[]
result
=
Base64
.
encodeBase64
(
userPwd
.
getBytes
());
webInfo
.
put
(
"USER_PWD"
,
new
String
(
result
));
map
.
put
(
"WEB_INFO"
,
webInfo
);
}
}
}
...
...
src_jwapp/com/jw/app/business/portlet/PortletDAO.xml
View file @
bbf66fff
...
...
@@ -108,7 +108,7 @@
<select
id=
"list_portlet_content"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
select * from portlet_content pc
WHERE pc.is_public=1
WHERE pc.is_public=1
AND PORTAL_ID = #{PORTAL_ID}
ORDER BY pc.create_time DESC
LIMIT 0,10
</select>
...
...
@@ -122,12 +122,12 @@
ctso.USER_ID AS SSO_USER_ID
FROM
b_t_ufp_apps btua
LEFT JOIN b_t_ufp_mapper_user btumu ON btua.
APP_
ID = btumu.APP_ID
LEFT JOIN c_t_sys_otherlogin ctso ON btumu.U
SER_
ID = ctso.USER_SYS_NAME
LEFT JOIN b_t_ufp_mapper_user btumu ON btua.
UU
ID = btumu.APP_ID
LEFT JOIN c_t_sys_otherlogin ctso ON btumu.U
U
ID = ctso.USER_SYS_NAME
AND btumu.APP_ID = ctso.YIYONG_ID
WHERE
ctso.USER_ID = #{USER_ID}
AND
ctso.YIYONG_
ID = #{APP_ID}
AND
btua.UU
ID = #{APP_ID}
</select>
<delete
id=
"delete_portlet_template_user"
parameterType=
"map"
>
...
...
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