测试
This commit is contained in:
@@ -36,84 +36,84 @@ public class ShopOrderStatistic implements Serializable {
|
||||
/**
|
||||
* 销售额
|
||||
*/
|
||||
private BigDecimal saleAmount;
|
||||
private BigDecimal saleAmount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 销售数量
|
||||
*/
|
||||
private Long saleCount;
|
||||
private Long saleCount = 0L;
|
||||
|
||||
/**
|
||||
* 优惠金额
|
||||
*/
|
||||
private BigDecimal discountAmount;
|
||||
private BigDecimal discountAmount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 优惠笔数
|
||||
*/
|
||||
private Long discountCount;
|
||||
private Long discountCount = 0L;
|
||||
|
||||
/**
|
||||
* 退款金额
|
||||
*/
|
||||
private BigDecimal refundAmount;
|
||||
private BigDecimal refundAmount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 退款笔数
|
||||
*/
|
||||
private Long refundCount;
|
||||
private Long refundCount = 0L;
|
||||
|
||||
/**
|
||||
* 微信支付笔数
|
||||
*/
|
||||
private Long wechatPayCount;
|
||||
private Long wechatPayCount = 0L;
|
||||
|
||||
/**
|
||||
* 位置支付金额
|
||||
*/
|
||||
private BigDecimal wechatPayAmount;
|
||||
private BigDecimal wechatPayAmount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 支付宝支付笔数
|
||||
*/
|
||||
private Long aliPayCount;
|
||||
private Long aliPayCount = 0L;
|
||||
|
||||
/**
|
||||
* 支付宝支付金额
|
||||
*/
|
||||
private BigDecimal aliPayAmount;
|
||||
private BigDecimal aliPayAmount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 挂账支付笔数
|
||||
*/
|
||||
private Long creditPayCount;
|
||||
private Long creditPayCount = 0L;
|
||||
|
||||
/**
|
||||
* 挂账支付金额
|
||||
*/
|
||||
private BigDecimal creditPayAmount;
|
||||
private BigDecimal creditPayAmount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 会员支付笔数
|
||||
*/
|
||||
private Long memberPayCount;
|
||||
private Long memberPayCount = 0L;
|
||||
|
||||
/**
|
||||
* 会员支付金额
|
||||
*/
|
||||
private BigDecimal memberPayAmount;
|
||||
private BigDecimal memberPayAmount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 主扫支付笔数
|
||||
*/
|
||||
private Long scanPayCount;
|
||||
private Long scanPayCount = 0L;
|
||||
|
||||
/**
|
||||
* 主扫支付金额
|
||||
*/
|
||||
private BigDecimal scanPayAmount;
|
||||
private Long cashPayCount;
|
||||
private BigDecimal cashPayAmount;
|
||||
private BigDecimal scanPayAmount = BigDecimal.ZERO;
|
||||
private Long cashPayCount = 0L;
|
||||
private BigDecimal cashPayAmount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
|
||||
@@ -16,6 +16,7 @@ import com.czg.sa.MyStpLogic;
|
||||
import com.czg.sa.StpKit;
|
||||
import com.czg.service.account.util.AlipayUtil;
|
||||
import com.czg.service.account.util.WechatAuthUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.checkerframework.checker.units.qual.C;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@@ -25,6 +26,7 @@ import javax.annotation.Resource;
|
||||
* @author Administrator
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class UserAuthorizationServiceImpl implements UserAuthorizationService {
|
||||
@Resource
|
||||
private WechatAuthUtil wechatAuthUtil;
|
||||
@@ -35,6 +37,7 @@ public class UserAuthorizationServiceImpl implements UserAuthorizationService {
|
||||
|
||||
@Override
|
||||
public String getOpenId(String code, String source) {
|
||||
log.info(code);
|
||||
String openId;
|
||||
if (UserAuthSourceEnum.WECHAT.getValue().equals(source)) {
|
||||
openId = wechatAuthUtil.getSessionKeyOrOpenId(code, true);
|
||||
|
||||
Reference in New Issue
Block a user