doum
14 小时以前 417e33605dda0f28366a1d6e13c41198a156e3a7
server/dmmall_service/src/main/java/com/doumee/dao/business/ShopMapper.java
@@ -13,23 +13,4 @@
 */
public interface ShopMapper extends BaseMapper<Shop> {
    /**
     * 添加积分
     * @param memberId
     * @param integral
     */
    @Select(" update shop set INTEGRAL = ifNull( INTEGRAL,0) + #{integral} , TOTAL_INTEGRAL = ifNull(TOTAL_INTEGRAL,0) +  #{titleIntegral}   , EDIT_DATE = now()  where id = #{shopId}  ")
    void addIntegral(@Param("shopId") Integer shopId , @Param("integral") BigDecimal integral , @Param("titleIntegral")BigDecimal titleIntegral);
    /**
     * 减少积分
     * @param memberId
     * @param integral
     */
    @Select(" update shop set INTEGRAL = ifNull( INTEGRAL,0) - #{integral} , EDIT_DATE = now()   where id = #{shopId}  ")
    void subtractIntegral(@Param("shopId") Integer shopId , @Param("integral")BigDecimal integral);
}