1 public int action() throws Throwable {
2
3 misc = generateManItemSearchCondition();
4 lr.start_transaction("searchItemList_man");
5 try {
6 //业务方法
7 items = searchService.searchItemList(misc);
8 if (items.isSuccess()) {
9 lr.end_transaction("searchItemList_man",lr.PASS);
10
11 } else {
12 lr.end_transaction("searchItemList_man",lr.FAIL);
13 }
14 orderMap.clear();
15 productIdSet.clear();
16 productStatusList.clear();
17 } catch (Exception e) {
18
19
20 e.printStackTrace();
21 }
22
23
24 misc = null;
25 items = null;
26 return 0;
27 }//end of action
|
catch (Exception e) {
// TODO Auto-generated catch block
lr.end_transaction("searchItemList_man",lr.FAIL);
e.printStackTrace();
}
|
1 Action()
2 {
3
4 //返回的字符串
5 char resp_txt[200] = {0};
6 //写入流的数据
7 long myfile;
8 //当前日期时间
9 long now;
10 .....
11 ......
12
13 return 0;
14 }
|