Commit cda06db8 authored by 周昊's avatar 周昊

基础信息模块代码初始化

parent af5de870
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ruoyi</artifactId>
<groupId>com.ruoyi</groupId>
<version>3.8.5</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>censoft-rongtong</artifactId>
<description>融通业务模块</description>
<dependencies>
<!-- 通用工具-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common</artifactId>
</dependency>
<!-- 系统模块-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-system</artifactId>
</dependency>
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-framework</artifactId>
</dependency>
</dependencies>
</project>
package com.censoft.censoftrongtong.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.censoft.censoftrongtong.domain.LedgerBuilding;
import com.censoft.censoftrongtong.service.ILedgerBuildingService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 基础数据-楼宇Controller
*
* @author ruoyi
* @date 2023-06-26
*/
@RestController
@RequestMapping("/system/ledger/building")
public class LedgerBuildingController extends BaseController
{
@Autowired
private ILedgerBuildingService ledgerBuildingService;
/**
* 查询基础数据-楼宇列表
*/
@PreAuthorize("@ss.hasPermi('system:ledgerBuilding:list')")
@GetMapping("/list")
public TableDataInfo list(LedgerBuilding ledgerBuilding)
{
startPage();
List<LedgerBuilding> list = ledgerBuildingService.selectLedgerBuildingList(ledgerBuilding);
return getDataTable(list);
}
/**
* 导出基础数据-楼宇列表
*/
@PreAuthorize("@ss.hasPermi('system:ledgerBuilding:export')")
@Log(title = "基础数据-楼宇", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, LedgerBuilding ledgerBuilding)
{
List<LedgerBuilding> list = ledgerBuildingService.selectLedgerBuildingList(ledgerBuilding);
ExcelUtil<LedgerBuilding> util = new ExcelUtil<LedgerBuilding>(LedgerBuilding.class);
util.exportExcel(response, list, "基础数据-楼宇数据");
}
/**
* 获取基础数据-楼宇详细信息
*/
@PreAuthorize("@ss.hasPermi('system:ledgerBuilding:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(ledgerBuildingService.selectLedgerBuildingById(id));
}
/**
* 新增基础数据-楼宇
*/
@PreAuthorize("@ss.hasPermi('system:ledgerBuilding:add')")
@Log(title = "基础数据-楼宇", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody LedgerBuilding ledgerBuilding)
{
return toAjax(ledgerBuildingService.insertLedgerBuilding(ledgerBuilding));
}
/**
* 修改基础数据-楼宇
*/
@PreAuthorize("@ss.hasPermi('system:ledgerBuilding:edit')")
@Log(title = "基础数据-楼宇", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody LedgerBuilding ledgerBuilding)
{
return toAjax(ledgerBuildingService.updateLedgerBuilding(ledgerBuilding));
}
/**
* 删除基础数据-楼宇
*/
@PreAuthorize("@ss.hasPermi('system:ledgerBuilding:remove')")
@Log(title = "基础数据-楼宇", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(ledgerBuildingService.deleteLedgerBuildingByIds(ids));
}
}
package com.censoft.censoftrongtong.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.censoft.censoftrongtong.domain.LedgerFloor;
import com.censoft.censoftrongtong.service.ILedgerFloorService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 基础数据-楼层Controller
*
* @author ruoyi
* @date 2023-06-26
*/
@RestController
@RequestMapping("/system/ledger/floor")
public class LedgerFloorController extends BaseController
{
@Autowired
private ILedgerFloorService ledgerFloorService;
/**
* 查询基础数据-楼层列表
*/
@PreAuthorize("@ss.hasPermi('system:ledgerFloor:list')")
@GetMapping("/list")
public TableDataInfo list(LedgerFloor ledgerFloor)
{
startPage();
List<LedgerFloor> list = ledgerFloorService.selectLedgerFloorList(ledgerFloor);
return getDataTable(list);
}
/**
* 导出基础数据-楼层列表
*/
@PreAuthorize("@ss.hasPermi('system:ledgerFloor:export')")
@Log(title = "基础数据-楼层", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, LedgerFloor ledgerFloor)
{
List<LedgerFloor> list = ledgerFloorService.selectLedgerFloorList(ledgerFloor);
ExcelUtil<LedgerFloor> util = new ExcelUtil<LedgerFloor>(LedgerFloor.class);
util.exportExcel(response, list, "基础数据-楼层数据");
}
/**
* 获取基础数据-楼层详细信息
*/
@PreAuthorize("@ss.hasPermi('system:ledgerFloor:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(ledgerFloorService.selectLedgerFloorById(id));
}
/**
* 新增基础数据-楼层
*/
@PreAuthorize("@ss.hasPermi('system:ledgerFloor:add')")
@Log(title = "基础数据-楼层", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody LedgerFloor ledgerFloor)
{
return toAjax(ledgerFloorService.insertLedgerFloor(ledgerFloor));
}
/**
* 修改基础数据-楼层
*/
@PreAuthorize("@ss.hasPermi('system:ledgerFloor:edit')")
@Log(title = "基础数据-楼层", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody LedgerFloor ledgerFloor)
{
return toAjax(ledgerFloorService.updateLedgerFloor(ledgerFloor));
}
/**
* 删除基础数据-楼层
*/
@PreAuthorize("@ss.hasPermi('system:ledgerFloor:remove')")
@Log(title = "基础数据-楼层", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(ledgerFloorService.deleteLedgerFloorByIds(ids));
}
}
package com.censoft.censoftrongtong.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.censoft.censoftrongtong.domain.LedgerProject;
import com.censoft.censoftrongtong.service.ILedgerProjectService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 基础数据-项目Controller
*
* @author ruoyi
* @date 2023-06-26
*/
@RestController
@RequestMapping("/system/ledger/project")
public class LedgerProjectController extends BaseController
{
@Autowired
private ILedgerProjectService ledgerProjectService;
/**
* 查询基础数据-项目列表
*/
@PreAuthorize("@ss.hasPermi('system:ledgerProject:list')")
@GetMapping("/list")
public TableDataInfo list(LedgerProject ledgerProject)
{
startPage();
List<LedgerProject> list = ledgerProjectService.selectLedgerProjectList(ledgerProject);
return getDataTable(list);
}
/**
* 导出基础数据-项目列表
*/
@PreAuthorize("@ss.hasPermi('system:ledgerProject:export')")
@Log(title = "基础数据-项目", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, LedgerProject ledgerProject)
{
List<LedgerProject> list = ledgerProjectService.selectLedgerProjectList(ledgerProject);
ExcelUtil<LedgerProject> util = new ExcelUtil<LedgerProject>(LedgerProject.class);
util.exportExcel(response, list, "基础数据-项目数据");
}
/**
* 获取基础数据-项目详细信息
*/
@PreAuthorize("@ss.hasPermi('system:ledgerProject:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(ledgerProjectService.selectLedgerProjectById(id));
}
/**
* 新增基础数据-项目
*/
@PreAuthorize("@ss.hasPermi('system:ledgerProject:add')")
@Log(title = "基础数据-项目", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody LedgerProject ledgerProject)
{
return toAjax(ledgerProjectService.insertLedgerProject(ledgerProject));
}
/**
* 修改基础数据-项目
*/
@PreAuthorize("@ss.hasPermi('system:ledgerProject:edit')")
@Log(title = "基础数据-项目", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody LedgerProject ledgerProject)
{
return toAjax(ledgerProjectService.updateLedgerProject(ledgerProject));
}
/**
* 删除基础数据-项目
*/
@PreAuthorize("@ss.hasPermi('system:ledgerProject:remove')")
@Log(title = "基础数据-项目", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(ledgerProjectService.deleteLedgerProjectByIds(ids));
}
}
package com.censoft.censoftrongtong.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.censoft.censoftrongtong.domain.LedgerRoom;
import com.censoft.censoftrongtong.service.ILedgerRoomService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 基础数据-楼层Controller
*
* @author ruoyi
* @date 2023-06-26
*/
@RestController
@RequestMapping("/system/ledger/room")
public class LedgerRoomController extends BaseController
{
@Autowired
private ILedgerRoomService ledgerRoomService;
/**
* 查询基础数据-楼层列表
*/
@PreAuthorize("@ss.hasPermi('system:ledgerRoom:list')")
@GetMapping("/list")
public TableDataInfo list(LedgerRoom ledgerRoom)
{
startPage();
List<LedgerRoom> list = ledgerRoomService.selectLedgerRoomList(ledgerRoom);
return getDataTable(list);
}
/**
* 导出基础数据-楼层列表
*/
@PreAuthorize("@ss.hasPermi('system:ledgerRoom:export')")
@Log(title = "基础数据-楼层", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, LedgerRoom ledgerRoom)
{
List<LedgerRoom> list = ledgerRoomService.selectLedgerRoomList(ledgerRoom);
ExcelUtil<LedgerRoom> util = new ExcelUtil<LedgerRoom>(LedgerRoom.class);
util.exportExcel(response, list, "基础数据-楼层数据");
}
/**
* 获取基础数据-楼层详细信息
*/
@PreAuthorize("@ss.hasPermi('system:ledgerRoom:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(ledgerRoomService.selectLedgerRoomById(id));
}
/**
* 新增基础数据-楼层
*/
@PreAuthorize("@ss.hasPermi('system:ledgerRoom:add')")
@Log(title = "基础数据-楼层", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody LedgerRoom ledgerRoom)
{
return toAjax(ledgerRoomService.insertLedgerRoom(ledgerRoom));
}
/**
* 修改基础数据-楼层
*/
@PreAuthorize("@ss.hasPermi('system:ledgerRoom:edit')")
@Log(title = "基础数据-楼层", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody LedgerRoom ledgerRoom)
{
return toAjax(ledgerRoomService.updateLedgerRoom(ledgerRoom));
}
/**
* 删除基础数据-楼层
*/
@PreAuthorize("@ss.hasPermi('system:ledgerRoom:remove')")
@Log(title = "基础数据-楼层", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(ledgerRoomService.deleteLedgerRoomByIds(ids));
}
}
package com.censoft.censoftrongtong.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 基础数据-楼宇对象 ledger_building
*
* @author ruoyi
* @date 2023-06-26
*/
public class LedgerBuilding extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 项目id */
@Excel(name = "项目id")
private Long projectId;
/** 楼宇名称 */
@Excel(name = "楼宇名称")
private String name;
/** 资产类型 */
@Excel(name = "资产类型")
private String type;
/** 组织机构id */
@Excel(name = "组织机构id")
private Long deptId;
/** 楼层 */
@Excel(name = "楼层")
private String floor;
/** 用途 */
@Excel(name = "用途")
private String useto;
/** 所在城市 */
@Excel(name = "所在城市")
private String city;
/** 资产面积 */
@Excel(name = "资产面积")
private BigDecimal area;
/** 详细地址 */
@Excel(name = "详细地址")
private String address;
/** 状态(0正常 1停用) */
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志(0代表存在 1代表删除) */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setProjectId(Long projectId)
{
this.projectId = projectId;
}
public Long getProjectId()
{
return projectId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
public void setFloor(String floor)
{
this.floor = floor;
}
public String getFloor()
{
return floor;
}
public String getUseto() {
return useto;
}
public void setUseto(String useto) {
this.useto = useto;
}
public void setCity(String city)
{
this.city = city;
}
public String getCity()
{
return city;
}
public void setArea(BigDecimal area)
{
this.area = area;
}
public BigDecimal getArea()
{
return area;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("projectId", getProjectId())
.append("name", getName())
.append("type", getType())
.append("deptId", getDeptId())
.append("floor", getFloor())
.append("useto", getUseto())
.append("city", getCity())
.append("area", getArea())
.append("address", getAddress())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}
package com.censoft.censoftrongtong.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 基础数据-楼层对象 ledger_floor
*
* @author ruoyi
* @date 2023-06-26
*/
public class LedgerFloor extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 楼宇id */
@Excel(name = "楼宇id")
private Long buildingId;
/** 楼层名称 */
@Excel(name = "楼层名称")
private String name;
/** 楼层属性 */
@Excel(name = "楼层属性")
private String type;
/** 房间数量 */
@Excel(name = "房间数量")
private Long roomNumber;
/** 状态(0正常 1停用) */
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志(0代表存在 1代表删除) */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setBuildingId(Long buildingId)
{
this.buildingId = buildingId;
}
public Long getBuildingId()
{
return buildingId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setRoomNumber(Long roomNumber)
{
this.roomNumber = roomNumber;
}
public Long getRoomNumber()
{
return roomNumber;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("buildingId", getBuildingId())
.append("name", getName())
.append("type", getType())
.append("roomNumber", getRoomNumber())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}
package com.censoft.censoftrongtong.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 基础数据-项目对象 ledger_project
*
* @author ruoyi
* @date 2023-06-26
*/
public class LedgerProject extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 项目名称 */
@Excel(name = "项目名称")
private String name;
/** 项目类型 */
@Excel(name = "项目类型")
private String type;
/** 组织机构id */
@Excel(name = "组织机构id")
private Long deptId;
/** 所在城市 */
@Excel(name = "所在城市")
private String city;
/** 详细地址 */
@Excel(name = "详细地址")
private String address;
/** 0-关联 1-自建 */
@Excel(name = "0-关联 1-自建")
private String source;
/** 状态(0正常 1停用) */
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志(0代表存在 1代表删除) */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
public void setCity(String city)
{
this.city = city;
}
public String getCity()
{
return city;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setSource(String source)
{
this.source = source;
}
public String getSource()
{
return source;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("type", getType())
.append("deptId", getDeptId())
.append("city", getCity())
.append("address", getAddress())
.append("source", getSource())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}
package com.censoft.censoftrongtong.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 基础数据-楼层对象 ledger_room
*
* @author ruoyi
* @date 2023-06-26
*/
public class LedgerRoom extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 楼层id */
@Excel(name = "楼层id")
private Long floorId;
/** 房间名称 */
@Excel(name = "房间名称")
private String name;
/** 房间编号 */
@Excel(name = "房间编号")
private String number;
/** 房间面积 */
@Excel(name = "房间面积")
private BigDecimal area;
/** 状态(0正常 1停用) */
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志(0代表存在 1代表删除) */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setFloorId(Long floorId)
{
this.floorId = floorId;
}
public Long getFloorId()
{
return floorId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setNumber(String number)
{
this.number = number;
}
public String getNumber()
{
return number;
}
public void setArea(BigDecimal area)
{
this.area = area;
}
public BigDecimal getArea()
{
return area;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("floorId", getFloorId())
.append("name", getName())
.append("number", getNumber())
.append("area", getArea())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}
package com.censoft.censoftrongtong.mapper;
import com.censoft.censoftrongtong.domain.LedgerBuilding;
import java.util.List;
/**
* 基础数据-楼宇Mapper接口
*
* @author ruoyi
* @date 2023-06-26
*/
public interface LedgerBuildingMapper
{
/**
* 查询基础数据-楼宇
*
* @param id 基础数据-楼宇主键
* @return 基础数据-楼宇
*/
public LedgerBuilding selectLedgerBuildingById(Long id);
/**
* 查询基础数据-楼宇列表
*
* @param ledgerBuilding 基础数据-楼宇
* @return 基础数据-楼宇集合
*/
public List<LedgerBuilding> selectLedgerBuildingList(LedgerBuilding ledgerBuilding);
/**
* 新增基础数据-楼宇
*
* @param ledgerBuilding 基础数据-楼宇
* @return 结果
*/
public int insertLedgerBuilding(LedgerBuilding ledgerBuilding);
/**
* 修改基础数据-楼宇
*
* @param ledgerBuilding 基础数据-楼宇
* @return 结果
*/
public int updateLedgerBuilding(LedgerBuilding ledgerBuilding);
/**
* 删除基础数据-楼宇
*
* @param id 基础数据-楼宇主键
* @return 结果
*/
public int deleteLedgerBuildingById(Long id);
/**
* 批量删除基础数据-楼宇
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteLedgerBuildingByIds(Long[] ids);
}
package com.censoft.censoftrongtong.mapper;
import com.censoft.censoftrongtong.domain.LedgerFloor;
import java.util.List;
/**
* 基础数据-楼层Mapper接口
*
* @author ruoyi
* @date 2023-06-26
*/
public interface LedgerFloorMapper
{
/**
* 查询基础数据-楼层
*
* @param id 基础数据-楼层主键
* @return 基础数据-楼层
*/
public LedgerFloor selectLedgerFloorById(Long id);
/**
* 查询基础数据-楼层列表
*
* @param ledgerFloor 基础数据-楼层
* @return 基础数据-楼层集合
*/
public List<LedgerFloor> selectLedgerFloorList(LedgerFloor ledgerFloor);
/**
* 新增基础数据-楼层
*
* @param ledgerFloor 基础数据-楼层
* @return 结果
*/
public int insertLedgerFloor(LedgerFloor ledgerFloor);
/**
* 修改基础数据-楼层
*
* @param ledgerFloor 基础数据-楼层
* @return 结果
*/
public int updateLedgerFloor(LedgerFloor ledgerFloor);
/**
* 删除基础数据-楼层
*
* @param id 基础数据-楼层主键
* @return 结果
*/
public int deleteLedgerFloorById(Long id);
/**
* 批量删除基础数据-楼层
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteLedgerFloorByIds(Long[] ids);
}
package com.censoft.censoftrongtong.mapper;
import com.censoft.censoftrongtong.domain.LedgerProject;
import java.util.List;
/**
* 基础数据-项目Mapper接口
*
* @author ruoyi
* @date 2023-06-26
*/
public interface LedgerProjectMapper
{
/**
* 查询基础数据-项目
*
* @param id 基础数据-项目主键
* @return 基础数据-项目
*/
public LedgerProject selectLedgerProjectById(Long id);
/**
* 查询基础数据-项目列表
*
* @param ledgerProject 基础数据-项目
* @return 基础数据-项目集合
*/
public List<LedgerProject> selectLedgerProjectList(LedgerProject ledgerProject);
/**
* 新增基础数据-项目
*
* @param ledgerProject 基础数据-项目
* @return 结果
*/
public int insertLedgerProject(LedgerProject ledgerProject);
/**
* 修改基础数据-项目
*
* @param ledgerProject 基础数据-项目
* @return 结果
*/
public int updateLedgerProject(LedgerProject ledgerProject);
/**
* 删除基础数据-项目
*
* @param id 基础数据-项目主键
* @return 结果
*/
public int deleteLedgerProjectById(Long id);
/**
* 批量删除基础数据-项目
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteLedgerProjectByIds(Long[] ids);
}
package com.censoft.censoftrongtong.mapper;
import com.censoft.censoftrongtong.domain.LedgerRoom;
import java.util.List;
/**
* 基础数据-楼层Mapper接口
*
* @author ruoyi
* @date 2023-06-26
*/
public interface LedgerRoomMapper
{
/**
* 查询基础数据-楼层
*
* @param id 基础数据-楼层主键
* @return 基础数据-楼层
*/
public LedgerRoom selectLedgerRoomById(Long id);
/**
* 查询基础数据-楼层列表
*
* @param ledgerRoom 基础数据-楼层
* @return 基础数据-楼层集合
*/
public List<LedgerRoom> selectLedgerRoomList(LedgerRoom ledgerRoom);
/**
* 新增基础数据-楼层
*
* @param ledgerRoom 基础数据-楼层
* @return 结果
*/
public int insertLedgerRoom(LedgerRoom ledgerRoom);
/**
* 修改基础数据-楼层
*
* @param ledgerRoom 基础数据-楼层
* @return 结果
*/
public int updateLedgerRoom(LedgerRoom ledgerRoom);
/**
* 删除基础数据-楼层
*
* @param id 基础数据-楼层主键
* @return 结果
*/
public int deleteLedgerRoomById(Long id);
/**
* 批量删除基础数据-楼层
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteLedgerRoomByIds(Long[] ids);
}
package com.censoft.censoftrongtong.service;
import com.censoft.censoftrongtong.domain.LedgerBuilding;
import java.util.List;
/**
* 基础数据-楼宇Service接口
*
* @author ruoyi
* @date 2023-06-26
*/
public interface ILedgerBuildingService
{
/**
* 查询基础数据-楼宇
*
* @param id 基础数据-楼宇主键
* @return 基础数据-楼宇
*/
public LedgerBuilding selectLedgerBuildingById(Long id);
/**
* 查询基础数据-楼宇列表
*
* @param ledgerBuilding 基础数据-楼宇
* @return 基础数据-楼宇集合
*/
public List<LedgerBuilding> selectLedgerBuildingList(LedgerBuilding ledgerBuilding);
/**
* 新增基础数据-楼宇
*
* @param ledgerBuilding 基础数据-楼宇
* @return 结果
*/
public int insertLedgerBuilding(LedgerBuilding ledgerBuilding);
/**
* 修改基础数据-楼宇
*
* @param ledgerBuilding 基础数据-楼宇
* @return 结果
*/
public int updateLedgerBuilding(LedgerBuilding ledgerBuilding);
/**
* 批量删除基础数据-楼宇
*
* @param ids 需要删除的基础数据-楼宇主键集合
* @return 结果
*/
public int deleteLedgerBuildingByIds(Long[] ids);
/**
* 删除基础数据-楼宇信息
*
* @param id 基础数据-楼宇主键
* @return 结果
*/
public int deleteLedgerBuildingById(Long id);
}
package com.censoft.censoftrongtong.service;
import com.censoft.censoftrongtong.domain.LedgerFloor;
import java.util.List;
/**
* 基础数据-楼层Service接口
*
* @author ruoyi
* @date 2023-06-26
*/
public interface ILedgerFloorService
{
/**
* 查询基础数据-楼层
*
* @param id 基础数据-楼层主键
* @return 基础数据-楼层
*/
public LedgerFloor selectLedgerFloorById(Long id);
/**
* 查询基础数据-楼层列表
*
* @param ledgerFloor 基础数据-楼层
* @return 基础数据-楼层集合
*/
public List<LedgerFloor> selectLedgerFloorList(LedgerFloor ledgerFloor);
/**
* 新增基础数据-楼层
*
* @param ledgerFloor 基础数据-楼层
* @return 结果
*/
public int insertLedgerFloor(LedgerFloor ledgerFloor);
/**
* 修改基础数据-楼层
*
* @param ledgerFloor 基础数据-楼层
* @return 结果
*/
public int updateLedgerFloor(LedgerFloor ledgerFloor);
/**
* 批量删除基础数据-楼层
*
* @param ids 需要删除的基础数据-楼层主键集合
* @return 结果
*/
public int deleteLedgerFloorByIds(Long[] ids);
/**
* 删除基础数据-楼层信息
*
* @param id 基础数据-楼层主键
* @return 结果
*/
public int deleteLedgerFloorById(Long id);
}
package com.censoft.censoftrongtong.service;
import com.censoft.censoftrongtong.domain.LedgerProject;
import java.util.List;
/**
* 基础数据-项目Service接口
*
* @author ruoyi
* @date 2023-06-26
*/
public interface ILedgerProjectService
{
/**
* 查询基础数据-项目
*
* @param id 基础数据-项目主键
* @return 基础数据-项目
*/
public LedgerProject selectLedgerProjectById(Long id);
/**
* 查询基础数据-项目列表
*
* @param ledgerProject 基础数据-项目
* @return 基础数据-项目集合
*/
public List<LedgerProject> selectLedgerProjectList(LedgerProject ledgerProject);
/**
* 新增基础数据-项目
*
* @param ledgerProject 基础数据-项目
* @return 结果
*/
public int insertLedgerProject(LedgerProject ledgerProject);
/**
* 修改基础数据-项目
*
* @param ledgerProject 基础数据-项目
* @return 结果
*/
public int updateLedgerProject(LedgerProject ledgerProject);
/**
* 批量删除基础数据-项目
*
* @param ids 需要删除的基础数据-项目主键集合
* @return 结果
*/
public int deleteLedgerProjectByIds(Long[] ids);
/**
* 删除基础数据-项目信息
*
* @param id 基础数据-项目主键
* @return 结果
*/
public int deleteLedgerProjectById(Long id);
}
package com.censoft.censoftrongtong.service;
import com.censoft.censoftrongtong.domain.LedgerRoom;
import java.util.List;
/**
* 基础数据-楼层Service接口
*
* @author ruoyi
* @date 2023-06-26
*/
public interface ILedgerRoomService
{
/**
* 查询基础数据-楼层
*
* @param id 基础数据-楼层主键
* @return 基础数据-楼层
*/
public LedgerRoom selectLedgerRoomById(Long id);
/**
* 查询基础数据-楼层列表
*
* @param ledgerRoom 基础数据-楼层
* @return 基础数据-楼层集合
*/
public List<LedgerRoom> selectLedgerRoomList(LedgerRoom ledgerRoom);
/**
* 新增基础数据-楼层
*
* @param ledgerRoom 基础数据-楼层
* @return 结果
*/
public int insertLedgerRoom(LedgerRoom ledgerRoom);
/**
* 修改基础数据-楼层
*
* @param ledgerRoom 基础数据-楼层
* @return 结果
*/
public int updateLedgerRoom(LedgerRoom ledgerRoom);
/**
* 批量删除基础数据-楼层
*
* @param ids 需要删除的基础数据-楼层主键集合
* @return 结果
*/
public int deleteLedgerRoomByIds(Long[] ids);
/**
* 删除基础数据-楼层信息
*
* @param id 基础数据-楼层主键
* @return 结果
*/
public int deleteLedgerRoomById(Long id);
}
package com.censoft.censoftrongtong.service.impl;
import java.util.List;
import com.censoft.censoftrongtong.domain.LedgerBuilding;
import com.censoft.censoftrongtong.mapper.LedgerBuildingMapper;
import com.censoft.censoftrongtong.service.ILedgerBuildingService;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 基础数据-楼宇Service业务层处理
*
* @author ruoyi
* @date 2023-06-26
*/
@Service
public class LedgerBuildingServiceImpl implements ILedgerBuildingService
{
@Autowired
private LedgerBuildingMapper ledgerBuildingMapper;
/**
* 查询基础数据-楼宇
*
* @param id 基础数据-楼宇主键
* @return 基础数据-楼宇
*/
@Override
public LedgerBuilding selectLedgerBuildingById(Long id)
{
return ledgerBuildingMapper.selectLedgerBuildingById(id);
}
/**
* 查询基础数据-楼宇列表
*
* @param ledgerBuilding 基础数据-楼宇
* @return 基础数据-楼宇
*/
@Override
public List<LedgerBuilding> selectLedgerBuildingList(LedgerBuilding ledgerBuilding)
{
return ledgerBuildingMapper.selectLedgerBuildingList(ledgerBuilding);
}
/**
* 新增基础数据-楼宇
*
* @param ledgerBuilding 基础数据-楼宇
* @return 结果
*/
@Override
public int insertLedgerBuilding(LedgerBuilding ledgerBuilding)
{
ledgerBuilding.setCreateTime(DateUtils.getNowDate());
return ledgerBuildingMapper.insertLedgerBuilding(ledgerBuilding);
}
/**
* 修改基础数据-楼宇
*
* @param ledgerBuilding 基础数据-楼宇
* @return 结果
*/
@Override
public int updateLedgerBuilding(LedgerBuilding ledgerBuilding)
{
ledgerBuilding.setUpdateTime(DateUtils.getNowDate());
return ledgerBuildingMapper.updateLedgerBuilding(ledgerBuilding);
}
/**
* 批量删除基础数据-楼宇
*
* @param ids 需要删除的基础数据-楼宇主键
* @return 结果
*/
@Override
public int deleteLedgerBuildingByIds(Long[] ids)
{
return ledgerBuildingMapper.deleteLedgerBuildingByIds(ids);
}
/**
* 删除基础数据-楼宇信息
*
* @param id 基础数据-楼宇主键
* @return 结果
*/
@Override
public int deleteLedgerBuildingById(Long id)
{
return ledgerBuildingMapper.deleteLedgerBuildingById(id);
}
}
package com.censoft.censoftrongtong.service.impl;
import java.util.List;
import com.censoft.censoftrongtong.domain.LedgerFloor;
import com.censoft.censoftrongtong.mapper.LedgerFloorMapper;
import com.censoft.censoftrongtong.service.ILedgerFloorService;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 基础数据-楼层Service业务层处理
*
* @author ruoyi
* @date 2023-06-26
*/
@Service
public class LedgerFloorServiceImpl implements ILedgerFloorService
{
@Autowired
private LedgerFloorMapper ledgerFloorMapper;
/**
* 查询基础数据-楼层
*
* @param id 基础数据-楼层主键
* @return 基础数据-楼层
*/
@Override
public LedgerFloor selectLedgerFloorById(Long id)
{
return ledgerFloorMapper.selectLedgerFloorById(id);
}
/**
* 查询基础数据-楼层列表
*
* @param ledgerFloor 基础数据-楼层
* @return 基础数据-楼层
*/
@Override
public List<LedgerFloor> selectLedgerFloorList(LedgerFloor ledgerFloor)
{
return ledgerFloorMapper.selectLedgerFloorList(ledgerFloor);
}
/**
* 新增基础数据-楼层
*
* @param ledgerFloor 基础数据-楼层
* @return 结果
*/
@Override
public int insertLedgerFloor(LedgerFloor ledgerFloor)
{
ledgerFloor.setCreateTime(DateUtils.getNowDate());
return ledgerFloorMapper.insertLedgerFloor(ledgerFloor);
}
/**
* 修改基础数据-楼层
*
* @param ledgerFloor 基础数据-楼层
* @return 结果
*/
@Override
public int updateLedgerFloor(LedgerFloor ledgerFloor)
{
ledgerFloor.setUpdateTime(DateUtils.getNowDate());
return ledgerFloorMapper.updateLedgerFloor(ledgerFloor);
}
/**
* 批量删除基础数据-楼层
*
* @param ids 需要删除的基础数据-楼层主键
* @return 结果
*/
@Override
public int deleteLedgerFloorByIds(Long[] ids)
{
return ledgerFloorMapper.deleteLedgerFloorByIds(ids);
}
/**
* 删除基础数据-楼层信息
*
* @param id 基础数据-楼层主键
* @return 结果
*/
@Override
public int deleteLedgerFloorById(Long id)
{
return ledgerFloorMapper.deleteLedgerFloorById(id);
}
}
package com.censoft.censoftrongtong.service.impl;
import java.util.List;
import com.censoft.censoftrongtong.domain.LedgerProject;
import com.censoft.censoftrongtong.mapper.LedgerProjectMapper;
import com.censoft.censoftrongtong.service.ILedgerProjectService;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 基础数据-项目Service业务层处理
*
* @author ruoyi
* @date 2023-06-26
*/
@Service
public class LedgerProjectServiceImpl implements ILedgerProjectService
{
@Autowired
private LedgerProjectMapper ledgerProjectMapper;
/**
* 查询基础数据-项目
*
* @param id 基础数据-项目主键
* @return 基础数据-项目
*/
@Override
public LedgerProject selectLedgerProjectById(Long id)
{
return ledgerProjectMapper.selectLedgerProjectById(id);
}
/**
* 查询基础数据-项目列表
*
* @param ledgerProject 基础数据-项目
* @return 基础数据-项目
*/
@Override
public List<LedgerProject> selectLedgerProjectList(LedgerProject ledgerProject)
{
return ledgerProjectMapper.selectLedgerProjectList(ledgerProject);
}
/**
* 新增基础数据-项目
*
* @param ledgerProject 基础数据-项目
* @return 结果
*/
@Override
public int insertLedgerProject(LedgerProject ledgerProject)
{
ledgerProject.setCreateTime(DateUtils.getNowDate());
return ledgerProjectMapper.insertLedgerProject(ledgerProject);
}
/**
* 修改基础数据-项目
*
* @param ledgerProject 基础数据-项目
* @return 结果
*/
@Override
public int updateLedgerProject(LedgerProject ledgerProject)
{
ledgerProject.setUpdateTime(DateUtils.getNowDate());
return ledgerProjectMapper.updateLedgerProject(ledgerProject);
}
/**
* 批量删除基础数据-项目
*
* @param ids 需要删除的基础数据-项目主键
* @return 结果
*/
@Override
public int deleteLedgerProjectByIds(Long[] ids)
{
return ledgerProjectMapper.deleteLedgerProjectByIds(ids);
}
/**
* 删除基础数据-项目信息
*
* @param id 基础数据-项目主键
* @return 结果
*/
@Override
public int deleteLedgerProjectById(Long id)
{
return ledgerProjectMapper.deleteLedgerProjectById(id);
}
}
package com.censoft.censoftrongtong.service.impl;
import java.util.List;
import com.censoft.censoftrongtong.domain.LedgerRoom;
import com.censoft.censoftrongtong.mapper.LedgerRoomMapper;
import com.censoft.censoftrongtong.service.ILedgerRoomService;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 基础数据-楼层Service业务层处理
*
* @author ruoyi
* @date 2023-06-26
*/
@Service
public class LedgerRoomServiceImpl implements ILedgerRoomService
{
@Autowired
private LedgerRoomMapper ledgerRoomMapper;
/**
* 查询基础数据-楼层
*
* @param id 基础数据-楼层主键
* @return 基础数据-楼层
*/
@Override
public LedgerRoom selectLedgerRoomById(Long id)
{
return ledgerRoomMapper.selectLedgerRoomById(id);
}
/**
* 查询基础数据-楼层列表
*
* @param ledgerRoom 基础数据-楼层
* @return 基础数据-楼层
*/
@Override
public List<LedgerRoom> selectLedgerRoomList(LedgerRoom ledgerRoom)
{
return ledgerRoomMapper.selectLedgerRoomList(ledgerRoom);
}
/**
* 新增基础数据-楼层
*
* @param ledgerRoom 基础数据-楼层
* @return 结果
*/
@Override
public int insertLedgerRoom(LedgerRoom ledgerRoom)
{
ledgerRoom.setCreateTime(DateUtils.getNowDate());
return ledgerRoomMapper.insertLedgerRoom(ledgerRoom);
}
/**
* 修改基础数据-楼层
*
* @param ledgerRoom 基础数据-楼层
* @return 结果
*/
@Override
public int updateLedgerRoom(LedgerRoom ledgerRoom)
{
ledgerRoom.setUpdateTime(DateUtils.getNowDate());
return ledgerRoomMapper.updateLedgerRoom(ledgerRoom);
}
/**
* 批量删除基础数据-楼层
*
* @param ids 需要删除的基础数据-楼层主键
* @return 结果
*/
@Override
public int deleteLedgerRoomByIds(Long[] ids)
{
return ledgerRoomMapper.deleteLedgerRoomByIds(ids);
}
/**
* 删除基础数据-楼层信息
*
* @param id 基础数据-楼层主键
* @return 结果
*/
@Override
public int deleteLedgerRoomById(Long id)
{
return ledgerRoomMapper.deleteLedgerRoomById(id);
}
}
<?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.censoft.censoftrongtong.mapper.LedgerBuildingMapper">
<resultMap type="com.censoft.censoftrongtong.domain.LedgerBuilding" id="LedgerBuildingResult">
<result property="id" column="id" />
<result property="projectId" column="project_id" />
<result property="name" column="name" />
<result property="type" column="type" />
<result property="deptId" column="dept_id" />
<result property="floor" column="floor" />
<result property="useto" column="useto" />
<result property="city" column="city" />
<result property="area" column="area" />
<result property="address" column="address" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectLedgerBuildingVo">
select id, project_id, name, type, dept_id, floor, useto, city, area, address, status, del_flag, create_by, create_time, update_by, update_time from ledger_building
</sql>
<select id="selectLedgerBuildingList" parameterType="com.censoft.censoftrongtong.domain.LedgerBuilding" resultMap="LedgerBuildingResult">
<include refid="selectLedgerBuildingVo"/>
<where>
<if test="projectId != null "> and project_id = #{projectId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="floor != null and floor != ''"> and floor = #{floor}</if>
<if test="useto != null and useto != ''"> and useto = #{useto}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="area != null "> and area = #{area}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectLedgerBuildingById" parameterType="Long" resultMap="LedgerBuildingResult">
<include refid="selectLedgerBuildingVo"/>
where id = #{id}
</select>
<insert id="insertLedgerBuilding" parameterType="com.censoft.censoftrongtong.domain.LedgerBuilding" useGeneratedKeys="true" keyProperty="id">
insert into ledger_building
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="projectId != null">project_id,</if>
<if test="name != null">name,</if>
<if test="type != null">type,</if>
<if test="deptId != null">dept_id,</if>
<if test="floor != null">floor,</if>
<if test="useto != null">useto,</if>
<if test="city != null">city,</if>
<if test="area != null">area,</if>
<if test="address != null">address,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="projectId != null">#{projectId},</if>
<if test="name != null">#{name},</if>
<if test="type != null">#{type},</if>
<if test="deptId != null">#{deptId},</if>
<if test="floor != null">#{floor},</if>
<if test="useto != null">#{useto},</if>
<if test="city != null">#{city},</if>
<if test="area != null">#{area},</if>
<if test="address != null">#{address},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateLedgerBuilding" parameterType="com.censoft.censoftrongtong.domain.LedgerBuilding">
update ledger_building
<trim prefix="SET" suffixOverrides=",">
<if test="projectId != null">project_id = #{projectId},</if>
<if test="name != null">name = #{name},</if>
<if test="type != null">type = #{type},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="floor != null">floor = #{floor},</if>
<if test="useto != null">useto = #{useto},</if>
<if test="city != null">city = #{city},</if>
<if test="area != null">area = #{area},</if>
<if test="address != null">address = #{address},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLedgerBuildingById" parameterType="Long">
delete from ledger_building where id = #{id}
</delete>
<delete id="deleteLedgerBuildingByIds" parameterType="String">
delete from ledger_building where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.censoft.censoftrongtong.mapper.LedgerFloorMapper">
<resultMap type="com.censoft.censoftrongtong.domain.LedgerFloor" id="LedgerFloorResult">
<result property="id" column="id" />
<result property="buildingId" column="building_id" />
<result property="name" column="name" />
<result property="type" column="type" />
<result property="roomNumber" column="room_number" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectLedgerFloorVo">
select id, building_id, name, type, room_number, status, del_flag, create_by, create_time, update_by, update_time from ledger_floor
</sql>
<select id="selectLedgerFloorList" parameterType="com.censoft.censoftrongtong.domain.LedgerFloor" resultMap="LedgerFloorResult">
<include refid="selectLedgerFloorVo"/>
<where>
<if test="buildingId != null "> and building_id = #{buildingId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="roomNumber != null "> and room_number = #{roomNumber}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectLedgerFloorById" parameterType="Long" resultMap="LedgerFloorResult">
<include refid="selectLedgerFloorVo"/>
where id = #{id}
</select>
<insert id="insertLedgerFloor" parameterType="com.censoft.censoftrongtong.domain.LedgerFloor" useGeneratedKeys="true" keyProperty="id">
insert into ledger_floor
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="buildingId != null">building_id,</if>
<if test="name != null">name,</if>
<if test="type != null">type,</if>
<if test="roomNumber != null">room_number,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="buildingId != null">#{buildingId},</if>
<if test="name != null">#{name},</if>
<if test="type != null">#{type},</if>
<if test="roomNumber != null">#{roomNumber},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateLedgerFloor" parameterType="com.censoft.censoftrongtong.domain.LedgerFloor">
update ledger_floor
<trim prefix="SET" suffixOverrides=",">
<if test="buildingId != null">building_id = #{buildingId},</if>
<if test="name != null">name = #{name},</if>
<if test="type != null">type = #{type},</if>
<if test="roomNumber != null">room_number = #{roomNumber},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLedgerFloorById" parameterType="Long">
delete from ledger_floor where id = #{id}
</delete>
<delete id="deleteLedgerFloorByIds" parameterType="String">
delete from ledger_floor where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.censoft.censoftrongtong.mapper.LedgerProjectMapper">
<resultMap type="com.censoft.censoftrongtong.domain.LedgerProject" id="LedgerProjectResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="type" column="type" />
<result property="deptId" column="dept_id" />
<result property="city" column="city" />
<result property="address" column="address" />
<result property="source" column="source" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectLedgerProjectVo">
select id, name, type, dept_id, city, address, source, status, del_flag, create_by, create_time, update_by, update_time from ledger_project
</sql>
<select id="selectLedgerProjectList" parameterType="com.censoft.censoftrongtong.domain.LedgerProject" resultMap="LedgerProjectResult">
<include refid="selectLedgerProjectVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="source != null and source != ''"> and source = #{source}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectLedgerProjectById" parameterType="Long" resultMap="LedgerProjectResult">
<include refid="selectLedgerProjectVo"/>
where id = #{id}
</select>
<insert id="insertLedgerProject" parameterType="com.censoft.censoftrongtong.domain.LedgerProject" useGeneratedKeys="true" keyProperty="id">
insert into ledger_project
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="type != null">type,</if>
<if test="deptId != null">dept_id,</if>
<if test="city != null">city,</if>
<if test="address != null">address,</if>
<if test="source != null">source,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="type != null">#{type},</if>
<if test="deptId != null">#{deptId},</if>
<if test="city != null">#{city},</if>
<if test="address != null">#{address},</if>
<if test="source != null">#{source},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateLedgerProject" parameterType="com.censoft.censoftrongtong.domain.LedgerProject">
update ledger_project
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="type != null">type = #{type},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="city != null">city = #{city},</if>
<if test="address != null">address = #{address},</if>
<if test="source != null">source = #{source},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLedgerProjectById" parameterType="Long">
delete from ledger_project where id = #{id}
</delete>
<delete id="deleteLedgerProjectByIds" parameterType="String">
delete from ledger_project where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.censoft.censoftrongtong.mapper.LedgerRoomMapper">
<resultMap type="com.censoft.censoftrongtong.domain.LedgerRoom" id="LedgerRoomResult">
<result property="id" column="id" />
<result property="floorId" column="floor_id" />
<result property="name" column="name" />
<result property="number" column="number" />
<result property="area" column="area" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectLedgerRoomVo">
select id, floor_id, name, number, area, status, del_flag, create_by, create_time, update_by, update_time from ledger_room
</sql>
<select id="selectLedgerRoomList" parameterType="com.censoft.censoftrongtong.domain.LedgerRoom" resultMap="LedgerRoomResult">
<include refid="selectLedgerRoomVo"/>
<where>
<if test="floorId != null "> and floor_id = #{floorId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="number != null and number != ''"> and number = #{number}</if>
<if test="area != null "> and area = #{area}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectLedgerRoomById" parameterType="Long" resultMap="LedgerRoomResult">
<include refid="selectLedgerRoomVo"/>
where id = #{id}
</select>
<insert id="insertLedgerRoom" parameterType="com.censoft.censoftrongtong.domain.LedgerRoom" useGeneratedKeys="true" keyProperty="id">
insert into ledger_room
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="floorId != null">floor_id,</if>
<if test="name != null">name,</if>
<if test="number != null">number,</if>
<if test="area != null">area,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="floorId != null">#{floorId},</if>
<if test="name != null">#{name},</if>
<if test="number != null">#{number},</if>
<if test="area != null">#{area},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateLedgerRoom" parameterType="com.censoft.censoftrongtong.domain.LedgerRoom">
update ledger_room
<trim prefix="SET" suffixOverrides=",">
<if test="floorId != null">floor_id = #{floorId},</if>
<if test="name != null">name = #{name},</if>
<if test="number != null">number = #{number},</if>
<if test="area != null">area = #{area},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLedgerRoomById" parameterType="Long">
delete from ledger_room where id = #{id}
</delete>
<delete id="deleteLedgerRoomByIds" parameterType="String">
delete from ledger_room where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
......@@ -170,6 +170,13 @@
<version>${ruoyi.version}</version>
</dependency>
<!-- 融通代码-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>censoft-rongtong</artifactId>
<version>${ruoyi.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
......@@ -180,6 +187,7 @@
<module>ruoyi-quartz</module>
<module>ruoyi-generator</module>
<module>ruoyi-common</module>
<module>censoft-rongtong</module>
</modules>
<packaging>pom</packaging>
......
......@@ -61,6 +61,12 @@
<artifactId>ruoyi-generator</artifactId>
</dependency>
<!-- 融通代码-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>censoft-rongtong</artifactId>
</dependency>
</dependencies>
<build>
......
......@@ -9,7 +9,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
*
* @author ruoyi
*/
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class },scanBasePackages = {"com.ruoyi", "com.censoft"})
public class RuoYiApplication
{
public static void main(String[] args)
......
......@@ -6,9 +6,9 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://192.168.4.232:3306/rongtong?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: root
password: mysql
# 从库数据源
slave:
# 从数据源开关/默认关闭
......
......@@ -70,7 +70,7 @@ spring:
# redis 配置
redis:
# 地址
host: localhost
host: 192.168.4.232
# 端口,默认为6379
port: 6379
# 数据库索引
......
......@@ -16,7 +16,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
// 表示通过aop框架暴露该代理对象,AopContext能够访问
@EnableAspectJAutoProxy(exposeProxy = true)
// 指定要扫描的Mapper类的包的路径
@MapperScan("com.ruoyi.**.mapper")
@MapperScan({"com.ruoyi.**.mapper","com.censoft.**.mapper"})
public class ApplicationConfig
{
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment