| | |
| | | import cn.iocoder.yudao.module.hrm.dal.mysql.salary.HrmSalaryPaymentDetailMapper; |
| | | import cn.iocoder.yudao.module.hrm.dal.mysql.salary.HrmSalaryPaymentMapper; |
| | | import cn.iocoder.yudao.module.hrm.dal.redis.HrmNoRedisDAO; |
| | | import cn.iocoder.yudao.module.system.api.storage.StorageAttachmentApi; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | private HrmSalaryCalculationMapper salaryCalculationMapper; |
| | | @Resource |
| | | private HrmNoRedisDAO noRedisDAO; |
| | | @Resource |
| | | private StorageAttachmentApi storageAttachmentApi; |
| | | |
| | | @Override |
| | | public PageResult<HrmSalaryPaymentDO> getSalaryPaymentPage(HrmSalaryPaymentPageReqVO pageReqVO) { |
| | |
| | | for (HrmSalaryPaymentDetailDO detail : details) { |
| | | salaryPaymentDetailMapper.deleteById(detail.getId()); |
| | | } |
| | | // 删除附件关联 |
| | | storageAttachmentApi.deleteAttachmentsByRecord("hrm_salary_payment", id); |
| | | // 删除发放台账 |
| | | salaryPaymentMapper.deleteById(id); |
| | | } |