|
|
@ -8,6 +8,7 @@ import com.ms.biz.common.R;
|
|
|
|
import com.ms.biz.common.SPIBaseService;
|
|
|
|
import com.ms.biz.common.SPIBaseService;
|
|
|
|
import com.ms.biz.dto.openspi.request.BatchPayParam;
|
|
|
|
import com.ms.biz.dto.openspi.request.BatchPayParam;
|
|
|
|
import com.ms.biz.dto.openspi.response.BatchPayData;
|
|
|
|
import com.ms.biz.dto.openspi.response.BatchPayData;
|
|
|
|
|
|
|
|
import com.ms.biz.dto.openspi.response.QuerySupplyPlatformAuthData;
|
|
|
|
import com.ms.biz.service.DistributionOrderService;
|
|
|
|
import com.ms.biz.service.DistributionOrderService;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@ -20,9 +21,13 @@ public class BatchPayService extends SPIBaseService implements ExtensionServiceH
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public BaseResponse<BatchPayData> handle(BaseRequest<BatchPayParam> req) {
|
|
|
|
public BaseResponse<BatchPayData> handle(BaseRequest<BatchPayParam> req) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
BatchPayParam param = req.getData();
|
|
|
|
BatchPayParam param = req.getData();
|
|
|
|
BatchPayData data = new BatchPayData();
|
|
|
|
BatchPayData data = new BatchPayData();
|
|
|
|
distributionOrderService.batchPay(param, data);
|
|
|
|
distributionOrderService.batchPay(param, data);
|
|
|
|
return R.ok(data);
|
|
|
|
return BaseResponse.<BatchPayData>builder().success(true).message("success").code("0").data(data).build();
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
return BaseResponse.<BatchPayData>builder().success(true).message(e.getMessage()).code("100003").build();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|