| | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.ruoyi.cwgl.mapper.PayableFeeManagementMapper; |
| | | import com.ruoyi.cwgl.service.IPayableBillManagementLogService; |
| | | import com.ruoyi.cwgl.service.IPayableFeeManagementService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | private PayableBillManagementMapper payableBillManagementMapper; |
| | | @Autowired |
| | | private IPayableBillManagementLogService logService; |
| | | @Resource |
| | | private PayableFeeManagementMapper payableFeeManagementMapper; |
| | | |
| | | /** |
| | | * 查询应付账单管理 |
| | |
| | | bill.setStatus("2"); |
| | | bill.setUpdateTime(DateUtils.getNowDate()); |
| | | |
| | | return updatePayableBillManagement(bill); |
| | | int result = updatePayableBillManagement(bill); |
| | | |
| | | if (result > 0) { |
| | | // 作废应付账单后,需要将关联的应付费用记录恢复为待生成账单状态 |
| | | String relatedBillNo = bill.getSystemNo(); |
| | | if (relatedBillNo != null && !relatedBillNo.isEmpty()) { |
| | | payableFeeManagementMapper.updatePayableFeeManagementByRelatedBillNo(relatedBillNo); |
| | | } |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | } |