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(); }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。