基于javaweb+SSM宠物商城(前台、后台)
开发工具:eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
pageBean.setLimitPage(limitPage);
// 设置一共多少页
int totlePage = 0;
// 查询一共有多少页
totlePage = ordersMapper.countOrdersByUid(uid);
if(Math.ceil(totlePage % limitPage)==0){
totlePage=totlePage / limitPage;
}else{
totlePage=totlePage / limitPage+1;
}
pageBean.setTotlePage(totlePage);
int beginPage= (page-1)*limitPage;
// 商品集合
List<Orders> list = ordersMapper.findOrderByUidAndPage(uid,beginPage,limitPage);
pageBean.setList(list);
return pageBean;
}
pageBean.setPage(<