Commit 12978986 authored by shiyu's avatar shiyu

订单列表新增群聊二维码

parent a87507d4
......@@ -48,4 +48,9 @@ public class GroupPurchaseInfo implements Entity {
* 团购是否成功
*/
private Boolean groupPurchaseSuccess;
/**
* 团购群联`二维码
*/
private String wxQrcode;
}
......@@ -306,6 +306,7 @@ public class GroupPurchaseServiceImpl implements GroupPurchaseService {
}
double num = (double) itemNum / (double)targetNum * 100;
String rate = String.format("%.0f", num);
groupPurchaseInfo.setWxQrcode(groupPurchaseConfig.getWxQrcode());
groupPurchaseInfo.setRate(String.valueOf(rate));
groupPurchaseInfo.setTargetNum(targetNum);
groupPurchaseInfo.setItemNum((int) itemNum);
......
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