| | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDate; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | stockInRecordDto.setType("0"); |
| | | stockInRecordDto.setRemark(stockInventoryDto.getRemark()); |
| | | stockInRecordService.add(stockInRecordDto); |
| | | |
| | | StockInRecord stockInRecord = stockInRecordService.getOne(Wrappers.<StockInRecord>lambdaQuery() |
| | | .eq(StockInRecord::getRecordId, stockInRecordDto.getRecordId()) |
| | | .eq(StockInRecord::getRecordType, stockInRecordDto.getRecordType()) |
| | | ); |
| | | stockInRecordService.batchApprove(Collections.singletonList(stockInRecord.getId()),1); |
| | | |
| | | return true; |
| | | } |
| | | |