2022-03-15 09:34:53 +08:00
|
|
|
package com.engine.salary.service.impl;
|
|
|
|
|
|
|
|
|
|
import com.engine.core.impl.Service;
|
2022-03-15 17:39:19 +08:00
|
|
|
import com.engine.salary.biz.SIArchivesBiz;
|
2022-03-16 18:26:49 +08:00
|
|
|
import com.engine.salary.cmd.siarchives.SIArchivesTipsCmd;
|
2022-03-18 18:00:51 +08:00
|
|
|
import com.engine.salary.entity.siarchives.param.InsuranceArchivesListParam;
|
2022-03-16 18:26:49 +08:00
|
|
|
import com.engine.salary.entity.siarchives.param.InsuranceArchivesSaveParam;
|
2022-03-15 17:39:19 +08:00
|
|
|
import com.engine.salary.enums.sicategory.WelfareTypeEnum;
|
2022-03-15 09:34:53 +08:00
|
|
|
import com.engine.salary.service.SIArchivesService;
|
2022-03-15 17:39:19 +08:00
|
|
|
import weaver.general.Util;
|
2022-03-15 09:34:53 +08:00
|
|
|
|
2022-03-15 17:39:19 +08:00
|
|
|
import java.util.HashMap;
|
2022-03-15 09:34:53 +08:00
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Author weaver_cl
|
|
|
|
|
* @Description: TODO
|
|
|
|
|
* @Date 2022/3/11
|
|
|
|
|
* @Version V1.0
|
|
|
|
|
**/
|
|
|
|
|
public class SIArchivesServiceImpl extends Service implements SIArchivesService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Map<String, Object> getTips(Map<String, Object> params) {
|
|
|
|
|
return commandExecutor.execute(new SIArchivesTipsCmd(params,user));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Map<String, Object> getBaseForm(Map<String, Object> params) {
|
2022-03-15 17:39:19 +08:00
|
|
|
Map<String, Object> apidatas = new HashMap<>(16);
|
|
|
|
|
SIArchivesBiz siArchivesBiz = new SIArchivesBiz();
|
|
|
|
|
WelfareTypeEnum welfareTypeEnum = (WelfareTypeEnum)params.get("welfareTypeEnum");
|
|
|
|
|
Long employeeId = Long.valueOf(Util.null2String(params.get("employeeId")));
|
2022-03-16 17:04:21 +08:00
|
|
|
apidatas = siArchivesBiz.getBaseForm(welfareTypeEnum, employeeId,(long) user.getUID(),user);
|
|
|
|
|
return apidatas;
|
|
|
|
|
}
|
2022-03-15 17:39:19 +08:00
|
|
|
|
2022-03-16 17:04:21 +08:00
|
|
|
@Override
|
|
|
|
|
public Map<String, Object> getPaymentForm(Map<String, Object> params) {
|
|
|
|
|
Map<String, Object> apidatas = new HashMap<>(16);
|
|
|
|
|
SIArchivesBiz siArchivesBiz = new SIArchivesBiz();
|
|
|
|
|
WelfareTypeEnum welfareTypeEnum = (WelfareTypeEnum)params.get("welfareTypeEnum");
|
|
|
|
|
Long employeeId = Long.valueOf(Util.null2String(params.get("employeeId")));
|
|
|
|
|
Long schemeId = Long.valueOf(Util.null2String(params.get("schemeId")));
|
|
|
|
|
apidatas = siArchivesBiz.getPaymentForm(user,welfareTypeEnum, employeeId,(long) user.getUID(),schemeId);
|
2022-03-15 17:39:19 +08:00
|
|
|
return apidatas;
|
2022-03-15 09:34:53 +08:00
|
|
|
}
|
2022-03-16 18:26:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String insert(InsuranceArchivesSaveParam param) {
|
|
|
|
|
SIArchivesBiz siArchivesBiz = new SIArchivesBiz();
|
|
|
|
|
siArchivesBiz.insert(param,(long) user.getUID());
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2022-03-18 18:00:51 +08:00
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Map<String, Object> listPage(InsuranceArchivesListParam param) {
|
|
|
|
|
Map<String, Object> apidatas = new HashMap<>(16);
|
|
|
|
|
SIArchivesBiz siArchivesBiz = new SIArchivesBiz();
|
|
|
|
|
apidatas = siArchivesBiz.listPage(param,(long) user.getUID());
|
|
|
|
|
return apidatas;
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-22 19:47:46 +08:00
|
|
|
@Override
|
|
|
|
|
public Map<String, Object> getSearchCondition(Map<String, Object> param) {
|
|
|
|
|
Map<String, Object> apidatas = new HashMap<>(16);
|
|
|
|
|
SIArchivesBiz siArchivesBiz = new SIArchivesBiz();
|
|
|
|
|
apidatas = siArchivesBiz.getSearchCondition(user);
|
|
|
|
|
return apidatas;
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-18 18:00:51 +08:00
|
|
|
|
2022-03-15 09:34:53 +08:00
|
|
|
}
|