福利方案修复更新操作

This commit is contained in:
Chengliang 2022-03-09 17:46:03 +08:00
parent 927b25908e
commit 5cb2f02e69
2 changed files with 7 additions and 1 deletions

View File

@ -2,11 +2,14 @@ package com.engine.salary.biz;
import com.engine.salary.entity.sicategory.dto.ICategoryFormDTO;
import com.engine.salary.entity.sicategory.po.ICategoryPO;
import com.engine.salary.exception.SalaryRunTimeException;
import com.engine.salary.mapper.sicategory.ICategoryMapper;
import com.mzlion.core.utils.BeanUtils;
import org.apache.ibatis.session.SqlSession;
import weaver.conn.mybatis.MyBatisFactory;
import java.util.Objects;
/**
* @Author weaver_cl
* @Description: TODO
@ -26,6 +29,9 @@ public class SICategoryBiz {
if (id != null) {
ICategoryPO iCategoryPO = getByID(id);
ICategoryFormDTO iCategoryFormDTO = new ICategoryFormDTO();
if (Objects.isNull(iCategoryPO)) {
throw new SalaryRunTimeException("数据不存在");
}
BeanUtils.copyProperties(iCategoryPO,iCategoryFormDTO);
return iCategoryFormDTO;
}

View File

@ -104,7 +104,7 @@
UPDATE hrsa_scheme_detail
SET delete_type = 1
WHERE delete_type = 0
AND base_id IN
AND primary_id IN
<foreach collection="primaryIds" open="(" item="primaryIds" separator="," close=")">
#{primaryIds}
</foreach>