Merge remote-tracking branch 'origin/test' into dkxd2
# Conflicts: # src/main/java/com/chaozhanggui/system/cashierservice/service/OrderService.java
This commit is contained in:
@@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@@ -55,10 +56,12 @@ public class PayController {
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("payAmount") BigDecimal payAmount,
|
||||
@RequestParam("discountAmount") BigDecimal discountAmount,
|
||||
@RequestParam("authCode") String authCode
|
||||
|
||||
) {
|
||||
return payService.scanPay(orderId,authCode, IpUtil.getIpAddr(request),token);
|
||||
return payService.scanPay(orderId,authCode, IpUtil.getIpAddr(request),token,payAmount,discountAmount);
|
||||
}
|
||||
|
||||
|
||||
@@ -79,9 +82,11 @@ public class PayController {
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("memberId") String memberId,
|
||||
@RequestParam("memberAccount") String memberAccount
|
||||
@RequestParam("memberAccount") String memberAccount,
|
||||
@RequestParam("payAmount") BigDecimal payAmount,
|
||||
@RequestParam("discountAmount") BigDecimal discountAmount
|
||||
){
|
||||
return payService.accountPay(orderId,memberId,token,memberAccount);
|
||||
return payService.accountPay(orderId,memberId,token,memberAccount,payAmount,discountAmount);
|
||||
}
|
||||
|
||||
|
||||
@@ -164,9 +169,11 @@ public class PayController {
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("memberCode") String memberCode
|
||||
@RequestParam("memberCode") String memberCode,
|
||||
@RequestParam("payAmount") BigDecimal payAmount,
|
||||
@RequestParam("discountAmount") BigDecimal discountAmount
|
||||
){
|
||||
return payService.memberScanPay(orderId,memberCode,token);
|
||||
return payService.memberScanPay(orderId,memberCode,token,payAmount,discountAmount);
|
||||
}
|
||||
|
||||
|
||||
@@ -184,8 +191,10 @@ public class PayController {
|
||||
public Result cashPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId){
|
||||
return payService.cashPay(orderId,token);
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("payAmount") BigDecimal payAmount,
|
||||
@RequestParam("discountAmount") BigDecimal discountAmount){
|
||||
return payService.cashPay(orderId,token,payAmount,discountAmount);
|
||||
}
|
||||
|
||||
|
||||
@@ -204,7 +213,9 @@ public class PayController {
|
||||
public Result bankPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId){
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("payAmount") BigDecimal payAmount,
|
||||
@RequestParam("discountAmount") BigDecimal discountAmount){
|
||||
return payService.bankPay(orderId,token);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user