4.1 查询民间文学
@RequestMapping(value = "/getByPage", method = RequestMethod.GET)
@ApiOperation(value = "查询民间文学")
public Result<IPage<BuildingGarden>> getByPage(@ModelAttribute BuildingGarden buildingGarden ,@ModelAttribute PageVo page){
QueryWrapper<BuildingGarden> qw = new QueryWrapper<>();
if(!ZwzNullUtils.isNull(buildingGarden.getTitle())) {
qw.like("title",buildingGarden.getTitle());
}
if(!ZwzNullUtils.isNull(buildingGarden.getStatus())) {
qw.eq("status",buildingGarden.getStatus());
}
if(!ZwzNullUtils.isNull(buildingGarden.getContent())) {
qw.like("content",buildingGarden.getContent());
}
IPage<BuildingGarden> data = iBuildingGardenService.page(PageUtil.initMpPage(page),qw);
return new ResultUtil<IPage<BuildingGarden>>().setData(data);
}
4.2 查询传统音乐
@RequestMapping(value = "/getByPage", method = RequestMethod.GET)
@ApiOperation(value = "查询传统音乐")
public Result<IPage<CompetitionRegistration>> getByPage(@ModelAttribute CompetitionRegistration competitionRegistration ,@ModelAttribute PageVo page){
QueryWrapper<CompetitionRegistration> qw = new QueryWrapper<>();
if(!ZwzNullUtils.isNull(competitionRegistration.getTitle())) {
qw.like("title",competitionRegistration.getTitle());
}
if(!ZwzNullUtils.isNull(competitionRegistration.getStatus())) {
qw.eq("status",competitionRegistration.getStatus());
}
if(!ZwzNullUtils.isNull(competitionRegistration.getContent())) {
qw.like("content",competitionRegistration.getContent());
}
IPage<CompetitionRegistration> data = iCompetitionRegistrationService.page(PageUtil.initMpPage(page),qw);
return new ResultUtil<IPage<CompetitionRegistration>>().setData(data);
}
4.3 增改传统舞蹈
@RequestMapping(value = "/insertOrUpdate", method = RequestMethod.POST)
@ApiOperation(value = "增改传统舞蹈")
public Result<EducationTeaching> saveOrUpdate(EducationTeaching educationTeaching){
User currUser = securityUtil.getCurrUser();
educationTeaching.setUserName(currUser.getNickname());
if(Objects.equals(0,educationTeaching.getSortOrder().compareTo(BigDecimal.ZERO))) {
educationTeaching.setSortOrder(BigDecimal.valueOf(iEducationTeachingService.count() + 1L));
}
if(iEducationTeachingService.saveOrUpdate(educationTeaching)){
return new ResultUtil<EducationTeaching>().setData(educationTeaching);
}
return ResultUtil.error();
}
4.4 网页页签
<div class="process">
<div class="heng"></div>
<span class="title1">陕西非物质文化遗产</span>
<span class="notes">Recruitment process</span>
<div class="processBox">
<div class="step">
<img class="stepImg" src="../assets/step1.png" alt="" />
<span class="name1">陕西地市</span>
<span class="time">陕西地市相关信息</span>
</div>
<div class="arrow">▲</div>
<div class="step">
<img class="stepImg" src="../assets/step2.png" alt="" />
<span class="name1">传统音乐</span>
<span class="time">传统音乐相关信息</span>
</div>
<div class="arrow">▲</div>
<div class="step">
<img class="stepImg" src="../assets/step3.png" alt="" />
<span class="name1">传统舞蹈</span>
<span class="time">传统舞蹈相关信息</span>
</div>
<div class="arrow">▲</div>
<div class="step">
<img class="stepImg" src="../assets/step4.png" alt="" />
<span class="name1">传统戏剧</span>
<span class="time">传统戏剧相关信息</span>
</div>
</div>
4.5 网页数据展示
<el-row :gutter="20" v-for="(item,index) in positionList" :key="index" style="width: 100%;margin-bottom: 20px;">
<div class="spotCollPosDiv">NO: {{ index + 1 }}</div>
<el-col :span="24">
<el-row :gutter="20">
<el-col :span="6">
<img :src="item.image" style="width:100%" />
</el-col>
<el-col :span="1">
</el-col>
<el-col :span="17">
<el-row :gutter="20">
<el-col :span="24">
<el-row :gutter="20" class="spanContext">
<span class="spanContextLabel"> 传统音乐标题:</span> {{item.title}}
</el-row>
</el-col>
<el-col :span="24">
<el-row :gutter="20" class="spanContext">
<span class="spanContextLabel"> 发布状态:</span> {{item.status}}
</el-row>
</el-col>
<el-col :span="24">
<el-row :gutter="20" class="spanContext">
<span class="spanContextLabel"> 发布人:</span> {{item.userName}}
</el-row>
</el-col>
<el-col :span="24">
<el-row :gutter="20" class="spanContext">
{{item.content}}
</el-row>
</el-col>
</el-row>
</el-col>
</el-row>
</el-col>
</el-row>