Authored by LUOXC

fixbug

package com.yohoufo.dal.order;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.yohoufo.dal.order.model.TradeBills;
public interface TradeBillsMapper {
TradeBills selectByPrimaryKey(Integer id);
int selectCountGoodsIncomeOrCompensateIncomeByUid(@Param("uid") Integer uid);
int insert(TradeBills record);
//根据用户uid ,获取流水(分页)
List<TradeBills> selectGoodsIncomeOrCompensateIncomeTradeBillsWithPageByUid(@Param("uid") Integer uid,@Param("start") Integer start,@Param("limit") Integer limit);
//根据用户uid,获取用户总收入
List<Map<String, Object>> selectIncomeAmountByUid(@Param("uid") Integer uid);
//根据用户uid,获取用户总支出
//List<Map<String, Object>> selectSpendAmountByUid(@Param("uid") Integer uid);
int updateSelectiveByPrimaryKey(TradeBills record);
int updateSelectiveByPrimaryKeyNoCondition(TradeBills record);
int updateToFailByPrimaryKey(TradeBills record);
TradeBills selectByDealRelateId(Integer dealRelateId);
List<TradeBills> selectByKeyProps(TradeBills condition);
int updateLockOfUidTradeStatusAndDealTime(Integer uid, Integer tradeStatus, Integer dealTime,
Integer tagTradeStatus, Integer tagDealTime);
List<TradeBills> selectByUidTradeStatusAndDealTime(Integer uid, Integer tradeStatus, Integer dealTime);
}
package com.yohoufo.dal.order;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.yohoufo.dal.order.model.TradeBills;
public interface TradeBillsMapper {
TradeBills selectByPrimaryKey(Integer id);
int selectCountGoodsIncomeOrCompensateIncomeByUid(@Param("uid") Integer uid);
int insert(TradeBills record);
//根据用户uid ,获取流水(分页)
List<TradeBills> selectGoodsIncomeOrCompensateIncomeTradeBillsWithPageByUid(@Param("uid") Integer uid,@Param("start") Integer start,@Param("limit") Integer limit);
//根据用户uid,获取用户总收入
List<Map<String, Object>> selectIncomeAmountByUid(@Param("uid") Integer uid);
//根据用户uid,获取用户总支出
//List<Map<String, Object>> selectSpendAmountByUid(@Param("uid") Integer uid);
int updateSelectiveByPrimaryKey(TradeBills record);
int updateSelectiveByPrimaryKeyNoCondition(TradeBills record);
int updateToFailByPrimaryKey(TradeBills record);
TradeBills selectByDealRelateId(Integer dealRelateId);
List<TradeBills> selectByKeyProps(TradeBills condition);
int updateLockOfUidTradeStatusAndDealTime(@Param("uid") Integer uid, @Param("tradeStatus") Integer tradeStatus, @Param("dealTime") Integer dealTime,
@Param("tagTradeStatus") Integer tagTradeStatus, @Param("tagDealTime") Integer tagDealTime);
List<TradeBills> selectByUidTradeStatusAndDealTime(@Param("uid") Integer uid, @Param("tradeStatus") Integer tradeStatus, @Param("dealTime") Integer dealTime);
}
... ...