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
77e0c173
Commit
77e0c173
authored
May 04, 2018
by
罗绍泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初步查询到所有的应用信息
parent
a394e449
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
125 additions
and
331 deletions
+125
-331
business-apps.xml
WebContent/WEB-INF/conf/gaowj/bl/business-apps.xml
+11
-0
application.jsp
WebContent/jfcas04/application.jsp
+21
-2
header.jsp
WebContent/jfcas04/header.jsp
+0
-1
index.jsp
WebContent/jfcas04/index.jsp
+1
-0
analytic.jsp
WebContent/jfcas04/portal/analytic.jsp
+1
-0
information.jsp
WebContent/jfcas04/portal/information.jsp
+1
-0
news.jsp
WebContent/jfcas04/portal/news.jsp
+1
-0
office.jsp
WebContent/jfcas04/portal/office.jsp
+1
-0
jwAppAppsModule.js
WebContent/jwapp/pages/apps/js/jwAppAppsModule.js
+24
-0
actAction.java
src_jwapp/com/jw/app/apps/action/actAction.java
+0
-0
dataAction.java
src_jwapp/com/jw/app/apps/action/dataAction.java
+47
-158
AppsBusiness.java
src_jwapp/com/jw/app/business/AppsBusiness.java
+14
-84
AppsBusinessImpl.java
src_jwapp/com/jw/app/business/apps/AppsBusinessImpl.java
+0
-0
AppsDAO.java
src_jwapp/com/jw/app/business/apps/AppsDAO.java
+3
-86
AppsDAO.xml
src_jwapp/com/jw/app/business/apps/AppsDAO.xml
+0
-0
No files found.
WebContent/WEB-INF/conf/gaowj/bl/business-apps.xml
View file @
77e0c173
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<property
name=
"mapperLocations"
>
<property
name=
"mapperLocations"
>
<list>
<list>
<value>
classpath:com/jw/app/business/portlet/PortletDAO.xml
</value>
<value>
classpath:com/jw/app/business/portlet/PortletDAO.xml
</value>
<value>
classpath:com/jw/app/business/apps/AppsDAO.xml
</value>
</list>
</list>
</property>
</property>
</bean>
</bean>
...
@@ -17,9 +18,19 @@
...
@@ -17,9 +18,19 @@
<property
name=
"portletDAO"
ref=
"portletDAO"
/>
<property
name=
"portletDAO"
ref=
"portletDAO"
/>
</bean>
</bean>
<bean
id=
"AppsBusiness"
class=
"com.jw.app.business.apps.AppsBusinessImpl"
>
<property
name=
"appsDAO"
ref=
"appsDAO"
/>
</bean>
<!-- DAO -->
<!-- DAO -->
<bean
id=
"portletDAO"
class=
"org.mybatis.spring.mapper.MapperFactoryBean"
>
<bean
id=
"portletDAO"
class=
"org.mybatis.spring.mapper.MapperFactoryBean"
>
<property
name=
"mapperInterface"
value=
"com.jw.app.business.portlet.PortletDAO"
/>
<property
name=
"mapperInterface"
value=
"com.jw.app.business.portlet.PortletDAO"
/>
<property
name=
"sqlSessionFactory"
ref=
"sqlSessionFactory-apps"
/>
<property
name=
"sqlSessionFactory"
ref=
"sqlSessionFactory-apps"
/>
</bean>
</bean>
<bean
id=
"appsDAO"
class=
"org.mybatis.spring.mapper.MapperFactoryBean"
>
<property
name=
"mapperInterface"
value=
"com.jw.app.business.apps.AppsDAO"
/>
<property
name=
"sqlSessionFactory"
ref=
"sqlSessionFactory-apps"
/>
</bean>
</beans>
</beans>
WebContent/jfcas04/application.jsp
View file @
77e0c173
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/plug/fancyBox/js/jquery.fancybox-media.js?v=1.0.5"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/plug/fancyBox/js/jquery.fancybox-media.js?v=1.0.5"></script>
<!-- xcConfirm的js -->
<!-- xcConfirm的js -->
<script src="${pageContext.request.contextPath}/lib/plug/xcConfirm/js/xcConfirm.js"></script>
<script src="${pageContext.request.contextPath}/lib/plug/xcConfirm/js/xcConfirm.js"></script>
<!-- 调用api时的js -->
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/common/js/lang_json.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/apps/js/jwAppAppsModule.js" charset="utf-8"></script>
<script type="text/javascript">
<script type="text/javascript">
var ctx='${pageContext.request.contextPath}';
var ctx='${pageContext.request.contextPath}';
</script>
</script>
...
@@ -212,7 +215,7 @@ a{
...
@@ -212,7 +215,7 @@ a{
<div class="index_application_right">
<div class="index_application_right">
<div class="index_application_show">
<div class="index_application_show">
<div class="index_application_show_tabs">
<div class="index_application_show_tabs">
<
span class="index_application_show_tabs_click">全部应用</span><span>教学类</span><span>管理类</span><span>服务类</span><span>娱乐类</span><span>默认应用</span
>
<
!-- <span class="index_application_show_tabs_click">全部应用</span><span>教学类</span><span>管理类</span><span>服务类</span><span>娱乐类</span><span>默认应用</span> --
>
</div>
</div>
<div class="index_application_show_tabs_container">
<div class="index_application_show_tabs_container">
...
@@ -290,7 +293,18 @@ a{
...
@@ -290,7 +293,18 @@ a{
</div>
</div>
<script>
<script>
//全局变量所有的应用
var list_allApps = jwAppAppsModel.jwAppsAppsDataAction.list_allApps_by_user({FIELD_COLUMN_ID:$('.layout_center_navClick').data('uuid')});
$(function(){
$(function(){
//初始化类别
init_index_categorys();
//初始化apps
//init_index_apps();
//左边导航的切换
//左边导航的切换
$('.index_application_left>div').bind('click',function(){
$('.index_application_left>div').bind('click',function(){
$('.index_application_left_click').toggleClass('index_application_left_click');
$('.index_application_left_click').toggleClass('index_application_left_click');
...
@@ -327,7 +341,6 @@ $(function(){
...
@@ -327,7 +341,6 @@ $(function(){
$('.index_application_show_tabs>span').bind('click',function(){
$('.index_application_show_tabs>span').bind('click',function(){
$('.index_application_show_tabs_click').toggleClass('index_application_show_tabs_click');
$('.index_application_show_tabs_click').toggleClass('index_application_show_tabs_click');
$(this).addClass('index_application_show_tabs_click');
$(this).addClass('index_application_show_tabs_click');
})
})
})
})
...
@@ -395,4 +408,10 @@ function index_application_isLoad(handler){
...
@@ -395,4 +408,10 @@ function index_application_isLoad(handler){
function index_application_close(){
function index_application_close(){
console.log('关闭')
console.log('关闭')
}
}
//初始化类别
function init_index_categorys(){
console.log(list_allApps)
}
</script>
</script>
WebContent/jfcas04/header.jsp
View file @
77e0c173
...
@@ -64,7 +64,6 @@
...
@@ -64,7 +64,6 @@
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/plug/jquery-easyui-1.5.3/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/plug/jquery-easyui-1.5.3/locale/easyui-lang-zh_CN.js"></script>
<!-- 调用api时的js -->
<!-- 调用api时的js -->
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/common/js/lang_json.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/common/js/lang_json.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/portlet/js/jwAppPortletModule.js" charset="utf-8"></script>
<script type="text/javascript">
<script type="text/javascript">
var ctx='${pageContext.request.contextPath}';
var ctx='${pageContext.request.contextPath}';
...
...
WebContent/jfcas04/index.jsp
View file @
77e0c173
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
<head>
<head>
<title>
首页
</title>
<title>
首页
</title>
<jsp:include
page=
"header.jsp"
></jsp:include>
<jsp:include
page=
"header.jsp"
></jsp:include>
<script
type=
"text/javascript"
src=
"${pageContext.request.contextPath}/jwapp/pages/portlet/js/jwAppPortletModule.js"
charset=
"utf-8"
></script>
<script
src=
"${ctx}/jfcas04/js/index.js"
></script>
<script
src=
"${ctx}/jfcas04/js/index.js"
></script>
</head>
</head>
<body>
<body>
...
...
WebContent/jfcas04/portal/analytic.jsp
View file @
77e0c173
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:include page="../header.jsp"></jsp:include>
<jsp:include page="../header.jsp"></jsp:include>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/portlet/js/jwAppPortletModule.js" charset="utf-8"></script>
<div class="index_container_two_left_echarts_container">
<div class="index_container_two_left_echarts_container">
<div><span>各部门每天办件率情况图表.</span><a href="javascript:void(0)">查看更多</a></div>
<div><span>各部门每天办件率情况图表.</span><a href="javascript:void(0)">查看更多</a></div>
<div id="index_content_echartsContainer" style="width:100%;height:314px;"></div>
<div id="index_content_echartsContainer" style="width:100%;height:314px;"></div>
...
...
WebContent/jfcas04/portal/information.jsp
View file @
77e0c173
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:include page="../header.jsp"></jsp:include>
<jsp:include page="../header.jsp"></jsp:include>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/portlet/js/jwAppPortletModule.js" charset="utf-8"></script>
<div class="index_container_three_center_container">
<div class="index_container_three_center_container">
<div>
<div>
<span>技术</span>
<span>技术</span>
...
...
WebContent/jfcas04/portal/news.jsp
View file @
77e0c173
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:include page="../header.jsp"></jsp:include>
<jsp:include page="../header.jsp"></jsp:include>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/portlet/js/jwAppPortletModule.js" charset="utf-8"></script>
<div class="index_container_news">
<div class="index_container_news">
<div>中纪委“大虎”通报缘何出现重大变化</div>
<div>中纪委“大虎”通报缘何出现重大变化</div>
<div>国家移民管理局挂牌仪式举行 郭声琨出席</div>
<div>国家移民管理局挂牌仪式举行 郭声琨出席</div>
...
...
WebContent/jfcas04/portal/office.jsp
View file @
77e0c173
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:include page="../header.jsp"></jsp:include>
<jsp:include page="../header.jsp"></jsp:include>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/portlet/js/jwAppPortletModule.js" charset="utf-8"></script>
<style>
<style>
.sp-preview{
.sp-preview{
border:none;
border:none;
...
...
WebContent/jwapp/pages/apps/js/jwAppAppsModule.js
0 → 100644
View file @
77e0c173
//此乃本模块与后台交互的方法接口部分
var
jwAppAppsModel
=
function
(
format
)
{
this
.
module
=
""
;
this
.
action
=
""
;
this
.
format
=
format
;
};
//定义数据交互
jwAppAppsModel
.
prototype
=
BusinessObject
;
//获取当前登陆人的所有应用
jwAppAppsModel
.
prototype
.
list_allApps_by_user
=
function
(){};
/*//获取所有应用的类别
jwAppAppsModel.prototype.list_allCategory = function(){};*/
//创建一个数据操作对象,然后再后续使用
jwAppAppsModel
.
jwAppsAppsActAction
=
new
jwAppAppsModel
(
"json"
).
delegate
(
"jwAppsAppstoreAct"
);
//创建一个数据获取对象,然后再后续使用
jwAppAppsModel
.
jwAppsAppsDataAction
=
new
jwAppAppsModel
(
"json"
).
delegate
(
"jwAppsAppstoreData"
);
//说明: 1、所有方法里统一传递josn格式的参数,用于后台交互,如data.listTables(param) ,如没有参数则传'{}',如data.listTables({})
// 2、前后台数据获取传输协议 如:json[{'0':{pageCount':'2','pageNo':'1','pageSize':'20','rowSet':'[{0},{1}....]'}}]
// 3、前后台增删改的返回状态 如:json[{'0':{'rowSet':{'NAME':'-1','VALUE':'保存失败'}}}]
src_jwapp/com/jw/app/apps/action/actAction.java
View file @
77e0c173
This diff is collapsed.
Click to expand it.
src_jwapp/com/jw/app/apps/action/dataAction.java
View file @
77e0c173
...
@@ -11,8 +11,6 @@ import net.sf.json.JSONObject;
...
@@ -11,8 +11,6 @@ import net.sf.json.JSONObject;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.comp.BusinessManager
;
import
com.gaowj.business.comp.BusinessManager
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Encipher
;
import
com.gaowj.business.util.Page
;
import
com.gaowj.business.util.RequestUtils
;
import
com.gaowj.business.util.RequestUtils
;
import
com.gaowj.business.util.SessionUtil
;
import
com.gaowj.business.util.SessionUtil
;
import
com.jw.app.business.AppsBusiness
;
import
com.jw.app.business.AppsBusiness
;
...
@@ -56,28 +54,53 @@ public class dataAction extends BasicAction{
...
@@ -56,28 +54,53 @@ public class dataAction extends BasicAction{
this
.
page
=
getPageNo
();
this
.
page
=
getPageNo
();
}
}
public
String
listAppAccount
()
throws
BusinessException
{
public
String
list_allApps_by_user
()
throws
BusinessException
{
AppsBusiness
business
=
BusinessManager
.
getBusiness
(
AppsBusiness
.
class
);
jsonObject
=
new
JSONObject
();
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
//1.根据用户id,获取
/*SELECT * FROM (
SELECT ai_in.* FROM app_install ai_in where ai_in.USERID='6666'
) ai
RIGHT JOIN apps_app apps ON ai.APP_ID=apps.APP_ID*/
/*PortletBusiness business = BusinessManager
.getBusiness(PortletBusiness.class);
Map<String, Object> query = RequestUtils.getUpdateFieldMap(request,
RequestUtils.UPDATEDATAFIELDPREFIX);*/
AppsBusiness
business
=
BusinessManager
.
getBusiness
(
AppsBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
query
=
QueryParamUtil
.
StringToDate
(
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_app_account
(
pageNo
,
pageSize
,
query
);
//设置当前登陆人
for
(
Map
<
String
,
Object
>
m
:
pageRows
.
getItems
()){
query
.
put
(
"USER_ID"
,
SessionUtil
.
getEmid
());
if
(
m
.
get
(
"PWD"
)!=
null
){
List
<
Map
<
String
,
Object
>>
listData
=
business
m
.
put
(
"PWD"
,
Encipher
.
DecodePasswd
((
String
)
m
.
get
(
"PWD"
)));
.
list_allApps_by_user
(
query
);
for
(
Map
<
String
,
Object
>
rm
:
listData
)
{
if
(
rm
.
get
(
"USERID"
)!=
null
){
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
.
put
(
"apps"
,
data
);
//查找所有的应用所属的类型
Map
<
String
,
Object
>
queryCategory
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
List
<
Map
<
String
,
Object
>>
listCategory
=
business
.
list_allCategory
(
queryCategory
);
Map
<
String
,
Object
>
allCategory
=
new
HashMap
<
String
,
Object
>();
allCategory
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
listCategory
));
allCategory
.
put
(
"pageNo"
,
1
);
allCategory
.
put
(
"pageSize"
,
listCategory
.
size
());
allCategory
.
put
(
"pageCount"
,
listCategory
.
size
());
allCategory
.
put
(
"rows"
,
allCategory
.
get
(
"rowSet"
));
allCategory
.
put
(
"total"
,
listCategory
.
size
());
jsonObject
.
put
(
"types"
,
listCategory
);
break
;
}
}
}
}
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
pageRows
.
getItems
()));
data
.
put
(
"pageNo"
,
pageNo
);
data
.
put
(
"pageSize"
,
pageSize
);
data
.
put
(
"pageCount"
,
pageCount
);
data
.
put
(
"rows"
,
data
.
get
(
"rowSet"
));
data
.
put
(
"total"
,
pageRows
.
getCount
());
jsonObject
=
new
JSONObject
();
jsonObject
.
putAll
(
data
);
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
// TODO Auto-generated catch block
// TODO Auto-generated catch block
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -85,147 +108,13 @@ public class dataAction extends BasicAction{
...
@@ -85,147 +108,13 @@ public class dataAction extends BasicAction{
// TODO Auto-generated catch block
// TODO Auto-generated catch block
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
return
"json"
;
}
public
String
listAllAppAccount
()
throws
BusinessException
{
AppsBusiness
business
=
BusinessManager
.
getBusiness
(
AppsBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
//2上述结果中的USERID全部为null,表示一个app都没安装
query
=
QueryParamUtil
.
StringToDate
(
query
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_app_account
(
query
);
for
(
Map
<
String
,
Object
>
m
:
listData
){
if
(
m
.
get
(
"PWD"
)!=
null
){
m
.
put
(
"PWD"
,
Encipher
.
DecodePasswd
((
String
)
m
.
get
(
"PWD"
)));
}
}
int
listDataCount
=
business
.
listCount_app_account
(
query
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
listData
));
data
.
put
(
"pageNo"
,
1
);
data
.
put
(
"pageSize"
,
listDataCount
);
data
.
put
(
"pageCount"
,
listDataCount
);
data
.
put
(
"rows"
,
data
.
get
(
"rowSet"
));
data
.
put
(
"total"
,
listDataCount
);
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"
;
}
public
String
listApp
()
throws
BusinessException
{
AppsBusiness
business
=
BusinessManager
.
getBusiness
(
AppsBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
//3.验证apps_uninstall有没有数据
query
=
QueryParamUtil
.
StringToDate
(
query
);
//4.如果也没有,表示这个用户是新建用户,需要初始化应用
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_app
(
pageNo
,
pageSize
,
query
);
//5.初始化应用
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
pageRows
.
getItems
()));
data
.
put
(
"pageNo"
,
pageNo
);
data
.
put
(
"pageSize"
,
pageSize
);
data
.
put
(
"pageCount"
,
pageCount
);
data
.
put
(
"rows"
,
data
.
get
(
"rowSet"
));
data
.
put
(
"total"
,
pageRows
.
getCount
());
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"
;
}
public
String
listAllApp
()
throws
BusinessException
{
AppsBusiness
business
=
BusinessManager
.
getBusiness
(
AppsBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_apps_portal
(
query
);
int
listDataCount
=
business
.
listCount_app
(
query
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
listData
));
data
.
put
(
"pageNo"
,
1
);
data
.
put
(
"pageSize"
,
listDataCount
);
data
.
put
(
"pageCount"
,
listDataCount
);
data
.
put
(
"rows"
,
data
.
get
(
"rowSet"
));
data
.
put
(
"total"
,
listDataCount
);
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"
;
}
public
String
listAllCategory
()
throws
BusinessException
{
AppsBusiness
business
=
BusinessManager
.
getBusiness
(
AppsBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_category
(
query
);
int
listDataCount
=
business
.
listCount_category
(
query
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
listData
));
data
.
put
(
"pageNo"
,
1
);
data
.
put
(
"pageSize"
,
listDataCount
);
data
.
put
(
"pageCount"
,
listDataCount
);
data
.
put
(
"rows"
,
data
.
get
(
"rowSet"
));
data
.
put
(
"total"
,
listDataCount
);
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"
;
}
public
String
listUserAllApp
()
throws
BusinessException
{
AppsBusiness
business
=
BusinessManager
.
getBusiness
(
AppsBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
query
.
put
(
"USERID"
,
SessionUtil
.
getCode
());
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_userallapp
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
pageRows
.
getItems
()));
data
.
put
(
"pageNo"
,
pageNo
);
data
.
put
(
"pageSize"
,
pageSize
);
data
.
put
(
"pageCount"
,
pageCount
);
data
.
put
(
"rows"
,
data
.
get
(
"rowSet"
));
data
.
put
(
"total"
,
pageRows
.
getCount
());
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
"json"
;
}
}
...
...
src_jwapp/com/jw/app/business/AppsBusiness.java
View file @
77e0c173
...
@@ -6,93 +6,23 @@ import java.util.Map;
...
@@ -6,93 +6,23 @@ import java.util.Map;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Page
;
@Service
@Service
public
interface
AppsBusiness
{
public
interface
AppsBusiness
{
//APP_ACCOUNT 模拟登陆帐号密码管理
/**获取该用户的所有应用
String
insert_app_account
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
*
* @param query
void
update_app_account
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
* @return
* @throws BusinessException
void
delete_app_account
(
List
<
String
>
list
)
throws
BusinessException
;
*/
List
<
Map
<
String
,
Object
>>
list_allApps_by_user
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_app_account
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**获得所有应用的所属类型
List
<
Map
<
String
,
Object
>>
list_app_account
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
*
* @param query
int
listCount_app_account
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
* @return
*/
//APPS_APP app详细信息
List
<
Map
<
String
,
Object
>>
list_allCategory
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
String
insert_app
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_app
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
delete_app
(
List
<
String
>
list
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_app
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
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分类信息
void
insert_category
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_category
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
delete_category
(
List
<
String
>
list
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_category
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_category
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_category
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
//APP_INSTALL app用户安装信息
void
insert_install
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_install
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
delete_install
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_install_app_id
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_install_app_user
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_install
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_install
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_install
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
//APPS_UNINSTALL app用户卸载信息
void
insert_uninstall
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_uninstall
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
void
delete_uninstall
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_uninstall_app_id
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_uninstall_app_user
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_uninstall
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_uninstall
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_uninstall
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
//APPS_USERALLAPP用户所有已安装和未安装app信息
Page
<
Map
<
String
,
Object
>>
list_userallapp
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_userallapp
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_userallapp
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
//APPS_USERALLAPP_NEWUSER找出所有未安装app的信息
List
<
Map
<
String
,
Object
>>
list_userallapp_newuser
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
}
}
src_jwapp/com/jw/app/business/apps/AppsBusinessImpl.java
View file @
77e0c173
This diff is collapsed.
Click to expand it.
src_jwapp/com/jw/app/business/apps/AppsDAO.java
View file @
77e0c173
...
@@ -3,96 +3,13 @@ package com.jw.app.business.apps;
...
@@ -3,96 +3,13 @@ package com.jw.app.business.apps;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
org.apache.ibatis.session.RowBounds
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.exception.BusinessException
;
public
interface
AppsDAO
{
public
interface
AppsDAO
{
//APP_ACCOUNT 模拟登陆帐号密码管理
List
<
Map
<
String
,
Object
>>
list_allApps_by_user
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
void
insert_app_account
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_app_account
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
delete_app_account
(
List
<
String
>
list
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_app_account
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_app_account
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_app_account
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
//APPS_APP app详细信息
void
insert_app
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_app
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
delete_app
(
List
<
String
>
list
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_app
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_app
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_app
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_delete_app
(
List
<
String
>
list
)
throws
BusinessException
;
//APPS_CATEGORY app分类信息
void
insert_category
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_category
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
delete_category
(
List
<
String
>
list
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_category
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_allCategory
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_category
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_category
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
//APP_INSTALL app用户安装信息
void
insert_install
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_install
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
delete_install
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_install_app_id
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_install_app_user
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_install
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_install
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_install
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
//APPS_UNINSTALL app用户卸载信息
void
insert_uninstall
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_uninstall
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
delete_uninstall
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_uninstall_app_id
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_uninstall_app_user
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_uninstall
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_uninstall
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_uninstall
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
//APPS_USERALLAPP用户所有已安装和未安装app信息
List
<
Map
<
String
,
Object
>>
list_userallapp
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_userallapp
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_userallapp
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
//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 @
77e0c173
This diff is collapsed.
Click to expand it.
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