|
|
@@ -0,0 +1,29 @@
|
|
|
+package nckd.jxccl.swc.init.plugin.other;
|
|
|
+
|
|
|
+import kd.bos.context.RequestContext;
|
|
|
+import kd.bos.entity.validate.ErrorLevel;
|
|
|
+import kd.bos.entity.validate.ValidationErrorInfo;
|
|
|
+import kd.bos.exception.KDException;
|
|
|
+import kd.bos.logging.Log;
|
|
|
+import kd.bos.logging.LogFactory;
|
|
|
+import kd.bos.schedule.executor.AbstractTask;
|
|
|
+import kd.sdk.plugin.Plugin;
|
|
|
+import nckd.jxccl.swc.init.business.BaseMedicalAllowanceServiceImpl;
|
|
|
+
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 后台任务插件
|
|
|
+ */
|
|
|
+public class BaseMedicalAllowanceTask extends AbstractTask implements Plugin {
|
|
|
+
|
|
|
+ private static final Log logger = LogFactory.getLog(BaseMedicalAllowanceTask.class);
|
|
|
+ @Override
|
|
|
+ public void execute(RequestContext requestContext, Map<String, Object> map) throws KDException {
|
|
|
+
|
|
|
+ BaseMedicalAllowanceServiceImpl baseMedicalAllowanceService = new BaseMedicalAllowanceServiceImpl();
|
|
|
+ Map<String, String> result= baseMedicalAllowanceService.calcBaseMedicalAllowanceForAll();
|
|
|
+
|
|
|
+ logger.info("当年度待遇标准计算任务,信息:" + result.get("msg"));
|
|
|
+ }
|
|
|
+}
|