|
|
@ -1,9 +1,11 @@ |
|
|
|
package com.epmet.service.impl; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
@ -115,10 +117,15 @@ public class IcEmployeeRegisterServiceImpl extends BaseServiceImpl<IcEmployeeReg |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void delete(List<String> ids) { |
|
|
|
public void delete(List<String> ids,String operUserId) { |
|
|
|
if (CollectionUtils.isNotEmpty(ids)){ |
|
|
|
baseDao.deleteBatchIds(ids); |
|
|
|
baseDao.delRegisterDetail(ids); |
|
|
|
LambdaUpdateWrapper<IcEmployeeRegisterEntity> updateWrapper=new LambdaUpdateWrapper<>(); |
|
|
|
updateWrapper.in(IcEmployeeRegisterEntity::getId,ids); |
|
|
|
updateWrapper.set(IcEmployeeRegisterEntity::getDelFlag, NumConstant.ONE_STR) |
|
|
|
.set(IcEmployeeRegisterEntity::getUpdatedBy,operUserId) |
|
|
|
.set(IcEmployeeRegisterEntity::getUpdatedTime,new Date()); |
|
|
|
baseDao.update(null,updateWrapper); |
|
|
|
baseDao.delRegisterDetail(ids,operUserId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|