检查订单同步是否结束
parent
cc77d4293a
commit
6d023b12b0
@ -0,0 +1,37 @@
|
||||
package com.ms.api.spi.order;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import com.jinritemai.cloud.base.api.BaseRequest;
|
||||
import com.jinritemai.cloud.base.api.BaseResponse;
|
||||
import com.jinritemai.cloud.base.api.ExtensionService;
|
||||
import com.jinritemai.cloud.base.api.ExtensionServiceHandler;
|
||||
import com.ms.api.common.R;
|
||||
import com.ms.api.common.Ret;
|
||||
import com.ms.api.common.SPIBaseService;
|
||||
import com.ms.api.consts.DsOrderConst;
|
||||
import com.ms.api.consts.PurchaseOrderConst;
|
||||
import com.ms.api.dto.order.SearchDsOrderFilterDTO;
|
||||
import com.ms.api.dto.order.SearchDsOrderListRequestDTO;
|
||||
import com.ms.api.service.OpOrderService;
|
||||
import com.ms.api.service.PurchaseOrderService;
|
||||
import com.ms.api.util.PurchaseOrderUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
@ExtensionService("checkRsyncDataFinished")
|
||||
@Slf4j
|
||||
public class CheckRsyncDataFinishedService extends SPIBaseService implements ExtensionServiceHandler<Void, Ret> {
|
||||
|
||||
@Resource
|
||||
private OpOrderService opOrderService;
|
||||
|
||||
@Override
|
||||
public BaseResponse<Ret> handle(BaseRequest<Void> req) {
|
||||
initHandle(req);
|
||||
return R.ok(Ret.success(opOrderService.checkRsyncDataFinished(Arrays.asList(req.getAuthId()))));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue