先在指定目錄下寫Controller,在目錄下com.ylzinfo.controller.zhizhijavascript
package com.ylzinfo.controller.zhizhi; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import com.ylzinfo.util.AjaxPageResponse; import com.ylzinfo.util.ESBService; import com.ylzinfo.util.EsbUtil; import com.ylzinfo.util.UnitUser; import com.ylzinfo.util.UserHelper; /** * @Description: 用於老師管理測試 * @author: shengzhizhi * @modifier: * @date: 2018年7月12日 上午10:38:53 */ @RequestMapping("/unit/zhizhi/lsgl") @Controller public class LsglController { private static Logger logger = LoggerFactory.getLogger(LsglController.class); /** * @Description: 返回老師list * @author: shengzhizhi * @modifier: * @date: 2018年7月12日 上午10:43:20 */ @RequestMapping(value = "/list", method = RequestMethod.GET) public String getList(Model model) { return "zhizhi/lsgl/list"; } @RequestMapping(value="/query",method =RequestMethod.POST) @ResponseBody public AjaxPageResponse getquery(@RequestBody Map<String,String> param){//param 把前端的數據傳入 UnitUser user = (UnitUser)UserHelper.currentUser(); param.put("employUnit", user.getId());//每條都要,用於記錄都哪些人操做了 return EsbUtil.call(ESBService.Zhizhi.QUERYLIST, param);//param傳入數據 } }
而後在ESBServicece裏面寫好地址css
public static class Zhizhi{ public final static String QUERYLIST = "com.ylzinfo.rsrc.ggfw.zhizhi.queryLsglList"; } //在ESB Service裏面加入服務編號 在ESB網址服務上配置
ESB配置 地址 http://10.97.141.19/esbos/ 帳號worker密碼123html
參數配置都是 data data 1 string in ,加載完後要內存加載一次,測試的時候能夠直接用{}來測試內容前端
在jsp目錄底下找到index 打開以後再裏面加入對瓶的地址java
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <%@include file="/WEB-INF/jsp/common/taglibs.jspf" %> <!DOCTYPE html> <html> <head lang="en"> <base:meta/> <title>人事人才公共服務-單位主頁</title> <!--layer--> <link type="text/css" rel="stylesheet" href="${ctx}/assets/plugins/layer-v2.4/skin/layer.css"/> <!--zTree插件--> <link type="text/css" rel="stylesheet" href="${ctx}/assets/plugins/zTree_v3-master/css/zTreeStyle/zTreeStyle.css"/> <!--iconfont字體庫--> <link type="text/css" rel="stylesheet" href="${ctx}/assets/font/iconfont.css"/> <link type="text/css" rel="stylesheet" href="${ctx}/assets/font/font-awesome.css"/> <!--通用樣式--> <link type="text/css" rel="stylesheet" href="${ctx}/assets/css/common.css"/> <!--框架主要樣式--> <link type="text/css" rel="stylesheet" href="${ctx}/assets/css/ggfwkj.css"/> </head> <body> <div class="index"> <!--左側菜單--> <div class="left"> <div class="left-nav" id="left-nav"> <ul id="treeDemo" class="ztree"></ul> </div> <!---收縮按鈕--> <div class="shrink"></div> <!---收縮按鈕--> </div> <!--左側菜單--> <!--右側內容--> <div class="page-wrapper"> <!--右側內容主tab--> <div class="content-tabs"> <button class="roll-nav roll-left"> <i class="iconfont icon-ttpodicon"></i> </button> <div class="page-tabs"> <a href="javascript:" class="J_menuTab active" data-id="daas">首頁</a> </div> <button class="roll-nav roll-right J_tabRight"> <i class="iconfont icon-next"></i> </button> <div class="roll-nav roll-right btn-group" id="other_operation"> <button class="closeopers"> 其餘操做<i class="iconfont icon-down"></i> </button> <ul class="dropdown-menu-right"> <li class="J_tabRefreshActive"><a>刷新當前選項卡</a></li> <li class="J_tabShowActive"><a>定位當前選項卡</a></li> <li class="divider"></li> <li class="J_tabCloseAll"><a>關閉所有選項卡</a></li> <li class="J_tabCloseOther"><a>關閉其餘選項卡</a></li> </ul> </div> </div> <!--右側內容主tab--> <div class="page-content"> <!--<div class="tab-content" data-id="daas"><iframe src="test.html" width="100%" height="100%" frameborder="0"></iframe></div>--> <iframe class="J_iframe" src="" width="100%" height="100%" frameborder="0" data-id="daas"></iframe> </div> <!--右側內容--> </div> </div> <!--底部--> <script type="text/javascript" src="${ctx}/assets/js/jquery-1.12.3.min.js"></script> <!--layer插件--> <script type="text/javascript" src="${ctx}/assets/plugins/layer-v2.4/layer.js"></script> <!--zTree插件--> <script type="text/javascript" src="${ctx}/assets/plugins/zTree_v3-master/js/jquery.ztree.core.min.js"></script> <script type="text/javascript" src="${ctx}/assets/data/data.js"></script> <script type="text/javascript" src="${ctx}/assets/js/ggfwkj.js"></script> <script type="text/javascript"> $(function () { var zNodes1 = [ { id: 1, pId: 0, name: "需求管理", open: false, iconSkin: "icon-shouyeshouye2", children: [ {id: 11, pId: 1, name: "平時需求", "url": "${ctx}/unit/psxqgl/list", "target": "main"}, {id: 12, pId: 1, name: "年度需求", "url": "${ctx}/unit/ndxqgl/list", "target": "main"} ] }, { id: 13, pId: 0, name: "智智TEST", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 131, pId: 13, name: "老師管理", "url": "${ctx}/unit/zhizhi/lsgl/list", "target": "main"}//在這裏加入 ] }, { id: 2, pId: 0, name: "畢業生接收", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 21, pId: 2, name: "畢業生申報", "url": "${ctx}/unit/bysjs/bys/list", "target": "main"}, <%-- {id:22, pId:2,name:"企業骨幹申報","url":"${ctx}/unit/bysjs/qygg/list","target":"main"}, --%> <%-- {id:23, pId:2,name:"憑勞動合同申報","url":"${ctx}/unit/bysjs/ldht/editnew","target":"main"}, --%> {id: 24, pId: 2, name: "個人申報進度", "url": "${ctx}/user/bysjs/sbjd/list", "target": "main"}, ] }, { id: 3, pId: 0, name: "人才確認及住房補貼", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 30, pId: 3, name: "申報須知","url":"${ctx}/unit/zfbt/sbxz","target":"main"}, {id: 31, pId: 3, name: "人才類型申報操做指南","url":"${ctx}/unit/zfbt/sbzn","target":"main"}, {id: 32, pId: 3, name: "單位基本信息", "url": "${ctx}/unit/zfbt/company", "target": "main"}, {id: 33, pId: 3, name: "人才類型確認申報", "url": "${ctx}/unit/zfbt/sfqr/list", "target": "main"}, {id: 34, pId: 3, name: "人才類型確認審覈", "url": "${ctx}/unit/zfbt/sfqr/approvallist", "target": "main"}, {id: 35, pId: 3, name: "人才類型審覈記錄", "url": "${ctx}/unit/zfbt/sfqr/approvalrecord", "target": "main"}, {id: 36, pId: 3, name: "住房補貼申報操做指南","url":"${ctx}/unit/zfbt/zfbtsbzn","target":"main"}, {id: 37, pId: 3, name: "人才住房補貼申報", "url": "${ctx}/unit/zfbt/btsq/apply", "target": "main"}, {id: 38, pId: 3, name: "人才住房補貼審覈", "url": "${ctx}/unit/zfbt/btsq/audit/list", "target": "main"}, {id: 39, pId: 3, name: "住房補貼審覈記錄", "url": "${ctx}/unit/zfbt/btsq/applyrecord", "target": "main"} ] },{ id: 5, pId: 0, name: "臺灣實習見習", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 51, pId: 5, name: "臺灣見習崗位申報", "url": "${ctx}/unit/twsxjx/jxgwsb/list", "target": "main"}, {id: 52, pId: 5, name: "臺灣實習見習人員申報(單位)", "url": "${ctx}/unit/twsxjx/jxrysb/list", "target": "main"}, {id: 53, pId: 5, name: "臺灣實習見習人員補貼申報", "url": "${ctx}/unit/twsxjx/jxbtsb/dwpcList", "target": "main"} /* ,{id:54, pId:5,name:"臺灣實習見習人員投保","url":"${ctx}/unit/twsxjx/jxrytb/list","target":"main"}*/ ] }, { id: 4, pId: 0, name: "職業見習", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 41, pId: 4, name: "見習崗位申報", "url": "${ctx}/unit/zyjx/jxgwsb/list", "target": "main"}, {id: 42, pId: 4, name: "見習人員申報(單位)", "url": "${ctx}/unit/zyjx/jxrysb/list", "target": "main"} , {id: 43, pId: 4, name: "見習人員投保(保險公司)", "url": "${ctx}/insurance/zyjx/jxrytb/list", "target": "main"} ] }, { id: 12, pId: 0, name: "人力資源機構年度驗證", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 121, pId: 12, name: "年度驗證申報指南", "url": "${ctx}/unit/ndyz/czzn", "target": "main"}, {id: 122, pId: 12, name: "年度驗證申報", "url": "${ctx}/unit/ndyz/list", "target": "main"} ] }, { id: 6, pId: 0, name: "繼續教育", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 81, pId: 6, name: "繼續教育指南", "url": "${ctx}/unit/jxjy/cxry00/jxjyzn", "target": "main"}, {id: 61, pId: 6, name: "計劃報備", "url": "${ctx}/unit/jxjy/pxjhbb/list", "target": "main"}, <%-- {id:62, pId:6,name:"計劃培訓內容管理","url":"${ctx}/unit/jxjy/jhpxnr/list","target":"main"}, --%> {id: 63, pId: 6, name: "辦班管理", "url": "${ctx}/unit/jxjy/jhpxnr/list2", "target": "main"}, /* {id:61, pId:6,name:"公共課報備","url":"${ctx}/unit/jxjy/pxjhbb/list","target":"main"}, {id:63, pId:6,name:"公共課學時確認","url":"${ctx}/unit/jxjy/jhpxnr/list2","target":"main"}, */ {id: 64, pId: 6, name: "學時確認", "url": "${ctx}/unit/jxjy/qtxsqr/list", "target": "main"}, {id: 65, pId: 6, name: "學時驗證", "url": "${ctx}/unit/jxjy/xsyzxx/list", "target": "main"}, {id: 66, pId: 6, name: "人員資料審覈", "url": "${ctx}/unit/jxjy/ryzlsh/list", "target": "main"}, {id: 67, pId: 6, name: "專技職務審覈", "url": "${ctx}/unit/jxjy/zjzwsh/list", "target": "main"} ] }, { id: 7, pId: 0, name: "幹部調動", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 71, pId: 7, name: "幹部調動申報(單位)", "url": "${ctx}/unit/gbdd/gbddsb/list", "target": "main"} ] }, { id: 8, pId: 0, name: "新引進人才生活補貼", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 81, pId: 8, name: "申報操做指南", "url": "${ctx}/unit/shbt/shbtrysb/sbzn", "target": "main"}, {id: 82, pId: 8, name: "單位基本信息", "url": "${ctx}/unit/shbt/shbtrysb/company", "target": "main"}, {id: 83, pId: 8, name: "補貼人員申報", "url": "${ctx}/unit/shbt/shbtrysb/list", "target": "main"}, ] }, { id: 9, pId: 0, name: "人事代理", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 91, pId: 9, name: "代理", "url": "${ctx}/unit/rsdl/rsdl", "target": "main"}, {id: 92, pId: 9, name: "解約", "url": "${ctx}/unit/rsdl/rsjy", "target": "main"} ] }, { id: 10, pId: 0, name: "幹部調動(機關係統)", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 101, pId: 10, name: "工做人員流動", "url": "${ctx}/unit/bcbnry/bcbnrysb/list", "target": "main"} ] }, { id: 11, pId: 0, name: "臺灣特聘專家", open: false, iconSkin: "iconfont icon-shouyeshouye2", children: [ {id: 111, pId: 11, name: "單位信息設置", "url": "${ctx}/unit/twtpzj/dwxx", "target": "main"}, {id: 112, pId: 11, name: "特聘專家申報", "url": "${ctx}/unit/twtpzj/tpzjsb", "target": "main"}, {id: 113, pId: 11, name: "崗位需求申報", "url": "${ctx}/unit/twtpzj/gwxqsb"} ] } ]; loadleftnav('treeDemo', '', zNodes1); }); </script> </body> </html>
以後在對應的jsp目錄底下加入文件list(用於query),前端用的框架不同,用的BOOTSTRAP(只要看query,由於只作了這個測試)jquery
<%-- Created by IntelliJ IDEA. Description: 單位臺灣專家申報列表 User: hexp Date: 2018/01/18 Time: 10:41 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@include file="/WEB-INF/jsp/common/taglibs.jspf" %> <!DOCTYPE html> <html> <head> <base:meta/> <base:base/> </head> <body> <div class="wrapper-content"> <div class="box"> <div class="box-header with-border"> <div class="form-horizontal form-search" id="form"> <div class="form-group form-group-sm"> <label class="span1-5 control-label">姓名:</label> <div class="span2-5"> <input type="text" id="name" class="form-control"> </div> </div> <div class="form-group form-group-sm"> <label class="span1-5 control-label">性別:</label> <div class="span2-5"> <syscode:sysCode sysCode="discounttype" type="select" id="sex" cssclass="form-control selectpicker"/> </div> <label class="span1-5 control-label">地址:</label> <div class="span2-5"> <syscode:sysCode sysCode="dw_state" type="select" id="address" cssclass="form-control selectpicker"/> </div> </div> <div class="form-btn"> <button type="submit" class="btn btn-primary" id="searchButton"> <i class="iconfont icon-sousuo-sousuo"></i>搜索 </button> <button type="reset" class="btn btn-default" id="resetButton"> <i class="iconfont icon-reset"></i>重置 </button> </div> </div> </div> <div class="box-body"> <div class="btn-group-sm" id="myop"> <button id="btn-add" type="button" class="btn btn-success"> <i class="iconfont icon-xinzeng-copy"></i>申報 </button> <button id="btn-edit" type="button" class="btn btn-primary"> <i class="iconfont icon-bianji"></i>修改 </button> <button id="btn-report" type="button" class="btn btn-info"> <i class="iconfont icon-up "></i>上報 </button> <button id="btn-unreport" type="button" class="btn btn-info"> <i class="iconfont icon-quxiao"></i>撤銷上報 </button> <button id="btn-delete" type="button" class="btn btn-warning"> <i class="iconfont icon-shanchu"></i>刪除 </button> <button id="btn-print" type="button" class="btn btn-primary"> <i class="iconfont icon-207"></i>打印 </button> </div> <table id="table"></table> </div> </div> </div> <script> $(function(){ $table = $('#table').bootstrapTable({ height: 'auto', dataField: "data", url: ctx + "/unit/zhizhi/lsgl/query", striped: true, //是否顯示行間隔色 cache: false, //是否使用緩存,默認爲true,因此通常狀況下須要設置一下這個屬性(*) singleSelect: false,//是否單選 clickToSelect: true,//是否啓用點擊選中行 showToggle: true, //是否顯示詳細視圖和列表視圖的切換按鈕 cardView: false, //是否顯示詳細視圖 showRefresh: true, //是否顯示刷新按鈕 undefinedText: '',//當數據爲 undefined 時顯示的字符 pagination: true, //開啓分頁 sidePagination: 'server',//服務器端分頁 queryParamsType: '',//分頁參數類型,默認爲limit(參數即爲limit、offset),此處設置爲空(參數即爲pageNumber、pageSize) pageNumber: 1,//默認加載頁 pageSize: 10,//每頁數據 pageList: [10, 20, 50],//可選的每頁數據 toolbar: '#myop', method: 'post', sortName: 'state', queryParams: function (params) { params.name = $('#name').val(); params.sex = $('#sex').val(); params.address = $('#address').val(); return params; },//請求服務器數據時的參數 columns: [{ field: 'checkbox', checkbox: true, width: 20 },{ field: 'name', title: '姓名', width: 60, halign: 'center',//表格居中 align: 'left',//數據的對齊方式 sortable: 'true' }, { field: 'sex', title: '性別', width: 20, halign: 'center',//表格居中 align: 'center',//數據的對齊方式 sortable: 'true', code:'aac004' }, { field: 'address', title: '地址', width: 50, align: 'center', sortable: 'true' }] }); $(window).resize(function () { $table.bootstrapTable('resetView', { height: 'auto' }); }); //查詢 $("#searchButton").click(function () { $table.bootstrapTable("refresh"); }); //重置 $("#resetButton").click(function () { $("#form").find("input").each(function () { $(this).val(""); }); $("#form").find("select").each(function () { $(this).val(""); }) }); /** * 申報 */ $("#btn-add").click(function () { var index = layer.open({ type: 2 //Page層類型 , area: ['90%', '90%'] , maxmin: true , title: '臺灣特聘專家申報' , shade: 0.6 //遮罩透明度 , maxmin: true //容許全屏最小化 , anim: 1 //0-6的動畫形式,-1不開啓 , content: ctx + "/unit/twtpzj/tpzjsb/add" ,end : function() { $table.bootstrapTable("refresh"); } }); layer.full(index); }); /** * 修改 */ $("#btn-edit").click(function () { var row = $table.bootstrapTable("getSelections"); if (row.length !=1) { layer.msg("請選擇要修改的數據",{icon:5}); return; } var index = layer.open({ type: 2 //Page層類型 , area: ['90%', '90%'] , maxmin: true , title: '臺灣特聘專家申報' , shade: 0.6 //遮罩透明度 , maxmin: true //容許全屏最小化 , anim: 1 //0-6的動畫形式,-1不開啓 , content: ctx + "/unit/twtpzj/tpzjsb/add?id="+row[0].id ,end : function() { $table.bootstrapTable("refresh"); } }); layer.full(index); }); /** * 上報 */ $("#btn-report").click(function () { var row = $table.bootstrapTable("getSelections"); if (row.length < 1) { layer.msg("請選擇要上報的數據",{icon:5}); return; } var ids = []; for(var i=0;i<row.length;i++){ ids.push(row[i].id); } $.post(ctx+"/unit/twtpzj/tpzjsb/report",{"ids":ids.join(",")},function(data){ if (data.code ==GlobalConst.SUCCESS) { layer.msg(data.message,{icon:1},function () { $table.bootstrapTable("refresh"); }); }else{ layer.msg(data.message,{icon:5}); } },"json"); }); /** * 撤銷上報 */ $("#btn-unreport").click(function () { var row = $table.bootstrapTable("getSelections"); if (row.length < 1) { layer.msg("請選擇要撤銷上報的數據",{icon:5}); return; } var ids = []; for(var i=0;i<row.length;i++){ ids.push(row[i].id); } $.post(ctx+"/unit/twtpzj/tpzjsb/unreport",{"ids":ids.join(",")},function(data){ if (data.code ==GlobalConst.SUCCESS) { layer.msg(data.message,{icon:1},function(){ $table.bootstrapTable("refresh"); }); }else{ layer.msg(data.message,{icon:5}); } },"json"); }); /** * 刪除 */ $("#btn-delete").click(function(){ var row = $table.bootstrapTable("getSelections"); if (row.length < 1) { layer.msg("請選擇要刪除的數據",{icon:5}); return; } var ids = []; for(var i=0;i<row.length;i++){ ids.push(row[i].id); } layer.confirm("只能刪除未上報數據,確認是否刪除?",function () { $.post(ctx+"/unit/twtpzj/tpzjsb/delte",{"ids":ids.join(",")},function(data){ if (data.code ==GlobalConst.SUCCESS) { layer.msg(data.message,{icon:1},function () { $table.bootstrapTable("refresh"); }); }else{ layer.msg(data.message,{icon:5}); } },"json"); }) }); /** * 打印 */ $("#btn-print").click(function () { var row = $table.bootstrapTable("getSelections"); if (row.length < 1) { layer.msg("請選擇要打印的數據",{icon:5}); return; } var index = layer.open({ type: 2 //Page層類型 , area: ['90%', '90%'] , maxmin: true , title: '臺灣特聘專家申報' , shade: 0.6 //遮罩透明度 , maxmin: true //容許全屏最小化 , anim: 1 //0-6的動畫形式,-1不開啓 , content: ctx + "/unit/twtpzj/tpzjsb/print?id="+row[0].id ,end : function() { $table.bootstrapTable("refresh"); } }); layer.full(index); }); }); </script> </body> </html>
以後去內網工程配置,在FramWork WebService底下加入Service就能夠,注意名字寫法已經規定好,還須要在servicesweb
.xml裏面加入配置(注意名字)spring
<service name="LsglWebService" targetNamespace="http://www.ylzinfo.com"> <description>老師管理</description> <!-- 經過ServiceObjectSupplier參數指定SpringServletContextObjectSupplier類來得到Spring的ApplicationContext對象 --> <parameter name="ServiceObjectSupplier"> org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier </parameter> <schema schemaNamespace="http://www.ylzinfo.com"/> <!-- SpringBeanName固定的不能改 helloWorld是spring中註冊的實現類得id --> <parameter name="SpringBeanName">LsglWebService</parameter> <!-- 在這裏最值得注意的是<messageReceivers>元素,該元素用於設置處理WebService方法的處理器。 例如,getGreeting方法有一個返回值,所以,須要使用可處理輸入輸出的RPCMessageReceiver類, 而update方法沒有返回值,所以,須要使用只能處理輸入的RPCInOnlyMessageReceiver類。 --> <messageReceivers> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> </messageReceivers> </service>
package com.ylzinfo.framework.webservice.zhizhi;
/**
* @Description:
* @author: shengzhizhi
* @modifier:
* @date: 2018年7月12日 下午1:41:57
*/
public interface LsglWebService {
String query(String data);
}
package com.ylzinfo.framework.webservice.zhizhi.imp; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.ylzinfo.apps.zhizhi.lsgl.domain.Lsgl_teacher; import com.ylzinfo.apps.zhizhi.lsgl.service.LsglService; import com.ylzinfo.eva.core.web.validate.AjaxPageResponse; import com.ylzinfo.framework.webservice.zhizhi.LsglWebService; /** * @Description: * @author: shengzhizhi * @modifier: * @date: 2018年7月12日 下午1:43:16 */ @Service("LsglWebService") public class LsglWebServiceImpl implements LsglWebService { private static final Logger logger = LoggerFactory.getLogger(LsglWebServiceImpl.class); @Autowired private LsglService lsglService; @Override public String query(String data) { AjaxPageResponse pageResponse = JSONObject.parseObject(data, AjaxPageResponse.class); logger.debug(pageResponse.toString()); try { Lsgl_teacher teacher = JSONObject.parseObject(data, Lsgl_teacher.class); lsglService.query(teacher, pageResponse); } catch (Exception e) { logger.error("系統異常",e); pageResponse.fail("出現異常"); } return JSON.toJSONString(pageResponse); } }
去測試apache