...
|
...
|
@@ -42,6 +42,17 @@ public abstract class AbsGoodsServiceOrderService implements IGoodsService { |
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
|
|
|
protected int triggerStatusChangeByParentCode(Long parentOrderCode, AppraiseOrderStatus targetStatus, AppraiseOrderStatus expectedStatus){
|
|
|
int cdt = DateUtil.getCurrentTimeSecond();
|
|
|
int rows = appraiseOrderMapper.updateStatusByParentOrderCode(parentOrderCode, targetStatus.getCode(), expectedStatus.getCode(), cdt);
|
|
|
if (rows==0){
|
|
|
logger.warn("appraise order triggerStatusChange no need update status, parentOrderCode {}", parentOrderCode);
|
|
|
return 0;
|
|
|
}
|
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
public int triggerStatusChange(Long orderCode, AppraiseOrderStatus targetStatus, AppraiseOrderStatus expectedStatus){
|
|
|
int cdt = DateUtil.getCurrentTimeSecond();
|
|
|
int rows = appraiseOrderMapper.updateStatusByOrderCode(orderCode, targetStatus.getCode(), expectedStatus.getCode(), cdt);
|
...
|
...
|
|