|
|
@ -55,7 +55,7 @@ public class HighCouponCodeServiceImpl implements HighCouponCodeService { |
|
|
|
// 生成二维码
|
|
|
|
// 生成二维码
|
|
|
|
String qrCodeImg = DateUtil.date2String(new Date(),"yyyyMMddHHmmss") + IDGenerator.nextId(10) +".png"; |
|
|
|
String qrCodeImg = DateUtil.date2String(new Date(),"yyyyMMddHHmmss") + IDGenerator.nextId(10) +".png"; |
|
|
|
String qrCodeUrl = "/home/project/hsg/filesystem/couponCode/" + qrCodeImg; |
|
|
|
String qrCodeUrl = "/home/project/hsg/filesystem/couponCode/" + qrCodeImg; |
|
|
|
QRCodeGenerator.generateQRCodeImage(list.get(0).getSalesCode(), 350, 350, qrCodeUrl); |
|
|
|
QRCodeGenerator.generateQRCodeImage(highCouponCode.getSalesCode(), 350, 350, qrCodeUrl); |
|
|
|
highCouponCode.setExt1(qrCodeImg); |
|
|
|
highCouponCode.setExt1(qrCodeImg); |
|
|
|
} |
|
|
|
} |
|
|
|
highCouponCodeMapperExt.insertList(list); |
|
|
|
highCouponCodeMapperExt.insertList(list); |
|
|
|