|
@@ -4,23 +4,22 @@ import com.github.microservice.auth.client.constant.AuthConstant;
|
|
|
import com.github.microservice.auth.client.content.ResultContent;
|
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
|
-import com.zhongshu.payment.client.model.Pages;
|
|
|
import com.zhongshu.payment.client.model.order.AdminSeachOrderModel;
|
|
|
import com.zhongshu.payment.client.model.order.ApplicantRefundParamModel;
|
|
|
import com.zhongshu.payment.client.model.order.v2.ApplicantRefundParam2Model;
|
|
|
import com.zhongshu.payment.client.model.order.v2.RefundParam2Model;
|
|
|
import com.zhongshu.payment.client.model.order.v2.TransferModel;
|
|
|
+import com.zhongshu.payment.client.model.order.v2.WithdrawRequestModel;
|
|
|
import com.zhongshu.payment.client.model.payment.CloseResponsetModel;
|
|
|
import com.zhongshu.payment.client.model.payment.CreateResponseModel;
|
|
|
import com.zhongshu.payment.client.model.payment.QueryRequestModel;
|
|
|
import com.zhongshu.payment.client.model.payment.zswl.CreatePaymentModel;
|
|
|
+import com.zswl.cloud.springBtach.server.core.model.SubOrderModel;
|
|
|
import com.zswl.cloud.springBtach.server.core.service.PaymentService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.data.domain.PageRequest;
|
|
|
-import org.springframework.data.domain.Pageable;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
@@ -130,9 +129,15 @@ public class PaymentController {
|
|
|
@ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
|
|
|
@ResourceAuth(value = "admin", type = AuthType.Enterprise)
|
|
|
@ResourceAuth(value = "admin", type = AuthType.Project)
|
|
|
- @RequestMapping(value = "account/withdrawals/list", method = RequestMethod.GET)
|
|
|
- public ResultContent withdrawalsList() {
|
|
|
- return paymentServer.withdrawalsList();
|
|
|
+ @RequestMapping(value = "account/withdrawals/list", method = RequestMethod.POST)
|
|
|
+ public ResultContent withdrawalsList(@RequestBody WithdrawRequestModel withdrawRequestModel) {
|
|
|
+ return paymentServer.withdrawalsList(withdrawRequestModel);
|
|
|
+ }
|
|
|
+ @ApiOperation("确认分账")
|
|
|
+ @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
|
|
|
+ @RequestMapping(value = "subOrdersConfirm", method = RequestMethod.POST )
|
|
|
+ public ResultContent subOrdersConfirm(SubOrderModel subOrderModel) {
|
|
|
+ return paymentServer.subOrdersConfirm(subOrderModel.getGoodId(),subOrderModel.getUseShop());
|
|
|
}
|
|
|
|
|
|
|