Authored by wujiexiang

Merge branch 'dev_bid' into test6.9.13

Conflicts:
	dal/src/main/java/com/yohoufo/dal/order/model/BuyerOrder.java
@@ -230,6 +230,11 @@ public class BuyerOrder { @@ -230,6 +230,11 @@ public class BuyerOrder {
230 } 230 }
231 231
232 public int getPayStartTime() { 232 public int getPayStartTime() {
233 - return payStartTime <= 0 ? getCreateTime() : payStartTime; 233 + if (payStartTime <= 0 && createTime != null) {
  234 + //兼容老数据
  235 + return createTime;
  236 + } else {
  237 + return payStartTime;
  238 + }
234 } 239 }
235 } 240 }
@@ -144,6 +144,7 @@ public abstract class AbstractBuyerOrderStateChanger<T extends RequestedStatusCh @@ -144,6 +144,7 @@ public abstract class AbstractBuyerOrderStateChanger<T extends RequestedStatusCh
144 logger.warn("[{}] updatedBuyerOrder original status must be not null", updatedBuyerOrder.getOrderCode()); 144 logger.warn("[{}] updatedBuyerOrder original status must be not null", updatedBuyerOrder.getOrderCode());
145 throw new UfoServiceException(500, "操作失败"); 145 throw new UfoServiceException(500, "操作失败");
146 } 146 }
  147 + logger.info("[{}] will be update in db by {}", buyerOrder.getOrderCode(), updatedBuyerOrder);
147 int rows = buyerOrderMapper.updateByOrderCode(updatedBuyerOrder); 148 int rows = buyerOrderMapper.updateByOrderCode(updatedBuyerOrder);
148 boolean success = rows > 0; 149 boolean success = rows > 0;
149 if (success) { 150 if (success) {