|
@@ -8,6 +8,7 @@ import com.fdkankan.common.constant.ErrorCode;
|
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
|
import com.fdkankan.ucenter.common.constants.ResultCode;
|
|
|
import com.fdkankan.ucenter.entity.IncrementAutoOrder;
|
|
|
+import com.fdkankan.ucenter.entity.IncrementOrder;
|
|
|
import com.fdkankan.ucenter.entity.User;
|
|
|
import com.fdkankan.ucenter.entity.UserIncrement;
|
|
|
import com.fdkankan.ucenter.httpClient.vo.PayOrderVo;
|
|
@@ -126,4 +127,15 @@ public class IncrementAutoOrderServiceImpl extends ServiceImpl<IIncrementAutoOrd
|
|
|
wrapper.eq(IncrementAutoOrder::getUserIncrementId,incrementId);
|
|
|
this.remove(wrapper);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public IncrementAutoOrder getByOrderSn(String orderSn) {
|
|
|
+ LambdaUpdateWrapper<IncrementAutoOrder> wrapper = new LambdaUpdateWrapper<>();
|
|
|
+ wrapper.eq(IncrementAutoOrder::getOrderSn,orderSn);
|
|
|
+ List<IncrementAutoOrder> list = this.list(wrapper);
|
|
|
+ if(list == null || list.size()<=0){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ return list.get(0);
|
|
|
+ }
|
|
|
}
|