|
@@ -261,7 +261,8 @@ public class BizCertificateController extends BaseController {
|
|
|
@PostMapping("/generate")
|
|
|
@Log(title = "生成二维码和条形码", businessType = BusinessType.UPDATE)
|
|
|
@Transactional()
|
|
|
- public AjaxResult generate(@RequestBody BizCertificate bizCertificate) {
|
|
|
+ public AjaxResult generate(@RequestBody BizCertificate bizCertificate) throws NoSuchFieldException, IllegalAccessException {
|
|
|
+ setTenantId(bizCertificate);
|
|
|
BizPackageResourceGroup bizPackageResourceGroup = bizPackageResourceGroupService.getById(bizCertificate.getPackageResourceGroupId());
|
|
|
int currentLineNumber = Integer.parseInt(bizPackageResourceGroup.getCode());
|
|
|
List<BizCertificateLot> lots = new ArrayList<>();
|
|
@@ -274,6 +275,7 @@ public class BizCertificateController extends BaseController {
|
|
|
lot.setCertificateId(bizCertificate.getId());
|
|
|
lot.setBarcode(barcode);
|
|
|
lot.setQrcode(qrcode);
|
|
|
+ lot.setTenantId(bizCertificate.getTenantId());
|
|
|
lot.setCompanyName(bizCertificate.getCompanyName());
|
|
|
lot = generateQrCode(qrcode, barcode, lot, bizCertificate);
|
|
|
lot = generateBarCode(barcode, barcode, lot, bizCertificate);
|