?? pcdomainimpl.java
字號:
package org.itstar.netbar.domain.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.itstar.netbar.bean.PCBean;
import org.itstar.netbar.dao.IPCDao;
import org.itstar.netbar.dao.impl.PCDaoImpl;
import org.itstar.netbar.domain.IPCDomain;
public class PCDomainImpl implements IPCDomain
{
public int delete(String pcNum) {
IPCDao pcDao=new PCDaoImpl();
int count=pcDao.delete(pcNum);
return count;
}
public int insert(PCBean pcBean) {
IPCDao pcDao=new PCDaoImpl();
int count=pcDao.insert(pcBean);
return count;
}
public List query(Map map) {
IPCDao pcDao=new PCDaoImpl();
List list=new ArrayList();
list=pcDao.query(map);
return list;
}
public List queryAll() {
IPCDao pcDao=new PCDaoImpl();
List list=new ArrayList();
list=pcDao.queryAll();
return list;
}
public int update(PCBean pcBean) {
IPCDao pcDao=new PCDaoImpl();
int count=pcDao.update(pcBean);
return count;
}
public int updatePCState(String pcState, String pcNum) {
IPCDao pcDao=new PCDaoImpl();
int count=pcDao.updatePCState(pcState, pcNum);
return count;
}
public int updatePCType(String pcType, String pcNum) {
IPCDao pcDao=new PCDaoImpl();
int count=pcDao.updatePCType(pcType, pcNum);
return count;
}
public int updatePCStateReset() {//只將上機狀態(tài)的機器改為非上機狀態(tài)
IPCDao pcDao=new PCDaoImpl();
int count=pcDao.updatePCStateReset();
return count;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -