仓码入仓单打印
This commit is contained in:
+4
-5
@@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -191,13 +192,11 @@ public class StockInOrderApi extends BaseController {
|
||||
@PostMapping("/queryNoticePrint")
|
||||
public AjaxResult queryNoticePrint(@RequestBody StockInOrderDTO stockInOrderDTO) {
|
||||
StockInOrderDO stockInOrderDO = stockInOrderAssembler.toDO(stockInOrderDTO);
|
||||
List<StockInOrderPO> headerList = stockInOrderApplicationService.queryNoticePrint(stockInOrderDO);
|
||||
List<StockInOrderPO> headerList = stockInOrderApplicationService.queryNoticePrint(stockInOrderDO);
|
||||
List<InMaterialDetailPO> detailList = stockInOrderApplicationService.queryNoticePrintDetail(stockInOrderDO);
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
if (!headerList.isEmpty()) {
|
||||
result.put("header", headerList.get(0));
|
||||
}
|
||||
result.put("detailList", detailList);
|
||||
result.put("headerList", headerList == null ? Collections.emptyList() : headerList);
|
||||
result.put("detailList", detailList == null ? Collections.emptyList() : detailList);
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user