基于javaweb的SSH在线篮球馆管理系统场馆预订(java+ssh+mysql+jsp)

运行环境

Java≥8、MySQL≥5.7、Tomcat≥8

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

441923282309

451923282309

461923282309

471923282309

481923282309

491923282309

511923282309

521923282309

531923282309

基于javaweb的SSH在线篮球馆管理系统场馆预订(java+ssh+mysql+jsp)

管理员:
admin 123456

收银员:
cashier1 123456
cashier2 123456

用户(用户预订场地):
user1 123456
user2 123456

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
	


//=============自=======定=======义=========方=======法==========区=========end============//



}









/**
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
}
public void setFileContentType(String fileContentType) {
this.fileContentType = fileContentType;
}
//============文件上传end=========================================================
public String jsonAction() {
// dataMap中的数据将会被Struts2转换成JSON字符串,所以这里要先清空其中的数据
jsonMap.clear();
jsonMap.put("success", true);
return JSON_TYPE;
}
//-------------------------华丽分割线---------------------------------------------//

//=============公=======共=======方=======法==========区=========start============//
/**
* 列表分页查询
*/
public String equip(){
Map<String,Object> alias = new HashMap<String,Object>();
StringBuffer sb = new StringBuffer();
sb = sb.append("from Equip where 1=1 ");
if(equip.getType() != null&&!"".equals(equip.getType())){
sb.append(" and type = :type");
alias.put("type",equip.getType());
}
if(equip.getPrice() != null&&!"".equals(equip.getPrice())){
sb.append(" and price = :price");
alias.put("price",equip.getPrice());
}
if(equip!=null && equip.getName() !=null && !"".equals(equip.getName())){
sb.append(" and name like :name ");
alias.put("name", "%" +equip.getName()+ "%" );
}
sb = sb.append(" order by id desc");
Pager<Equip> pagers = equipService.findByAlias(sb.toString(),alias);
ActionContext.getContext().put("pagers", pagers);
ActionContext.getContext().put("Obj", equip);
return SUCCESS;
}

public String equip1(){
Map<String,Object> alias = new HashMap<String,Object>();
StringBuffer sb = new StringBuffer();
sb = sb.append("from Equip where 1=1 ");
if(equip.getType() != null&&!"".equals(equip.getType())){
sb.append(" and type = :type");
alias.put("type",equip.getType());
}
if(equip.getPrice() != null&&!"".equals(equip.getPrice())){
sb.append(" and price = :price");
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

//============自定义参数start=============

//============自定义参数end=============


//-------------------------华丽分割线---------------------------------------------

//============文件上传start=======================================================


private File file;
//提交过来的file的名字
private String fileFileName;
//提交过来的file的MIME类型
private String fileContentType;
public File getFile() {
return file;
}
public void setFile(File file) {
this.file = file;
}
public String getFileFileName() {
return fileFileName;
}
public void setFileFileName(String fileFileName) {
this.fileFileName = fileFileName;
}
public String getFileContentType() {
return fileContentType;
}
public void setFileContentType(String fileContentType) {
this.fileContentType = fileContentType;
}
//============文件上传end=========================================================
public String jsonAction() {
// dataMap中的数据将会被Struts2转换成JSON字符串,所以这里要先清空其中的数据
jsonMap.clear();
jsonMap.put("success", true);
return JSON_TYPE;
}
//-------------------------华丽分割线---------------------------------------------//

//=============公=======共=======方=======法==========区=========start============//
/**
* 列表分页查询
*/
public String coach(){
Map<String,Object> alias = new HashMap<String,Object>();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
public void setFileContentType(String fileContentType) {
this.fileContentType = fileContentType;
}
//============文件上传end=========================================================
public String jsonAction() {
// dataMap中的数据将会被Struts2转换成JSON字符串,所以这里要先清空其中的数据
jsonMap.clear();
jsonMap.put("success", true);
return JSON_TYPE;
}
//-------------------------华丽分割线---------------------------------------------//

//=============公=======共=======方=======法==========区=========start============//
/**
* 列表分页查询
*/
public String coach(){
Map<String,Object> alias = new HashMap<String,Object>();
StringBuffer sb = new StringBuffer();
sb = sb.append("from Coach where 1=1 ");
if(coach.getLevel() != null&&!"".equals(coach.getLevel())){
sb.append(" and level = :level");
alias.put("level", coach.getLevel());
}
if(coach.getSex() != null&&!"".equals(coach.getSex())){
sb.append(" and sex = :sex");
alias.put("sex", coach.getSex());
}
if(coach!=null && coach.getName() !=null && !"".equals(coach.getName())){
sb.append(" and name like :name ");
alias.put("name", "%" +coach.getName()+ "%" );
}
sb = sb.append(" order by id desc");
Pager<Coach> pagers = coachService.findByAlias(sb.toString(),alias);
ActionContext.getContext().put("pagers", pagers);
ActionContext.getContext().put("Obj", coach);
return SUCCESS;
}

public String coach1(){
Map<String,Object> alias = new HashMap<String,Object>();
StringBuffer sb = new StringBuffer();
sb = sb.append("from Coach where 1=1 ");
if(coach.getLevel() != null&&!"".equals(coach.getLevel())){
sb.append(" and level = :level");
alias.put("level", coach.getLevel());
}
if(coach.getSex() != null&&!"".equals(coach.getSex())){
sb.append(" and sex = :sex");
alias.put("sex", coach.getSex());
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37


/**
* @ClassName:
* @Description:
*/

@Controller("ziLiaoAction")
@Scope("prototype")
public class ZiLiaoAction extends ActionSupport implements ModelDriven<ZiLiao>{

private static final long serialVersionUID = 1L;

//==========model==============
private ZiLiao ziLiao;
@Override
public ZiLiao getModel() {
if(ziLiao==null) ziLiao = new ZiLiao();
return ziLiao;
}
//==========model==============
/**
* 依赖注入 start dao/service/===
*/
@Autowired
private ZiLiaoService ziLiaoService;

//依赖注入 end dao/service/===

//-------------------------华丽分割线---------------------------------------------

//============自定义参数start=============

//============自定义参数end=============

//-------------------------华丽分割线---------------------------------------------


项目链接:
https://javayms.github.io?id=431923282309201ez
https://javayms.pages.dev?id=431923282309201ez