解决冲突
This commit is contained in:
parent
250fffab77
commit
273d0abbc7
@ -97,13 +97,9 @@ public enum ResultCode {
|
|||||||
USER_RECEIPT_NOT_EXIST(20014, "会员发票信息不存在"),
|
USER_RECEIPT_NOT_EXIST(20014, "会员发票信息不存在"),
|
||||||
USER_EDIT_ERROR(20015, "用户修改失败"),
|
USER_EDIT_ERROR(20015, "用户修改失败"),
|
||||||
USER_OLD_PASSWORD_ERROR(20016, "旧密码不正确"),
|
USER_OLD_PASSWORD_ERROR(20016, "旧密码不正确"),
|
||||||
<<<<<<< HEAD
|
|
||||||
USER_COLLECTION_EXIST(20017,"无法重复收藏"),
|
USER_COLLECTION_EXIST(20017,"无法重复收藏"),
|
||||||
USER_GRADE_IS_DEFAULT(20018,"会员等级为默认会员等级"),
|
USER_GRADE_IS_DEFAULT(20018,"会员等级为默认会员等级"),
|
||||||
=======
|
|
||||||
USER_COLLECTION_EXIST(2001, "无法重复收藏"),
|
|
||||||
DELETE_EXIST(2001, "无法重复收藏"),
|
DELETE_EXIST(2001, "无法重复收藏"),
|
||||||
>>>>>>> master
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 权限
|
* 权限
|
||||||
|
@ -171,10 +171,6 @@ public class DistributionServiceImpl extends ServiceImpl<DistributionMapper, Dis
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
<<<<<<< HEAD
|
|
||||||
public void updateCanRebate(Double canRebate, String distributionId) {
|
|
||||||
this.baseMapper.updateCanRebate(canRebate,distributionId);
|
|
||||||
=======
|
|
||||||
public void subCanRebate(Double canRebate, String distributionId) {
|
public void subCanRebate(Double canRebate, String distributionId) {
|
||||||
this.baseMapper.subCanRebate(canRebate,distributionId);
|
this.baseMapper.subCanRebate(canRebate,distributionId);
|
||||||
}
|
}
|
||||||
@ -182,7 +178,6 @@ public class DistributionServiceImpl extends ServiceImpl<DistributionMapper, Dis
|
|||||||
@Override
|
@Override
|
||||||
public void addRebate(Double rebate, String distributionId) {
|
public void addRebate(Double rebate, String distributionId) {
|
||||||
this.baseMapper.addCanRebate(rebate,distributionId);
|
this.baseMapper.addCanRebate(rebate,distributionId);
|
||||||
>>>>>>> master
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -33,11 +33,8 @@ import java.util.Date;
|
|||||||
@Service
|
@Service
|
||||||
@Transactional
|
@Transactional
|
||||||
public class MemberWithdrawApplyServiceImpl extends ServiceImpl<MemberWithdrawApplyMapper, MemberWithdrawApply> implements MemberWithdrawApplyService {
|
public class MemberWithdrawApplyServiceImpl extends ServiceImpl<MemberWithdrawApplyMapper, MemberWithdrawApply> implements MemberWithdrawApplyService {
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
=======
|
|
||||||
//提现申请数据层
|
//提现申请数据层
|
||||||
>>>>>>> master
|
|
||||||
//会员余额
|
//会员余额
|
||||||
@Autowired
|
@Autowired
|
||||||
private MemberWalletService memberWalletService;
|
private MemberWalletService memberWalletService;
|
||||||
@ -45,12 +42,8 @@ public class MemberWithdrawApplyServiceImpl extends ServiceImpl<MemberWithdrawAp
|
|||||||
@Override
|
@Override
|
||||||
public Boolean audit(String applyId, Boolean result, String remark) {
|
public Boolean audit(String applyId, Boolean result, String remark) {
|
||||||
//查询申请记录
|
//查询申请记录
|
||||||
<<<<<<< HEAD
|
|
||||||
MemberWithdrawApply memberWithdrawApply = this.getById(applyId);
|
MemberWithdrawApply memberWithdrawApply = this.getById(applyId);
|
||||||
memberWithdrawApply.setInspectRemark(remark);
|
memberWithdrawApply.setInspectRemark(remark);
|
||||||
=======
|
|
||||||
MemberWithdrawApply memberWithdrawApply = baseMapper.selectById(applyId);
|
|
||||||
>>>>>>> master
|
|
||||||
if (memberWithdrawApply != null) {
|
if (memberWithdrawApply != null) {
|
||||||
//写入备注
|
//写入备注
|
||||||
memberWithdrawApply.setInspectRemark(remark);
|
memberWithdrawApply.setInspectRemark(remark);
|
||||||
@ -63,11 +56,7 @@ public class MemberWithdrawApplyServiceImpl extends ServiceImpl<MemberWithdrawAp
|
|||||||
}
|
}
|
||||||
memberWithdrawApply.setApplyStatus(WithdrawStatusEnum.VIA_AUDITING.name());
|
memberWithdrawApply.setApplyStatus(WithdrawStatusEnum.VIA_AUDITING.name());
|
||||||
//保存审核记录
|
//保存审核记录
|
||||||
<<<<<<< HEAD
|
|
||||||
this.updateById(memberWithdrawApply);
|
this.updateById(memberWithdrawApply);
|
||||||
=======
|
|
||||||
baseMapper.updateById(memberWithdrawApply);
|
|
||||||
>>>>>>> master
|
|
||||||
//提现,微信提现成功后扣减冻结金额
|
//提现,微信提现成功后扣减冻结金额
|
||||||
Boolean bool = memberWalletService.withdrawal(memberWithdrawApply);
|
Boolean bool = memberWalletService.withdrawal(memberWithdrawApply);
|
||||||
if (bool) {
|
if (bool) {
|
||||||
@ -80,11 +69,7 @@ public class MemberWithdrawApplyServiceImpl extends ServiceImpl<MemberWithdrawAp
|
|||||||
throw new ServiceException(ResultCode.WALLET_REMARK_ERROR);
|
throw new ServiceException(ResultCode.WALLET_REMARK_ERROR);
|
||||||
}
|
}
|
||||||
memberWithdrawApply.setApplyStatus(WithdrawStatusEnum.FAIL_AUDITING.name());
|
memberWithdrawApply.setApplyStatus(WithdrawStatusEnum.FAIL_AUDITING.name());
|
||||||
<<<<<<< HEAD
|
|
||||||
this.updateById(memberWithdrawApply);
|
this.updateById(memberWithdrawApply);
|
||||||
=======
|
|
||||||
baseMapper.updateById(memberWithdrawApply);
|
|
||||||
>>>>>>> master
|
|
||||||
//需要从冻结金额扣减到余额
|
//需要从冻结金额扣减到余额
|
||||||
memberWalletService.increaseWithdrawal(memberWithdrawApply.getApplyMoney(), memberWithdrawApply.getMemberId(), "审核拒绝,提现金额解冻到余额", DepositServiceTypeEnum.WALLET_WITHDRAWAL.name());
|
memberWalletService.increaseWithdrawal(memberWithdrawApply.getApplyMoney(), memberWithdrawApply.getMemberId(), "审核拒绝,提现金额解冻到余额", DepositServiceTypeEnum.WALLET_WITHDRAWAL.name());
|
||||||
return true;
|
return true;
|
||||||
|
@ -205,12 +205,9 @@ public class Order extends BaseEntity {
|
|||||||
BeanUtil.copyProperties(cartVO.getPriceDetailDTO(), this);
|
BeanUtil.copyProperties(cartVO.getPriceDetailDTO(), this);
|
||||||
BeanUtil.copyProperties(cartVO, this);
|
BeanUtil.copyProperties(cartVO, this);
|
||||||
this.setId(oldId);
|
this.setId(oldId);
|
||||||
<<<<<<< HEAD
|
|
||||||
//循环购物车列表判断是否为促销订单
|
//循环购物车列表判断是否为促销订单
|
||||||
=======
|
|
||||||
this.setOrderType(OrderTypeEnum.NORMAL.name());
|
this.setOrderType(OrderTypeEnum.NORMAL.name());
|
||||||
//促销信息填充
|
//促销信息填充
|
||||||
>>>>>>> master
|
|
||||||
if (cartVO.getSkuList().get(0).getPromotions() != null) {
|
if (cartVO.getSkuList().get(0).getPromotions() != null) {
|
||||||
//判断是否为拼团订单
|
//判断是否为拼团订单
|
||||||
Optional<String> pintuanId = cartVO.getSkuList().get(0).getPromotions().stream().filter(i -> i.getPromotionType().equals(PromotionTypeEnum.PINTUAN.name())).map(PromotionGoods::getPromotionId).findFirst();
|
Optional<String> pintuanId = cartVO.getSkuList().get(0).getPromotions().stream().filter(i -> i.getPromotionType().equals(PromotionTypeEnum.PINTUAN.name())).map(PromotionGoods::getPromotionId).findFirst();
|
||||||
@ -235,7 +232,6 @@ public class Order extends BaseEntity {
|
|||||||
this.setOrderStatus(OrderStatusEnum.UNPAID.name());
|
this.setOrderStatus(OrderStatusEnum.UNPAID.name());
|
||||||
this.setPayStatus(PayStatusEnum.UNPAID.name());
|
this.setPayStatus(PayStatusEnum.UNPAID.name());
|
||||||
this.setDeliverStatus(DeliverStatusEnum.UNDELIVERED.name());
|
this.setDeliverStatus(DeliverStatusEnum.UNDELIVERED.name());
|
||||||
<<<<<<< HEAD
|
|
||||||
//填充订单收件人信息
|
//填充订单收件人信息
|
||||||
this.setConsigneeAddressIdPath(tradeDTO.getMemberAddress().getConsigneeAddressIdPath());
|
this.setConsigneeAddressIdPath(tradeDTO.getMemberAddress().getConsigneeAddressIdPath());
|
||||||
this.setConsigneeAddressPath(tradeDTO.getMemberAddress().getConsigneeAddressPath());
|
this.setConsigneeAddressPath(tradeDTO.getMemberAddress().getConsigneeAddressPath());
|
||||||
@ -247,7 +243,6 @@ public class Order extends BaseEntity {
|
|||||||
this.setUsePlatformMemberCouponId(tradeDTO.getPlatformCoupon().getMemberCoupon().getId());
|
this.setUsePlatformMemberCouponId(tradeDTO.getPlatformCoupon().getMemberCoupon().getId());
|
||||||
}
|
}
|
||||||
//判断是否使用店铺优惠券
|
//判断是否使用店铺优惠券
|
||||||
=======
|
|
||||||
//如果有收货地址,才记录收货地址
|
//如果有收货地址,才记录收货地址
|
||||||
if (tradeDTO.getMemberAddress() != null) {
|
if (tradeDTO.getMemberAddress() != null) {
|
||||||
this.setConsigneeAddressIdPath(tradeDTO.getMemberAddress().getConsigneeAddressIdPath());
|
this.setConsigneeAddressIdPath(tradeDTO.getMemberAddress().getConsigneeAddressIdPath());
|
||||||
@ -261,7 +256,6 @@ public class Order extends BaseEntity {
|
|||||||
this.setUsePlatformMemberCouponId(tradeDTO.getPlatformCoupon().getMemberCoupon().getId());
|
this.setUsePlatformMemberCouponId(tradeDTO.getPlatformCoupon().getMemberCoupon().getId());
|
||||||
}
|
}
|
||||||
//店铺优惠券判定
|
//店铺优惠券判定
|
||||||
>>>>>>> master
|
|
||||||
if (tradeDTO.getStoreCoupons() != null && !tradeDTO.getStoreCoupons().isEmpty()) {
|
if (tradeDTO.getStoreCoupons() != null && !tradeDTO.getStoreCoupons().isEmpty()) {
|
||||||
StringBuilder storeCouponIds = new StringBuilder();
|
StringBuilder storeCouponIds = new StringBuilder();
|
||||||
for (String s : tradeDTO.getStoreCoupons().keySet()) {
|
for (String s : tradeDTO.getStoreCoupons().keySet()) {
|
||||||
|
@ -13,10 +13,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
>>>>>>> master
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package cn.lili.controller.member;
|
package cn.lili.controller.member;
|
||||||
|
|
||||||
import cn.lili.common.enums.ResultCode;
|
import cn.lili.common.enums.ResultCode;
|
||||||
|
import cn.lili.common.enums.ResultUtil;
|
||||||
import cn.lili.common.exception.ServiceException;
|
import cn.lili.common.exception.ServiceException;
|
||||||
import cn.lili.common.utils.PageUtil;
|
import cn.lili.common.utils.PageUtil;
|
||||||
import cn.lili.common.utils.ResultUtil;
|
|
||||||
import cn.lili.common.vo.PageVO;
|
import cn.lili.common.vo.PageVO;
|
||||||
import cn.lili.common.vo.ResultMessage;
|
import cn.lili.common.vo.ResultMessage;
|
||||||
import cn.lili.modules.member.entity.dos.MemberGrade;
|
import cn.lili.modules.member.entity.dos.MemberGrade;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package cn.lili.controller.other.broadcast;
|
package cn.lili.controller.other.broadcast;
|
||||||
|
|
||||||
import cn.lili.common.enums.ResultCode;
|
import cn.lili.common.enums.ResultCode;
|
||||||
|
import cn.lili.common.enums.ResultUtil;
|
||||||
import cn.lili.common.exception.ServiceException;
|
import cn.lili.common.exception.ServiceException;
|
||||||
import cn.lili.common.utils.PageUtil;
|
import cn.lili.common.utils.PageUtil;
|
||||||
import cn.lili.common.utils.ResultUtil;
|
|
||||||
import cn.lili.common.vo.PageVO;
|
import cn.lili.common.vo.PageVO;
|
||||||
import cn.lili.common.vo.ResultMessage;
|
import cn.lili.common.vo.ResultMessage;
|
||||||
import cn.lili.modules.broadcast.entity.dos.Commodity;
|
import cn.lili.modules.broadcast.entity.dos.Commodity;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package cn.lili.controller.other.broadcast;
|
package cn.lili.controller.other.broadcast;
|
||||||
|
|
||||||
import cn.lili.common.enums.ResultCode;
|
import cn.lili.common.enums.ResultCode;
|
||||||
|
import cn.lili.common.enums.ResultUtil;
|
||||||
import cn.lili.common.exception.ServiceException;
|
import cn.lili.common.exception.ServiceException;
|
||||||
import cn.lili.common.utils.PageUtil;
|
import cn.lili.common.utils.PageUtil;
|
||||||
import cn.lili.common.utils.ResultUtil;
|
|
||||||
import cn.lili.common.vo.PageVO;
|
import cn.lili.common.vo.PageVO;
|
||||||
import cn.lili.common.vo.ResultMessage;
|
import cn.lili.common.vo.ResultMessage;
|
||||||
import cn.lili.modules.base.entity.enums.ClientTypeEnum;
|
import cn.lili.modules.base.entity.enums.ClientTypeEnum;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user