maven
4 天以前 47200ddd17698ae4afefd0d25c6b1b9551bcf14f
src/main/java/com/ruoyi/production/service/impl/SalesLedgerProductionAccountingServiceImpl.java
@@ -27,13 +27,6 @@
    @Override
    public IPage<SalesLedgerProductionAccountingDto> listPage(Page page, SalesLedgerProductionAccountingDto salesLedgerProductionAccountingDto) {
        IPage<SalesLedgerProductionAccountingDto> list = salesLedgerProductionAccountingMapper.listPage(page, salesLedgerProductionAccountingDto);
        list.getRecords().forEach(item -> {
            String[] split = item.getSpecificationModel().split("\\*");
            if(split.length == 2 && isNumeric(split[1])){
                // 计算工资 = 工时定额 * 数量 * 规格
                item.setWages(item.getWages().multiply(new BigDecimal(split[1])));
            }
        });
        return list;
    }