|
|
|
@ -8,6 +8,7 @@ import com.ms.biz.common.R;
|
|
|
|
|
import com.ms.biz.common.SPIBaseService;
|
|
|
|
|
import com.ms.biz.dto.openspi.request.BatchPayParam;
|
|
|
|
|
import com.ms.biz.dto.openspi.response.BatchPayData;
|
|
|
|
|
import com.ms.biz.dto.openspi.response.QuerySupplyPlatformAuthData;
|
|
|
|
|
import com.ms.biz.service.DistributionOrderService;
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@ -20,9 +21,13 @@ public class BatchPayService extends SPIBaseService implements ExtensionServiceH
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public BaseResponse<BatchPayData> handle(BaseRequest<BatchPayParam> req) {
|
|
|
|
|
BatchPayParam param = req.getData();
|
|
|
|
|
BatchPayData data = new BatchPayData();
|
|
|
|
|
distributionOrderService.batchPay(param, data);
|
|
|
|
|
return R.ok(data);
|
|
|
|
|
try {
|
|
|
|
|
BatchPayParam param = req.getData();
|
|
|
|
|
BatchPayData data = new BatchPayData();
|
|
|
|
|
distributionOrderService.batchPay(param, 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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|