Skip to content

Commit

Permalink
fix member wallet insert db duplication
Browse files Browse the repository at this point in the history
add store goods label order by field sort
  • Loading branch information
LeiGaoRobot committed Sep 18, 2021
1 parent 1f7dff3 commit 6dfde46
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ public enum ResultCode {
WALLET_WITHDRAWAL_FROZEN_AMOUNT_INSUFFICIENT(34006, "冻结金额不足,无法处理提现申请请求!"),
WALLET_ERROR_INSUFFICIENT(34003, "零钱提现失败!"),
WALLET_REMARK_ERROR(34004, "请填写审核备注!"),
WALLET_EXIT_ERROR(34000, "钱包已存在,无法重复创建"),
WALLET_APPLY_ERROR(34005, "提现申请异常!"),

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ public Boolean checkPassword() {

@Override
public MemberWallet save(String memberId, String memberName) {
MemberWallet memberWallet = new MemberWallet();
//获取会员预存款信息
MemberWallet memberWallet = this.getOne(new QueryWrapper<MemberWallet>().eq("member_id", memberId));
if (memberWallet != null) {
return memberWallet;
}
memberWallet = new MemberWallet();
memberWallet.setMemberId(memberId);
memberWallet.setMemberName(memberName);
memberWallet.setMemberWallet(0D);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public class StoreSettingDTO {

@NotEmpty
@ApiModelProperty(value = "经纬度")
private String center;
private String storeCenter;

}
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public void removeStoreGoodsLabel(String storeLabelId) {
private List<StoreGoodsLabel> list(String storeId) {
LambdaQueryWrapper<StoreGoodsLabel> queryWrapper = Wrappers.lambdaQuery();
queryWrapper.eq(StoreGoodsLabel::getStoreId, storeId);
queryWrapper.orderByDesc(StoreGoodsLabel::getSortOrder);
return this.baseMapper.selectList(queryWrapper);
}

Expand Down

0 comments on commit 6dfde46

Please sign in to comment.