|
|
|
@ -173,13 +173,13 @@ public class MesProduceSnPrintController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/by-packageno/reprint-pack")
|
|
|
|
|
@ApiOperation(value = "根据包装条码或者零件条码补打印包装条码")
|
|
|
|
|
public ResultBean doRePrintPackByPackageNoOrProductSn(@RequestBody MesProduceSnPrintModel mesProduceSnPrintModel) {
|
|
|
|
|
@ApiOperation(value = "根据包装条码补打印包装条码标签")
|
|
|
|
|
public ResultBean doRePrintPackByPackageNo(@RequestBody MesProduceSnPrintModel mesProduceSnPrintModel) {
|
|
|
|
|
try {
|
|
|
|
|
ValidatorBean.checkNotNull(mesProduceSnPrintModel.getPackageNo(), "包装条码不能为空");
|
|
|
|
|
ValidatorBean.checkNotNull(mesProduceSnPrintModel.getOrganizeCode(), "工厂代码不能为空");
|
|
|
|
|
ValidatorBean.checkNotNull(mesProduceSnPrintModel.getUserName(), "操作人不能为空");
|
|
|
|
|
return ResultBean.success("查询成功").setResultObject(mesProduceSnPrintService.doRePrintPackByPackageNoOrProductSn(mesProduceSnPrintModel));
|
|
|
|
|
return ResultBean.success("查询成功").setResultObject(mesProduceSnPrintService.doRePrintPackByPackageNo(mesProduceSnPrintModel));
|
|
|
|
|
} catch (ImppBusiException imppException) {
|
|
|
|
|
return ResultBean.fail(imppException);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|