第二次提交

hhw
dongdingding 1 month ago
parent c634ae3927
commit b1bfb5563f

@ -0,0 +1,98 @@
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.BasicInformation;
import com.ruoyi.gysl.service.BasicInformationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (BasicInformation)
*
* @author makejava
* @since 2025-02-24 09:25:51
*/
@Api(tags ="基本信息" )
@RestController
@RequestMapping("/gysl/basicInformation")
public class BasicInformationController extends BaseController {
/**
*
*/
@Resource
private BasicInformationService basicInformationService;
/**
*
*
* @param page
* @param basicInformation
* @return
*/
@ApiOperation(value = "分页查询所有数据", response = BasicInformation.class)
@GetMapping("/page")
public AjaxResult selectAll(Page<BasicInformation> page, BasicInformation basicInformation) {
return success(this.basicInformationService.page(page, new QueryWrapper<>(basicInformation)));
}
/**
*
*
* @param id
* @return
*/
@ApiOperation(value = "通过主键查询单条数据",response = BasicInformation.class)
@GetMapping("{id}")
public AjaxResult selectOne(@PathVariable Serializable id) {
return success(this.basicInformationService.getById(id));
}
/**
*
*
* @param basicInformation
* @return
*/
@ApiOperation("新增数据")
@PostMapping("/add")
public AjaxResult insert(@RequestBody BasicInformation basicInformation) {
return success(this.basicInformationService.save(basicInformation));
}
/**
*
*
* @param basicInformation
* @return
*/
@ApiOperation("修改数据")
@PostMapping("/edit")
public AjaxResult update(@RequestBody BasicInformation basicInformation) {
return success(this.basicInformationService.updateById(basicInformation));
}
/**
*
*
* @param idList
* @return
*/
@ApiOperation("删除数据")
@DeleteMapping("/delete")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(this.basicInformationService.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.BuildingInformation;
import com.ruoyi.gysl.service.BuildingInformationService;
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;
/**
* (BuildingInformation)
*
* @author makejava
* @since 2025-02-24 11:10:03
*/
@Api(tags = "建筑信息表")
@RestController
@RequestMapping("/gysl/buildingInformation")
public class BuildingInformationController extends BaseController {
/**
*
*/
@Resource
private BuildingInformationService buildingInformationService;
/**
*
*
* @param page
* @param buildingInformation
* @return
*/
@GetMapping("/page")
@ApiOperation(value = "分页查询所有数据",response =BuildingInformation.class )
public AjaxResult selectAll(Page<BuildingInformation> page, BuildingInformation buildingInformation) {
return success(this.buildingInformationService.page(page, new QueryWrapper<>(buildingInformation)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条数据",response =BuildingInformation.class)
public AjaxResult selectOne(@PathVariable Serializable id) {
return success(this.buildingInformationService.getById(id));
}
/**
*
*
* @param buildingInformation
* @return
*/
@PostMapping("/add")
@ApiOperation("新增数据")
public AjaxResult insert(@RequestBody BuildingInformation buildingInformation) {
return success(this.buildingInformationService.save(buildingInformation));
}
/**
*
*
* @param buildingInformation
* @return
*/
@PostMapping("/edit")
@ApiOperation("修改数据")
public AjaxResult update(@RequestBody BuildingInformation buildingInformation) {
return success(this.buildingInformationService.updateById(buildingInformation));
}
/**
*
*
* @param idList
* @return
*/
@ApiOperation("删除数据")
@DeleteMapping("/delete")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(this.buildingInformationService.removeByIds(idList));
}
}

@ -0,0 +1,96 @@
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.Enterprise;
import com.ruoyi.gysl.service.EnterpriseService;
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;
/**
* (Enterprise)
*
* @author makejava
* @since 2025-02-24 11:26:49
*/
@Api(tags = "企业基本信息")
@RestController
@RequestMapping("enterprise")
public class EnterpriseController extends BaseController {
/**
*
*/
@Resource
private EnterpriseService enterpriseService;
/**
*
*
* @param page
* @param enterprise
* @return
*/
@GetMapping("/page")
@ApiOperation(value = "分页查询所有数据",response =Enterprise.class )
public AjaxResult selectAll(Page<Enterprise> page, Enterprise enterprise) {
return success(this.enterpriseService.page(page, new QueryWrapper<>(enterprise)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条数据",response =Enterprise.class )
public AjaxResult selectOne(@PathVariable Serializable id) {
return success(this.enterpriseService.getById(id));
}
/**
*
*
* @param enterprise
* @return
*/
@PostMapping("/add")
@ApiOperation("新增数据")
public AjaxResult insert(@RequestBody Enterprise enterprise) {
return success(this.enterpriseService.save(enterprise));
}
/**
*
*
* @param enterprise
* @return
*/
@PostMapping("/edit")
@ApiOperation("修改数据")
public AjaxResult update(@RequestBody Enterprise enterprise) {
return success(this.enterpriseService.updateById(enterprise));
}
/**
*
*
* @param idList
* @return
*/
@ApiOperation("删除数据")
@DeleteMapping("/delete")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(this.enterpriseService.removeByIds(idList));
}
}

@ -0,0 +1,176 @@
package com.ruoyi.gysl.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
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.time.LocalDateTime;
import java.util.Date;
/**
* (BasicInformation)
*
* @author makejava
* @since 2025-02-24 09:25:55
*/
@Data
@ApiModel("基本信息")
@TableName(value = "basic_information")
@SuppressWarnings("serial")
public class BasicInformation extends Model<BasicInformation> {
@ApiModelProperty("主键id")
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
//项目名称
@NotBlank
@ApiModelProperty("项目名称")
private String name;
//项目法人单位
@NotBlank
@ApiModelProperty("项目法人单位")
private String xmfrdwxz;
//项目法人单位性质
@NotBlank
@ApiModelProperty("项目法人单位性质")
private Integer nature;
//施工单位
@ApiModelProperty("施工单位")
private String sgdw;
//设计单位
@ApiModelProperty("设计单位")
private String sjdw;
//总投资额
@ApiModelProperty("总投资额")
private BigDecimal ztze;
//所属功能区
@NotBlank
@ApiModelProperty("所属功能区")
private Integer ssgnq;
//建设起止时间
@ApiModelProperty("建设起止时间")
private Date begainTime;
//现状分类
@NotBlank
@ApiModelProperty("现状分类")
private Integer xzfl;
//建设地点
@NotBlank
@ApiModelProperty("建设地点")
private String jsdd;
//重点发展产业
@NotBlank
@ApiModelProperty("重点发展产业")
private String prioritize;
//建设模式
@NotBlank
@ApiModelProperty("建设模式")
private Integer jsms;
//标签
@ApiModelProperty("项目标签")
private String label;
//项目负责人
@NotBlank
@ApiModelProperty("项目负责人")
private String projectLeader;
//联系方式
@NotBlank
@ApiModelProperty("联系方式")
private String phone;
//施工许可证发放时间
@ApiModelProperty("施工许可证发放时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date issuingTime;
//竣工验收时间
@ApiModelProperty("竣工验收时间")
@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 acceptanceTime;
//项目法人单位简介
@NotBlank
@ApiModelProperty("项目法人单位简介")
private String unitIntroduction;
//项目简介
@NotBlank
@ApiModelProperty("项目简介")
private String introduction;
//附件
@ApiModelProperty("附件")
private String fj;
//创建者id
@ApiModelProperty("创建者id")
private Integer createId;
//创建时间
@ApiModelProperty("创建时间")
@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;
//创建者
@ApiModelProperty("创建者")
private String createBy;
//更新者ID
@ApiModelProperty("更新者ID")
private Long updateId;
//更新者
@ApiModelProperty("更新者")
private String updateBy;
//更新时间
@ApiModelProperty("更新时间")
@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 updateTime;
}

@ -0,0 +1,165 @@
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 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.math.BigDecimal;
import java.time.LocalDateTime;
/**
* (BuildingInformation)
*
* @author makejava
* @since 2025-02-24 11:10:05
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("building_information")
@ApiModel(value = "BuildingInformation")
public class BuildingInformation implements Serializable {
private static final long serialVersionUID = -28824019069166362L;
@ApiModelProperty(value = "id}")
@TableId(value = "id", type = IdType.AUTO)
@TableField("id")
private Integer id;
/**
*
*/
@ApiModelProperty(value = "楼栋名称")
@TableField("name")
private String name;
/**
* id
*/
@ApiModelProperty(value = "项目id")
@TableField("xm_id")
private Integer xmId;
/**
*
*/
@ApiModelProperty(value = "层数")
@TableField("floor")
private Integer floor;
/**
*
*/
@ApiModelProperty(value = "总建筑高度")
@TableField("total_building_height")
private BigDecimal totalBuildingHeight;
/**
*
*/
@ApiModelProperty(value = "首层高度")
@TableField("scgd")
private BigDecimal scgd;
/**
* 24
*/
@ApiModelProperty(value = "2至4层高")
@TableField("two_and_four_cg")
private BigDecimal twoAndFourCg;
/**
* 4
*/
@ApiModelProperty(value = "4层以上层高")
@TableField("four_yscg")
private BigDecimal fourYscg;
/**
*
*/
@ApiModelProperty(value = "首层地面荷载")
@TableField("scdmhz")
private BigDecimal scdmhz;
/**
*
*/
@ApiModelProperty(value = "二至三层楼面荷载")
@TableField("two_and_three_lmhz")
private BigDecimal twoAndThreeLmhz;
/**
*
*/
@ApiModelProperty(value = "四层及以上楼面荷载")
@TableField("four_yslmhz")
private BigDecimal fourYslmhz;
/**
*
*/
@ApiModelProperty(value = "标准层面积")
@TableField("bzcmj")
private BigDecimal bzcmj;
/**
*
*/
@ApiModelProperty(value = "柱距")
@TableField("zj")
private BigDecimal zj;
/**
*
*/
@ApiModelProperty(value = "是否有吊装口")
@TableField("sfydzk")
private BigDecimal sfydzk;
/**
*
*/
@ApiModelProperty(value = "是否有汽车盘道")
@TableField("sfyqcpd")
private BigDecimal sfyqcpd;
/**
* id
*/
@ApiModelProperty(value = "创建者id")
@TableField("create_id")
private Integer createId;
//创建时间
@ApiModelProperty("创建时间")
@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;
//创建者
@ApiModelProperty("创建者")
private String createBy;
//更新者ID
@ApiModelProperty("更新者ID")
private Long updateId;
//更新者
@ApiModelProperty("更新者")
private String updateBy;
//更新时间
@ApiModelProperty("更新时间")
@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 updateTime;
}

@ -0,0 +1,115 @@
package com.ruoyi.gysl.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
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;
/**
* (Enterprise)
*
* @author makejava
* @since 2025-02-24 11:26:49
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("enterprise")
@ApiModel(value = "Enterprise", description = "企业基本信息")
public class Enterprise implements Serializable {
private static final long serialVersionUID = -87535476195722857L;
/**
* id
*/
@ApiModelProperty(value = "主键id")
@TableField("id")
private Integer id;
/**
* id
*/
@ApiModelProperty(value = "项目id")
@TableField("xm_id")
private Integer xmId;
/**
*
*/
@ApiModelProperty(value = "企业名称")
@TableField("name")
private String name;
/**
*
*/
@ApiModelProperty(value = "统一社会信用代码")
@TableField("code")
private String code;
/**
*
*/
@ApiModelProperty(value = "所属行业 ")
@TableField("sshy")
private String sshy;
/**
*
*/
@ApiModelProperty(value = "租金价格")
@TableField("zjjg")
private Integer zjjg;
/**
* id
*/
@ApiModelProperty(value = "创建者id")
@TableField("create_id")
private Integer createId;
/**
*
*/
@ApiModelProperty(value = "创建时间")
@TableField("create_time")
@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;
/**
*
*/
@ApiModelProperty(value = "创建者")
@TableField("create_by")
private String createBy;
/**
* ID
*/
@ApiModelProperty(value = "更新者ID")
@TableField("update_id")
private Long updateId;
/**
*
*/
@ApiModelProperty(value = "更新者")
@TableField("update_by")
private String updateBy;
/**
*
*/
@ApiModelProperty(value = "更新时间")
@TableField("update_time")
@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 updateTime;
}

@ -0,0 +1,15 @@
package com.ruoyi.gysl.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.gysl.entity.BasicInformation;
/**
* (BasicInformation)访
*
* @author makejava
* @since 2025-02-24 09:25:51
*/
public interface BasicInformationMapper extends BaseMapper<BasicInformation> {
}

@ -0,0 +1,15 @@
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,15 @@
package com.ruoyi.gysl.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.gysl.entity.Enterprise;
/**
* (Enterprise)访
*
* @author makejava
* @since 2025-02-24 11:26:49
*/
public interface EnterpriseDao extends BaseMapper<Enterprise> {
}

@ -0,0 +1,15 @@
package com.ruoyi.gysl.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.gysl.entity.BasicInformation;
/**
* (BasicInformation)
*
* @author makejava
* @since 2025-02-24 09:25:55
*/
public interface BasicInformationService extends IService<BasicInformation> {
}

@ -0,0 +1,15 @@
package com.ruoyi.gysl.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.gysl.entity.BuildingInformation;
/**
* (BuildingInformation)
*
* @author makejava
* @since 2025-02-24 11:10:06
*/
public interface BuildingInformationService extends IService<BuildingInformation> {
}

@ -0,0 +1,15 @@
package com.ruoyi.gysl.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.gysl.entity.Enterprise;
/**
* (Enterprise)
*
* @author makejava
* @since 2025-02-24 11:26:49
*/
public interface EnterpriseService extends IService<Enterprise> {
}

@ -0,0 +1,19 @@
package com.ruoyi.gysl.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.gysl.mapper.BasicInformationMapper;
import com.ruoyi.gysl.entity.BasicInformation;
import com.ruoyi.gysl.service.BasicInformationService;
import org.springframework.stereotype.Service;
/**
* (BasicInformation)
*
* @author makejava
* @since 2025-02-24 09:25:55
*/
@Service("basicInformationService")
public class BasicInformationServiceImpl extends ServiceImpl<BasicInformationMapper, BasicInformation> implements BasicInformationService {
}

@ -0,0 +1,19 @@
package com.ruoyi.gysl.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.gysl.mapper.BuildingInformationDao;
import com.ruoyi.gysl.entity.BuildingInformation;
import com.ruoyi.gysl.service.BuildingInformationService;
import org.springframework.stereotype.Service;
/**
* (BuildingInformation)
*
* @author makejava
* @since 2025-02-24 11:10:06
*/
@Service("buildingInformationService")
public class BuildingInformationServiceImpl extends ServiceImpl<BuildingInformationDao, BuildingInformation> implements BuildingInformationService {
}

@ -0,0 +1,19 @@
package com.ruoyi.gysl.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.gysl.mapper.EnterpriseDao;
import com.ruoyi.gysl.entity.Enterprise;
import com.ruoyi.gysl.service.EnterpriseService;
import org.springframework.stereotype.Service;
/**
* (Enterprise)
*
* @author makejava
* @since 2025-02-24 11:26:49
*/
@Service("enterpriseService")
public class EnterpriseServiceImpl extends ServiceImpl<EnterpriseDao, Enterprise> implements EnterpriseService {
}

@ -114,7 +114,7 @@ public class SecurityConfig
requests.antMatchers("/login", "/register", "/captchaImage").permitAll()
// 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**","/gysl/**").permitAll()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated();
})

Loading…
Cancel
Save