123456789101112131415161718192021222324252627282930313233 |
- package com.kingdee.eas.custom.shuiyou.service;
- import com.alibaba.fastjson.JSONArray;
- import com.alibaba.fastjson.JSONObject;
- import com.kingdee.bos.BOSException;
- import com.kingdee.bos.Context;
- import com.kingdee.bos.bsf.service.app.IHRMsfService;
- import com.kingdee.eas.common.EASBizException;
- import org.apache.log4j.Logger;
- import java.util.Map;
- public class PensionInfoService implements IHRMsfService {
- private static Logger logger = Logger.getLogger("com.kingdee.eas.custom.shuiyou.service.PensionInfoService");
- @Override
- public Object process(Context context, Map map) throws EASBizException, BOSException {
- logger.error("com.kingdee.eas.custom.shuiyou.service.PensionInfoService.process");
- Object o = map.get("result");
- if (o == null) {
- throw new RuntimeException("参数result为空");
- }
- JSONObject jsonObject = JSONObject.parseObject(o.toString());
- logger.error("入参:"+jsonObject);
- JSONObject body = jsonObject.getJSONObject("body");
- //明细结果
- JSONArray mxjg = body.getJSONArray("mxjg");
- //累计结果
- JSONArray ljjg = body.getJSONArray("ljjg");
- return null;
- }
- }
|