| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ks.lijin.query.BaseDaoQuery; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.order.CommonOrder; |
| | | import com.yeshi.fanli.entity.order.CommonOrderGoods; |
| | | |
| | | public interface CommonOrderGoodsMapper extends BaseMapper<CommonOrderGoods>{ |
| | | |
| | | /** |
| | | * 根据订单号、订单类型查询商品 |
| | | * @param list 订单对象 |
| | | * @return |
| | | */ |
| | | List<CommonOrderGoods> listByOrderNoAndType(List<CommonOrder> list); |
| | | |
| | | public interface CommonOrderGoodsMapper extends BaseMapper<CommonOrderGoods> { |
| | | |
| | | |
| | | List<CommonOrderGoods> list(@Param("query") DaoQuery daoQuery); |
| | | |
| | | /** |
| | | * 根据订单号、订单类型查询商品 |
| | | * |
| | | * @param list 订单对象 |
| | | * @return |
| | | */ |
| | | List<CommonOrderGoods> listByOrderNoAndType(List<CommonOrder> list); |
| | | |
| | | /** |
| | | * 根据商品ID与商品类型查询商品 |
| | | * |
| | | * @param goodsId |
| | | * @param goodsType |
| | | * @return |
| | | */ |
| | | List<CommonOrderGoods> listByGoodsIdAndGoodsType(@Param("goodsId") String goodsId, |
| | | @Param("goodsType") int goodsType); |
| | | |
| | | /** |
| | | * 没有标题的列表 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<CommonOrderGoods> listNoTitle(@Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 根据ID列表查询 |
| | | * |
| | | * @param ids |
| | | * @return List<CommonOrderGoods> 返回类型 |
| | | * @throws |
| | | * @Title: listByByPrimaryKeys |
| | | * @Description: |
| | | */ |
| | | List<CommonOrderGoods> listByByPrimaryKeys(@Param("ids") List<Long> ids); |
| | | |
| | | class DaoQuery extends BaseDaoQuery { |
| | | public String goodsId; |
| | | public Integer goodsType; |
| | | } |
| | | |
| | | |
| | | } |