parent
644e4719fa
commit
13a7763cf3
@ -0,0 +1,218 @@
|
||||
package com.ruoyi.tc.controller;
|
||||
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
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.tc.entity.*;
|
||||
import com.ruoyi.tc.entity.request.AssetCurrentPageRequest;
|
||||
import com.ruoyi.tc.service.AssetBasicNetworkService;
|
||||
import com.ruoyi.tc.service.AssetCurrentService;
|
||||
import com.ruoyi.tc.service.AssetSupplyChainService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.Valid;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 现有资产表(AssetCurrent)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-11-15 10:03:56
|
||||
*/
|
||||
@Api(tags = "现有资产表")
|
||||
@RestController
|
||||
@RequestMapping("/tc/assetCurrent")
|
||||
public class AssetCurrentController extends BaseController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private AssetCurrentService assetCurrentService;
|
||||
@Resource
|
||||
private AssetSupplyChainService assetSupplyChainService;
|
||||
|
||||
@Resource
|
||||
private AssetBasicNetworkService assetBasicNetworkService;
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param as 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
@ApiOperation(value = "分页查询所有数据", response = AssetCurrent.class)
|
||||
@GetMapping
|
||||
public AjaxResult selectAll(Page<AssetCurrent> page, AssetCurrentPageRequest as) {
|
||||
return success(assetCurrentService.page(page, as));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@ApiOperation(value = "通过主键查询单条数据", response = AssetCurrent.class)
|
||||
@GetMapping("{id}")
|
||||
public AjaxResult selectOne(@PathVariable Serializable id) {
|
||||
return success(assetCurrentService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param assetCurrent 实体对象
|
||||
* @return 新增结果
|
||||
*/
|
||||
@ApiOperation(value = "新增数据")
|
||||
@PostMapping
|
||||
public AjaxResult insert(@RequestBody @Valid AssetCurrent assetCurrent) {
|
||||
return success(assetCurrentService.save(assetCurrent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param assetCurrent 实体对象
|
||||
* @return 修改结果
|
||||
*/
|
||||
@ApiOperation(value = "修改数据")
|
||||
@PutMapping
|
||||
public AjaxResult update(@RequestBody @Valid AssetCurrent assetCurrent) {
|
||||
return success(assetCurrentService.updateById(assetCurrent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param idList 主键结合
|
||||
* @return 删除结果
|
||||
*/
|
||||
@ApiOperation(value = "删除数据")
|
||||
@DeleteMapping
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return success(assetCurrentService.removeByIds(idList));
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载资产导入模板
|
||||
*/
|
||||
@ApiOperation(value = "下载资产导入模板")
|
||||
@PostMapping("/importTemplate")
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<AssetExport> util = new ExcelUtil<>(AssetExport.class);
|
||||
util.importTemplateExcel(response, "资产导入模板");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出现有资产
|
||||
*/
|
||||
@ApiOperation(value = "导出现有资产")
|
||||
@PostMapping("/export")
|
||||
public void exportProject(HttpServletResponse response, AssetCurrentPageRequest as) {
|
||||
List<AssetCurrent> list = assetCurrentService.page(as);
|
||||
List<AssetExport> proList = new ArrayList<>();
|
||||
for (AssetCurrent x : list) {
|
||||
//对应的资产
|
||||
AssetExport assetExport = new AssetExport();
|
||||
BeanUtil.copyProperties(x,assetExport);
|
||||
//查找对应的系统建设单位
|
||||
AssetSupplyChain jsdw = assetSupplyChainService.getJsdw(x.getId());
|
||||
BeanUtil.copyProperties(jsdw,assetExport);
|
||||
|
||||
List<AssetBasicNetwork> byList = assetBasicNetworkService.getByAssetId(x.getId());
|
||||
for (AssetBasicNetwork items : byList) {
|
||||
if(items.getType() == 1){
|
||||
//查找对应的服务器信息
|
||||
BeanUtil.copyProperties(items,assetExport);
|
||||
}
|
||||
if(items.getType() == 2){
|
||||
//查找对应网络设备
|
||||
assetExport.setWlpp(items.getPp());
|
||||
assetExport.setWlyjxh(items.getYjxh());
|
||||
assetExport.setWlyjbsxx(items.getYjbsxx());
|
||||
assetExport.setWlsblx(items.getSblx());
|
||||
assetExport.setWlyjbbxx(items.getYjbbxx());
|
||||
assetExport.setWlyjxlh(items.getYjxlh());
|
||||
assetExport.setWlsbIp(items.getSbIp());
|
||||
assetExport.setWlyjyt(items.getYjyt());
|
||||
}
|
||||
if(items.getType() == 3){
|
||||
//查找对应安全设备
|
||||
assetExport.setAqwlpp(items.getPp());
|
||||
assetExport.setAqwlsblx(items.getSblx());
|
||||
assetExport.setAqwlsbIp(items.getSbIp());
|
||||
}
|
||||
}
|
||||
proList.add(assetExport);
|
||||
}
|
||||
ExcelUtil<AssetExport> util = new ExcelUtil<>(AssetExport.class);
|
||||
util.exportExcel(response, proList, "现有资产记录");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入现有资产
|
||||
*/
|
||||
@ApiOperation(value = "导入现有资产")
|
||||
@PostMapping(value = "/import", consumes = "multipart/form-data")
|
||||
public AjaxResult export(@RequestPart("file") MultipartFile file) throws Exception {
|
||||
//读取所有的字段
|
||||
ExcelUtil<AssetExport> util = new ExcelUtil<>(AssetExport.class);
|
||||
List<AssetExport> proList = util.importExcel(file.getInputStream());
|
||||
for (AssetExport items : proList) {
|
||||
AssetCurrent as = new AssetCurrent();
|
||||
//copy新增到新的现有资产表里面
|
||||
BeanUtil.copyProperties(items,as);
|
||||
assetCurrentService.save(as);
|
||||
//新增系统建设单位
|
||||
AssetSupplyChain s1 = new AssetSupplyChain();
|
||||
BeanUtil.copyProperties(items,s1);
|
||||
s1.setType(5);
|
||||
s1.setAssetId(as.getId());
|
||||
assetSupplyChainService.save(s1);
|
||||
//新增服务器信息
|
||||
AssetBasicNetwork a1 = new AssetBasicNetwork();
|
||||
BeanUtil.copyProperties(items,a1);
|
||||
a1.setType(1);
|
||||
a1.setAssetId(as.getId());
|
||||
assetBasicNetworkService.save(a1);
|
||||
//新增网络设备
|
||||
AssetBasicNetwork a2 = new AssetBasicNetwork();
|
||||
a2.setSblx(items.getWlsblx());
|
||||
a2.setPp(items.getWlpp());
|
||||
a2.setSbIp(items.getWlsbIp());
|
||||
a2.setYjxh(items.getWlyjxh());
|
||||
a2.setYjxlh(items.getWlyjxlh());
|
||||
a2.setYjbbxx(items.getWlyjbbxx());
|
||||
a2.setYjyt(items.getWlyjyt());
|
||||
a2.setYjbsxx(items.getWlyjbsxx());
|
||||
a2.setType(2);
|
||||
a2.setAssetId(as.getId());
|
||||
assetBasicNetworkService.save(a2);
|
||||
//新增安全设备
|
||||
AssetBasicNetwork a3 = new AssetBasicNetwork();
|
||||
a3.setSblx(items.getAqwlsblx());
|
||||
a3.setPp(items.getAqwlpp());
|
||||
a3.setSbIp(items.getAqwlsbIp());
|
||||
a3.setType(3);
|
||||
a3.setAssetId(as.getId());
|
||||
assetBasicNetworkService.save(a3);
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,86 @@
|
||||
package com.ruoyi.tc.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.tc.baseClass.BaseClass;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 资产基础网络表(asset_basic_network)实体类
|
||||
* @author du
|
||||
* @since 2024/11/13 14:44
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("资产基础网络")
|
||||
@TableName(value = "asset_basic_network")
|
||||
public class AssetBasicNetwork extends BaseClass implements Serializable {
|
||||
|
||||
@TableId(type = IdType.AUTO,value = "id")
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 资源id
|
||||
*/
|
||||
@ApiModelProperty("资源id")
|
||||
private Long assetId;
|
||||
/**
|
||||
* 1.服务器信息2网络设备3安全设备
|
||||
*/
|
||||
@ApiModelProperty("1.服务器信息2网络设备3安全设备")
|
||||
private Integer type;
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
@ApiModelProperty("设备类型")
|
||||
private String sblx;
|
||||
/**
|
||||
* 品牌
|
||||
*/
|
||||
@ApiModelProperty("品牌")
|
||||
private String pp;
|
||||
/**
|
||||
* 设备IP
|
||||
*/
|
||||
@ApiModelProperty("设备IP")
|
||||
private String sbIp;
|
||||
/**
|
||||
* 操作系统
|
||||
*/
|
||||
@ApiModelProperty("操作系统")
|
||||
private Integer czxt;
|
||||
/**
|
||||
* 操作系统版本
|
||||
*/
|
||||
@ApiModelProperty("操作系统版本")
|
||||
private String czxtbb;
|
||||
/**
|
||||
* 硬件型号
|
||||
*/
|
||||
@ApiModelProperty("硬件型号")
|
||||
private String yjxh;
|
||||
/**
|
||||
* 硬件序列号
|
||||
*/
|
||||
@ApiModelProperty("硬件序列号")
|
||||
private String yjxlh;
|
||||
/**
|
||||
* 硬件版本信息
|
||||
*/
|
||||
@ApiModelProperty("硬件版本信息")
|
||||
private String yjbbxx;
|
||||
/**
|
||||
* 硬件用途
|
||||
*/
|
||||
@ApiModelProperty("硬件用途")
|
||||
private String yjyt;
|
||||
/**
|
||||
* 硬件部署位置
|
||||
*/
|
||||
@ApiModelProperty("硬件部署位置")
|
||||
private String yjbsxx;
|
||||
}
|
@ -0,0 +1,400 @@
|
||||
package com.ruoyi.tc.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.tc.baseClass.BaseClass;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Size;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 资产新监管业务形态(asset_business_form)实体类
|
||||
* @author du
|
||||
* @since 2024/11/13 14:44
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("资产新监管业务形态")
|
||||
@TableName(value = "asset_business_form")
|
||||
public class AssetBusinessForm extends BaseClass implements Serializable {
|
||||
|
||||
@TableId(type = IdType.AUTO,value = "id")
|
||||
private Integer id;
|
||||
/**
|
||||
* 资源id
|
||||
*/
|
||||
@ApiModelProperty("资源id")
|
||||
private Long assetId;
|
||||
/**
|
||||
* 云平台-云平台服务商
|
||||
*/
|
||||
@Size(max= 50,message="云平台-云平台服务商长度不能超过50")
|
||||
@ApiModelProperty("云平台-云平台服务商")
|
||||
private String yptFws;
|
||||
/**
|
||||
* 云平台-是否租户级安全
|
||||
*/
|
||||
@ApiModelProperty("云平台-是否租户级安全")
|
||||
private Integer yptSfzh;
|
||||
/**
|
||||
* 云平台-云平台类型
|
||||
*/
|
||||
@Size(max= 50,message="云平台-云平台类型长度不能超过50")
|
||||
@ApiModelProperty("云平台-云平台类型")
|
||||
private String yptLx;
|
||||
/**
|
||||
* 云平台-硬件资源大小
|
||||
*/
|
||||
@Size(max= 50,message="云平台-硬件资源大小长度不能超过50")
|
||||
@ApiModelProperty("云平台-硬件资源大小")
|
||||
private String yptYjzydx;
|
||||
/**
|
||||
* 云平台-平台架构
|
||||
*/
|
||||
@Size(max= 50,message="云平台-平台架构长度不能超过50")
|
||||
@ApiModelProperty("云平台-平台架构")
|
||||
private String yptPtjg;
|
||||
/**
|
||||
* 云平台-互联网IP段
|
||||
*/
|
||||
@Size(max= 50,message="云平台-互联网IP段长度不能超过50")
|
||||
@ApiModelProperty("云平台-互联网IP段")
|
||||
private String yptIp;
|
||||
/**
|
||||
* 云平台-机房联系人
|
||||
*/
|
||||
@Size(max= 50,message="云平台-机房联系人长度不能超过50")
|
||||
@ApiModelProperty("云平台-机房联系人")
|
||||
private String yptJflxr;
|
||||
/**
|
||||
* 云平台-机房联系人电话
|
||||
*/
|
||||
@Size(max= 50,message="云平台-机房联系人电话长度不能超过50")
|
||||
@ApiModelProperty("云平台-机房联系人电话")
|
||||
private String yptJflxrdh;
|
||||
/**
|
||||
* 云平台-服务器设备类型
|
||||
*/
|
||||
@Size(max= 50,message="云平台-服务器设备类型长度不能超过50")
|
||||
@ApiModelProperty("云平台-服务器设备类型")
|
||||
private String yptFwqsblx;
|
||||
/**
|
||||
* 大数据平台-平台服务商
|
||||
*/
|
||||
@Size(max= 50,message="大数据平台-平台服务商长度不能超过50")
|
||||
@ApiModelProperty("大数据平台-平台服务商")
|
||||
private String dsjPtfws;
|
||||
/**
|
||||
* 大数据平台-敏感数据类型
|
||||
*/
|
||||
@Size(max= 50,message="大数据平台-敏感数据类型长度不能超过50")
|
||||
@ApiModelProperty("大数据平台-敏感数据类型")
|
||||
private String dsjMgsjlx;
|
||||
/**
|
||||
* 大数据平台-硬件资源
|
||||
*/
|
||||
@Size(max= 50,message="大数据平台-硬件资源长度不能超过50")
|
||||
@ApiModelProperty("大数据平台-硬件资源")
|
||||
private String dsjYjzy;
|
||||
/**
|
||||
* 大数据平台-系统数据量
|
||||
*/
|
||||
@Size(max= 50,message="大数据平台-系统数据量长度不能超过50")
|
||||
@ApiModelProperty("大数据平台-系统数据量")
|
||||
private String dsjXtsjl;
|
||||
/**
|
||||
* 大数据平台-机房联系人
|
||||
*/
|
||||
@Size(max= 50,message="大数据平台-机房联系人长度不能超过50")
|
||||
@ApiModelProperty("大数据平台-机房联系人")
|
||||
private String dsjJflxr;
|
||||
/**
|
||||
* 大数据平台-机房联系人电话
|
||||
*/
|
||||
@Size(max= 50,message="大数据平台-机房联系人电话长度不能超过50")
|
||||
@ApiModelProperty("大数据平台-机房联系人电话")
|
||||
private String dsjJflxrdh;
|
||||
/**
|
||||
* 大数据平台-是否数据审计
|
||||
*/
|
||||
@ApiModelProperty("大数据平台-是否数据审计")
|
||||
private Integer dsjSfsjsj;
|
||||
/**
|
||||
* 一般物联网设备-系统集成商名称
|
||||
*/
|
||||
@Size(max= 50,message="一般物联网设备-系统集成商名称长度不能超过50")
|
||||
@ApiModelProperty("一般物联网设备-系统集成商名称")
|
||||
private String wlwsbXtjcs;
|
||||
/**
|
||||
* 一般物联网设备-用户数量
|
||||
*/
|
||||
@Size(max= 50,message="一般物联网设备-用户数量长度不能超过50")
|
||||
@ApiModelProperty("一般物联网设备-用户数量")
|
||||
private String wlwsbYhsl;
|
||||
/**
|
||||
* 一般物联网设备-服务对象
|
||||
*/
|
||||
@ApiModelProperty("一般物联网设备-服务对象")
|
||||
private Integer wlwsbFwdx;
|
||||
/**
|
||||
* 一般物联网设备-终端数量
|
||||
*/
|
||||
@Size(max= 50,message="一般物联网设备-终端数量长度不能超过50")
|
||||
@ApiModelProperty("一般物联网设备-终端数量")
|
||||
private String wlwsbZdsl;
|
||||
/**
|
||||
* 一般物联网设备-网络互联情况
|
||||
*/
|
||||
@ApiModelProperty("一般物联网设备-网络互联情况")
|
||||
private Integer wlwsbWlhlqk;
|
||||
/**
|
||||
* 一般物联网设备-联系人
|
||||
*/
|
||||
@Size(max= 50,message="一般物联网设备-联系人长度不能超过50")
|
||||
@ApiModelProperty("一般物联网设备-联系人")
|
||||
private String wlwsbLxr;
|
||||
/**
|
||||
* 一般物联网设备-服务范围
|
||||
*/
|
||||
@ApiModelProperty("一般物联网设备-服务范围")
|
||||
private Integer wlwsbFwfw;
|
||||
/**
|
||||
* 一般物联网设备-联系人电话
|
||||
*/
|
||||
@Size(max= 50,message="一般物联网设备-联系人电话长度不能超过50")
|
||||
@ApiModelProperty("一般物联网设备-联系人电话")
|
||||
private String wlwsbLxrdh;
|
||||
/**
|
||||
* 一般物联网设备-服务内容
|
||||
*/
|
||||
@Size(max= 500,message="一般物联网设备-服务内容长度不能超过500")
|
||||
@ApiModelProperty("一般物联网设备-服务内容")
|
||||
private String wlwsbFwnr;
|
||||
/**
|
||||
* 摄像头-摄像头品牌
|
||||
*/
|
||||
@Size(max= 50,message="摄像头-摄像头品牌长度不能超过50")
|
||||
@ApiModelProperty("摄像头-摄像头品牌")
|
||||
private String sxtPp;
|
||||
/**
|
||||
* 摄像头-位置
|
||||
*/
|
||||
@Size(max= 255,message="摄像头-位置长度不能超过255")
|
||||
@ApiModelProperty("摄像头-位置")
|
||||
private String sxtWz;
|
||||
/**
|
||||
* 摄像头-摄像头IP
|
||||
*/
|
||||
@Size(max= 50,message="摄像头-摄像头IP长度不能超过50")
|
||||
@ApiModelProperty("摄像头-摄像头IP")
|
||||
private String sxtIp;
|
||||
/**
|
||||
* 摄像头-区域
|
||||
*/
|
||||
@Size(max= 50,message="摄像头-区域长度不能超过50")
|
||||
@ApiModelProperty("摄像头-区域")
|
||||
private String sxtQy;
|
||||
/**
|
||||
* 摄像头-摄像头数量
|
||||
*/
|
||||
@Size(max= 50,message="摄像头-摄像头数量长度不能超过50")
|
||||
@ApiModelProperty("摄像头-摄像头数量")
|
||||
private String sxtSl;
|
||||
/**
|
||||
* 摄像头-端口
|
||||
*/
|
||||
@Size(max= 50,message="摄像头-端口长度不能超过50")
|
||||
@ApiModelProperty("摄像头-端口")
|
||||
private String sxtDk;
|
||||
/**
|
||||
* 摄像头-设备型号
|
||||
*/
|
||||
@Size(max= 50,message="摄像头-设备型号长度不能超过50")
|
||||
@ApiModelProperty("摄像头-设备型号")
|
||||
private String sxtSbxh;
|
||||
/**
|
||||
* 摄像头-固定版本
|
||||
*/
|
||||
@Size(max= 50,message="摄像头-固定版本长度不能超过50")
|
||||
@ApiModelProperty("摄像头-固定版本")
|
||||
private String sxtGdbb;
|
||||
/**
|
||||
* 移动APP-移动APP系统
|
||||
*/
|
||||
@Size(max= 50,message="移动APP-移动APP系统长度不能超过50")
|
||||
@ApiModelProperty("移动APP-移动APP系统")
|
||||
private String appXt;
|
||||
/**
|
||||
* 移动APP-服务端域名
|
||||
*/
|
||||
@Size(max= 50,message="移动APP-服务端域名长度不能超过50")
|
||||
@ApiModelProperty("移动APP-服务端域名")
|
||||
private String appYm;
|
||||
/**
|
||||
* 移动APP-移动APP渠道
|
||||
*/
|
||||
@Size(max= 50,message="移动APP-移动APP渠道长度不能超过50")
|
||||
@ApiModelProperty("移动APP-移动APP渠道")
|
||||
private String appQd;
|
||||
/**
|
||||
* 移动APP-服务端IP
|
||||
*/
|
||||
@Size(max= 50,message="移动APP-服务端IP长度不能超过50")
|
||||
@ApiModelProperty("移动APP-服务端IP")
|
||||
private String appIp;
|
||||
/**
|
||||
* 移动APP-联系人
|
||||
*/
|
||||
@Size(max= 50,message="移动APP-联系人长度不能超过50")
|
||||
@ApiModelProperty("移动APP-联系人")
|
||||
private String appLxr;
|
||||
/**
|
||||
* 移动APP-联系人电话
|
||||
*/
|
||||
@Size(max= 50,message="移动APP-联系人电话长度不能超过50")
|
||||
@ApiModelProperty("移动APP-联系人电话")
|
||||
private String appLxrdh;
|
||||
/**
|
||||
* 移动APP-APP是否有身份认证
|
||||
*/
|
||||
@ApiModelProperty("移动APP-APP是否有身份认证")
|
||||
private Integer appSfysfrz;
|
||||
/**
|
||||
* 工业控制-系统集成商名称
|
||||
*/
|
||||
@Size(max= 255,message="工业控制-系统集成商名称长度不能超过255")
|
||||
@ApiModelProperty("工业控制-系统集成商名称")
|
||||
private String gykzJcs;
|
||||
/**
|
||||
* 工业控制-运行时间
|
||||
*/
|
||||
@Size(max= 255,message="工业控制-运行时间长度不能超过255")
|
||||
@ApiModelProperty("工业控制-运行时间")
|
||||
private String gykzYxsj;
|
||||
/**
|
||||
* 工业控制-服务对象
|
||||
*/
|
||||
@ApiModelProperty("工业控制-服务对象")
|
||||
private Integer gykzFwdx;
|
||||
/**
|
||||
* 工业控制-集成商国内外情况
|
||||
*/
|
||||
@Size(max= 255,message="工业控制-集成商国内外情况长度不能超过255")
|
||||
@ApiModelProperty("工业控制-集成商国内外情况")
|
||||
private String gykzJcsqk;
|
||||
/**
|
||||
* 工业控制-网络互联情况
|
||||
*/
|
||||
@ApiModelProperty("工业控制-网络互联情况")
|
||||
private Integer gykzWlhxqk;
|
||||
/**
|
||||
* 工业控制-联系人
|
||||
*/
|
||||
@Size(max= 255,message="工业控制-联系人长度不能超过255")
|
||||
@ApiModelProperty("工业控制-联系人")
|
||||
private String gykzLxr;
|
||||
/**
|
||||
* 工业控制-服务范围
|
||||
*/
|
||||
@ApiModelProperty("工业控制-服务范围")
|
||||
private Integer gykzFwfw;
|
||||
/**
|
||||
* 工业控制-联系人电话
|
||||
*/
|
||||
@Size(max= 50,message="工业控制-联系人电话长度不能超过50")
|
||||
@ApiModelProperty("工业控制-联系人电话")
|
||||
private String gykzLxrdh;
|
||||
/**
|
||||
* 工业控制-设备名称
|
||||
*/
|
||||
@Size(max= 50,message="工业控制-设备名称长度不能超过50")
|
||||
@ApiModelProperty("工业控制-设备名称")
|
||||
private String gykzSbmc;
|
||||
/**
|
||||
* 工业控制-设备品牌
|
||||
*/
|
||||
@Size(max= 50,message="工业控制-设备品牌长度不能超过50")
|
||||
@ApiModelProperty("工业控制-设备品牌")
|
||||
private String gykzSbpp;
|
||||
/**
|
||||
* 工业控制-设备类别
|
||||
*/
|
||||
@Size(max= 50,message="工业控制-设备类别长度不能超过50")
|
||||
@ApiModelProperty("工业控制-设备类别")
|
||||
private String gykzSblb;
|
||||
/**
|
||||
* 工业控制-运营商
|
||||
*/
|
||||
@Size(max= 50,message="工业控制-运营商长度不能超过50")
|
||||
@ApiModelProperty("工业控制-运营商")
|
||||
private String gykzYys;
|
||||
/**
|
||||
* 工业控制-互联网IP
|
||||
*/
|
||||
@Size(max= 50,message="工业控制-互联网IP长度不能超过50")
|
||||
@ApiModelProperty("工业控制-互联网IP")
|
||||
private String gykzHlwIp;
|
||||
/**
|
||||
* 工业控制-网络层级
|
||||
*/
|
||||
@Size(max= 50,message="工业控制-网络层级长度不能超过50")
|
||||
@ApiModelProperty("工业控制-网络层级")
|
||||
private String gykzWlcj;
|
||||
/**
|
||||
* 工业控制-控制台IP
|
||||
*/
|
||||
@Size(max= 50,message="工业控制-控制台IP长度不能超过50")
|
||||
@ApiModelProperty("工业控制-控制台IP")
|
||||
private String gykzKztIp;
|
||||
/**
|
||||
* 工业控制-描述
|
||||
*/
|
||||
@Size(max= 500,message="工业控制-描述长度不能超过500")
|
||||
@ApiModelProperty("工业控制-描述")
|
||||
private String gykzMs;
|
||||
/**
|
||||
* CDN信息-CDN供应商
|
||||
*/
|
||||
@Size(max= 255,message="CDN信息-CDN供应商长度不能超过255")
|
||||
@ApiModelProperty("CDN信息-CDN供应商")
|
||||
private String cdnGys;
|
||||
/**
|
||||
* CDN信息-CDN是否使用
|
||||
*/
|
||||
@ApiModelProperty("CDN信息-CDN是否使用")
|
||||
private Integer cdnSfsy;
|
||||
/**
|
||||
* CDN信息-CDN类型
|
||||
*/
|
||||
@Size(max= 50,message="CDN信息-CDN类型长度不能超过50")
|
||||
@ApiModelProperty("CDN信息-CDN类型")
|
||||
private String cdnLx;
|
||||
/**
|
||||
* CDN信息-CDN域名
|
||||
*/
|
||||
@Size(max= 50,message="CDN信息-CDN域名长度不能超过50")
|
||||
@ApiModelProperty("CDN信息-CDN域名")
|
||||
private String cdnYm;
|
||||
/**
|
||||
* CDN信息-联系人
|
||||
*/
|
||||
@Size(max= 50,message="CDN信息-联系人长度不能超过50")
|
||||
@ApiModelProperty("CDN信息-联系人")
|
||||
private String cdnLxr;
|
||||
/**
|
||||
* CDN信息-联系人电话
|
||||
*/
|
||||
@Size(max= 50,message="CDN信息-联系人电话长度不能超过50")
|
||||
@ApiModelProperty("CDN信息-联系人电话")
|
||||
private String cdnLxrdh;
|
||||
/**
|
||||
* CDN信息-CDN加速信息
|
||||
*/
|
||||
@Size(max= 500,message="CDN信息-CDN加速信息长度不能超过500")
|
||||
@ApiModelProperty("CDN信息-CDN加速信息")
|
||||
private String cdnJsxx;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,129 @@
|
||||
package com.ruoyi.tc.entity;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 导入导出模板读取字段
|
||||
* @author du
|
||||
* @since 2024/11/18 8:55
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("导入导出模板读取字段")
|
||||
public class AssetExport extends AssetCurrent{
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@Excel(name = "*系统建设单位名称",width=26,sort = 65)
|
||||
private String name;
|
||||
/**
|
||||
* 统一信用代码
|
||||
*/
|
||||
@Excel(name = "*系统建设单位统一信用代码",width=26,sort = 66)
|
||||
private String tyshxydm;
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
@Excel(name = "*系统建设单位联系人",width=26,sort = 67)
|
||||
private String lxr;
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
@Excel(name = "*系统建设单位联系电话",width=26,sort = 68)
|
||||
private String lxdh;
|
||||
/**
|
||||
* 供应商注册地址
|
||||
*/
|
||||
@Excel(name = "*系统建设单位供应商注册地址",width=26,sort = 69)
|
||||
private String gyszcdz;
|
||||
/**
|
||||
* 注册地是否为太仓
|
||||
*/
|
||||
@Excel(name = "*系统建设单位注册地址是否为太仓",width=26,sort = 70,dictType = "is_no",comboReadDict = true)
|
||||
private Integer sfwtc;
|
||||
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
@Excel(name = "*服务器信息-设备类型",width=26,sort = 77)
|
||||
private String sblx;
|
||||
/**
|
||||
* 品牌
|
||||
*/
|
||||
@Excel(name = "*服务器信息-品牌",width=26,sort = 78)
|
||||
private String pp;
|
||||
/**
|
||||
* 设备IP
|
||||
*/
|
||||
@Excel(name = "*服务器信息-设备IP",width=26,sort = 79)
|
||||
private String sbIp;
|
||||
/**
|
||||
* 操作系统
|
||||
*/
|
||||
@Excel(name = "*服务器信息-操作系统",width=26,sort = 80,dictType = "fwq_czxt",comboReadDict = true)
|
||||
private Integer czxt;
|
||||
/**
|
||||
* 操作系统版本
|
||||
*/
|
||||
@Excel(name = "*服务器信息-操作系统版本",width=26,sort = 81)
|
||||
private String czxtbb;
|
||||
/**
|
||||
* 硬件型号
|
||||
*/
|
||||
@Excel(name = "*服务器信息-硬件型号",width=26,sort = 82)
|
||||
private String yjxh;
|
||||
/**
|
||||
* 硬件序列号
|
||||
*/
|
||||
@Excel(name = "服务器信息-硬件序列号",width=26,sort = 83)
|
||||
private String yjxlh;
|
||||
/**
|
||||
* 硬件版本信息
|
||||
*/
|
||||
@Excel(name = "服务器信息-硬件版本信息",width=26,sort = 84)
|
||||
private String yjbbxx;
|
||||
/**
|
||||
* 硬件用途
|
||||
*/
|
||||
@Excel(name = "*服务器信息-硬件用途",width=26,sort = 85)
|
||||
private String yjyt;
|
||||
/**
|
||||
* 硬件部署位置
|
||||
*/
|
||||
@Excel(name = "*服务器信息-硬件部署位置",width=26,sort = 85)
|
||||
private String yjbsxx;
|
||||
|
||||
@Excel(name = "*网络设备-设备类型",width=26,sort = 86)
|
||||
private String wlsblx;
|
||||
|
||||
@Excel(name = "*网络设备-品牌",width=26,sort = 87)
|
||||
private String wlpp;
|
||||
|
||||
@Excel(name = "*网络设备-设备IP",width=26,sort = 88)
|
||||
private String wlsbIp;
|
||||
|
||||
@Excel(name = "*网络设备-硬件型号",width=26,sort = 89)
|
||||
private String wlyjxh;
|
||||
|
||||
@Excel(name = "网络设备-硬件序列号",width=26,sort = 90)
|
||||
private String wlyjxlh;
|
||||
|
||||
@Excel(name = "网络设备-硬件版本信息",width=26,sort = 91)
|
||||
private String wlyjbbxx;
|
||||
|
||||
@Excel(name = "*网络设备-硬件用途",width=26,sort = 92)
|
||||
private String wlyjyt;
|
||||
|
||||
@Excel(name = "*网络设备-硬件部署位置",width=26,sort = 93)
|
||||
private String wlyjbsxx;
|
||||
|
||||
@Excel(name = "*安全设备-设备类型",width=26,sort = 94)
|
||||
private String aqwlsblx;
|
||||
|
||||
@Excel(name = "*安全设备-品牌",width=26,sort = 95)
|
||||
private String aqwlpp;
|
||||
|
||||
@Excel(name = "*安全设备-设备IP",width=26,sort = 96)
|
||||
private String aqwlsbIp;
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package com.ruoyi.tc.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.tc.baseClass.BaseClass;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 资产供应链信息(asset_supply_chain)实体类
|
||||
* @author du
|
||||
* @since 2024/11/13 14:44
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("资产供应链信息")
|
||||
@TableName(value = "asset_supply_chain")
|
||||
public class AssetSupplyChain extends BaseClass implements Serializable {
|
||||
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
private Integer id;
|
||||
/**
|
||||
* 资产id
|
||||
*/
|
||||
@ApiModelProperty("资产id")
|
||||
private Long assetId;
|
||||
/**
|
||||
* 1.测评单位2.硬件供应商单位3.机房运维单位4.系统设计单位5.系统建设单位6.安全服务单位
|
||||
*/
|
||||
@ApiModelProperty("1.测评单位2.硬件供应商单位3.机房运维单位4.系统设计单位5.系统建设单位6.安全服务单位")
|
||||
private Integer type;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@Size(max= 50,message="名称长度不能超过50")
|
||||
@ApiModelProperty("名称")
|
||||
private String name;
|
||||
/**
|
||||
* 统一信用代码
|
||||
*/
|
||||
@Size(max= 50,message="统一信用代码长度不能超过50")
|
||||
@ApiModelProperty("统一信用代码")
|
||||
private String tyshxydm;
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
@Size(max= 50,message="联系人长度不能超过50")
|
||||
@ApiModelProperty("联系人")
|
||||
private String lxr;
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
@Size(max= 50,message="联系电话长度不能超过50")
|
||||
@ApiModelProperty("联系电话")
|
||||
private String lxdh;
|
||||
/**
|
||||
* 供应商注册地址
|
||||
*/
|
||||
@Size(max= 500,message="供应商注册地址长度不能超过500")
|
||||
@ApiModelProperty("供应商注册地址")
|
||||
private String gyszcdz;
|
||||
/**
|
||||
* 注册地是否为太仓
|
||||
*/
|
||||
@ApiModelProperty("注册地是否为太仓")
|
||||
private Integer sfwtc;
|
||||
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.ruoyi.tc.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.ruoyi.tc.baseClass.BaseClass;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 单位其他联系人(unit_other_contact)实体类
|
||||
* @author du
|
||||
* @since 2024/11/13 14:44
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("单位其他联系人")
|
||||
@TableName(value = "unit_other_contact")
|
||||
public class UnitOtherConcat extends BaseClass implements Serializable {
|
||||
|
||||
@TableId(type = IdType.AUTO,value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("单位id")
|
||||
@NotNull
|
||||
private Long unitId;
|
||||
|
||||
@ApiModelProperty("其他联系人姓名")
|
||||
private String qtlxrxm;
|
||||
|
||||
@ApiModelProperty("其他联系人联系方式")
|
||||
private String qtlxrlxfs;
|
||||
|
||||
@ApiModelProperty("其他联系人邮箱")
|
||||
private String qtlxryx;
|
||||
|
||||
@ApiModelProperty("其他联系人职务职称")
|
||||
private String qtlxrzwzc;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.ruoyi.tc.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.tc.entity.AssetBasicNetwork;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 资产基础网络表(asset_basic_network)表数据库访问层
|
||||
* @author makejava
|
||||
* @since 2024-11-15 10:03:56
|
||||
*/
|
||||
public interface AssetBasicNetWorkMapper extends BaseMapper<AssetBasicNetwork> {
|
||||
/**
|
||||
* 根据资产id查询对应的基础网络
|
||||
*/
|
||||
List<AssetBasicNetwork> getByAssetId(Long id);
|
||||
}
|
||||
|
@ -0,0 +1,14 @@
|
||||
package com.ruoyi.tc.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.tc.entity.AssetBusinessForm;
|
||||
|
||||
/**
|
||||
* 资产新监管业务形态(asset_business_form)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-11-15 10:03:56
|
||||
*/
|
||||
public interface AssetBusinessFormMapper extends BaseMapper<AssetBusinessForm> {
|
||||
}
|
||||
|
@ -0,0 +1,30 @@
|
||||
package com.ruoyi.tc.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.tc.entity.AssetCurrent;
|
||||
import com.ruoyi.tc.entity.request.AssetCurrentPageRequest;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 现有资产表(AssetCurrent)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-11-15 10:03:56
|
||||
*/
|
||||
public interface AssetCurrentMapper extends BaseMapper<AssetCurrent> {
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param as 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
Page<AssetCurrent> page(Page<AssetCurrent> page,@Param("req") AssetCurrentPageRequest as);
|
||||
|
||||
List<AssetCurrent> page(@Param("req") AssetCurrentPageRequest as);
|
||||
}
|
||||
|
@ -0,0 +1,19 @@
|
||||
package com.ruoyi.tc.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.tc.entity.AssetSupplyChain;
|
||||
|
||||
/**
|
||||
* 资产供应链信息(asset_supply_chain)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-11-15 10:03:56
|
||||
*/
|
||||
public interface AssetSupplyChainMapper extends BaseMapper<AssetSupplyChain> {
|
||||
|
||||
/**
|
||||
* 根据现有资产id查找最新一条的系统建设单位
|
||||
*/
|
||||
AssetSupplyChain getJsdw(Long id);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.ruoyi.tc.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.tc.entity.AssetBasicNetwork;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 资产基础网络表(asset_basic_network)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-11-15 16:05:26
|
||||
*/
|
||||
public interface AssetBasicNetworkService extends IService<AssetBasicNetwork> {
|
||||
|
||||
/**
|
||||
* 根据资产id查询对应的基础网络
|
||||
*/
|
||||
List<AssetBasicNetwork> getByAssetId(Long id);
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.ruoyi.tc.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.tc.entity.AssetBusinessForm;
|
||||
|
||||
/**
|
||||
* 资产新监管业务形态(asset_business_form)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-11-15 16:06:53
|
||||
*/
|
||||
public interface AssetBusinessFormService extends IService<AssetBusinessForm> {
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,36 @@
|
||||
package com.ruoyi.tc.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.tc.entity.AssetCurrent;
|
||||
import com.ruoyi.tc.entity.request.AssetCurrentPageRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 现有资产表(AssetCurrent)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-11-15 10:04:03
|
||||
*/
|
||||
public interface AssetCurrentService extends IService<AssetCurrent> {
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param as 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
Page<AssetCurrent> page(Page<AssetCurrent> page, AssetCurrentPageRequest as );
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
*
|
||||
* @param as 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
List<AssetCurrent> page( AssetCurrentPageRequest as );
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,17 @@
|
||||
package com.ruoyi.tc.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.tc.entity.AssetSupplyChain;
|
||||
|
||||
/**
|
||||
* 资产供应链信息(asset_supply_chain)表服务接口
|
||||
* @author makejava
|
||||
* @since 2024-11-15 16:07:30
|
||||
*/
|
||||
public interface AssetSupplyChainService extends IService<AssetSupplyChain> {
|
||||
|
||||
/**
|
||||
* 根据现有资产id查找最新一条的系统建设单位
|
||||
*/
|
||||
AssetSupplyChain getJsdw(Long id);
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.ruoyi.tc.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.tc.entity.AssetBasicNetwork;
|
||||
import com.ruoyi.tc.mapper.AssetBasicNetWorkMapper;
|
||||
import com.ruoyi.tc.service.AssetBasicNetworkService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 资产基础网络表(AssetBasicNetwork)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-11-15 16:05:26
|
||||
*/
|
||||
@Service("assetBasicNetworkService")
|
||||
public class AssetBasicNetworkServiceImpl extends ServiceImpl<AssetBasicNetWorkMapper, AssetBasicNetwork> implements AssetBasicNetworkService {
|
||||
/**
|
||||
* 根据资产id查询对应的基础网络
|
||||
*/
|
||||
@Override
|
||||
public List<AssetBasicNetwork> getByAssetId(Long id) {
|
||||
return baseMapper.getByAssetId(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.ruoyi.tc.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.tc.entity.AssetBusinessForm;
|
||||
import com.ruoyi.tc.mapper.AssetBusinessFormMapper;
|
||||
import com.ruoyi.tc.service.AssetBusinessFormService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 资产新监管业务形态(AssetBusinessForm)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-11-15 16:06:53
|
||||
*/
|
||||
@Service("assetBusinessFormService")
|
||||
public class AssetBusinessFormServiceImpl extends ServiceImpl<AssetBusinessFormMapper, AssetBusinessForm> implements AssetBusinessFormService {
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,45 @@
|
||||
package com.ruoyi.tc.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.tc.entity.AssetCurrent;
|
||||
import com.ruoyi.tc.entity.request.AssetCurrentPageRequest;
|
||||
import com.ruoyi.tc.mapper.AssetCurrentMapper;
|
||||
import com.ruoyi.tc.service.AssetCurrentService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 现有资产表(AssetCurrent)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-11-15 10:04:03
|
||||
*/
|
||||
@Service("assetCurrentService")
|
||||
public class AssetCurrentServiceImpl extends ServiceImpl<AssetCurrentMapper, AssetCurrent> implements AssetCurrentService {
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param as 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
@Override
|
||||
public Page<AssetCurrent> page(Page<AssetCurrent> page, AssetCurrentPageRequest as) {
|
||||
return baseMapper.page(page,as);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
*
|
||||
* @param as 查询实体
|
||||
* @return 所有数据
|
||||
*/
|
||||
@Override
|
||||
public List<AssetCurrent> page(AssetCurrentPageRequest as) {
|
||||
return baseMapper.page(as);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.tc.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.tc.entity.AssetSupplyChain;
|
||||
import com.ruoyi.tc.mapper.AssetSupplyChainMapper;
|
||||
import com.ruoyi.tc.service.AssetSupplyChainService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 资产供应链信息表(AssetSupplyChain)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-11-15 16:07:30
|
||||
*/
|
||||
@Service("assetSupplyChainService")
|
||||
public class AssetSupplyChainServiceImpl extends ServiceImpl<AssetSupplyChainMapper, AssetSupplyChain> implements AssetSupplyChainService {
|
||||
|
||||
/**
|
||||
* 根据现有资产id查找最新一条的系统建设单位
|
||||
*/
|
||||
@Override
|
||||
public AssetSupplyChain getJsdw(Long id) {
|
||||
return baseMapper.getJsdw(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
<?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.tc.mapper.AssetBasicNetWorkMapper">
|
||||
|
||||
<select id="getByAssetId" resultType="com.ruoyi.tc.entity.AssetBasicNetwork">
|
||||
select *
|
||||
from asset_basic_network
|
||||
where asset_id = #{id}
|
||||
group by type,
|
||||
id,
|
||||
sblx,
|
||||
pp,
|
||||
sb_ip,
|
||||
czxt,
|
||||
czxtbb,
|
||||
yjxh,
|
||||
yjxlh,
|
||||
yjbbxx,
|
||||
yjyt,
|
||||
yjbsxx
|
||||
order by create_time asc
|
||||
</select>
|
||||
</mapper>
|
||||
|
@ -0,0 +1,6 @@
|
||||
<?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.tc.mapper.AssetBusinessFormMapper">
|
||||
|
||||
</mapper>
|
||||
|
@ -0,0 +1,30 @@
|
||||
<?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.tc.mapper.AssetCurrentMapper">
|
||||
|
||||
<select id="page" resultType="com.ruoyi.tc.entity.AssetCurrent">
|
||||
select * from asset_current
|
||||
<where>
|
||||
<if test="req.xtmc!=null and req.xtmc!='' ">
|
||||
and xtmc like concat('%',#{req.xtmc},'%')
|
||||
</if>
|
||||
<if test="req.dwmc!=null and req.dwmc!='' ">
|
||||
and dwmc like concat('%',#{req.dwmc},'%')
|
||||
</if>
|
||||
<if test="req.xtmc!=null">
|
||||
and xtlx = #{req.xtmc}
|
||||
</if>
|
||||
<if test="req.xtzt!=null">
|
||||
and xtzt = #{req.xtmc}
|
||||
</if>
|
||||
<if test="req.startTime != null ">
|
||||
and create_time >= #{req.startTime}
|
||||
</if>
|
||||
<if test="req.endTime != null">
|
||||
and create_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.tc.mapper.AssetSupplyChainMapper">
|
||||
|
||||
<select id="getJsdw" resultType="com.ruoyi.tc.entity.AssetSupplyChain">
|
||||
select *
|
||||
from asset_supply_chain
|
||||
where asset_id = #{id} and type = 5
|
||||
order by create_time asc
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
|
Loading…
Reference in new issue