[java]代码库
package cn.run.Service;
import java.sql.SQLException;
import cn.run.dao.RunDao;
import cn.run.form.RunForm;
import cn.run.form.UserForm;
public class RunService {
RunDao ud=new RunDao();
public RunForm findRunMan(String xh) {
// TODO Auto-generated method stub
try {
return ud.findRunMan(xh);
} catch (SQLException e) {
// TODO Auto-generated catch block
System.out.println("判定Run中是否有,出错!");
}
return null;
}
public int WRunMan(UserForm uf, int rp) {
// TODO Auto-generated method stub
return ud.WRunMan(uf,rp);
}
public RunForm RfindRunMan(String rp) {
return ud.RfindRunMan(rp);
}
public int updateRMan(RunForm rf, String id) {
// TODO Auto-generated method stub
return ud.updateRMan(rf,id);
}
public int updateUser(RunForm rf) {
// TODO Auto-generated method stub
try {
return ud.updateUser(rf);
} catch (SQLException e) {
// TODO Auto-generated catch block
System.out.println("最终出错!");
}
return 0;
}
public int deleteRMan(RunForm rf) {
return ud.deleteRMan(rf);
}
}
[代码运行效果截图]
[源代码打包下载]