更新数据库结构,重写订单接口,添加注释

This commit is contained in:
freeebird
2018-11-28 15:18:17 +08:00
parent 346dca6e65
commit 556e257d45
19 changed files with 554 additions and 245 deletions

View File

@@ -1,11 +1,7 @@
package cn.mafangui.hotel.mapper;
import cn.mafangui.hotel.entity.Order;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public interface OrderMapper {
int deleteByPrimaryKey(Integer orderId);
@@ -18,12 +14,4 @@ public interface OrderMapper {
int updateByPrimaryKeySelective(Order record);
int updateByPrimaryKey(Order record);
List<Order> selectByUserId(int userId);
List<Order> selectAll();
List<Order> userSelectAll(int userId);
}
}