账户管理
This commit is contained in:
parent
1d4e22ca79
commit
0003dfe7c8
|
|
@ -76,7 +76,9 @@ public interface AccInfoMapper extends BaseMapper<AccountInfo> {
|
||||||
AccInfoDetailsVO queryAccInfoBalanceSum(@Param("accountInfoQueryParam") AccountInfoQueryParam accountInfoQueryParam,
|
AccInfoDetailsVO queryAccInfoBalanceSum(@Param("accountInfoQueryParam") AccountInfoQueryParam accountInfoQueryParam,
|
||||||
@Param("encryptedSearchValue") String encryptedSearchValue);
|
@Param("encryptedSearchValue") String encryptedSearchValue);
|
||||||
|
|
||||||
void updateAccInfoEndDateByUserId(LocalDate endDate, List<Long> userIds, String updateBy);
|
void updateAccInfoEndDateByUserId(@Param("endDate") LocalDate endDate,
|
||||||
|
@Param("userIds") List<Long> userIds,
|
||||||
|
@Param("updateBy") String updateBy);
|
||||||
List<AccInfoDetailsVO> queryAccInfoByUserIds(@Param("userIds") List<Long> userIds);
|
List<AccInfoDetailsVO> queryAccInfoByUserIds(@Param("userIds") List<Long> userIds);
|
||||||
AccInfoDetailsVO queryAccInfoByUserId(@Param("userId") Long userId);
|
AccInfoDetailsVO queryAccInfoByUserId(@Param("userId") Long userId);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where account_id = #{accId}
|
where account_id = #{accId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertAccInfo" parameterType="com.bonus.canteen.core.account.domain.AccountInfo" useGeneratedKeys="true" keyProperty="accId">
|
<insert id="insertAccInfo" parameterType="com.bonus.canteen.core.account.domain.AccountInfo" useGeneratedKeys="true" keyProperty="accountId">
|
||||||
insert into account_info
|
insert into account_info
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="accountName != null and accountName != ''">account_name,</if>
|
<if test="accountName != null and accountName != ''">account_name,</if>
|
||||||
|
|
@ -152,7 +152,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="userId != null">#{userId},</if>
|
<if test="userId != null">#{userId},</if>
|
||||||
<if test="scope != null">#{scope},</if>
|
<if test="scope != null">#{scope},</if>
|
||||||
<if test="endDate != null">#{endDate},</if>
|
<if test="endDate != null">#{endDate},</if>
|
||||||
<if test="redValidityDate != null">#{redValidityDate},</if>
|
|
||||||
<if test="accountStatus != null">#{accountStatus},</if>
|
<if test="accountStatus != null">#{accountStatus},</if>
|
||||||
<if test="payPwd != null and payPwd != ''">#{payPwd},</if>
|
<if test="payPwd != null and payPwd != ''">#{payPwd},</if>
|
||||||
<if test="lastCreditTime != null">#{lastCreditTime},</if>
|
<if test="lastCreditTime != null">#{lastCreditTime},</if>
|
||||||
|
|
@ -224,7 +223,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<delete id="deleteAccInfoByIds" parameterType="String">
|
<delete id="deleteAccInfoByIds" parameterType="String">
|
||||||
update account_info set del_flag = '2' where account_id in
|
update account_info set del_flag = '2' where account_id in
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
#{accId}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<insert id="batchInsertAccWalletInfo" parameterType="com.bonus.canteen.core.account.domain.AccWalletInfo">
|
<insert id="batchInsertAccWalletInfo" parameterType="com.bonus.canteen.core.account.domain.AccWalletInfo">
|
||||||
insert into account_wallet_info(user_id,account_id,wallet_type,create_by,create_time) values
|
insert into account_wallet_info(user_id,account_id,wallet_type,create_by,create_time) values
|
||||||
<foreach item="item" index="index" collection="list" separator=",">
|
<foreach item="item" index="index" collection="list" separator=",">
|
||||||
(#{item.userId},#{item.accId},#{item.walletType},#{item.createBy},NOW())
|
(#{item.userId},#{item.accountId},#{item.walletType},#{item.createBy},NOW())
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue