Commit 0f28d8a3 by chongfu.liang

农工商

parent f5132f7f
......@@ -128,6 +128,8 @@ public class SellCouponOrderServiceImpl {
private final String ngsCouponProductId = "76161384";
private int num = 0;
/**
* 卖券订单创建
*/
......@@ -282,7 +284,7 @@ public class SellCouponOrderServiceImpl {
String date = DateUtil.convert2String(new Date(), "yyyy-MM-dd");
String key = this.getFolwNo(partnerId, date);
/*
int flowno = 0;
if (redisTemplate.opsForValue().setIfAbsent(key, 0)) {
......@@ -290,6 +292,10 @@ public class SellCouponOrderServiceImpl {
} else {
flowno = redisTemplate.opsForValue().increment(key, 1).intValue();
}
*/
num++;
int flowno = num;
String stationid = getStationId(date, partnerId, flowno);
orderExtInfoDto.setStationId(stationid);
......
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