parent
71a0528776
commit
12db042df7
@ -0,0 +1,19 @@
|
||||
package com.example.flower.mapper;
|
||||
|
||||
import com.example.flower.entity.Discount;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface DiscountMapper {
|
||||
List<Discount> discountList(); //获取所有折扣信息
|
||||
List<Discount> discountListByQuery(String discount_name);//查询折扣信息列表
|
||||
void discountAdd(Discount discount); //添加新折扣
|
||||
int discountDeletePer(int discount_id); //删除单个折扣
|
||||
int discountDeleteMul(int[] discount_ids); //批量删除折扣
|
||||
Discount discountInfo(int discount_id); //获取折扣信息
|
||||
int discountModify(Discount discount); //修改折扣信息
|
||||
}
|
||||
Loading…
Reference in new issue