记得上下班打卡 | git大法好,push需谨慎

Commit 93c0941b authored by jiangxiulong's avatar jiangxiulong

test

parent 13b9906c
......@@ -189,10 +189,14 @@ public class CodeUtil {
public static String html2img(KylinOrderExpress kylinOrderExpress,String jContact, String jAddress, String jTel, KylinOrderTickets orderInfo)
{
logger.error("test1");
String barCode = getBarCode(kylinOrderExpress.getMailno(), 90, 13);
logger.error(barCode);
String qrCode = getQRCode("2453657424", 25, 25);
logger.error(qrCode);
String html = tmpHtml();
logger.error(html);
// 码图
String replace1 = html.replace("images/yiweima.png", barCode).replace("images/erweima.png", qrCode);
......@@ -200,7 +204,6 @@ public class CodeUtil {
// 收 寄图
String replace2 = replace1.replace("images/iconJi.png", pathName.concat("images/iconJi.png"))
.replace("images/iconShou.png", pathName.concat("images/iconShou.png"));
logger.info("test1");
String replace3 = replace2.replace("SF1010874393776", kylinOrderExpress.getMailno())
.replace("755W-BA-0123456789", kylinOrderExpress.getDestRouteLabel())
......@@ -218,7 +221,6 @@ public class CodeUtil {
.replace("18510989999", jTel)
.replace("寄件地址北京市朝阳区摩登天空测试地址", jAddress)
;
logger.info("test1");
Html2Image html2Image = Html2Image.fromHtml(replace3);
String imgPath = pathName.concat("qrcode/img.png");
......
......@@ -566,19 +566,16 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
public ResponseDto print(PerformanceExpressSearchAdminParam performanceExpressSearchAdminParam) {
List<String> ids = performanceExpressSearchAdminParam.getIds();
for (String orderExpressId : ids) {
log.info("orderExpressId", orderExpressId);
KylinOrderExpress kylinOrderExpress = kylinOrderExpressMapper.selectOne(
Wrappers.lambdaQuery(KylinOrderExpress.class)
.eq(KylinOrderExpress::getOrderExpressId, orderExpressId)
);
log.info("kylinOrderExpress", kylinOrderExpress);
KylinOrderTickets orderInfo = kylinOrderTicketsMapper.selectOne(
Wrappers.lambdaQuery(KylinOrderTickets.class)
.eq(KylinOrderTickets::getOrderTicketsId, kylinOrderExpress.getOrderTicketsId())
);
log.info("orderInfo", orderInfo);
String imgPath = codeUtil.html2img(kylinOrderExpress, jContact, jProvince.concat(jCity).concat(jAddress), jTel, orderInfo);
log.info("imgPath", imgPath);
log.error("imgPath", imgPath);
codeUtil.drawImage(imgPath, 1);
}
return ResponseDto.success();
......
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