Commit b214030f by chongfu.liang

农工商

parent e8322e4e
...@@ -31,4 +31,7 @@ public class NgsSellCouponCreateOrderVo { ...@@ -31,4 +31,7 @@ public class NgsSellCouponCreateOrderVo {
// @NotEmpty(message = "version 版本号不能为空") // @NotEmpty(message = "version 版本号不能为空")
private String version; private String version;
@NotEmpty(message = "appId")
private String appId;
} }
...@@ -292,7 +292,7 @@ public class SellCouponOrderServiceImpl { ...@@ -292,7 +292,7 @@ public class SellCouponOrderServiceImpl {
} else { } else {
flowno = redisTemplate.opsForValue().increment(key, 1).intValue(); flowno = redisTemplate.opsForValue().increment(key, 1).intValue();
} }
String stationid = getStationId(date, partnerId, flowno); String stationid = getStationId(date, requestVo.getAppId(), flowno);
orderExtInfoDto.setStationId(stationid); orderExtInfoDto.setStationId(stationid);
...@@ -301,16 +301,16 @@ public class SellCouponOrderServiceImpl { ...@@ -301,16 +301,16 @@ public class SellCouponOrderServiceImpl {
} }
private String getStationId(String date, String partnerId, int flowno) { private String getStationId(String date, String appid, int flowno) {
String stationid = ""; String stationid = "";
int length = String.valueOf(flowno).length(); int length = String.valueOf(flowno).length();
if (easyPartnerId.equals(partnerId)){ if (easyPartnerId.equals(appid)){
stationid = date + "6600000001"; stationid = date + "6600000001";
for (int i = 0; i < 5 - length; i++){ for (int i = 0; i < 5 - length; i++){
stationid += "0"; stationid += "0";
} }
stationid += flowno; stationid += flowno;
} else if (supermarketPartnerId.equals(partnerId)) { } else if (supermarketPartnerId.equals(appid)) {
stationid = date + "9988800001"; stationid = date + "9988800001";
for (int i = 0; i < 5 - length; i++){ for (int i = 0; i < 5 - length; i++){
stationid += "0"; 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