Commit 764555aa authored by hongguangwu's avatar hongguangwu

MVP1.5-薪资导入优化(社保基数)

parent 2d64af9b
...@@ -22,6 +22,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -22,6 +22,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.social.entity.SysPayProportion; import com.yifu.cloud.plus.v1.yifu.social.entity.SysPayProportion;
import java.util.List;
/** /**
* 公积金政策对应的缴费比例表 * 公积金政策对应的缴费比例表
* *
...@@ -36,4 +38,13 @@ public interface SysPayProportionService extends IService<SysPayProportion> { ...@@ -36,4 +38,13 @@ public interface SysPayProportionService extends IService<SysPayProportion> {
* @return * @return
*/ */
IPage<SysPayProportion> getSysPayProportionPage(Page<SysPayProportion> page, SysPayProportion sysPayProportion); IPage<SysPayProportion> getSysPayProportionPage(Page<SysPayProportion> page, SysPayProportion sysPayProportion);
/**
* @param sysBaseSetId
* @Description: 获取比例
* @Author: hgw
* @Date: 2023/2/13 15:24
* @return: java.util.List<com.yifu.cloud.plus.v1.yifu.social.entity.SysPayProportion>
**/
List<SysPayProportion> getSysPayProportionByBaseId(String sysBaseSetId);
} }
...@@ -157,6 +157,9 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper, ...@@ -157,6 +157,9 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
SysBaseSetInfo old = this.getById(sysBaseSetInfo.getId()); SysBaseSetInfo old = this.getById(sysBaseSetInfo.getId());
if (old == null || Common.isEmpty(old.getId())) { if (old == null || Common.isEmpty(old.getId())) {
return R.failed("根据id未找到基数配置!" + sysBaseSetInfo.getId()); return R.failed("根据id未找到基数配置!" + sysBaseSetInfo.getId());
} else {
List<SysPayProportion> payProportionList = sysPayProportionService.getSysPayProportionByBaseId(sysBaseSetInfo.getId());
old.setFundProList(payProportionList);
} }
SysBaseSetInfo baseSetInfo = null; SysBaseSetInfo baseSetInfo = null;
// where (b.apply_start_date < '2023-01' and ( b.apply_end_date > '2023-01' or b.apply_end_date is null) ) or b.apply_start_date > '2023-01' // where (b.apply_start_date < '2023-01' and ( b.apply_end_date > '2023-01' or b.apply_end_date is null) ) or b.apply_start_date > '2023-01'
......
...@@ -24,6 +24,8 @@ import com.yifu.cloud.plus.v1.yifu.social.mapper.SysPayProportionMapper; ...@@ -24,6 +24,8 @@ import com.yifu.cloud.plus.v1.yifu.social.mapper.SysPayProportionMapper;
import com.yifu.cloud.plus.v1.yifu.social.service.SysPayProportionService; import com.yifu.cloud.plus.v1.yifu.social.service.SysPayProportionService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* 公积金政策对应的缴费比例表 * 公积金政策对应的缴费比例表
* *
...@@ -42,4 +44,9 @@ public class SysPayProportionServiceImpl extends ServiceImpl<SysPayProportionMap ...@@ -42,4 +44,9 @@ public class SysPayProportionServiceImpl extends ServiceImpl<SysPayProportionMap
public IPage<SysPayProportion> getSysPayProportionPage(Page<SysPayProportion> page, SysPayProportion sysPayProportion) { public IPage<SysPayProportion> getSysPayProportionPage(Page<SysPayProportion> page, SysPayProportion sysPayProportion) {
return baseMapper.getSysPayProportionPage(page, sysPayProportion); return baseMapper.getSysPayProportionPage(page, sysPayProportion);
} }
@Override
public List<SysPayProportion> getSysPayProportionByBaseId(String sysBaseSetId) {
return baseMapper.selectByPrimaryId(sysBaseSetId);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment