Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV4platform
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
管理员
jfV4platform
Commits
b384f83a
Commit
b384f83a
authored
Apr 26, 2018
by
罗绍泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portal功能修改,应用映射中IS_DELETE参数缺失BUG
parent
3f86d474
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
226 additions
and
35 deletions
+226
-35
baiduediter.js
WebContent/jwapp/common/js/baiduediter.js
+1
-0
portletTab.js
WebContent/jwapp/pages/portlet/js/portletTab.js
+44
-11
portletTabDetail.jsp
WebContent/jwapp/pages/portlet/portletTabDetail.jsp
+44
-15
dataAction.java
src_jwapp/com/jw/app/apps/action/dataAction.java
+1
-1
AppsBusiness.java
src_jwapp/com/jw/app/business/AppsBusiness.java
+2
-1
PortletBusiness.java
src_jwapp/com/jw/app/business/PortletBusiness.java
+2
-0
AppsBusinessImpl.java
src_jwapp/com/jw/app/business/apps/AppsBusinessImpl.java
+5
-0
AppsDAO.java
src_jwapp/com/jw/app/business/apps/AppsDAO.java
+1
-0
AppsDAO.xml
src_jwapp/com/jw/app/business/apps/AppsDAO.xml
+6
-0
PortletBusinessImpl.java
...wapp/com/jw/app/business/portlet/PortletBusinessImpl.java
+16
-0
PortletDAO.java
src_jwapp/com/jw/app/business/portlet/PortletDAO.java
+2
-0
PortletDAO.xml
src_jwapp/com/jw/app/business/portlet/PortletDAO.xml
+48
-0
actAction.java
src_jwapp/com/jw/app/mapping/action/actAction.java
+2
-0
actAction.java
src_jwapp/com/jw/app/portlet/action/actAction.java
+10
-7
dataAction.java
src_jwapp/com/jw/app/portlet/action/dataAction.java
+42
-0
No files found.
WebContent/jwapp/common/js/baiduediter.js
View file @
b384f83a
...
...
@@ -24,6 +24,7 @@ function getbaidu(contentid){
initialFrameHeight
:
300
,
//zindex基数
zIndex
:
9999
,
allowDivTransToP
:
false
,
//允许进入编辑器的div标签自动变成p标签
//更多其他参数,请参考ueditor.config.js中的配置项
serverUrl
:
'/jfV4platform/js/ueditor1_4_3/jsp/controller.jsp'
});
...
...
WebContent/jwapp/pages/portlet/js/portletTab.js
View file @
b384f83a
...
...
@@ -50,11 +50,16 @@ var v_yesno_data = [{CODE_ID:'1',CODE_NAME:'失效'},{CODE_ID:'0',CODE_NAME:'有
//数据来源
var
v_entity_datasource
=
[{
CODE_ID
:
'0'
,
CODE_NAME
:
'手工录入'
},
{
CODE_ID
:
'1'
,
CODE_NAME
:
'单点集成'
},
{
CODE_ID
:
'2'
,
CODE_NAME
:
'URL抓取'
},
{
CODE_ID
:
'3'
,
CODE_NAME
:
'RSS订阅'
},
{
CODE_ID
:
'4'
,
CODE_NAME
:
'模拟登录'
},
{
CODE_ID
:
'5'
,
CODE_NAME
:
'内容发布'
},
{
CODE_ID
:
'6'
,
CODE_NAME
:
'集成应用'
}];
{
CODE_ID
:
'5'
,
CODE_NAME
:
'内容发布'
}];
//宽度
var
v_entity_width
=
[{
CODE_ID
:
'1'
,
CODE_NAME
:
'1'
},
{
CODE_ID
:
'2'
,
CODE_NAME
:
'2'
},
{
CODE_ID
:
'3'
,
CODE_NAME
:
'3'
}];
//宽度
var
v_entity_maxBtn
=
[{
CODE_ID
:
'0'
,
CODE_NAME
:
'不支持'
},
{
CODE_ID
:
'1'
,
CODE_NAME
:
'支持'
}];
//授权角色
var
v_gidquery
=
{};
var
v_gid_data
=
jwAppCommonModel
.
jwAppsCommonDataAction
.
listSysRoleAll
(
v_gidquery
);
...
...
@@ -183,8 +188,8 @@ function inputInitialize(n){
$
(
'#end2'
).
hide
();
$
(
'#encode1'
).
hide
();
$
(
'#encode2'
).
hide
();
$
(
'#task1'
).
hide
();
$
(
'#task2'
).
hide
();
$
(
'#task1'
).
show
();
$
(
'#task2'
).
show
();
}
else
if
(
n
==
'5'
){
$
(
'#blank1'
).
hide
();
$
(
'#blank2'
).
show
();
...
...
@@ -405,6 +410,20 @@ function addRow(){
}
//加载增加子页面成功后的回调
function
addUrlOnloadCallback
(
is_row
){
$
(
'#MAX_BTN'
).
combobox
({
data
:
v_entity_maxBtn
,
valueField
:
'CODE_ID'
,
textField
:
'CODE_NAME'
,
editable
:
false
,
panelHeight
:
'auto'
});
$
(
'#WIDTH'
).
combobox
({
data
:
v_entity_width
,
valueField
:
'CODE_ID'
,
textField
:
'CODE_NAME'
,
editable
:
false
,
panelHeight
:
'auto'
});
$
(
'#P_TYPE'
).
combobox
({
data
:
v_entity_datasource
,
valueField
:
'CODE_ID'
,
...
...
@@ -447,7 +466,7 @@ function addUrlOnloadCallback(is_row){
$
(
'#APP_ID'
).
combobox
({
data
:
v_app_data
.
rowSet
,
valueField
:
'APP_ID'
,
textField
:
'NAME'
,
textField
:
'
APP_
NAME'
,
multiple
:
false
,
editable
:
false
,
panelHeight
:
'auto'
...
...
@@ -471,7 +490,7 @@ function insertData(is_entity){
var
v_result
=
jwAppPortletModel
.
jwAppsPortletActAction
.
insertPTemplate
(
is_entity
);
reloadTree
();
$
(
'#list'
).
datagrid
(
'reload'
,
{});
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
//
$.messager.alert('提示', v_result.VALUE);
return
v_result
;
}
/**
...
...
@@ -499,10 +518,24 @@ function editRow(index){
//加载修改子页面成功后的回调
function
updateUrlOnloadCallback
(
is_row
){
inputInitialize
();
$
(
'#MAX_BTN'
).
combobox
({
data
:
v_entity_maxBtn
,
valueField
:
'CODE_ID'
,
textField
:
'CODE_NAME'
,
editable
:
false
,
panelHeight
:
'auto'
});
$
(
'#WIDTH'
).
combobox
({
data
:
v_entity_width
,
valueField
:
'CODE_ID'
,
textField
:
'CODE_NAME'
,
editable
:
false
,
panelHeight
:
'auto'
});
$
(
'#APP_ID'
).
combobox
({
data
:
v_app_data
.
rowSet
,
valueField
:
'APP_ID'
,
textField
:
'NAME'
,
textField
:
'
APP_
NAME'
,
multiple
:
false
,
editable
:
false
,
panelHeight
:
'auto'
...
...
@@ -564,7 +597,7 @@ function updateData(is_entity){
is_entity
.
FIELD_CONTENT
=
ue
.
getContent
();
var
v_result
=
jwAppPortletModel
.
jwAppsPortletActAction
.
updatePTemplate
(
is_entity
);
reloadTree
();
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
//
$.messager.alert('提示', v_result.VALUE);
$
(
'#list'
).
datagrid
(
'reload'
,
{});
return
v_result
;
}
...
...
@@ -589,7 +622,7 @@ function deleteRow(index){
var
v_query
=
{};
v_query
.
deletekey
=
code
;
var
v_result
=
jwAppPortletModel
.
jwAppsPortletActAction
.
deletePTemplate
(
v_query
);
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
//
$.messager.alert('提示',v_result.VALUE);
reloadTree
();
$
(
'#list'
).
datagrid
(
'reload'
,
{});
}
...
...
@@ -624,7 +657,7 @@ function deleteBatchRow(){
var
v_query
=
{};
v_query
.
deletekey
=
code
;
var
v_result
=
jwAppPortletModel
.
jwAppsPortletActAction
.
deletePTemplate
(
v_query
);
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
//
$.messager.alert('提示',v_result.VALUE);
reloadTree
();
$
(
'#list'
).
datagrid
(
'reload'
,
{});
}
...
...
WebContent/jwapp/pages/portlet/portletTabDetail.jsp
View file @
b384f83a
...
...
@@ -38,6 +38,50 @@
<td style="width: 20% ">
<input class="easyui-combobox" id="COLUMN_ID" name="FIELD_COLUMN_ID" style="width:150px" value="${is_row.COLUMN_ID}"/>
</td>
<td style="width: 10%;" class="tableStyleLable">
<span>
插件主题(中文):
</span>
</td>
<td style="width: 20%;">
<input class="easyui-textbox" id="TITLE" name="FIELD_TITLE" style="width:150px" value="${is_row.TITLE}"/>
</td>
<td style="width: 10%;" class="tableStyleLable">
<span>
插件主题(英文):
</span>
</td>
<td style="width: 20%;">
<input class="easyui-textbox" id="ENG_TITLE" name="FIELD_ENG_TITLE" style="width:150px" value="${is_row.ENG_TITLE}"/>
</td>
</tr>
<tr>
<td style="width: 10%;" class="tableStyleLable">
<span>
宽度:
</span>
</td>
<td style="width: 20% ">
<input class="easyui-combobox" id="WIDTH" name="FIELD_WIDTH" style="width:150px" value="${is_row.WIDTH==null?'1':is_row.WIDTH}"/>
</td>
<td style="width: 10%;" class="tableStyleLable">
<span>
是否支持最大化:
</span>
</td>
<td style="width: 20%;">
<input class="easyui-textbox" id="MAX_BTN" name="FIELD_MAX_BTN" style="width:150px" value="${is_row.MAX_BTN==null?'0':is_row.MAX_BTN}"/>
</td>
<td style="width: 10%;" class="tableStyleLable">
<span>
图标:
</span>
</td>
<td style="width: 20%;">
<input class="easyui-textbox" id="ICON_CSS" name="FIELD_ICON_CSS" style="width:150px" value="${is_row.ICON_CSS}"/>
</td>
</tr>
<tr>
<td id="pop1" style="width: 10%; display: none" class="tableStyleLable">
<span>
点击动作:
...
...
@@ -62,11 +106,6 @@
<td id="app2" style="width: 20%; display: none">
<input class="easyui-combobox" id="APP_ID" name="FIELD_APP_ID" style="width:150px" value="${is_row.APP_ID}"/>
</td>
<td id="blank1" style="width: 70%; display: none" colspan="4" >
<div>
</div>
</td>
<td id="blank2" style="width: 40%; display: none" colspan="2" >
<div>
...
...
@@ -84,16 +123,6 @@
</td>
</tr>
<tr>
<td style="width: 10%;" class="tableStyleLable">
<span>
插件主题:
</span>
</td>
<td style="width: 20%;" colspan = "5">
<input class="easyui-textbox" id="TITLE" name="FIELD_TITLE" style="width:500px" value="${is_row.TITLE}"/>
</td>
</tr>
<tr>
<td id="start1" style="width: 10%; display: none" class="tableStyleLable">
<span>
开始取值:
...
...
src_jwapp/com/jw/app/apps/action/dataAction.java
View file @
b384f83a
...
...
@@ -153,7 +153,7 @@ public class dataAction extends BasicAction{
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_app
(
query
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_app
s_portal
(
query
);
int
listDataCount
=
business
.
listCount_app
(
query
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
listData
));
...
...
src_jwapp/com/jw/app/business/AppsBusiness.java
View file @
b384f83a
...
...
@@ -35,6 +35,8 @@ public interface AppsBusiness {
List
<
Map
<
String
,
Object
>>
list_app
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_apps_portal
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_app
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
//APPS_CATEGORY app分类信息
...
...
@@ -93,5 +95,4 @@ public interface AppsBusiness {
//APPS_USERALLAPP_NEWUSER找出所有未安装app的信息
List
<
Map
<
String
,
Object
>>
list_userallapp_newuser
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
}
src_jwapp/com/jw/app/business/PortletBusiness.java
View file @
b384f83a
...
...
@@ -21,6 +21,8 @@ public interface PortletBusiness {
List
<
Map
<
String
,
Object
>>
list_portlet_template
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_portlet_template_by_user
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_portlet_template
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_portlet_mytemplate_notall
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
...
...
src_jwapp/com/jw/app/business/apps/AppsBusinessImpl.java
View file @
b384f83a
...
...
@@ -667,4 +667,9 @@ public class AppsBusinessImpl implements AppsBusiness {
return
appsDAO
.
list_userallapp_newuser
(
query
);
}
@Override
public
List
<
Map
<
String
,
Object
>>
list_apps_portal
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
return
appsDAO
.
list_apps_portal
(
query
);
}
}
src_jwapp/com/jw/app/business/apps/AppsDAO.java
View file @
b384f83a
...
...
@@ -94,4 +94,5 @@ public interface AppsDAO {
//APPS_USERALLAPP_NEWUSER找出所有未安装app的信息
List
<
Map
<
String
,
Object
>>
list_userallapp_newuser
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_apps_portal
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
}
src_jwapp/com/jw/app/business/apps/AppsDAO.xml
View file @
b384f83a
...
...
@@ -576,4 +576,9 @@
]]>
</select>
<select
id=
"list_apps_portal"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
<![CDATA[
select f.* from b_t_ufp_apps f where f.IS_DELETE=0
]]>
</select>
</mapper>
\ No newline at end of file
src_jwapp/com/jw/app/business/portlet/PortletBusinessImpl.java
View file @
b384f83a
...
...
@@ -158,6 +158,22 @@ public class PortletBusinessImpl implements PortletBusiness {
}
@Override
public
List
<
Map
<
String
,
Object
>>
list_portlet_template_by_user
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
List
<
Map
<
String
,
Object
>>
listData
=
null
;
try
{
listData
=
QueryParamUtil
.
ClobToString
(
portletDAO
.
list_portlet_template_user
(
query
));
}
catch
(
IOException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
catch
(
SQLException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
return
listData
;
}
@Override
public
int
listCount_portlet_template
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
return
portletDAO
.
listCount_portlet_template
(
query
);
...
...
src_jwapp/com/jw/app/business/portlet/PortletDAO.java
View file @
b384f83a
...
...
@@ -21,6 +21,8 @@ public interface PortletDAO {
List
<
Map
<
String
,
Object
>>
list_portlet_template
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_portlet_template_user
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_portlet_template
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_portlet_mytemplate_notall
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
...
...
src_jwapp/com/jw/app/business/portlet/PortletDAO.xml
View file @
b384f83a
...
...
@@ -98,6 +98,54 @@
order by f.PORTLET_ID
</select>
<select
id=
"list_portlet_template_user"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
<![CDATA[
select * from portlet_template_user ptu
left JOIN portlet_template pt ON ptu.portlet_id=pt.portlet_id
]]>
<trim
prefix=
"WHERE"
prefixOverrides=
"AND |OR"
>
and pt.PORTLET_ID IS NOT NULL
<if
test=
"PORTLET_ID != null and PORTLET_ID != ''"
>
and pt.PORTLET_ID = #{PORTLET_ID}
</if>
<if
test=
"NAME != null and NAME != ''"
>
and pt.NAME like '%${NAME}%'
</if>
<if
test=
"TITLE != null and TITLE != ''"
>
and pt.TITLE like '%${TITLE}%'
</if>
<if
test=
"P_TYPE != null and P_TYPE != ''"
>
and pt.P_TYPE = #{P_TYPE}
</if>
<if
test=
"CREATOR_ID != null and CREATOR_ID != ''"
>
and pt.CREATOR_ID = #{CREATOR_ID}
</if>
<if
test=
"START_TIME != null and START_TIME != ''"
>
and pt.CREATE_TIME
>
= #{START_TIME}
</if>
<if
test=
"END_TIME != null and END_TIME != ''"
>
and pt.CREATE_TIME
<
= #{END_TIME}
</if>
<if
test=
"TASKTIMER != null and TASKTIMER != ''"
>
and pt.TASKTIMER = #{TASKTIMER}
</if>
<if
test=
"list != null and list != ''"
>
and pt.PORTLET_ID in ( ${list} )
</if>
<if
test=
"G_ID != null and G_ID != ''"
>
and pt.G_ID like '%${G_ID}%'
</if>
<if
test=
"COLUMN_ID != null and COLUMN_ID != ''"
>
and pt.COLUMN_ID = #{COLUMN_ID}
</if>
<if
test=
"USER_ID != null and USER_ID != ''"
>
and ptu.USER_ID = #{USER_ID}
</if>
</trim>
ORDER BY ptu.ORDER_NUM ASC
</select>
<select
id=
"listCount_portlet_template"
parameterType=
"map"
resultType=
"int"
>
<![CDATA[
...
...
src_jwapp/com/jw/app/mapping/action/actAction.java
View file @
b384f83a
...
...
@@ -121,6 +121,7 @@ public class actAction extends BasicAction {
entity
.
put
(
"USER_SYS_NAME"
,
username
);
entity
.
put
(
"YIYONG_ID"
,
appid
);
entity
.
put
(
"tableName"
,
"C_T_SYS_OTHERLOGIN"
);
entity
.
put
(
"IS_DELETE"
,
0
);
entity
=
QueryParamUtil
.
StringToDate
(
entity
);
int
count
=
business
.
listCount_table
(
entity
);
if
(
count
==
0
)
...
...
@@ -154,6 +155,7 @@ public class actAction extends BasicAction {
* } } } else { business.insert_table(entity);
* jsonObject.putAll(Status.getStatus(Status.INSERT_OK)); }
*/
entity
.
put
(
"IS_DELETE"
,
0
);
business
.
insert_table
(
entity
);
jsonObject
.
putAll
(
Status
.
getStatus
(
Status
.
INSERT_OK
));
}
catch
(
Exception
e
)
{
...
...
src_jwapp/com/jw/app/portlet/action/actAction.java
View file @
b384f83a
...
...
@@ -3,7 +3,6 @@ package com.jw.app.portlet.action;
import
java.io.File
;
import
java.net.URL
;
import
java.net.URLConnection
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -11,8 +10,6 @@ import java.util.zip.GZIPInputStream;
import
org.apache.commons.lang3.StringUtils
;
import
net.sf.json.JSONObject
;
import
com.gaowj.business.SystemOpeBusiness
;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.comp.BusinessManager
;
...
...
@@ -22,12 +19,13 @@ import com.jw.app.business.PortletBusiness;
import
com.jw.app.business.utils.QueryParamUtil
;
import
com.jw.app.business.utils.Status
;
import
com.jw.app.util.RssUrlData
;
import
com.sun.org.apache.bcel.internal.generic.NEW
;
import
com.sun.syndication.feed.synd.SyndEntry
;
import
com.sun.syndication.feed.synd.SyndFeed
;
import
com.sun.syndication.io.SyndFeedInput
;
import
com.sun.syndication.io.XmlReader
;
import
net.sf.json.JSONObject
;
public
class
actAction
extends
BasicAction
{
/**
...
...
@@ -76,7 +74,8 @@ public class actAction extends BasicAction {
entity
=
QueryParamUtil
.
StringToDate
(
entity
);
if
(
entity
.
get
(
"PORTLET_ID"
)==
null
)
entity
.
put
(
"PORTLET_ID"
,
java
.
util
.
UUID
.
randomUUID
().
toString
());
if
(
entity
.
get
(
"P_TYPE"
)
!=
null
//下述代码用于对RSS的后台解析
/*if (entity.get("P_TYPE") != null
&& StringUtils.equals((String) entity.get("P_TYPE"), "3")) {
String url = (String) entity.get("URL");
String is_pop = (String) entity.get("IS_POP");
...
...
@@ -137,7 +136,7 @@ public class actAction extends BasicAction {
}
content_html = content_html + "</table>";
entity.put("TAKE_CONTENT", content_html);
}
}
*/
business
.
insert_portlet_template
(
entity
);
// 操作日志
SystemOpeBusiness
sysbusiness
=
BusinessManager
...
...
@@ -160,10 +159,14 @@ public class actAction extends BasicAction {
entity
.
remove
(
"OPETYPE"
);
try
{
entity
=
QueryParamUtil
.
StringToDate
(
entity
);
entity
=
RssUrlData
.
rssContent
(
entity
);
//目前版本不对RSS进行后台解析存储,所以将下述代码注释,如要开启,需要注意防止存储到日志表中的数据过大而产生data too long错误
//entity = RssUrlData.rssContent(entity);
business
.
update_portlet_template
(
entity
);
// 操作日志
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
//将存储RSS的大文本内容删除,否则日志表数据量过大
/*entity.remove("TAKE_CONTENT");
entity.remove("RSS_CONTENT");*/
sysbusiness
.
insert_logBusiness
(
"updatePTemplate"
,
""
+
entity
,
"修改PORTLET记录"
,
(
String
)
entity
.
get
(
"PORTLET_ID"
),
(
String
)
entity
.
get
(
"NAME"
),
"JW_APPS_PORTLET_TEMPLATE"
);
...
...
src_jwapp/com/jw/app/portlet/action/dataAction.java
View file @
b384f83a
...
...
@@ -145,6 +145,48 @@ public class dataAction extends BasicAction {
}
return
"json"
;
}
/**
* 获取用户的资源列表
* @return
* @throws BusinessException
*/
public
String
listAllPTemplateByUser
()
throws
BusinessException
{
PortletBusiness
business
=
BusinessManager
.
getBusiness
(
PortletBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_portlet_template_by_user
(
query
);
for
(
Map
<
String
,
Object
>
rm
:
listData
)
{
if
(
rm
.
get
(
"P_TYPE"
)==
null
||!
rm
.
get
(
"P_TYPE"
).
equals
(
"3"
))
{
rm
.
remove
(
"RSS_CONTENT"
);
rm
.
remove
(
"TAKE_CONTENT"
);
}
}
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
listData
));
data
.
put
(
"pageNo"
,
1
);
data
.
put
(
"pageSize"
,
listData
.
size
());
data
.
put
(
"pageCount"
,
listData
.
size
());
data
.
put
(
"rows"
,
data
.
get
(
"rowSet"
));
data
.
put
(
"total"
,
listData
.
size
());
jsonObject
=
new
JSONObject
();
jsonObject
.
putAll
(
data
);
}
catch
(
SQLException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
catch
(
ParseException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
return
"json"
;
}
/**
* 显示发布类型树
* @return
...
...
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