背景调查 新增 批量添加接口
This commit is contained in:
@@ -35,6 +35,14 @@ public interface HotakeReferenceCheckMapper
|
||||
*/
|
||||
public int insertHotakeReferenceCheck(HotakeReferenceCheck hotakeReferenceCheck);
|
||||
|
||||
/**
|
||||
* 批量新增参考检查
|
||||
*
|
||||
* @param hotakeReferenceCheckList 参考检查列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchInsertHotakeReferenceCheck(List<HotakeReferenceCheck> hotakeReferenceCheckList);
|
||||
|
||||
/**
|
||||
* 修改参考检查
|
||||
*
|
||||
|
||||
@@ -35,6 +35,14 @@ public interface IHotakeReferenceCheckService
|
||||
*/
|
||||
public HotakeReferenceCheck insertHotakeReferenceCheck(HotakeReferenceCheck hotakeReferenceCheck);
|
||||
|
||||
/**
|
||||
* 批量新增参考检查
|
||||
*
|
||||
* @param hotakeReferenceCheckList 参考检查列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchInsertHotakeReferenceCheck(List<HotakeReferenceCheck> hotakeReferenceCheckList);
|
||||
|
||||
/**
|
||||
* 修改参考检查
|
||||
*
|
||||
|
||||
@@ -73,6 +73,24 @@ public class HotakeReferenceCheckServiceImpl extends BaseServiceImpl implements
|
||||
return hotakeReferenceCheck;
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增参考检查
|
||||
*
|
||||
* @param hotakeReferenceCheckList 参考检查列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@Override
|
||||
public int batchInsertHotakeReferenceCheck(List<HotakeReferenceCheck> hotakeReferenceCheckList) {
|
||||
if (CollectionUtil.isEmpty(hotakeReferenceCheckList)) {
|
||||
return 0;
|
||||
}
|
||||
for (HotakeReferenceCheck hotakeReferenceCheck : hotakeReferenceCheckList) {
|
||||
fill(FillTypeEnum.INSERT.getCode(), hotakeReferenceCheck);
|
||||
}
|
||||
return hotakeReferenceCheckMapper.batchInsertHotakeReferenceCheck(hotakeReferenceCheckList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改参考检查
|
||||
*
|
||||
|
||||
@@ -77,6 +77,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="batchInsertHotakeReferenceCheck" parameterType="java.util.List">
|
||||
insert into hotake_reference_check
|
||||
(company, full_name, position, relationship, email, save_job_experience, del_flag, create_by, create_time, update_by, update_time, remark)
|
||||
values
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(
|
||||
#{item.company},
|
||||
#{item.fullName},
|
||||
#{item.position},
|
||||
#{item.relationship},
|
||||
#{item.email},
|
||||
#{item.saveJobExperience},
|
||||
#{item.delFlag},
|
||||
#{item.createBy},
|
||||
#{item.createTime},
|
||||
#{item.updateBy},
|
||||
#{item.updateTime},
|
||||
#{item.remark}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<update id="updateHotakeReferenceCheck" parameterType="HotakeReferenceCheck">
|
||||
update hotake_reference_check
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
|
||||
Reference in New Issue
Block a user