fix: 充值xml int影响行数为null修复
This commit is contained in:
@@ -40,7 +40,7 @@ public interface TbActivateMapper {
|
|||||||
* @param tbActivate 实例对象
|
* @param tbActivate 实例对象
|
||||||
* @return 影响行数
|
* @return 影响行数
|
||||||
*/
|
*/
|
||||||
int insert(TbActivate tbActivate);
|
Integer insert(TbActivate tbActivate);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量新增数据(MyBatis原生foreach方法)
|
* 批量新增数据(MyBatis原生foreach方法)
|
||||||
@@ -48,7 +48,7 @@ public interface TbActivateMapper {
|
|||||||
* @param entities List<TbActivate> 实例对象列表
|
* @param entities List<TbActivate> 实例对象列表
|
||||||
* @return 影响行数
|
* @return 影响行数
|
||||||
*/
|
*/
|
||||||
int insertBatch(@Param("entities") List<TbActivate> entities);
|
Integer insertBatch(@Param("entities") List<TbActivate> entities);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
@@ -56,7 +56,7 @@ public interface TbActivateMapper {
|
|||||||
* @param tbActivate 实例对象
|
* @param tbActivate 实例对象
|
||||||
* @return 影响行数
|
* @return 影响行数
|
||||||
*/
|
*/
|
||||||
int update(TbActivate tbActivate);
|
Integer update(TbActivate tbActivate);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
@@ -64,14 +64,14 @@ public interface TbActivateMapper {
|
|||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 影响行数
|
* @return 影响行数
|
||||||
*/
|
*/
|
||||||
int deleteById(Integer id);
|
Integer deleteById(Integer id);
|
||||||
|
|
||||||
TbActivate selectByAmount(@Param("shopId") String shopId, @Param("amount") BigDecimal amount);
|
TbActivate selectByAmount(@Param("shopId") String shopId, @Param("amount") BigDecimal amount);
|
||||||
|
|
||||||
TbActivate selectByAmountScope(@Param("shopId") String shopId,@Param("amount") BigDecimal amount);
|
TbActivate selectByAmountScope(@Param("shopId") String shopId,@Param("amount") BigDecimal amount);
|
||||||
|
|
||||||
int updateMemberPoints(@Param("memberId") Long memberId,@Param("points") Integer points);
|
Integer updateMemberPoints(@Param("memberId") Long memberId,@Param("points") Integer points);
|
||||||
|
|
||||||
int insertMemberPointsLog(Map<String,Object> params);
|
Integer insertMemberPointsLog(Map<String,Object> params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
limit 1
|
limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="updateMemberPoints" resultType="int">
|
<select id="updateMemberPoints" resultType="integer">
|
||||||
update tb_shop_user set last_points_change_time = now(),last_float_points = #{points},account_points = account_points + ${points} where id = #{memberId}
|
update tb_shop_user set last_points_change_time = now(),last_float_points = #{points},account_points = account_points + ${points} where id = #{memberId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user