PerfEvaluObjectService.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.kingdee.eas.hr.perf.service;
  2. import com.kingdee.bos.BOSException;
  3. import com.kingdee.bos.Context;
  4. import com.kingdee.bos.bsf.service.app.IHRMsfService;
  5. import com.kingdee.eas.common.EASBizException;
  6. import com.kingdee.eas.hr.perf.handler.PerfEvaluObjectListHandlerEx;
  7. import com.kingdee.shr.base.syssetting.exception.SHRWebException;
  8. import java.util.HashMap;
  9. import java.util.Map;
  10. /**
  11. * @author qingwu
  12. * @date 2024/12/18
  13. * @apiNote
  14. */
  15. public class PerfEvaluObjectService implements IHRMsfService {
  16. @Override
  17. public Object process(Context context, Map<String, Object> map) throws EASBizException, BOSException {
  18. PerfEvaluObjectListHandlerEx perfEvaluObjectListHandlerEx = new PerfEvaluObjectListHandlerEx();
  19. String billId = (String) map.get("billId");
  20. Integer day = (Integer) map.get("day");
  21. Map result = new HashMap();
  22. try {
  23. perfEvaluObjectListHandlerEx.addPerfEvaObject(billId == null ? "" : billId, day == null ? 0 : day);
  24. } catch (SHRWebException e) {
  25. e.printStackTrace();
  26. throw new RuntimeException(e);
  27. }
  28. //result.put("map", map);
  29. result.put("code", "200");
  30. result.put("msg", "²Ù×÷³É¹¦");
  31. return result;
  32. }
  33. }