update 会员钱包

This commit is contained in:
2023-11-21 16:02:55 +08:00
parent 820fb203e1
commit 243981d81b
9 changed files with 30 additions and 5 deletions

View File

@@ -32,6 +32,11 @@ public class UniAppQueryMemberBalanceDTO extends BaseMemberDTO{
*/
private String endDate;
/**
* 钱包编号
*/
private String walletCode;
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)

View File

@@ -67,4 +67,6 @@ public interface MemberWalletInfoMapper {
MemberWalletInfo selectByMemberId(@Param("memberId") String memberId, @Param("merchantId") String merchantId);
List<MemberWalletInfo> selectByMemberWalletList(@Param("memberId") String memberId);
MemberWalletInfo selectByWalletCode(@Param("walletCode") String walletCode);
}

View File

@@ -16,7 +16,9 @@ public interface MemberWalletInfoService {
MemberWalletInfo selectByMemberId(String memberId, String merchantId);
int updateByPrimaryKeySelective(MemberWalletInfo record);
MemberWalletInfo selectByWalletCode(String walletCode);
int updateByPrimaryKeySelective(MemberWalletInfo record);
int updateByPrimaryKey(MemberWalletInfo record);

View File

@@ -48,6 +48,11 @@ public class MemberWalletInfoServiceImpl implements MemberWalletInfoService {
return memberWalletInfoMapper.selectByMemberId(memberId, merchantId);
}
@Override
public MemberWalletInfo selectByWalletCode(String walletCode) {
return memberWalletInfoMapper.selectByWalletCode(walletCode);
}
@Override
public int updateByPrimaryKeySelective(MemberWalletInfo record) {
return memberWalletInfoMapper.updateByPrimaryKeySelective(record);

View File

@@ -193,4 +193,12 @@
and member_id = #{memberId,jdbcType=INTEGER}
and merchant_id is not null
</select>
<select id="selectByWalletCode" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from member_wallet_info
where del_flag = '0'
and wallet_code = #{walletCode,jdbcType=VARCHAR}
</select>
</mapper>

View File

@@ -461,6 +461,7 @@
left join order_basic_info t2
on t1.related_order_code = t2.order_code
where t1.member_id = #{dto.memberId,jdbcType=VARCHAR}
and t1.wallet_code = #{dto.walletCode,jdbcType=VARCHAR}
and t1.create_time <![CDATA[ >= ]]> #{dto.tradeDate,jdbcType=VARCHAR}
and t1.create_time <![CDATA[ < ]]> #{dto.endDate,jdbcType=VARCHAR}
and t1.sub_type != '12'