加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

查询和分页 的 WSIMP

发布时间:2020-12-17 01:12:05 所属栏目:安全 来源:网络整理
导读:applicationContext.xml ?!-- 按合同申请软件申请单WebService -- ??? jaxws:endpoint id="poApplyWS" implementor="#poApplyWsImpl" ??????? address="/poApplyWS" ??????? jaxws:inInterceptors ??????????? ref bean="logInterceptor" / ??????????? ref

applicationContext.xml

?<!-- 按合同申请软件申请单WebService -->
??? <jaxws:endpoint id="poApplyWS" implementor="#poApplyWsImpl"
??????? address="/poApplyWS">
??????? <jaxws:inInterceptors>
??????????? <ref bean="logInterceptor" />
??????????? <ref bean="authInterceptor" />
??????? </jaxws:inInterceptors>
??? </jaxws:endpoint>

?

?

??

PoApplyWsImpl.java

??? /**
???? * 根据产品线、产品族、产品、审核人来查询所有.
???? * @param aJsonStr 客户端传递过来的aJsonStr转成的字符串
???? * @return 返回结果字符串

???? * @throws ApplicationException ApplicationException
???? */
??? public String getSecondCheckerInfo(String aJsonStr)
??????? throws ApplicationException
??? {
??????? Map<String,Object> aMap = JsonUtil.jsonStringToMap(aJsonStr);
??????? List<Map<String,Object>> aCheckerInfo = mPoApplySev.
??????????????????? getSecondCheckerInfo(aMap);
??????? String resultAllJsonStr = JsonUtil.transferStringByList(aCheckerInfo);

??????? int allRecords = mPoApplySev.getSecondCheckerTotalRecordsByidS(aMap);
??????? JSONObject json = new JSONObject();
??????? try
??????? {
??????????? //存入记录总数
??????????? json.put("total_row",allRecords);
??????????? //存入记录列表
??????????? json.put("secondCheckerList",resultAllJsonStr);
??????? }
??????? catch (JSONException e)
??????? {
??????????? e.printStackTrace();
??????? }

??????? return json.toString(); ??? }

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读