Commit bbf66fff by 罗绍泽

模拟登陆修改,返回base64编码的密码

详见:http://localhost:8080/jfV5portal/jwAppsPortletView_portletApi
parent bca92c3a
...@@ -10,7 +10,10 @@ import java.util.List; ...@@ -10,7 +10,10 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.UUID; import java.util.UUID;
import org.apache.commons.codec.binary.Base64;
import com.gaowj.business.exception.BusinessException; import com.gaowj.business.exception.BusinessException;
import com.gaowj.business.util.Encipher;
import com.gaowj.business.util.SessionUtil; import com.gaowj.business.util.SessionUtil;
import com.jw.app.business.PortletBusiness; import com.jw.app.business.PortletBusiness;
import com.jw.app.business.utils.QueryParamUtil; import com.jw.app.business.utils.QueryParamUtil;
...@@ -75,7 +78,13 @@ public class PortletBusinessImpl implements PortletBusiness { ...@@ -75,7 +78,13 @@ public class PortletBusinessImpl implements PortletBusiness {
appQuery.put("USER_ID", SessionUtil.getEmid()); appQuery.put("USER_ID", SessionUtil.getEmid());
List<Map<String, Object>> listWebInfo = portletDAO.list_app_acount(appQuery); List<Map<String, Object>> listWebInfo = portletDAO.list_app_acount(appQuery);
if (listWebInfo.size() > 0) { 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);
} }
} }
} }
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<select id="list_portlet_content" parameterType="map" <select id="list_portlet_content" parameterType="map"
resultType="upperCaseKeyMap"> resultType="upperCaseKeyMap">
select * from portlet_content pc 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 ORDER BY pc.create_time DESC
LIMIT 0,10 LIMIT 0,10
</select> </select>
...@@ -122,12 +122,12 @@ ...@@ -122,12 +122,12 @@
ctso.USER_ID AS SSO_USER_ID ctso.USER_ID AS SSO_USER_ID
FROM FROM
b_t_ufp_apps btua b_t_ufp_apps btua
LEFT JOIN b_t_ufp_mapper_user btumu ON btua.APP_ID = btumu.APP_ID LEFT JOIN b_t_ufp_mapper_user btumu ON btua.UUID = btumu.APP_ID
LEFT JOIN c_t_sys_otherlogin ctso ON btumu.USER_ID = ctso.USER_SYS_NAME LEFT JOIN c_t_sys_otherlogin ctso ON btumu.UUID = ctso.USER_SYS_NAME
AND btumu.APP_ID = ctso.YIYONG_ID AND btumu.APP_ID = ctso.YIYONG_ID
WHERE WHERE
ctso.USER_ID = #{USER_ID} ctso.USER_ID = #{USER_ID}
AND ctso.YIYONG_ID = #{APP_ID} AND btua.UUID = #{APP_ID}
</select> </select>
<delete id="delete_portlet_template_user" parameterType="map"> <delete id="delete_portlet_template_user" parameterType="map">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment