|
|
@ -0,0 +1,167 @@ |
|
|
|
package org.jeecg.modules.demo.officialWebsite.api.frontController; |
|
|
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog; |
|
|
|
import org.jeecg.modules.demo.officialWebsite.api.bean.ApiOwImageBean; |
|
|
|
import org.jeecg.modules.demo.officialWebsite.api.bean.ApiOwProductBean; |
|
|
|
import org.jeecg.modules.demo.officialWebsite.api.service.ApiOwImageService; |
|
|
|
import org.jeecg.modules.demo.officialWebsite.api.service.ApiOwProductService; |
|
|
|
import org.jeecg.modules.demo.officialWebsite.api.utils.Utils; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@Api(tags = "前端展示页面") |
|
|
|
@RestController |
|
|
|
@RequestMapping(value = "/display") |
|
|
|
@Slf4j |
|
|
|
public class FrontController { |
|
|
|
|
|
|
|
@Resource |
|
|
|
private ApiOwImageService apiOwImageService; |
|
|
|
@Resource |
|
|
|
private ApiOwProductService apiOwProductService; |
|
|
|
|
|
|
|
/*******************************************************************************************************************/ |
|
|
|
/***********************************************图片部分************************************************************/ |
|
|
|
//图片信息查询公共方法 |
|
|
|
public List<ApiOwImageBean> queryImageUtil(String classificationId, int pageNo, int pageSize){ |
|
|
|
ApiOwImageBean apiOwImageBean = new ApiOwImageBean(); |
|
|
|
int count = apiOwImageService.queryAll(apiOwImageBean).size(); |
|
|
|
ApiOwImageBean apiOwImageBean1 = Utils.split(apiOwImageBean, classificationId, count,pageNo,pageSize); |
|
|
|
return apiOwImageService.querySplit(apiOwImageBean1); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "首页-轮播图") |
|
|
|
@ApiOperation(value = "首页-轮播图", notes = "classificationId-父级图片编号(首页_轮播图); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryFirstPageBanner", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwImageBean> queryFirstPageBanner(String classificationId, int pageNo, int pageSize){ |
|
|
|
return this.queryImageUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "首页-定制软件开发") |
|
|
|
@ApiOperation(value = "首页-定制软件开发", notes = "classificationId-父级图片编号(定制软件开发); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryCustomieSoftware", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwImageBean> queryCustomieSoftware(String classificationId, int pageNo, int pageSize){ |
|
|
|
return this.queryImageUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "首页-软件产品开发") |
|
|
|
@ApiOperation(value = "首页-软件产品开发", notes = "classificationId-父级图片编号(软件产品开发); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/querySoftware", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwImageBean> querySoftware(String classificationId,int pageNo, int pageSize){ |
|
|
|
return this.queryImageUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "关于我们-轮播图") |
|
|
|
@ApiOperation(value = "关于我们-轮播图", notes = "classificationId-父级图片编号(关于我们_轮播图); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryAboutUsBanner", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwImageBean> queryAboutUsBanner(String classificationId,int pageNo, int pageSize){ |
|
|
|
return this.queryImageUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "关于我们-信息展示") |
|
|
|
@ApiOperation(value = "关于我们-信息展示", notes = "classificationId-父级图片编号(关于我们_信息展示); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryAboutUsInfo", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwImageBean> query6(String classificationId,int pageNo, int pageSize){ |
|
|
|
return this.queryImageUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "服务项目-轮播图") |
|
|
|
@ApiOperation(value = "服务项目-轮播图", notes = "classificationId-父级图片编号(服务项目_轮播图); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryServeBanner", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwImageBean> queryServeBanner(String classificationId,int pageNo, int pageSize){ |
|
|
|
return this.queryImageUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "服务项目-信息展示") |
|
|
|
@ApiOperation(value = "服务项目-信息展示", notes = "classificationId-父级图片编号(服务项目_信息展示); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryServeInfo", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwImageBean> query8(String classificationId,int pageNo, int pageSize){ |
|
|
|
return this.queryImageUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "联系我们-加入我们的团队") |
|
|
|
@ApiOperation(value = "联系我们-加入我们的团队", notes = "classificationId-父级编号(联系我们-加入我们的团队); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryJoinUs", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwImageBean> queryJoinUs(String classificationId,int pageNo, int pageSize){ |
|
|
|
return this.queryImageUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
/*******************************************************************************************************************/ |
|
|
|
/***********************************************程序部分************************************************************/ |
|
|
|
//程序信息查询公共方法 |
|
|
|
public List<ApiOwProductBean> queryProgramUtil(String classificationId, int pageNo, int pageSize){ |
|
|
|
ApiOwProductBean apiOwProductBean = new ApiOwProductBean(); |
|
|
|
int count = apiOwProductService.queryAll(apiOwProductBean).size(); |
|
|
|
ApiOwProductBean apiOwProductBean1 = Utils.split(apiOwProductBean, classificationId,count,pageNo,pageSize); |
|
|
|
return apiOwProductService.querySplit(apiOwProductBean1); |
|
|
|
} |
|
|
|
public List<ApiOwProductBean> queryProgramUtil1(String classificationId,String isHot, int pageNo, int pageSize){ |
|
|
|
HashMap<String,Object> map = new HashMap<>(); |
|
|
|
ApiOwProductBean apiOwProductBean = new ApiOwProductBean(); |
|
|
|
//查询数据总量 |
|
|
|
int count = apiOwProductService.queryAll(apiOwProductBean).size(); |
|
|
|
//将参数打包 |
|
|
|
map.put("classificationId",classificationId); |
|
|
|
map.put("isHot",isHot); |
|
|
|
map.put("pageNo",pageNo); |
|
|
|
map.put("pageSize",pageSize); |
|
|
|
map.put("count",count); |
|
|
|
map.put("apiOwProductBean",apiOwProductBean); |
|
|
|
ApiOwProductBean apiOwProductBean1 = Utils.split1(map); |
|
|
|
return apiOwProductService.querySplit(apiOwProductBean1); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@AutoLog(value = "首页-案例展示") |
|
|
|
@ApiOperation(value = "首页-案例展示", notes = "classificationId-父级图片编号(案例展示); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryExample", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwProductBean> queryExample(String classificationId, String isHot, int pageNo, int pageSize){ |
|
|
|
return this.queryProgramUtil1(classificationId,isHot,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "案例展示-系统平台") |
|
|
|
@ApiOperation(value = "案例展示-系统平台", notes = "classificationId-父级产品编号(案例展示_系统平台); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryExampleSystem", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwProductBean> queryExampleSystem(String classificationId,int pageNo, int pageSize){ |
|
|
|
return this.queryProgramUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "案例展示-APP") |
|
|
|
@ApiOperation(value = "案例展示-APP", notes = "classificationId-父级产品编号(案例展示_APP); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryExampleApp", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwProductBean> queryExampleApp(String classificationId,int pageNo, int pageSize){ |
|
|
|
return this.queryProgramUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "案例展示-电商平台") |
|
|
|
@ApiOperation(value = "案例展示-电商平台", notes = "classificationId-父级产品编号(案例展示_电商平台); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryExampleRetailer", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwProductBean> queryExampleRetailer(String classificationId,int pageNo, int pageSize){ |
|
|
|
return this.queryProgramUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "案例展示-小程序") |
|
|
|
@ApiOperation(value = "案例展示-小程序", notes = "classificationId-父级产品编号(案例展示_小程序); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryExampleProgram", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwProductBean> queryExampleProgram(String classificationId,int pageNo, int pageSize){ |
|
|
|
return this.queryProgramUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
@AutoLog(value = "案例展示-网站建设") |
|
|
|
@ApiOperation(value = "案例展示-网站建设", notes = "classificationId-父级产品编号(案例展示_网站建设); pageNo-页码; pageSize-页面数据条数范围") |
|
|
|
@RequestMapping(value = "/queryExampleWebsite", method = {RequestMethod.GET}) |
|
|
|
public List<ApiOwProductBean> queryExampleWebsite(String classificationId,int pageNo, int pageSize){ |
|
|
|
return this.queryProgramUtil(classificationId,pageNo,pageSize); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |