新增费用科目BUG修改
This commit is contained in:
+14
@@ -18,6 +18,7 @@ import com.mhd.bms.domain.billOperationLog.repository.todo.BillOperationLogDO;
|
||||
import com.mhd.bms.domain.billOperationLog.service.BillOperationLogDomainService;
|
||||
import com.mhd.bms.domain.billingStatement.entity.BillingStatement;
|
||||
import com.mhd.bms.domain.billingStatement.repository.po.BillingStatementPO;
|
||||
import com.mhd.bms.domain.billingStatement.repository.todo.BillingStatementDO;
|
||||
import com.mhd.bms.domain.billingStatement.service.BillingStatementDomainService;
|
||||
import com.mhd.bms.domain.ncLog.entity.NcLog;
|
||||
import com.mhd.bms.domain.ncLog.repository.mapper.NcLogMapper;
|
||||
@@ -784,6 +785,19 @@ public class BillManageApplicationService {
|
||||
billDetailDO.setUpdateBy(loginUser.getUserid());
|
||||
billDetailDO.setUpdateByName(loginUser.getUserPo().getUserName());
|
||||
billDetailDO.setUpdateTime(new Date());
|
||||
// 同步更新计费流水的费用科目、服务项(因为这些字段在 billing_statement 表,不在 bill_detail 表)
|
||||
if (billDetailPO.getBillingStatementId() != null) {
|
||||
BillingStatementDO billingStatementDO = new BillingStatementDO();
|
||||
billingStatementDO.setBillingStatementId(billDetailPO.getBillingStatementId());
|
||||
billingStatementDO.setFirstSubjectCode(detailDTO.getFirstSubjectCode());
|
||||
billingStatementDO.setFirstSubjectName(detailDTO.getFirstSubjectName());
|
||||
billingStatementDO.setServiceItemsCode(detailDTO.getServiceItemsCode());
|
||||
billingStatementDO.setServiceItemsName(detailDTO.getServiceItemsName());
|
||||
billingStatementDO.setUpdateBy(loginUser.getUserid());
|
||||
billingStatementDO.setUpdateByName(loginUser.getUserPo().getUserName());
|
||||
billingStatementDO.setUpdateTime(new Date());
|
||||
billingStatementApplicationService.update(billingStatementDO);
|
||||
}
|
||||
Boolean flag = billDetailDomainService.update(billDetailDO);
|
||||
// 重新计算账单总金额并更新主表
|
||||
List<BillDetailPO> allDetails = billDetailDomainService.getDetailsByBillManageId(billManagePO.getBillManageId());
|
||||
|
||||
Reference in New Issue
Block a user