Commit c3982ad2 by chongfu.liang

Merge branch 'feature/2.0.6-农工商商品兑换券' into develop

# Conflicts:
#	order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
parents f2a845a7 83e715ce
......@@ -31,4 +31,7 @@ public class NgsSellCouponCreateOrderVo {
// @NotEmpty(message = "version 版本号不能为空")
private String version;
@NotEmpty(message = "appId")
private String appId;
}
......@@ -282,7 +282,7 @@ public class SellCouponOrderServiceImpl {
orderExtInfoDto.setFromAppId(userLoginInfoDto.getWxAppId());
String date = DateUtil.convert2String(new Date(), "yyyyMMdd");
String key = this.getFolwNo(partnerId, date);
String key = this.getFolwNo(requestVo.getAppId(), date);
int flowno = 0;
RedisTemplate redisTemplate = redisCache.getRedisTemplate();
......@@ -291,8 +291,7 @@ public class SellCouponOrderServiceImpl {
} else {
flowno = redisTemplate.opsForValue().increment(key, 1).intValue();
}
String stationid = getStationId(date, partnerId, flowno);
String stationid = getStationId(date, requestVo.getAppId(), flowno);
orderExtInfoDto.setStationId(stationid);
......@@ -301,16 +300,16 @@ public class SellCouponOrderServiceImpl {
}
private String getStationId(String date, String partnerId, int flowno) {
private String getStationId(String date, String appid, int flowno) {
String stationid = "";
int length = String.valueOf(flowno).length();
if (easyPartnerId.equals(partnerId)){
if (easyPartnerId.equals(appid)){
stationid = date + "6600000001";
for (int i = 0; i < 5 - length; i++){
stationid += "0";
}
stationid += flowno;
} else if (supermarketPartnerId.equals(partnerId)) {
} else if (supermarketPartnerId.equals(appid)) {
stationid = date + "9988800001";
for (int i = 0; i < 5 - length; i++){
stationid += "0";
......
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