parent
061445db0f
commit
1e3f5a682e
@ -0,0 +1,95 @@
|
|||||||
|
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.ProjectLegend;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import com.ruoyi.gysl.service.ProjectLegendService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目图例(ProjectLegend)表控制层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:12:34
|
||||||
|
*/
|
||||||
|
@Api(tags = "项目图例")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/gysl/projectLegend")
|
||||||
|
public class ProjectLegendController extends BaseController {
|
||||||
|
/**
|
||||||
|
* 服务对象
|
||||||
|
*/
|
||||||
|
@Resource
|
||||||
|
private ProjectLegendService projectLegendService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param projectLegend 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@ApiOperation("分页查询所有数据")
|
||||||
|
@GetMapping("/page")
|
||||||
|
public AjaxResult selectAll(Page<ProjectLegend> page, ZwIdPageReq projectLegend) {
|
||||||
|
return success(projectLegendService.page(page, projectLegend));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
@ApiOperation("通过主键查询单条数据")
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
public AjaxResult selectOne(@PathVariable Serializable id) {
|
||||||
|
return success(projectLegendService.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*
|
||||||
|
* @param projectLegend 实体对象
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("新增数据")
|
||||||
|
@PostMapping("/add")
|
||||||
|
public AjaxResult insert(@RequestBody ProjectLegend projectLegend) {
|
||||||
|
return success(projectLegendService.save(projectLegend));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param projectLegend 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("修改数据")
|
||||||
|
@PutMapping("/edit")
|
||||||
|
public AjaxResult update(@RequestBody ProjectLegend projectLegend) {
|
||||||
|
return success(projectLegendService.updateById(projectLegend));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param idList 主键结合
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("删除数据")
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||||
|
return success(projectLegendService.removeByIds(idList));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,108 @@
|
|||||||
|
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.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.gysl.entity.ProjectMonthInfo;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import com.ruoyi.gysl.service.ProjectMonthInfoService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 月度进展详情(ProjectMonthInfo)表控制层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:03
|
||||||
|
*/
|
||||||
|
@Api(tags = "月度进展详情")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/gysl/projectMonthInfo")
|
||||||
|
public class ProjectMonthInfoController extends BaseController {
|
||||||
|
/**
|
||||||
|
* 服务对象
|
||||||
|
*/
|
||||||
|
@Resource
|
||||||
|
private ProjectMonthInfoService projectMonthInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@ApiOperation("分页查询所有数据")
|
||||||
|
@GetMapping("/page")
|
||||||
|
public AjaxResult selectAll(Page<ProjectMonthInfo> page, ZwIdPageReq zwIdPageReq) {
|
||||||
|
return success(projectMonthInfoService.page(page, zwIdPageReq));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
@ApiOperation("通过主键查询单条数据")
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
public AjaxResult selectOne(@PathVariable Serializable id) {
|
||||||
|
return success(projectMonthInfoService.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*
|
||||||
|
* @param projectMonthInfo 实体对象
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("新增数据")
|
||||||
|
@PostMapping("/add")
|
||||||
|
public AjaxResult insert(@RequestBody ProjectMonthInfo projectMonthInfo) {
|
||||||
|
return success(projectMonthInfoService.save(projectMonthInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param projectMonthInfo 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("修改数据")
|
||||||
|
@PutMapping("/edit")
|
||||||
|
public AjaxResult update(@RequestBody ProjectMonthInfo projectMonthInfo) {
|
||||||
|
return success(projectMonthInfoService.updateById(projectMonthInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param idList 主键结合
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("删除数据")
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||||
|
return success(projectMonthInfoService.removeByIds(idList));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据条件导出月度进展详情
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "根据条件导出月度进展详情")
|
||||||
|
@PostMapping(value = "/export")
|
||||||
|
public void export(HttpServletResponse response, ZwIdPageReq zwIdPageReq) throws Exception {
|
||||||
|
List<ProjectMonthInfo> filteredList = projectMonthInfoService.page(zwIdPageReq);
|
||||||
|
ExcelUtil<ProjectMonthInfo> util = new ExcelUtil<>(ProjectMonthInfo.class);
|
||||||
|
util.exportExcel(response, filteredList, "企业名录数据");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,81 @@
|
|||||||
|
package com.ruoyi.gysl.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.gysl.entity.ProjectOtherInfo;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import com.ruoyi.gysl.service.ProjectOtherInfoService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目其他信息(ProjectOtherInfo)表控制层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:22
|
||||||
|
*/
|
||||||
|
@Api(tags = "项目其他信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/gysl/projectOtherInfo")
|
||||||
|
public class ProjectOtherInfoController extends BaseController {
|
||||||
|
/**
|
||||||
|
* 服务对象
|
||||||
|
*/
|
||||||
|
@Resource
|
||||||
|
private ProjectOtherInfoService projectOtherInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据项目id查询项目其他信息
|
||||||
|
*
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@ApiOperation("根据项目id查询项目其他信息")
|
||||||
|
@GetMapping("/searchId")
|
||||||
|
public AjaxResult selectAll(ZwIdPageReq zwIdPageReq) {
|
||||||
|
return success(projectOtherInfoService.searchId(zwIdPageReq));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*
|
||||||
|
* @param projectOtherInfo 实体对象
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("新增数据")
|
||||||
|
@PostMapping("/add")
|
||||||
|
public AjaxResult insert(@RequestBody ProjectOtherInfo projectOtherInfo) {
|
||||||
|
return success(projectOtherInfoService.save(projectOtherInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param projectOtherInfo 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("修改数据")
|
||||||
|
@PutMapping("/edit")
|
||||||
|
public AjaxResult update(@RequestBody ProjectOtherInfo projectOtherInfo) {
|
||||||
|
return success(projectOtherInfoService.updateById(projectOtherInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param idList 主键结合
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("删除数据")
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||||
|
return success(projectOtherInfoService.removeByIds(idList));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,95 @@
|
|||||||
|
package com.ruoyi.gysl.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
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.ProjectRemark;
|
||||||
|
import com.ruoyi.gysl.entity.request.RemarkPageReq;
|
||||||
|
import com.ruoyi.gysl.service.ProjectRemarkService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目备忘录(ProjectRemark)表控制层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:35
|
||||||
|
*/
|
||||||
|
@Api(tags = "项目备忘录")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/gysl/projectRemark")
|
||||||
|
public class ProjectRemarkController extends BaseController {
|
||||||
|
/**
|
||||||
|
* 服务对象
|
||||||
|
*/
|
||||||
|
@Resource
|
||||||
|
private ProjectRemarkService projectRemarkService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询所有数据
|
||||||
|
*
|
||||||
|
* @param projectRemark 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@ApiOperation("查询所有数据")
|
||||||
|
@GetMapping("/page")
|
||||||
|
public AjaxResult selectAll( RemarkPageReq projectRemark) {
|
||||||
|
return success(projectRemarkService.list(projectRemark));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
@ApiOperation("通过主键查询单条数据")
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
public AjaxResult selectOne(@PathVariable Serializable id) {
|
||||||
|
return success(projectRemarkService.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*
|
||||||
|
* @param projectRemark 实体对象
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("新增数据")
|
||||||
|
@PostMapping("/add")
|
||||||
|
public AjaxResult insert(@RequestBody ProjectRemark projectRemark) {
|
||||||
|
return success(projectRemarkService.save(projectRemark));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param projectRemark 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("修改数据")
|
||||||
|
@PutMapping("/edit")
|
||||||
|
public AjaxResult update(@RequestBody ProjectRemark projectRemark) {
|
||||||
|
return success(projectRemarkService.updateById(projectRemark));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param idList 主键结合
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("删除数据")
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||||
|
return success(projectRemarkService.removeByIds(idList));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,81 @@
|
|||||||
|
package com.ruoyi.gysl.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.gysl.entity.QyrzInformation;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import com.ruoyi.gysl.service.QyrzInformationService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业入驻信息(QyrzInformation)表控制层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 15:25:17
|
||||||
|
*/
|
||||||
|
@Api(tags = "企业入驻信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/gysl/qyrzInformation")
|
||||||
|
public class QyrzInformationController extends BaseController {
|
||||||
|
/**
|
||||||
|
* 服务对象
|
||||||
|
*/
|
||||||
|
@Resource
|
||||||
|
private QyrzInformationService qyrzInformationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据项目id查询企业入驻基本信息
|
||||||
|
*
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@ApiOperation("根据项目id查询企业入驻基本信息")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public AjaxResult selectAll( ZwIdPageReq zwIdPageReq) {
|
||||||
|
return success(qyrzInformationService.selectAll(zwIdPageReq));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*
|
||||||
|
* @param qyrzInformation 实体对象
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("新增数据")
|
||||||
|
@PostMapping("/add")
|
||||||
|
public AjaxResult insert(@RequestBody QyrzInformation qyrzInformation) {
|
||||||
|
return success(qyrzInformationService.save(qyrzInformation));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param qyrzInformation 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("修改数据")
|
||||||
|
@PutMapping("/edit")
|
||||||
|
public AjaxResult update(@RequestBody QyrzInformation qyrzInformation) {
|
||||||
|
return success(qyrzInformationService.updateById(qyrzInformation));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param idList 主键结合
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("删除数据")
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||||
|
return success(qyrzInformationService.removeByIds(idList));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,95 @@
|
|||||||
|
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.Xmxl;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import com.ruoyi.gysl.service.XmxlService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目巡礼(Xmxl)表控制层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 14:19:21
|
||||||
|
*/
|
||||||
|
@Api(tags = "项目巡礼")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/gysl/xmxl")
|
||||||
|
public class XmxlController extends BaseController {
|
||||||
|
/**
|
||||||
|
* 服务对象
|
||||||
|
*/
|
||||||
|
@Resource
|
||||||
|
private XmxlService xmxlService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@ApiOperation("分页查询所有数据")
|
||||||
|
@GetMapping("/page")
|
||||||
|
public AjaxResult selectAll(Page<Xmxl> page, ZwIdPageReq zwIdPageReq) {
|
||||||
|
return success(xmxlService.page(page, zwIdPageReq));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
@ApiOperation("通过主键查询单条数据")
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
public AjaxResult selectOne(@PathVariable Serializable id) {
|
||||||
|
return success(xmxlService.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*
|
||||||
|
* @param xmxl 实体对象
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("新增数据")
|
||||||
|
@PostMapping("/add")
|
||||||
|
public AjaxResult insert(@RequestBody Xmxl xmxl) {
|
||||||
|
return success(xmxlService.save(xmxl));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param xmxl 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("修改数据")
|
||||||
|
@PutMapping("/edit")
|
||||||
|
public AjaxResult update(@RequestBody Xmxl xmxl) {
|
||||||
|
return success(xmxlService.updateById(xmxl));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param idList 主键结合
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("删除数据")
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||||
|
return success(xmxlService.removeByIds(idList));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目图例(ProjectLegend)表实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:12:35
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ProjectLegend extends BaseEntity implements Serializable {
|
||||||
|
|
||||||
|
@TableField("id")
|
||||||
|
@TableId(type = IdType.AUTO)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@ApiModelProperty("项目id")
|
||||||
|
private Long xmId;
|
||||||
|
|
||||||
|
@ApiModelProperty("图片类型")
|
||||||
|
private Integer imgType;
|
||||||
|
|
||||||
|
@ApiModelProperty("图片")
|
||||||
|
private String img;
|
||||||
|
|
||||||
|
@ApiModelProperty("经度")
|
||||||
|
private String longitude;
|
||||||
|
|
||||||
|
@ApiModelProperty("纬度")
|
||||||
|
private String latitude;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,50 @@
|
|||||||
|
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.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 月度进展详情(ProjectMonthInfo)表实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:03
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ProjectMonthInfo extends BaseEntity implements Serializable {
|
||||||
|
|
||||||
|
@TableField("id")
|
||||||
|
@TableId(type = IdType.AUTO)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@ApiModelProperty("项目id")
|
||||||
|
private Long xmId;
|
||||||
|
|
||||||
|
@ApiModelProperty("进度月份")
|
||||||
|
private String progressMonth;
|
||||||
|
|
||||||
|
@ApiModelProperty("状态")
|
||||||
|
private Integer state;
|
||||||
|
|
||||||
|
@ApiModelProperty("当月完成投资")
|
||||||
|
private String investMonth;
|
||||||
|
|
||||||
|
@ApiModelProperty("累计完成投资")
|
||||||
|
private String investTotal;
|
||||||
|
|
||||||
|
@ApiModelProperty("截至目前累计建成面积(平方米)")
|
||||||
|
private Integer finishArea;
|
||||||
|
|
||||||
|
@ApiModelProperty("贷款额度(万元)")
|
||||||
|
private Integer loans;
|
||||||
|
|
||||||
|
@ApiModelProperty("项目进展详情")
|
||||||
|
private String projectInfo;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,33 @@
|
|||||||
|
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.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目其他信息(ProjectOtherInfo)表实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:22
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ProjectOtherInfo extends BaseEntity implements Serializable {
|
||||||
|
|
||||||
|
@TableField("id")
|
||||||
|
@TableId(type = IdType.AUTO)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@ApiModelProperty("项目id")
|
||||||
|
private Long xmId;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty("其他信息JSON")
|
||||||
|
private String otherJson;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,32 @@
|
|||||||
|
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.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目备忘录(ProjectRemark)表实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:35
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ProjectRemark extends BaseEntity implements Serializable {
|
||||||
|
|
||||||
|
@TableField("id")
|
||||||
|
@TableId(type = IdType.AUTO)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@ApiModelProperty("项目id")
|
||||||
|
private Long xmId;
|
||||||
|
|
||||||
|
@ApiModelProperty("备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,53 @@
|
|||||||
|
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.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (QyrzInformation)表实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 15:25:18
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class QyrzInformation extends BaseEntity implements Serializable {
|
||||||
|
@TableField("id")
|
||||||
|
@TableId(type = IdType.AUTO)
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
@ApiModelProperty("项目id")
|
||||||
|
private Integer xmId;
|
||||||
|
|
||||||
|
@ApiModelProperty("入住企业数")
|
||||||
|
private Integer rzqys;
|
||||||
|
|
||||||
|
@ApiModelProperty("入驻企业行业类型")
|
||||||
|
private String rzqyhylx;
|
||||||
|
|
||||||
|
@ApiModelProperty("人员数量")
|
||||||
|
private Integer rysl;
|
||||||
|
|
||||||
|
@ApiModelProperty("入住率")
|
||||||
|
private Double rzl;
|
||||||
|
|
||||||
|
@ApiModelProperty("已出租(售)面积")
|
||||||
|
private Double yczmj;
|
||||||
|
|
||||||
|
@ApiModelProperty("空置出租(售)面积")
|
||||||
|
private Double kzczmj;
|
||||||
|
|
||||||
|
@ApiModelProperty("工业厂房平均租金")
|
||||||
|
private Double gycfpjzj;
|
||||||
|
|
||||||
|
@ApiModelProperty("工业厂房平均物业费")
|
||||||
|
private Double gycfpjwyf;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,42 @@
|
|||||||
|
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.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目巡礼(Xmxl)表实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 14:19:22
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class Xmxl extends BaseEntity implements Serializable {
|
||||||
|
@TableField("id")
|
||||||
|
@TableId(type = IdType.AUTO)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@ApiModelProperty("监控名称")
|
||||||
|
private String jkmc;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "时间 yyyy-MM-dd")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate sj;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "当前状态")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "附件")
|
||||||
|
private String fj;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,38 @@
|
|||||||
|
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 javax.validation.constraints.NotBlank;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 基本信息分页参数
|
||||||
|
* @author du
|
||||||
|
* @since 2025/3/19 15:07
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class BasicInformationPageReq {
|
||||||
|
|
||||||
|
@ApiModelProperty("项目名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@ApiModelProperty("项目法人单位")
|
||||||
|
private String xmfrdwxz;
|
||||||
|
|
||||||
|
@ApiModelProperty("建设起止时间-开始时间")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private Date startTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("建设起止时间-结束时间")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private Date endTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("现状分类")
|
||||||
|
private Integer xzfl;
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
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/19 11:21
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class RemarkPageReq {
|
||||||
|
@ApiModelProperty("项目id")
|
||||||
|
private Long xmId;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "查询时间 yyyy-MM-dd")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate startTime;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "查询时间 yyyy-MM-dd")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate endTime;
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.ruoyi.gysl.entity.request;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页请求类
|
||||||
|
* @author du
|
||||||
|
* @since 2025/3/19 11:20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ZwIdPageReq {
|
||||||
|
@ApiModelProperty("项目id")
|
||||||
|
private Long xmId;
|
||||||
|
}
|
@ -1,15 +0,0 @@
|
|||||||
package com.ruoyi.gysl.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.ruoyi.gysl.entity.BuildingInformation;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* (BuildingInformation)表数据库访问层
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2025-02-24 11:10:03
|
|
||||||
*/
|
|
||||||
public interface BuildingInformationDao extends BaseMapper<BuildingInformation> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
package com.ruoyi.gysl.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.gysl.entity.BuildingInformation;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (BuildingInformation)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-02-24 11:10:03
|
||||||
|
*/
|
||||||
|
public interface BuildingInformationMapper extends BaseMapper<BuildingInformation> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询所有数据
|
||||||
|
*
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
List<BuildingInformation> selectAll(ZwIdPageReq zwIdPageReq);
|
||||||
|
}
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
package com.ruoyi.gysl.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.ruoyi.gysl.entity.PlanInformation;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 规划信息(PlanInformation)表数据库访问层
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2025-02-24 14:21:58
|
|
||||||
*/
|
|
||||||
public interface PlanInformationDao extends BaseMapper<PlanInformation> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.ruoyi.gysl.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.gysl.entity.PlanInformation;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 规划信息(PlanInformation)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-02-24 14:21:58
|
||||||
|
*/
|
||||||
|
public interface PlanInformationMapper extends BaseMapper<PlanInformation> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据项目id查询规划信息
|
||||||
|
*
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
PlanInformation selectAll(@Param("req") ZwIdPageReq zwIdPageReq);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,27 @@
|
|||||||
|
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.ProjectLegend;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目图例(ProjectLegend)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:12:34
|
||||||
|
*/
|
||||||
|
public interface ProjectLegendMapper extends BaseMapper<ProjectLegend> {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param projectLegend 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
Page<ProjectLegend> page(Page<ProjectLegend> page,@Param("req") ZwIdPageReq projectLegend);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
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.ProjectMonthInfo;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 月度进展详情(ProjectMonthInfo)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:03
|
||||||
|
*/
|
||||||
|
public interface ProjectMonthInfoMapper extends BaseMapper<ProjectMonthInfo> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
Page<ProjectMonthInfo> page(Page<ProjectMonthInfo> page,@Param("req") ZwIdPageReq zwIdPageReq);
|
||||||
|
|
||||||
|
List<ProjectMonthInfo> page(@Param("req") ZwIdPageReq zwIdPageReq);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.ruoyi.gysl.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.gysl.entity.ProjectOtherInfo;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目其他信息(ProjectOtherInfo)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:22
|
||||||
|
*/
|
||||||
|
public interface ProjectOtherInfoMapper extends BaseMapper<ProjectOtherInfo> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据项目id查询项目其他信息
|
||||||
|
*
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
ProjectOtherInfo searchId(@Param("req") ZwIdPageReq zwIdPageReq);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.ruoyi.gysl.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.gysl.entity.ProjectRemark;
|
||||||
|
import com.ruoyi.gysl.entity.request.RemarkPageReq;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目备忘录(ProjectRemark)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:35
|
||||||
|
*/
|
||||||
|
public interface ProjectRemarkMapper extends BaseMapper<ProjectRemark> {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询所有数据
|
||||||
|
*/
|
||||||
|
List<ProjectRemark> list(@Param("req") RemarkPageReq projectRemark);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.ruoyi.gysl.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.gysl.entity.QyrzInformation;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (QyrzInformation)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 15:25:17
|
||||||
|
*/
|
||||||
|
public interface QyrzInformationMapper extends BaseMapper<QyrzInformation> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据项目id查询企业入驻基本信息
|
||||||
|
*
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
QyrzInformation selectAll(ZwIdPageReq zwIdPageReq);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,27 @@
|
|||||||
|
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.Xmxl;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目巡礼(Xmxl)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 14:19:21
|
||||||
|
*/
|
||||||
|
public interface XmxlMapper extends BaseMapper<Xmxl> {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
Page<Xmxl> page(Page<Xmxl> page,@Param("req") ZwIdPageReq zwIdPageReq);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
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.ProjectLegend;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目图例(ProjectLegend)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:12:35
|
||||||
|
*/
|
||||||
|
public interface ProjectLegendService extends IService<ProjectLegend> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param projectLegend 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
Page<ProjectLegend> page(Page<ProjectLegend> page, ZwIdPageReq projectLegend);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
|||||||
|
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.ProjectMonthInfo;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 月度进展详情(ProjectMonthInfo)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:03
|
||||||
|
*/
|
||||||
|
public interface ProjectMonthInfoService extends IService<ProjectMonthInfo> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
Page<ProjectMonthInfo> page(Page<ProjectMonthInfo> page, ZwIdPageReq zwIdPageReq);
|
||||||
|
|
||||||
|
List<ProjectMonthInfo> page(ZwIdPageReq zwIdPageReq);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.ruoyi.gysl.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.gysl.entity.ProjectOtherInfo;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目其他信息(ProjectOtherInfo)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:22
|
||||||
|
*/
|
||||||
|
public interface ProjectOtherInfoService extends IService<ProjectOtherInfo> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据项目id查询项目其他信息
|
||||||
|
*
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
ProjectOtherInfo searchId(ZwIdPageReq zwIdPageReq);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.ruoyi.gysl.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.gysl.entity.ProjectRemark;
|
||||||
|
import com.ruoyi.gysl.entity.request.RemarkPageReq;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目备忘录(ProjectRemark)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:36
|
||||||
|
*/
|
||||||
|
public interface ProjectRemarkService extends IService<ProjectRemark> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询所有数据
|
||||||
|
*/
|
||||||
|
List<ProjectRemark> list(RemarkPageReq projectRemark);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.ruoyi.gysl.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.gysl.entity.QyrzInformation;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (QyrzInformation)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 15:25:18
|
||||||
|
*/
|
||||||
|
public interface QyrzInformationService extends IService<QyrzInformation> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据项目id查询企业入驻基本信息
|
||||||
|
*
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
QyrzInformation selectAll(ZwIdPageReq zwIdPageReq);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
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.Xmxl;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目巡礼(Xmxl)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 14:19:22
|
||||||
|
*/
|
||||||
|
public interface XmxlService extends IService<Xmxl> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
Page<Xmxl> page(Page<Xmxl> page , ZwIdPageReq zwIdPageReq);
|
||||||
|
}
|
||||||
|
|
@ -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.ZwIdPageReq;
|
||||||
|
import com.ruoyi.gysl.mapper.ProjectLegendMapper;
|
||||||
|
import com.ruoyi.gysl.entity.ProjectLegend;
|
||||||
|
import com.ruoyi.gysl.service.ProjectLegendService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目图例(ProjectLegend)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:12:35
|
||||||
|
*/
|
||||||
|
@Service("projectLegendService")
|
||||||
|
public class ProjectLegendServiceImpl extends ServiceImpl<ProjectLegendMapper, ProjectLegend> implements ProjectLegendService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param projectLegend 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Page<ProjectLegend> page(Page<ProjectLegend> page, ZwIdPageReq projectLegend) {
|
||||||
|
return baseMapper.page(page,projectLegend);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,42 @@
|
|||||||
|
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.ZwIdPageReq;
|
||||||
|
import com.ruoyi.gysl.mapper.ProjectMonthInfoMapper;
|
||||||
|
import com.ruoyi.gysl.entity.ProjectMonthInfo;
|
||||||
|
import com.ruoyi.gysl.service.ProjectMonthInfoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 月度进展详情(ProjectMonthInfo)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:03
|
||||||
|
*/
|
||||||
|
@Service("projectMonthInfoService")
|
||||||
|
public class ProjectMonthInfoServiceImpl extends ServiceImpl<ProjectMonthInfoMapper, ProjectMonthInfo> implements ProjectMonthInfoService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Page<ProjectMonthInfo> page(Page<ProjectMonthInfo> page, ZwIdPageReq zwIdPageReq) {
|
||||||
|
return baseMapper.page(page,zwIdPageReq);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询所有数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ProjectMonthInfo> page(ZwIdPageReq zwIdPageReq) {
|
||||||
|
return baseMapper.page(zwIdPageReq);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.ruoyi.gysl.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import com.ruoyi.gysl.mapper.ProjectOtherInfoMapper;
|
||||||
|
import com.ruoyi.gysl.entity.ProjectOtherInfo;
|
||||||
|
import com.ruoyi.gysl.service.ProjectOtherInfoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目其他信息(ProjectOtherInfo)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:22
|
||||||
|
*/
|
||||||
|
@Service("projectOtherInfoService")
|
||||||
|
public class ProjectOtherInfoServiceImpl extends ServiceImpl<ProjectOtherInfoMapper, ProjectOtherInfo> implements ProjectOtherInfoService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据项目id查询项目其他信息
|
||||||
|
*
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ProjectOtherInfo searchId(ZwIdPageReq zwIdPageReq) {
|
||||||
|
return baseMapper.searchId(zwIdPageReq);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.ruoyi.gysl.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.gysl.entity.request.RemarkPageReq;
|
||||||
|
import com.ruoyi.gysl.mapper.ProjectRemarkMapper;
|
||||||
|
import com.ruoyi.gysl.entity.ProjectRemark;
|
||||||
|
import com.ruoyi.gysl.service.ProjectRemarkService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目备忘录(ProjectRemark)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 10:49:36
|
||||||
|
*/
|
||||||
|
@Service("projectRemarkService")
|
||||||
|
public class ProjectRemarkServiceImpl extends ServiceImpl<ProjectRemarkMapper, ProjectRemark> implements ProjectRemarkService {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询所有数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ProjectRemark> list(RemarkPageReq projectRemark) {
|
||||||
|
return baseMapper.list(projectRemark);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.ruoyi.gysl.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.gysl.mapper.QyrzInformationMapper;
|
||||||
|
import com.ruoyi.gysl.entity.QyrzInformation;
|
||||||
|
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
|
||||||
|
import com.ruoyi.gysl.service.QyrzInformationService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (QyrzInformation)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 15:25:18
|
||||||
|
*/
|
||||||
|
@Service("qyrzInformationService")
|
||||||
|
public class QyrzInformationServiceImpl extends ServiceImpl<QyrzInformationMapper, QyrzInformation> implements QyrzInformationService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据项目id查询企业入驻基本信息
|
||||||
|
*
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public QyrzInformation selectAll(ZwIdPageReq zwIdPageReq) {
|
||||||
|
return baseMapper.selectAll(zwIdPageReq);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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.ZwIdPageReq;
|
||||||
|
import com.ruoyi.gysl.mapper.XmxlMapper;
|
||||||
|
import com.ruoyi.gysl.entity.Xmxl;
|
||||||
|
import com.ruoyi.gysl.service.XmxlService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目巡礼(Xmxl)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2025-03-19 14:19:22
|
||||||
|
*/
|
||||||
|
@Service("xmxlService")
|
||||||
|
public class XmxlServiceImpl extends ServiceImpl<XmxlMapper, Xmxl> implements XmxlService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param zwIdPageReq 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Page<Xmxl> page(Page<Xmxl> page, ZwIdPageReq zwIdPageReq) {
|
||||||
|
return baseMapper.page(page,zwIdPageReq);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
<?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.BuildingInformationMapper">
|
||||||
|
|
||||||
|
<select id="selectAll" resultType="com.ruoyi.gysl.entity.BuildingInformation">
|
||||||
|
select * from building_information
|
||||||
|
<where>
|
||||||
|
<if test="req.xmId != null and req.xmId != ''">
|
||||||
|
AND xm_id = #{req.xmId}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -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.PlanInformationMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectAll" resultType="com.ruoyi.gysl.entity.PlanInformation">
|
||||||
|
SELECT *
|
||||||
|
FROM plan_information
|
||||||
|
<where>
|
||||||
|
<if test="req.xmId != null and req.xmId != ''">
|
||||||
|
AND xm_id = #{req.xmId}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
</mapper>
|
@ -0,0 +1,15 @@
|
|||||||
|
<?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.ProjectLegendMapper">
|
||||||
|
|
||||||
|
<select id="page" resultType="com.ruoyi.gysl.entity.ProjectLegend">
|
||||||
|
select * from project_legend
|
||||||
|
<where>
|
||||||
|
<if test="req.xmId != null and req.xmId != ''">
|
||||||
|
AND xm_id = #{req.xmId}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
<?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.ProjectMonthInfoMapper">
|
||||||
|
<select id="page" resultType="com.ruoyi.gysl.entity.ProjectMonthInfo">
|
||||||
|
select * from project_month_info
|
||||||
|
<where>
|
||||||
|
<if test="req.xmId != null and req.xmId != ''">
|
||||||
|
AND xm_id = #{req.xmId}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
<?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.ProjectOtherInfoMapper">
|
||||||
|
|
||||||
|
<select id="searchId" resultType="com.ruoyi.gysl.entity.ProjectOtherInfo">
|
||||||
|
select * from project_other_info
|
||||||
|
where xm_id = #{req.xmId}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
<?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.ProjectRemarkMapper">
|
||||||
|
<select id="list" resultType="com.ruoyi.gysl.entity.ProjectRemark">
|
||||||
|
select * from project_remark
|
||||||
|
<where>
|
||||||
|
<if test="req.xmId != null and req.xmId != ''">
|
||||||
|
AND xm_id = #{req.xmId}
|
||||||
|
</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,13 @@
|
|||||||
|
<?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.QyrzInformationMapper">
|
||||||
|
<select id="selectAll" resultType="com.ruoyi.gysl.entity.QyrzInformation">
|
||||||
|
select * from qyrz_information
|
||||||
|
<where>
|
||||||
|
<if test="req.xmId != null and req.xmId != ''">
|
||||||
|
AND xm_id = #{req.xmId}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
<?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.XmxlMapper">
|
||||||
|
<select id="page" resultType="com.ruoyi.gysl.entity.Xmxl">
|
||||||
|
select * from xmxl
|
||||||
|
<where>
|
||||||
|
<if test="req.xmId != null and req.xmId != ''">
|
||||||
|
AND xm_id = #{req.xmId}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,65 @@
|
|||||||
|
package com.ruoyi.framework.config;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
||||||
|
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||||
|
import com.ruoyi.common.utils.SecurityUtils;
|
||||||
|
import org.apache.ibatis.reflection.MetaObject;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自动注入
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2023/5/4 10:16
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class MyMetaObjectHandler implements MetaObjectHandler {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void insertFill(MetaObject metaObject) {
|
||||||
|
// 获取当前登录用户
|
||||||
|
|
||||||
|
String userName = null;
|
||||||
|
Long userId = null;
|
||||||
|
try {
|
||||||
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||||
|
userName = loginUser.getUser().getNickName();
|
||||||
|
userId = SecurityUtils.getUserId();
|
||||||
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
|
if (!Objects.equals(userName, "")) {
|
||||||
|
this.strictInsertFill(metaObject, "createBy", String.class, userName);
|
||||||
|
this.strictInsertFill(metaObject, "updateBy", String.class, userName);
|
||||||
|
}
|
||||||
|
if (userId != null) {
|
||||||
|
this.strictInsertFill(metaObject, "createId", Long.class, userId);
|
||||||
|
this.strictInsertFill(metaObject, "updateId", Long.class, userId);
|
||||||
|
}
|
||||||
|
this.strictInsertFill(metaObject, "createTime", Date.class, new Date());
|
||||||
|
this.strictInsertFill(metaObject, "updateTime", Date.class, new Date());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateFill(MetaObject metaObject) {
|
||||||
|
// 获取当前登录用户
|
||||||
|
String userName = null;
|
||||||
|
Long userId = null;
|
||||||
|
try {
|
||||||
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||||
|
userName = loginUser.getUser().getNickName();
|
||||||
|
userId = SecurityUtils.getUserId();
|
||||||
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
|
if (userId != null) {
|
||||||
|
this.strictUpdateFill(metaObject, "updateId", Long.class, userId);
|
||||||
|
}
|
||||||
|
if (!Objects.equals(userName, "")) {
|
||||||
|
this.strictUpdateFill(metaObject, "updateBy", String.class, userName);
|
||||||
|
}
|
||||||
|
this.strictUpdateFill(metaObject, "updateTime", Date.class, new Date());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue