d002fbdf8600001d183ca9fc5b3b580e

来自「实训时做的物流系统」· 代码 · 共 62 行

TXT
62
字号
package com.cost.biz;

import java.util.List;

import org.apache.struts.action.ActionErrors;

import com.cost.persistence.util.HibernateUtil;
import com.cost.persistence.hibernate.pojo.Userinfo;
import com.cost.persistence.hibernate.pojo.Order;

public class FeeOperate implements java.io.Serializable {
	//insert
	//update(DoorState,UpdateApplyState,OrderState)
	//select
	public static List FeeForAccounter(int userid){
		List list = HibernateUtil.currentSession().createQuery
		("from order where userinfoByUserId='"+userid+"'").list();
		return list;
	}
	public List FeeWaitForCheck(){
		List list = HibernateUtil.currentSession().createQuery
		("from Order where cancleState='0'").list();
		return list;
	}
	public List FeeWaitForRecord(){
		List list = HibernateUtil.currentSession().createQuery
		("from Order where cancleState='1'").list();
		return list;
	}
	public List FeeWaitForCancle(){
		List list = HibernateUtil.currentSession().createQuery
		("from Order where cancleState='2'").list();
		return list;
	}
	public Order FeeView(String orderNo){
		List list = HibernateUtil.currentSession().createQuery
		("from Order where orderNo='"+orderNo+"'").list();
		Order order = (Order)list.get(0);
		return order;
	}
    public ActionErrors FeeAdd(){
    	ActionErrors errors = new ActionErrors();
    	return errors;
    }
    public ActionErrors FeeUpdate(){
    	ActionErrors errors = new ActionErrors();
    	return errors;
    }
	public ActionErrors FeeCheck(){
    	ActionErrors errors = new ActionErrors();
    	return errors;
    }
    public ActionErrors FeeRecord(){
    	ActionErrors errors = new ActionErrors();
    	return errors;
    }
    public ActionErrors FeeCancle(){
    	ActionErrors errors = new ActionErrors();
    	return errors;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?