瀏覽代碼

Merge remote-tracking branch 'origin/master'

master^2
CANCERYS\kw093 17 小時之前
父節點
當前提交
5161fa334d
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. +2
    -2
      src/main/java/com/ffii/fpsms/modules/jobOrder/service/JobOrderService.kt
  2. +2
    -2
      src/main/java/com/ffii/fpsms/modules/jobOrder/web/JobOrderController.kt

+ 2
- 2
src/main/java/com/ffii/fpsms/modules/jobOrder/service/JobOrderService.kt 查看文件

@@ -642,7 +642,7 @@ open class JobOrderService(
throw FileNotFoundException("Report file not found: $FGSTOCKINLABEL_PDF")
}
val inputStream = resource.inputStream
val fgPickRecordLabel = JasperCompileManager.compileReport(inputStream)
val fgStockInLabel = JasperCompileManager.compileReport(inputStream)

val params = mutableMapOf<String, Any>()

@@ -685,7 +685,7 @@ open class JobOrderService(

val filename = params["jobOrderCode"] as String
return mapOf(
"report" to PdfUtils.fillReport(fgPickRecordLabel, fields, params),
"report" to PdfUtils.fillReport(fgStockInLabel, fields, params),
"filename" to filename
)
}


+ 2
- 2
src/main/java/com/ffii/fpsms/modules/jobOrder/web/JobOrderController.kt 查看文件

@@ -208,7 +208,7 @@ fun recordSecondScanIssue(
jobOrderService.printPickRecord(request)
}

@PostMapping("/FGPickRecordLabel")
@PostMapping("/FGStockInLabel")
@Throws(UnsupportedEncodingException::class, NoSuchMessageException::class, ParseException::class, Exception::class)
fun exportFGStockInLabel(@Valid @RequestBody request: ExportFGStockInLabelRequest, response: HttpServletResponse){
response.characterEncoding = "utf-8"
@@ -220,7 +220,7 @@ fun recordSecondScanIssue(
out.write(JasperExportManager.exportReportToPdf(jasperPrint))
}

@GetMapping("/print-FGPickRecordLabel")
@GetMapping("/print-FGStockInLabel")
fun printStockInLabel(@ModelAttribute request: PrintFGStockInLabelRequest){
jobOrderService.printFGStockInLabel(request)
}


Loading…
取消
儲存