parent
748699556a
commit
95b9af0d45
@ -0,0 +1,22 @@
|
||||
package com.example.flower.mapper;
|
||||
|
||||
import com.example.flower.entity.Gift;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface GiftMapper {
|
||||
List<Gift> giftList(); //获取所有赠品信息
|
||||
List<Gift> giftListByQuery(String gift_name);//查询赠品信息列表
|
||||
void giftAdd(Gift gift); //添加新赠品
|
||||
int giftDeletePer(int gift_id); //删除单个赠品
|
||||
int giftDeleteMul(int[] gift_ids); //批量删除赠品
|
||||
Gift giftInfo(int gift_id); //获取赠品信息
|
||||
int giftModify(Gift gift); //修改赠品信息
|
||||
|
||||
//前台相关
|
||||
int giftModifyStock(int gift_id,int gift_stock); //修改赠品库存
|
||||
}
|
||||
Loading…
Reference in new issue