52 lines
1.3 KiB
Java
52 lines
1.3 KiB
Java
|
|
package com.engine.salary.service.impl;
|
||
|
|
|
||
|
|
import com.engine.core.impl.Service;
|
||
|
|
import com.engine.salary.entity.extemp.param.ExtEmpQueryParam;
|
||
|
|
import com.engine.salary.entity.extemp.po.ExtEmpPO;
|
||
|
|
import com.engine.salary.mapper.extemp.ExternalEmployeeMapper;
|
||
|
|
import com.engine.salary.service.ExtEmpService;
|
||
|
|
import com.engine.salary.util.db.MapperProxyFactory;
|
||
|
|
import org.apache.commons.collections4.CollectionUtils;
|
||
|
|
|
||
|
|
import java.util.Collection;
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 累计专项
|
||
|
|
* <p>Copyright: Copyright (c) 2022</p>
|
||
|
|
* <p>Company: 泛微软件</p>
|
||
|
|
*
|
||
|
|
* @author qiantao
|
||
|
|
* @version 1.0
|
||
|
|
**/
|
||
|
|
public class ExtEmpServiceImpl extends Service implements ExtEmpService {
|
||
|
|
|
||
|
|
|
||
|
|
private ExternalEmployeeMapper getExternalEmployeeMapper() {
|
||
|
|
return MapperProxyFactory.getProxy(ExternalEmployeeMapper.class);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public List<ExtEmpPO> list(ExtEmpQueryParam param) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public void save(ExtEmpPO po) {
|
||
|
|
getExternalEmployeeMapper().insertIgnoreNull(po);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public void update(ExtEmpPO po) {
|
||
|
|
getExternalEmployeeMapper().updateIgnoreNull(po);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public void delete(Collection<Long> ids) {
|
||
|
|
if (CollectionUtils.isNotEmpty(ids)) {
|
||
|
|
ids.forEach(getExternalEmployeeMapper()::delete);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|