| | |
| | | import java.util.Map; |
| | | import java.math.BigDecimal; |
| | | |
| | | import com.ruoyi.common.enums.SystemDataNoEnum; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import javax.annotation.Resource; |
| | |
| | | import com.ruoyi.cwgl.domain.vo.PayableBillCreateVo; |
| | | import com.ruoyi.system.domain.SysConfig; |
| | | import com.ruoyi.system.mapper.SysConfigMapper; |
| | | import com.ruoyi.system.service.ISystemDataNoService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | private IPayableBillManagementService payableBillManagementService; |
| | | @Resource |
| | | private SysConfigMapper sysConfigMapper; |
| | | |
| | | @Autowired |
| | | ISystemDataNoService systemDataNoService; |
| | | /** |
| | | * 查询应付费用管理 |
| | | * |
| | |
| | | String payableAmountStr = calculatePayableAmountStr(payableFeeManagement.getPayableFeeDetailList()); |
| | | payableFeeManagement.setPayableAmountStr(payableAmountStr); |
| | | } |
| | | String noByKey = systemDataNoService.getNoByKey(SystemDataNoEnum.YF); |
| | | payableFeeManagement.setSystemNo(noByKey); |
| | | |
| | | // 保存主实体 |
| | | int result = payableFeeManagementMapper.insertPayableFeeManagement(payableFeeManagement); |
| | |
| | | bill.setIsInternalSettlement(billCreateVo.getIsInternalSettlement()); |
| | | bill.setInternalSettlementUnit(billCreateVo.getInternalSettlementUnit()); |
| | | bill.setDocumentCount(statisticsVo.getDocumentCount()); |
| | | bill.setCreateBy(SecurityUtils.getUsername()); |
| | | |
| | | bill.setExchangeRate(statisticsVo.getRate()); |
| | | bill.setStatus("0"); // 草稿状态 |
| | | bill.setCreateTime(DateUtils.getNowDate()); |
| | |
| | | bill.setTotalAmount(statisticsVo.getTotalAmountHkd()); |
| | | bill.setCnyAmount(statisticsVo.getTotalAmountRmb()); |
| | | } |
| | | String noByKey = systemDataNoService.getNoByKey(SystemDataNoEnum.YFZD); |
| | | bill.setSystemNo(noByKey); |
| | | |
| | | // 保存应付账单记录 |
| | | int result = payableBillManagementService.insertPayableBillManagement(bill); |