修改订单备注
This commit is contained in:
@@ -70,7 +70,15 @@ public class OrderController {
|
||||
}
|
||||
}
|
||||
buyOrder.setRealMoney(totalPrice);
|
||||
buyOrder.setRemark("Purchase the e-book '"+ Pinyin.toPinyin(bookEntity.getName(), " ").toLowerCase()+"'");
|
||||
String bookName = bookEntity.getName();
|
||||
char[] cs = bookEntity.getName().toCharArray();
|
||||
for (int i = 0; i < cs.length; i++) {
|
||||
if (Pinyin.isChinese(cs[i])){
|
||||
bookName = Pinyin.toPinyin(bookEntity.getName(), " ").toLowerCase();
|
||||
break;
|
||||
}
|
||||
}
|
||||
buyOrder.setRemark("Purchase the e-book '"+bookName+"'");
|
||||
buyOrder.setOrderStatus("0");
|
||||
buyOrder.setOrderType("abroadBook");
|
||||
String timeId = IdWorker.getTimeId().substring(0, 32);
|
||||
|
||||
Reference in New Issue
Block a user