Commit fe8e4d87 by 胡懿

修改生成二维码报错

parent a23cda3d
......@@ -263,10 +263,10 @@ public class DrawQrcodeUtil {
g2.drawImage(qrcodeImage,qRcodeSize.getQrcodeX(),qRcodeSize.getQrcodeY(),qRcodeSize.getQrcodeWidth(),qRcodeSize.getQrcodeHeight(),null,null);
//写入货品名称
String contentTitle1 = "货品名称:";
String contentTitle1 = "品名:";
int contentTitle1Width = g2.getFontMetrics().stringWidth(contentTitle1);
g2.drawString(contentTitle1,contentX,contentY);
String name = formatContent(goodsInfo.getName(),10);
String name = formatContent(goodsInfo.getType().getName(),10);
AttributedString as = new AttributedString(name);
as.addAttribute(TextAttribute.FONT, font);
as.addAttribute(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_LOW_DASHED, 0, name.length());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment