parent
4b528ea63b
commit
0ee71e0920
@ -0,0 +1,97 @@
|
||||
package com.ruoyi.gysl.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.gysl.entity.Dpclgl;
|
||||
import com.ruoyi.gysl.entity.request.DpclglPageReq;
|
||||
import com.ruoyi.gysl.service.DpclglService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 单片材料管理(Dpclgl)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 11:11:55
|
||||
*/
|
||||
@Api(tags ="单片材料管理" )
|
||||
@RestController
|
||||
@RequestMapping("/gysl/dpclgl")
|
||||
@PreAuthorize("@ss.hasAnyRoles('admin,common')")
|
||||
public class DpclglController extends BaseController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private DpclglService dpclglService;
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param dpclgl 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
@ApiOperation("分页查询所有数据")
|
||||
@GetMapping("/page")
|
||||
public AjaxResult selectAll(Page<Dpclgl> page, DpclglPageReq dpclgl) {
|
||||
return success(dpclglService.page(page, dpclgl));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@ApiOperation("通过主键查询单条数据")
|
||||
@GetMapping("/{id}")
|
||||
public AjaxResult selectOne(@PathVariable Serializable id) {
|
||||
return success(dpclglService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param dpclgl 实体对象
|
||||
* @return 新增结果
|
||||
*/
|
||||
@ApiOperation("新增数据")
|
||||
@PostMapping("/add")
|
||||
public AjaxResult insert(@RequestBody Dpclgl dpclgl) {
|
||||
return success(dpclglService.save(dpclgl));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param dpclgl 实体对象
|
||||
* @return 修改结果
|
||||
*/
|
||||
@ApiOperation("修改数据")
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult update(@RequestBody Dpclgl dpclgl) {
|
||||
return success(dpclglService.updateById(dpclgl));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param idList 主键结合
|
||||
* @return 删除结果
|
||||
*/
|
||||
@ApiOperation("删除数据")
|
||||
@DeleteMapping("/delete")
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return success(dpclglService.removeByIds(idList));
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,129 @@
|
||||
package com.ruoyi.gysl.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.gysl.entity.Ml;
|
||||
import com.ruoyi.gysl.entity.request.MlPageReq;
|
||||
import com.ruoyi.gysl.service.MlService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 目录管理(Ml)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 09:21:57
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/gysl/ml")
|
||||
@Api(tags = "目录管理")
|
||||
@PreAuthorize("@ss.hasAnyRoles('admin,common')")
|
||||
public class MlController extends BaseController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private MlService mlService;
|
||||
|
||||
/**
|
||||
* 分页查询所有目录
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 所有数据
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperation(value = "分页查询所有目录",response = Ml.class )
|
||||
public AjaxResult selectAll(Page<Ml> page, MlPageReq req) {
|
||||
return success(mlService.page(page,req));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
@ApiOperation(value = "通过主键查询单条数据",response = Ml.class )
|
||||
public AjaxResult selectOne(@PathVariable Serializable id) {
|
||||
return success(mlService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param ml 实体对象
|
||||
* @return 新增结果
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("新增数据")
|
||||
public AjaxResult insert(@RequestBody Ml ml) {
|
||||
return success(mlService.save(ml));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param ml 实体对象
|
||||
* @return 修改结果
|
||||
*/
|
||||
@PostMapping("/edit")
|
||||
@ApiOperation("修改数据")
|
||||
public AjaxResult update(@RequestBody Ml ml) {
|
||||
return success(mlService.updateById(ml));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param idList 主键结合
|
||||
* @return 删除结果
|
||||
*/
|
||||
@ApiOperation("删除数据")
|
||||
@DeleteMapping("/delete")
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return success(mlService.removeByIds(idList));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据条件导出所有目录
|
||||
*/
|
||||
@ApiOperation(value = "根据条件导出所有目录")
|
||||
@PostMapping(value = "/exportMl")
|
||||
public void exportMl(HttpServletResponse response, MlPageReq req) throws Exception {
|
||||
List<Ml> filteredList = mlService.page(req);
|
||||
ExcelUtil<Ml> util = new ExcelUtil<>(Ml.class);
|
||||
util.exportExcel(response, filteredList, "目录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入已有的目录数据
|
||||
*/
|
||||
@ApiOperation(value = "导入已有的目录数据")
|
||||
@PostMapping(value = "/importMl", consumes = "multipart/form-data")
|
||||
public AjaxResult importMl(@RequestPart("file") MultipartFile file) throws Exception {
|
||||
ExcelUtil<Ml> util = new ExcelUtil<>(Ml.class);
|
||||
List<Ml> proList = util.importExcel(file.getInputStream());
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
if (proList == null || proList.isEmpty()) {
|
||||
throw new ServiceException("导入数据不能为空");
|
||||
} else {
|
||||
mlService.saveBatch(proList);
|
||||
successMsg.append("导入成功");
|
||||
}
|
||||
return AjaxResult.success(successMsg);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,59 @@
|
||||
package com.ruoyi.gysl.controller;
|
||||
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.gysl.service.QyStatsService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 企业统计控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-02-24 09:25:51
|
||||
*/
|
||||
@Api(tags = "企业统计")
|
||||
@RestController
|
||||
@RequestMapping("/gysl/qyStats")
|
||||
@PreAuthorize("@ss.hasAnyRoles('company')")
|
||||
public class QyStatsController extends BaseController {
|
||||
|
||||
@Resource
|
||||
private QyStatsService qyStatsService;
|
||||
|
||||
/**
|
||||
* 整体项目情况
|
||||
*/
|
||||
@ApiOperation("整体项目情况")
|
||||
@GetMapping("/allProject")
|
||||
public AjaxResult allProject() {
|
||||
return success(qyStatsService.allProject(SecurityUtils.getUsername()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 关联项目
|
||||
*/
|
||||
@ApiOperation("整体项目情况")
|
||||
@GetMapping("/relationalProject")
|
||||
public AjaxResult relationalProject() {
|
||||
return success(qyStatsService.relationalProject(SecurityUtils.getUsername()));
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 消息通知
|
||||
// */
|
||||
// @ApiOperation("消息通知")
|
||||
// @GetMapping("/qyNotice")
|
||||
// public AjaxResult qyNotice() {
|
||||
// return success(qyStatsService.qyNotice(SecurityUtils.getUsername()));
|
||||
// }
|
||||
}
|
||||
|
@ -0,0 +1,131 @@
|
||||
package com.ruoyi.gysl.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.gysl.entity.Xfcygl;
|
||||
import com.ruoyi.gysl.entity.request.XfcyglPageReq;
|
||||
import com.ruoyi.gysl.service.XfcyglService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 细分产业管理(Xfcygl)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 10:39:43
|
||||
*/
|
||||
@Api(tags ="细分产业管理" )
|
||||
@RestController
|
||||
@RequestMapping("/gysl/xfcygl")
|
||||
@PreAuthorize("@ss.hasAnyRoles('admin,common')")
|
||||
public class XfcyglController extends BaseController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private XfcyglService xfcyglService;
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param req 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
@ApiOperation("分页查询所有数据")
|
||||
@GetMapping("/page")
|
||||
public AjaxResult selectAll(Page<Xfcygl> page, XfcyglPageReq req) {
|
||||
return success(xfcyglService.page(page, req));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@ApiOperation("通过主键查询单条数据")
|
||||
@GetMapping("/{id}")
|
||||
public AjaxResult selectOne(@PathVariable Serializable id) {
|
||||
return success(xfcyglService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param xfcygl 实体对象
|
||||
* @return 新增结果
|
||||
*/
|
||||
@ApiOperation("新增数据")
|
||||
@PostMapping("/add")
|
||||
public AjaxResult insert(@RequestBody Xfcygl xfcygl) {
|
||||
return success(xfcyglService.save(xfcygl));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param xfcygl 实体对象
|
||||
* @return 修改结果
|
||||
*/
|
||||
@ApiOperation("修改数据")
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult update(@RequestBody Xfcygl xfcygl) {
|
||||
return success(xfcyglService.updateById(xfcygl));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param idList 主键结合
|
||||
* @return 删除结果
|
||||
*/
|
||||
@ApiOperation("删除数据")
|
||||
@DeleteMapping("/delete")
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return success(xfcyglService.removeByIds(idList));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据条件导出所有细分产业
|
||||
*/
|
||||
@ApiOperation(value = "根据条件导出所有细分产业")
|
||||
@PostMapping(value = "/exportXfcy")
|
||||
public void exportXfcy(HttpServletResponse response, XfcyglPageReq req) throws Exception {
|
||||
List<Xfcygl> filteredList = xfcyglService.page(req);
|
||||
ExcelUtil<Xfcygl> util = new ExcelUtil<>(Xfcygl.class);
|
||||
util.exportExcel(response, filteredList, "细分产业数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入已有的细分产业数据
|
||||
*/
|
||||
@ApiOperation(value = "导入已有的细分产业数据")
|
||||
@PostMapping(value = "/imporXfcy", consumes = "multipart/form-data")
|
||||
public AjaxResult imporXfcy(@RequestPart("file") MultipartFile file) throws Exception {
|
||||
ExcelUtil<Xfcygl> util = new ExcelUtil<>(Xfcygl.class);
|
||||
List<Xfcygl> proList = util.importExcel(file.getInputStream());
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
if (proList == null || proList.isEmpty()) {
|
||||
throw new ServiceException("导入数据不能为空");
|
||||
} else {
|
||||
xfcyglService.saveBatch(proList);
|
||||
successMsg.append("导入成功");
|
||||
}
|
||||
return AjaxResult.success(successMsg);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,96 @@
|
||||
package com.ruoyi.gysl.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.gysl.entity.Xmpjqd;
|
||||
import com.ruoyi.gysl.entity.request.XmpjqdPageReq;
|
||||
import com.ruoyi.gysl.service.XmpjqdService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目评价清单(Xmpjqd)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 09:22:33
|
||||
*/
|
||||
@Api(tags ="项目评价清单" )
|
||||
@RestController
|
||||
@RequestMapping("/gysl/xmpjqd")
|
||||
@PreAuthorize("@ss.hasAnyRoles('admin,common')")
|
||||
public class XmpjqdController extends BaseController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private XmpjqdService xmpjqdService;
|
||||
|
||||
/**
|
||||
* 分页查询所有目录
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 所有数据
|
||||
*/
|
||||
@ApiOperation("分页查询所有目录")
|
||||
@GetMapping("/page")
|
||||
public AjaxResult selectAll(Page<Xmpjqd> page, XmpjqdPageReq req) {
|
||||
return success(xmpjqdService.page(page, req));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@ApiOperation("通过主键查询单条数据")
|
||||
@GetMapping("/{id}")
|
||||
public AjaxResult selectOne(@PathVariable Serializable id) {
|
||||
return success(xmpjqdService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param xmpjqd 实体对象
|
||||
* @return 新增结果
|
||||
*/
|
||||
@ApiOperation("新增数据")
|
||||
@PostMapping("/add")
|
||||
public AjaxResult insert(@RequestBody Xmpjqd xmpjqd) {
|
||||
return success(xmpjqdService.save(xmpjqd));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param xmpjqd 实体对象
|
||||
* @return 修改结果
|
||||
*/
|
||||
@ApiOperation("修改数据")
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult update(@RequestBody Xmpjqd xmpjqd) {
|
||||
return success(xmpjqdService.updateById(xmpjqd));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param idList 主键结合
|
||||
* @return 删除结果
|
||||
*/
|
||||
@ApiOperation("删除数据")
|
||||
@DeleteMapping("/delete")
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return success(xmpjqdService.removeByIds(idList));
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,73 @@
|
||||
package com.ruoyi.gysl.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.gysl.entity.BasicInformation;
|
||||
import com.ruoyi.gysl.service.BasicInformationService;
|
||||
import com.ruoyi.gysl.service.ZwStatsService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 政务统计控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-02-24 09:25:51
|
||||
*/
|
||||
@Api(tags = "政务统计")
|
||||
@RestController
|
||||
@RequestMapping("/gysl/zwStats")
|
||||
@PreAuthorize("@ss.hasAnyRoles('admin,common')")
|
||||
public class ZwStatsController extends BaseController {
|
||||
|
||||
@Resource
|
||||
private ZwStatsService zwStatsService;
|
||||
|
||||
@Resource
|
||||
private BasicInformationService basicInformationService;
|
||||
|
||||
/**
|
||||
* 项目情况
|
||||
*/
|
||||
@ApiOperation("整体项目情况")
|
||||
@GetMapping("/allProject")
|
||||
public AjaxResult allProject() {
|
||||
return success(zwStatsService.allProject());
|
||||
}
|
||||
|
||||
/**
|
||||
* 功能区
|
||||
*/
|
||||
@ApiOperation("功能区")
|
||||
@GetMapping("/ribbon")
|
||||
public AjaxResult ribbon() {
|
||||
return success(zwStatsService.ribbon());
|
||||
}
|
||||
|
||||
/**
|
||||
* 投资主体
|
||||
*/
|
||||
@ApiOperation("投资主体")
|
||||
@GetMapping("/investors")
|
||||
public AjaxResult investors() {
|
||||
return success(zwStatsService.investors());
|
||||
}
|
||||
|
||||
/**
|
||||
* 有经纬度的项目列表
|
||||
*/
|
||||
@ApiOperation("有经纬度的项目列表")
|
||||
@GetMapping("/projectList")
|
||||
public AjaxResult projectList(Page<BasicInformation> page) {
|
||||
return success(basicInformationService.projectList(page));
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,41 @@
|
||||
package com.ruoyi.gysl.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.gysl.entity.baseModel.BaseModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 单片材料管理(Dpclgl)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 11:11:55
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("dpclgl")
|
||||
public class Dpclgl extends BaseModel implements Serializable{
|
||||
|
||||
@ApiModelProperty(value = "主键id")
|
||||
@TableField("id")
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("文件标题")
|
||||
private String fileTitle;
|
||||
|
||||
@ApiModelProperty("发布单位")
|
||||
private String unit;
|
||||
|
||||
@ApiModelProperty("文件内容")
|
||||
private String content;
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,44 @@
|
||||
package com.ruoyi.gysl.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.gysl.entity.baseModel.BaseModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 目录管理(Ml)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 09:21:57
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("ml")
|
||||
public class Ml extends BaseModel implements Serializable{
|
||||
|
||||
@ApiModelProperty(value = "主键id")
|
||||
@TableField("id")
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@Excel(name = "上楼目录类别")
|
||||
@ApiModelProperty("上楼目录类别")
|
||||
private Integer slmllb;
|
||||
|
||||
@Excel(name = "工业大类")
|
||||
@ApiModelProperty("工业大类")
|
||||
private String gydl;
|
||||
|
||||
@Excel(name = "产业")
|
||||
@ApiModelProperty("产业")
|
||||
private String cy;
|
||||
}
|
||||
|
@ -0,0 +1,49 @@
|
||||
package com.ruoyi.gysl.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 项目通知(Notice)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-23 16:34:27
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("mx")
|
||||
@ApiModel(value = "Mx", description = "项目通知")
|
||||
public class Notice implements Serializable {
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty(value = "主键id")
|
||||
@TableField("id")
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "1政务通知 2企业通知")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "通知内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "统一社会信用代码")
|
||||
private String tyshxydm;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
|
@ -0,0 +1,43 @@
|
||||
package com.ruoyi.gysl.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.gysl.entity.baseModel.BaseModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 细分产业管理(Xfcygl)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 10:39:47
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("xmpjqd")
|
||||
public class Xfcygl extends BaseModel implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "主键id")
|
||||
@TableField("id")
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "产业类别")
|
||||
private String cylb;
|
||||
|
||||
@ApiModelProperty(value = "产业细分")
|
||||
private String cyxf;
|
||||
|
||||
@ApiModelProperty(value = "原材料及生产环节")
|
||||
private String ycljschj;
|
||||
|
||||
@ApiModelProperty(value = "上楼适应性")
|
||||
private Integer slsyx;
|
||||
}
|
||||
|
@ -0,0 +1,58 @@
|
||||
package com.ruoyi.gysl.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.gysl.entity.baseModel.BaseModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* 项目评价清单(Xmpjqd)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 09:22:33
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("xmpjqd")
|
||||
public class Xmpjqd extends BaseModel implements Serializable {
|
||||
@ApiModelProperty(value = "主键id")
|
||||
@TableField("id")
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "项目名称")
|
||||
private String xmmc;
|
||||
|
||||
@ApiModelProperty(value = "项目建设开始时间 yyyy-MM")
|
||||
@DateTimeFormat(pattern = "yyyy-MM")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM", timezone = "GMT+8")
|
||||
private LocalDate xmqzsj;
|
||||
|
||||
@ApiModelProperty(value = "项目建设结束时间 yyyy-MM")
|
||||
@DateTimeFormat(pattern = "yyyy-MM")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM", timezone = "GMT+8")
|
||||
private LocalDate xmjssj;
|
||||
|
||||
@ApiModelProperty(value = "现状分类")
|
||||
private Integer xzfl;
|
||||
|
||||
@ApiModelProperty(value = "评价等级")
|
||||
private Integer pjdj;
|
||||
|
||||
@ApiModelProperty(value = "项目法人单位")
|
||||
private String xmfrdw;
|
||||
|
||||
@ApiModelProperty(value = "项目评价")
|
||||
private String xmpj;
|
||||
}
|
||||
|
@ -0,0 +1,31 @@
|
||||
package com.ruoyi.gysl.entity.request;
|
||||
|
||||
import com.ruoyi.gysl.entity.*;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业提交审核实体类
|
||||
* @author du
|
||||
* @since 2025/3/22 18:21
|
||||
*/
|
||||
@Data
|
||||
public class AuditRequest {
|
||||
|
||||
@ApiModelProperty("项目基本信息")
|
||||
private BasicInformation basicInformation;
|
||||
|
||||
@ApiModelProperty("项目规划信息")
|
||||
private PlanInformation planInformation;
|
||||
|
||||
@ApiModelProperty("五要素模型信息")
|
||||
private List<WysmxInformation> wysmxInformations;
|
||||
|
||||
@ApiModelProperty("企业入驻信息")
|
||||
private QyrzInformation qyrzInformation;
|
||||
|
||||
@ApiModelProperty("项目其他信息")
|
||||
private List<ProjectOtherInfo> projectOtherInfos;
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.gysl.entity.request;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* 单片材料管理分页参数
|
||||
* @author du
|
||||
* @since 2025/3/22 11:28
|
||||
*/
|
||||
@Data
|
||||
public class DpclglPageReq {
|
||||
|
||||
@ApiModelProperty("文件标题")
|
||||
private String fileTitle;
|
||||
|
||||
@ApiModelProperty(value = "发布时间 yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
private LocalDate startTime;
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.ruoyi.gysl.entity.request;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 目录分页查询参数
|
||||
* @author du
|
||||
* @since 2025/3/22 9:50
|
||||
*/
|
||||
@Data
|
||||
public class MlPageReq {
|
||||
|
||||
@ApiModelProperty("上楼目录类别")
|
||||
private Integer slmllb;
|
||||
|
||||
@ApiModelProperty("工业大类")
|
||||
private String gydl;
|
||||
|
||||
@ApiModelProperty("产业")
|
||||
private String cy;
|
||||
|
||||
@ApiModelProperty(value = "更新开始时间 yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime startTime;
|
||||
|
||||
@ApiModelProperty(value = "更新结束时间 yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime endTime;
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.ruoyi.gysl.entity.request;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 细分产业管理分页参数
|
||||
* @author du
|
||||
* @since 2025/3/22 10:53
|
||||
*/
|
||||
@Data
|
||||
public class XfcyglPageReq {
|
||||
|
||||
@ApiModelProperty(value = "产业类别")
|
||||
private String cylb;
|
||||
|
||||
@ApiModelProperty(value = "产业细分")
|
||||
private String cyxf;
|
||||
|
||||
@ApiModelProperty(value = "上楼适应性")
|
||||
private Integer slsyx;
|
||||
|
||||
@ApiModelProperty(value = "更新开始时间 yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime startTime;
|
||||
|
||||
@ApiModelProperty(value = "更新结束时间 yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime endTime;
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.ruoyi.gysl.entity.request;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* 项目评价清单分页参数
|
||||
* @author du
|
||||
* @since 2025/3/22 10:10
|
||||
*/
|
||||
@Data
|
||||
public class XmpjqdPageReq {
|
||||
|
||||
@ApiModelProperty(value = "现状分类")
|
||||
private Integer xzfl;
|
||||
|
||||
@ApiModelProperty(value = "评价等级")
|
||||
private Integer pjdj;
|
||||
|
||||
@ApiModelProperty(value = "项目名称")
|
||||
private String xmmc;
|
||||
|
||||
@ApiModelProperty(value = "项目建设开始时间 yyyy-MM")
|
||||
@DateTimeFormat(pattern = "yyyy-MM")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM", timezone = "GMT+8")
|
||||
private LocalDate xmqzsj;
|
||||
|
||||
@ApiModelProperty(value = "项目建设结束时间 yyyy-MM")
|
||||
@DateTimeFormat(pattern = "yyyy-MM")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM", timezone = "GMT+8")
|
||||
private LocalDate xmjssj;
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.ruoyi.gysl.entity.response;
|
||||
|
||||
import com.ruoyi.gysl.entity.*;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目的所有信息返回实体类
|
||||
*
|
||||
* @author du
|
||||
* @since 2025/3/23 13:22
|
||||
*/
|
||||
@Data
|
||||
public class BasicInformationResponse {
|
||||
|
||||
@ApiModelProperty("项目基本信息")
|
||||
private BasicInformation basicInformation;
|
||||
|
||||
@ApiModelProperty("项目规划信息")
|
||||
private PlanInformation planInformation;
|
||||
|
||||
@ApiModelProperty("项目建筑信息")
|
||||
private List<BuildingInformation> buildingInformation;
|
||||
|
||||
@ApiModelProperty("五要素模型信息")
|
||||
private List<WysmxResponse> wysmxResponses;
|
||||
|
||||
@ApiModelProperty("企业入驻信息")
|
||||
private QyrzInformation qyrzInformation;
|
||||
|
||||
@ApiModelProperty("项目图例信息")
|
||||
private List<ProjectLegendResponse> projectLegendResponses;
|
||||
|
||||
@ApiModelProperty("项目巡礼信息")
|
||||
private List<Xmxl> xmxl;
|
||||
|
||||
@ApiModelProperty("项目备忘录")
|
||||
private List<ProjectRemark> projectRemarks;
|
||||
|
||||
@ApiModelProperty("其他信息")
|
||||
private List<ProjectOtherInfo> projectOtherInfos;
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.ruoyi.gysl.entity.response.MxPageDetailedInfo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 分页模型具体数据
|
||||
* @author du
|
||||
* @since 2025/3/22 17:11
|
||||
*/
|
||||
@Data
|
||||
public class MxPageDetailedInfo {
|
||||
|
||||
/**
|
||||
* 具体指标
|
||||
*/
|
||||
@ApiModelProperty(value = "具体指标")
|
||||
private String jtzb;
|
||||
|
||||
/**
|
||||
* 详细要求
|
||||
*/
|
||||
@ApiModelProperty(value = "详细要求")
|
||||
private String xxyq;
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.ruoyi.gysl.entity.response.WysmxDetail;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 五要素模型具体键值实体类
|
||||
* @author du
|
||||
* @since 2025/3/23 13:43
|
||||
*/
|
||||
@Data
|
||||
public class WysmxDetail {
|
||||
|
||||
@ApiModelProperty("键")
|
||||
private String zdname;
|
||||
|
||||
@ApiModelProperty("值")
|
||||
private String zdinfor;
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.ruoyi.gysl.entity.response;
|
||||
|
||||
import com.ruoyi.gysl.entity.response.WysmxDetail.WysmxDetail;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 五要素模型返回体
|
||||
* @author du
|
||||
* @since 2025/3/23 13:41
|
||||
*/
|
||||
@Data
|
||||
public class WysmxResponse {
|
||||
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "项目id")
|
||||
private Long xmId;
|
||||
|
||||
@ApiModelProperty("要素名称")
|
||||
private String ysmc;
|
||||
|
||||
@ApiModelProperty("键值列表")
|
||||
private List<WysmxDetail> list;
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.ruoyi.gysl.entity.stats;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 整体项目返回实体类
|
||||
*
|
||||
* @author du
|
||||
* @since 2025/3/22 13:19
|
||||
*/
|
||||
@Data
|
||||
public class AllProjectResponse {
|
||||
|
||||
@ApiModelProperty("项目总数")
|
||||
private Integer allProject;
|
||||
|
||||
@ApiModelProperty("建筑面积")
|
||||
private BigDecimal allGrossArea;
|
||||
|
||||
@ApiModelProperty("已建数量")
|
||||
private Integer allBuilding1;
|
||||
|
||||
@ApiModelProperty("在建数量")
|
||||
private Integer allBuilding2;
|
||||
|
||||
@ApiModelProperty("拟建数量")
|
||||
private Integer allBuilding3;
|
||||
|
||||
|
||||
@ApiModelProperty("当年_新开工项目数")
|
||||
private Integer currentYearProject;
|
||||
|
||||
@ApiModelProperty("当年_建筑面积")
|
||||
private BigDecimal currentYearGrossArea;
|
||||
|
||||
@ApiModelProperty("当年_已建数量")
|
||||
private Integer currentYearBuilding1;
|
||||
|
||||
@ApiModelProperty("当年_在建数量")
|
||||
private Integer currentBuilding2;
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.ruoyi.gysl.entity.stats;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 功能区返回实体类
|
||||
*
|
||||
* @author du
|
||||
* @since 2025/3/22 14:09
|
||||
*/
|
||||
@Data
|
||||
public class RibbonResponse {
|
||||
|
||||
@ApiModelProperty("所属功能区 / 单位性质")
|
||||
private Integer ssgnq;
|
||||
|
||||
@ApiModelProperty("数量")
|
||||
private Integer count;
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.ruoyi.gysl.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.gysl.entity.request.DpclglPageReq;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.gysl.entity.Dpclgl;
|
||||
|
||||
/**
|
||||
* 单片材料管理(Dpclgl)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 11:11:55
|
||||
*/
|
||||
public interface DpclglMapper extends BaseMapper<Dpclgl> {
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param dpclgl 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
Page<Dpclgl> page(Page<Dpclgl> page,@Param("req") DpclglPageReq dpclgl);
|
||||
}
|
||||
|
@ -0,0 +1,34 @@
|
||||
package com.ruoyi.gysl.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.gysl.entity.request.MlPageReq;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.gysl.entity.Ml;
|
||||
|
||||
/**
|
||||
* 目录管理(Ml)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 09:21:57
|
||||
*/
|
||||
public interface MlMapper extends BaseMapper<Ml> {
|
||||
|
||||
/**
|
||||
* 分页查询所有目录
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 所有数据
|
||||
*/
|
||||
Page<Ml> page(Page<Ml> page,@Param("req") MlPageReq req);
|
||||
|
||||
/**
|
||||
* 查询所有目录
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
List<Ml> page(@Param("req") MlPageReq req);
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
package com.ruoyi.gysl.mapper;
|
||||
|
||||
import com.ruoyi.gysl.entity.BasicInformation;
|
||||
import com.ruoyi.gysl.entity.stats.AllProjectResponse;
|
||||
import com.ruoyi.gysl.entity.stats.RibbonResponse;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业统计数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 11:11:55
|
||||
*/
|
||||
public interface QyStatsMapper {
|
||||
/**
|
||||
* 项目情况
|
||||
*/
|
||||
AllProjectResponse allProject(@Param("userName") String userName);
|
||||
|
||||
/**
|
||||
* 关联项目
|
||||
*/
|
||||
List<BasicInformation> relationalProject(String username);
|
||||
}
|
||||
|
@ -0,0 +1,35 @@
|
||||
package com.ruoyi.gysl.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.gysl.entity.Xfcygl;
|
||||
import com.ruoyi.gysl.entity.request.XfcyglPageReq;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 细分产业管理(Xfcygl)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 10:39:43
|
||||
*/
|
||||
public interface XfcyglMapper extends BaseMapper<Xfcygl> {
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param req 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
Page<Xfcygl> page(Page<Xfcygl> page,@Param("req") XfcyglPageReq req);
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
*
|
||||
* @param req 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
List<Xfcygl> page(@Param("req") XfcyglPageReq req);
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
package com.ruoyi.gysl.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.gysl.entity.request.XmpjqdPageReq;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.gysl.entity.Xmpjqd;
|
||||
|
||||
/**
|
||||
* 项目评价清单(Xmpjqd)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 09:22:33
|
||||
*/
|
||||
public interface XmpjqdMapper extends BaseMapper<Xmpjqd> {
|
||||
|
||||
/**
|
||||
* 分页查询所有目录
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 所有数据
|
||||
*/
|
||||
Page<Xmpjqd> page(Page<Xmpjqd> page, @Param("req") XmpjqdPageReq req);
|
||||
}
|
||||
|
@ -0,0 +1,30 @@
|
||||
package com.ruoyi.gysl.mapper;
|
||||
|
||||
import com.ruoyi.gysl.entity.stats.AllProjectResponse;
|
||||
import com.ruoyi.gysl.entity.stats.RibbonResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 政务统计数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 11:11:55
|
||||
*/
|
||||
public interface ZwStatsMapper {
|
||||
/**
|
||||
* 项目情况
|
||||
*/
|
||||
AllProjectResponse allProject();
|
||||
|
||||
/**
|
||||
* 功能区
|
||||
*/
|
||||
List<RibbonResponse> ribbon();
|
||||
|
||||
/**
|
||||
* 投资主体
|
||||
*/
|
||||
List<RibbonResponse> investors();
|
||||
}
|
||||
|
@ -0,0 +1,33 @@
|
||||
package com.ruoyi.gysl.regular;
|
||||
|
||||
import com.ruoyi.gysl.entity.Notice;
|
||||
import com.ruoyi.gysl.service.NoticeService;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 每月固定时间定时任务
|
||||
* @author du
|
||||
* @since 2025/3/23 16:35
|
||||
*/
|
||||
@Configuration
|
||||
@EnableScheduling
|
||||
public class NoticeTiming {
|
||||
|
||||
@Resource
|
||||
private NoticeService noticeService;
|
||||
|
||||
/**
|
||||
* 每个月固定发一次政务通知
|
||||
*/
|
||||
// @Scheduled(cron = "1 0 0 * * *")
|
||||
// private void configureTasks() {
|
||||
// Notice notice = new Notice();
|
||||
// notice.setType(1);
|
||||
//
|
||||
// noticeService.save(notice);
|
||||
// }
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.ruoyi.gysl.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.gysl.entity.Dpclgl;
|
||||
import com.ruoyi.gysl.entity.request.DpclglPageReq;
|
||||
|
||||
/**
|
||||
* 单片材料管理(Dpclgl)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 11:11:55
|
||||
*/
|
||||
public interface DpclglService extends IService<Dpclgl> {
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param dpclgl 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
Page<Dpclgl> page(Page<Dpclgl> page, DpclglPageReq dpclgl);
|
||||
}
|
||||
|
@ -0,0 +1,33 @@
|
||||
package com.ruoyi.gysl.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.gysl.entity.Ml;
|
||||
import com.ruoyi.gysl.entity.request.MlPageReq;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 目录管理(Ml)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 09:21:57
|
||||
*/
|
||||
public interface MlService extends IService<Ml> {
|
||||
|
||||
/**
|
||||
* 分页查询所有目录
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 所有数据
|
||||
*/
|
||||
Page<Ml> page(Page<Ml> page, MlPageReq req);
|
||||
|
||||
/**
|
||||
* 查询所有目录
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
List<Ml> page(MlPageReq req);
|
||||
}
|
||||
|
@ -0,0 +1,15 @@
|
||||
package com.ruoyi.gysl.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.gysl.entity.Notice;
|
||||
|
||||
/**
|
||||
* 项目通知(Notice)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-23 16:34:27
|
||||
*/
|
||||
public interface NoticeService extends IService<Notice> {
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,29 @@
|
||||
package com.ruoyi.gysl.service;
|
||||
|
||||
import com.ruoyi.gysl.entity.BasicInformation;
|
||||
import com.ruoyi.gysl.entity.stats.AllProjectResponse;
|
||||
import com.ruoyi.gysl.entity.stats.RibbonResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业统计服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-02-24 11:10:06
|
||||
*/
|
||||
public interface QyStatsService {
|
||||
|
||||
/**
|
||||
* 项目情况
|
||||
*/
|
||||
AllProjectResponse allProject(String userName);
|
||||
|
||||
/**
|
||||
* 关联项目
|
||||
*/
|
||||
List<BasicInformation> relationalProject(String username);
|
||||
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,36 @@
|
||||
package com.ruoyi.gysl.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.gysl.entity.Xfcygl;
|
||||
import com.ruoyi.gysl.entity.request.XfcyglPageReq;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 细分产业管理(Xfcygl)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 10:39:47
|
||||
*/
|
||||
public interface XfcyglService extends IService<Xfcygl> {
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param req 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
Page<Xfcygl> page(Page<Xfcygl> page, XfcyglPageReq req);
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
*
|
||||
* @param req 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
List<Xfcygl> page( XfcyglPageReq req);
|
||||
}
|
||||
|
@ -0,0 +1,24 @@
|
||||
package com.ruoyi.gysl.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.gysl.entity.Xmpjqd;
|
||||
import com.ruoyi.gysl.entity.request.XmpjqdPageReq;
|
||||
|
||||
/**
|
||||
* 项目评价清单(Xmpjqd)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 09:22:33
|
||||
*/
|
||||
public interface XmpjqdService extends IService<Xmpjqd> {
|
||||
|
||||
/**
|
||||
* 分页查询所有目录
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 所有数据
|
||||
*/
|
||||
Page<Xmpjqd> page(Page<Xmpjqd> page, XmpjqdPageReq req);
|
||||
}
|
||||
|
@ -0,0 +1,31 @@
|
||||
package com.ruoyi.gysl.service;
|
||||
|
||||
import com.ruoyi.gysl.entity.stats.AllProjectResponse;
|
||||
import com.ruoyi.gysl.entity.stats.RibbonResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 政务统计服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-02-24 11:10:06
|
||||
*/
|
||||
public interface ZwStatsService {
|
||||
|
||||
/**
|
||||
* 项目情况
|
||||
*/
|
||||
AllProjectResponse allProject();
|
||||
|
||||
/**
|
||||
* 功能区
|
||||
*/
|
||||
List<RibbonResponse> ribbon();
|
||||
|
||||
/**
|
||||
* 投资主体
|
||||
*/
|
||||
List<RibbonResponse> investors();
|
||||
}
|
||||
|
@ -0,0 +1,32 @@
|
||||
package com.ruoyi.gysl.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.gysl.entity.request.DpclglPageReq;
|
||||
import com.ruoyi.gysl.mapper.DpclglMapper;
|
||||
import com.ruoyi.gysl.entity.Dpclgl;
|
||||
import com.ruoyi.gysl.service.DpclglService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 单片材料管理(Dpclgl)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 11:11:55
|
||||
*/
|
||||
@Service("dpclglService")
|
||||
public class DpclglServiceImpl extends ServiceImpl<DpclglMapper, Dpclgl> implements DpclglService {
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param dpclgl 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
@Override
|
||||
public Page<Dpclgl> page(Page<Dpclgl> page, DpclglPageReq dpclgl) {
|
||||
return baseMapper.page(page,dpclgl);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,44 @@
|
||||
package com.ruoyi.gysl.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.gysl.mapper.MlMapper;
|
||||
import com.ruoyi.gysl.entity.Ml;
|
||||
import com.ruoyi.gysl.entity.request.MlPageReq;
|
||||
import com.ruoyi.gysl.service.MlService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 目录管理(Ml)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 09:21:57
|
||||
*/
|
||||
@Service("mlService")
|
||||
public class MlServiceImpl extends ServiceImpl<MlMapper, Ml> implements MlService {
|
||||
|
||||
/**
|
||||
* 分页查询所有目录
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 所有数据
|
||||
*/
|
||||
@Override
|
||||
public Page<Ml> page(Page<Ml> page, MlPageReq req) {
|
||||
return baseMapper.page(page,req);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询所有目录
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
@Override
|
||||
public List<Ml> page(MlPageReq req) {
|
||||
return baseMapper.page(req);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,19 @@
|
||||
package com.ruoyi.gysl.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.gysl.mapper.NoticeMapper;
|
||||
import com.ruoyi.gysl.entity.Notice;
|
||||
import com.ruoyi.gysl.service.NoticeService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 项目通知(Notice)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-23 16:34:27
|
||||
*/
|
||||
@Service("noticeService")
|
||||
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,43 @@
|
||||
package com.ruoyi.gysl.service.impl;
|
||||
|
||||
import com.ruoyi.gysl.entity.BasicInformation;
|
||||
import com.ruoyi.gysl.entity.stats.AllProjectResponse;
|
||||
import com.ruoyi.gysl.entity.stats.RibbonResponse;
|
||||
import com.ruoyi.gysl.mapper.QyStatsMapper;
|
||||
import com.ruoyi.gysl.mapper.ZwStatsMapper;
|
||||
import com.ruoyi.gysl.service.QyStatsService;
|
||||
import com.ruoyi.gysl.service.ZwStatsService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业统计服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-02-24 09:25:55
|
||||
*/
|
||||
@Service("qyStatsService")
|
||||
public class QyStatsServiceImpl implements QyStatsService {
|
||||
|
||||
@Resource
|
||||
private QyStatsMapper qyStatsMapper;
|
||||
|
||||
/**
|
||||
* 项目情况
|
||||
*/
|
||||
@Override
|
||||
public AllProjectResponse allProject(String userName) {
|
||||
return qyStatsMapper.allProject(userName);
|
||||
}
|
||||
|
||||
/**
|
||||
* 关联项目
|
||||
*/
|
||||
@Override
|
||||
public List<BasicInformation> relationalProject(String username) {
|
||||
return qyStatsMapper.relationalProject(username);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package com.ruoyi.gysl.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.gysl.mapper.XfcyglMapper;
|
||||
import com.ruoyi.gysl.entity.Xfcygl;
|
||||
import com.ruoyi.gysl.entity.request.XfcyglPageReq;
|
||||
import com.ruoyi.gysl.service.XfcyglService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 细分产业管理(Xfcygl)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 10:39:47
|
||||
*/
|
||||
@Service("xfcyglService")
|
||||
public class XfcyglServiceImpl extends ServiceImpl<XfcyglMapper, Xfcygl> implements XfcyglService {
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param req 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
@Override
|
||||
public Page<Xfcygl> page(Page<Xfcygl> page, XfcyglPageReq req) {
|
||||
return baseMapper.page(page,req);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
*
|
||||
* @param req 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
@Override
|
||||
public List<Xfcygl> page(XfcyglPageReq req) {
|
||||
return baseMapper.page(req);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,31 @@
|
||||
package com.ruoyi.gysl.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.gysl.entity.request.XmpjqdPageReq;
|
||||
import com.ruoyi.gysl.mapper.XmpjqdMapper;
|
||||
import com.ruoyi.gysl.entity.Xmpjqd;
|
||||
import com.ruoyi.gysl.service.XmpjqdService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 项目评价清单(Xmpjqd)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-03-22 09:22:33
|
||||
*/
|
||||
@Service("xmpjqdService")
|
||||
public class XmpjqdServiceImpl extends ServiceImpl<XmpjqdMapper, Xmpjqd> implements XmpjqdService {
|
||||
|
||||
/**
|
||||
* 分页查询所有目录
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 所有数据
|
||||
*/
|
||||
@Override
|
||||
public Page<Xmpjqd> page(Page<Xmpjqd> page, XmpjqdPageReq req) {
|
||||
return baseMapper.page(page,req);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.gysl.service.impl;
|
||||
|
||||
import com.ruoyi.gysl.entity.stats.AllProjectResponse;
|
||||
import com.ruoyi.gysl.entity.stats.RibbonResponse;
|
||||
import com.ruoyi.gysl.mapper.ZwStatsMapper;
|
||||
import com.ruoyi.gysl.service.ZwStatsService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 政务统计服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-02-24 09:25:55
|
||||
*/
|
||||
@Service("ZwStatsService")
|
||||
public class ZwStatsServiceImpl implements ZwStatsService {
|
||||
|
||||
@Resource
|
||||
private ZwStatsMapper zwStatsMapper;
|
||||
|
||||
/**
|
||||
* 项目情况
|
||||
*/
|
||||
@Override
|
||||
public AllProjectResponse allProject() {
|
||||
return zwStatsMapper.allProject();
|
||||
}
|
||||
|
||||
/**
|
||||
* 功能区
|
||||
*/
|
||||
@Override
|
||||
public List<RibbonResponse> ribbon() {
|
||||
return zwStatsMapper.ribbon();
|
||||
}
|
||||
/**
|
||||
* 投资主体
|
||||
*/
|
||||
@Override
|
||||
public List<RibbonResponse> investors() {
|
||||
return zwStatsMapper.investors();
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.gysl.mapper.DpclglMapper">
|
||||
<select id="page" resultType="com.ruoyi.gysl.entity.Dpclgl">
|
||||
select * from ml
|
||||
<where>
|
||||
<if test="req.fileTitle != null and req.fileTitle != '' ">
|
||||
AND fileTitle like concat('%',#{req.fileTitle},'%')
|
||||
</if>
|
||||
<if test="req.req.startTime != null">
|
||||
and DATE_FORMAT(update_time, '%Y-%m-%d') = #{req.startTime}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.gysl.mapper.MlMapper">
|
||||
<select id="page" resultType="com.ruoyi.gysl.entity.Ml">
|
||||
select * from ml
|
||||
<where>
|
||||
<if test="req.slmllb != null">
|
||||
AND slmllb = #{req.slmllb}
|
||||
</if>
|
||||
<if test="req.gydl != null and req.gydl != '' ">
|
||||
AND gydl like concat('%',#{req.gydl},'%')
|
||||
</if>
|
||||
<if test="req.cy != null and req.cy != '' ">
|
||||
AND cy like concat('%',#{req.cy},'%')
|
||||
</if>
|
||||
<if test="req.startTime != null">
|
||||
AND update_time >= #{req.startTime} <!-- 大于等于 -->
|
||||
</if>
|
||||
<if test="req.endTime != null">
|
||||
AND update_time <= #{req.endTime} <!-- 小于等于 -->
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.gysl.mapper.MxMapper">
|
||||
|
||||
|
||||
</mapper>
|
||||
|
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.gysl.mapper.NoticeMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.gysl.entity.Notice" id="NoticeMap">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="type" column="type" jdbcType="INTEGER"/>
|
||||
<result property="content" column="content" jdbcType="VARCHAR"/>
|
||||
<result property="tyshxydm" column="tyshxydm" jdbcType="VARCHAR"/>
|
||||
<result property="createId" column="create_id" jdbcType="INTEGER"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateId" column="update_id" jdbcType="INTEGER"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 批量插入 -->
|
||||
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into gysl.notice(typecontenttyshxydmcreate_idcreate_timecreate_byupdate_idupdate_byupdate_time)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.type}#{entity.content}#{entity.tyshxydm}#{entity.createId}#{entity.createTime}#{entity.createBy}#{entity.updateId}#{entity.updateBy}#{entity.updateTime})
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量插入或按主键更新 -->
|
||||
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into gysl.notice(typecontenttyshxydmcreate_idcreate_timecreate_byupdate_idupdate_byupdate_time)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.type}#{entity.content}#{entity.tyshxydm}#{entity.createId}#{entity.createTime}#{entity.createBy}#{entity.updateId}#{entity.updateBy}#{entity.updateTime})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
type = values(type) content = values(content) tyshxydm = values(tyshxydm) create_id = values(create_id) create_time = values(create_time) create_by = values(create_by) update_id = values(update_id) update_by = values(update_by) update_time = values(update_time) </insert>
|
||||
|
||||
</mapper>
|
||||
|
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.gysl.mapper.QyStatsMapper">
|
||||
|
||||
<select id="allProject" resultType="com.ruoyi.gysl.entity.stats.AllProjectResponse">
|
||||
SELECT COUNT(*) AS allProject,
|
||||
ROUND(IFNULL(SUM(b.zjzmj), 0) / 10000, 2) AS allGrossArea,
|
||||
IFNULL(SUM(CASE WHEN a.xzfl = 1 THEN 1 ELSE 0 END), 0) AS allBuilding1,
|
||||
IFNULL(SUM(CASE WHEN a.xzfl = 2 THEN 1 ELSE 0 END), 0) AS allBuilding2,
|
||||
IFNULL(SUM(CASE WHEN a.xzfl = 3 THEN 1 ELSE 0 END), 0) AS allBuilding3,-- 当前年度统计
|
||||
COUNT(CASE WHEN YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN 1 END ) AS currentYearProject,
|
||||
ROUND(
|
||||
IFNULL(SUM(CASE WHEN YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN b.zjzmj END ), 0) /
|
||||
10000,
|
||||
2
|
||||
) AS currentYearGrossArea,
|
||||
IFNULL(
|
||||
SUM(CASE WHEN a.xzfl = 1 AND YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN 1 ELSE 0 END ),
|
||||
0
|
||||
) AS currentYearBuilding1,
|
||||
IFNULL(
|
||||
SUM(CASE WHEN a.xzfl = 2 AND YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN 1 ELSE 0 END ),
|
||||
0
|
||||
) AS currentYearBuilding2
|
||||
FROM basic_information a
|
||||
LEFT JOIN plan_information b ON a.id = b.xm_id
|
||||
where a.tyshxydm = #{userName}
|
||||
</select>
|
||||
<select id="relationalProject" resultType="com.ruoyi.gysl.entity.BasicInformation">
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.gysl.mapper.XfcyglMapper">
|
||||
<select id="page" resultType="com.ruoyi.gysl.entity.Xfcygl">
|
||||
select * from xfcygl
|
||||
<where>
|
||||
<if test="req.cylb != null and req.cylb!= ''">
|
||||
AND cylb like concat('%',#{req.cylb},'%')
|
||||
</if>
|
||||
<if test="req.cyxf != null and req.cyxf != '' ">
|
||||
AND cyxf like concat('%',#{req.cyxf},'%')
|
||||
</if>
|
||||
<if test="req.slsyx != null ">
|
||||
AND slsyx = #{req.slsyx}
|
||||
</if>
|
||||
<if test="req.startTime != null">
|
||||
AND update_time >= #{req.startTime} <!-- 大于等于 -->
|
||||
</if>
|
||||
<if test="req.endTime != null">
|
||||
AND update_time <= #{req.endTime} <!-- 小于等于 -->
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.gysl.mapper.XmpjqdMapper">
|
||||
<select id="page" resultType="com.ruoyi.gysl.entity.Xmpjqd">
|
||||
select * from xmpjqd
|
||||
<where>
|
||||
<if test="req.xzfl != null">
|
||||
AND xzfl = #{req.xzfl}
|
||||
</if>
|
||||
<if test="req.pjdj != null">
|
||||
AND pjdj = #{req.pjdj}
|
||||
</if>
|
||||
<if test="req.xmmc != null and req.xmmc != '' ">
|
||||
AND xmmc like concat('%',#{req.xmmc},'%')
|
||||
</if>
|
||||
<if test="req.xmqzsj != null">
|
||||
AND xmqzsj = #{req.xmqzsj}
|
||||
</if>
|
||||
<if test="req.xmjssj != null">
|
||||
AND xmjssj = #{req.xmjssj}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.gysl.mapper.ZwStatsMapper">
|
||||
|
||||
<select id="allProject" resultType="com.ruoyi.gysl.entity.stats.AllProjectResponse">
|
||||
SELECT COUNT(*) AS allProject,
|
||||
ROUND(IFNULL(SUM(b.zjzmj), 0) / 10000, 2) AS allGrossArea,
|
||||
IFNULL(SUM(CASE WHEN a.xzfl = 1 THEN 1 ELSE 0 END), 0) AS allBuilding1,
|
||||
IFNULL(SUM(CASE WHEN a.xzfl = 2 THEN 1 ELSE 0 END), 0) AS allBuilding2,
|
||||
IFNULL(SUM(CASE WHEN a.xzfl = 3 THEN 1 ELSE 0 END), 0) AS allBuilding3,-- 当前年度统计
|
||||
COUNT(CASE WHEN YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN 1 END ) AS currentYearProject,
|
||||
ROUND(
|
||||
IFNULL(SUM(CASE WHEN YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN b.zjzmj END ), 0) /
|
||||
10000,
|
||||
2
|
||||
) AS currentYearGrossArea,
|
||||
IFNULL(
|
||||
SUM(CASE WHEN a.xzfl = 1 AND YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN 1 ELSE 0 END ),
|
||||
0
|
||||
) AS currentYearBuilding1,
|
||||
IFNULL(
|
||||
SUM(CASE WHEN a.xzfl = 2 AND YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN 1 ELSE 0 END ),
|
||||
0
|
||||
) AS currentYearBuilding2
|
||||
FROM basic_information a
|
||||
LEFT JOIN plan_information b ON a.id = b.xm_id
|
||||
</select>
|
||||
<select id="ribbon" resultType="com.ruoyi.gysl.entity.stats.RibbonResponse">
|
||||
SELECT count(*) AS count,ssgnq
|
||||
FROM
|
||||
basic_information
|
||||
GROUP BY
|
||||
ssgnq
|
||||
</select>
|
||||
<select id="investors" resultType="com.ruoyi.gysl.entity.stats.RibbonResponse">
|
||||
SELECT count(*) AS count,nature
|
||||
FROM
|
||||
basic_information
|
||||
GROUP BY
|
||||
nature
|
||||
</select>
|
||||
</mapper>
|
||||
|
Loading…
Reference in new issue