Commit c4707e83 authored by 周昊's avatar 周昊

1、开发数据中台数据

parent 27f71b12
......@@ -2,6 +2,7 @@ package com.censoft.censoftrongtong.controller;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
......@@ -10,6 +11,8 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import cn.hutool.core.convert.Convert;
import cn.hutool.http.Header;
import cn.hutool.http.HttpRequest;
import com.censoft.censoftrongtong.domain.LedgerBuilding;
import com.censoft.censoftrongtong.domain.RiskPlan;
import com.censoft.censoftrongtong.domain.RiskPlanInherentList;
......@@ -17,9 +20,7 @@ import com.censoft.censoftrongtong.domain.dto.RiskInherentListExportDto;
import com.censoft.censoftrongtong.domain.dto.RiskNotificationExportWordDto;
import com.censoft.censoftrongtong.domain.dto.RiskPlanAppTaskDetailsDto;
import com.censoft.censoftrongtong.enums.RiskPlanStatusType;
import com.censoft.censoftrongtong.service.ILedgerBuildingService;
import com.censoft.censoftrongtong.service.IRiskPlanInherentListService;
import com.censoft.censoftrongtong.service.IRiskPlanService;
import com.censoft.censoftrongtong.service.*;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.WordUtil;
import com.ruoyi.system.service.ISysUserService;
......@@ -214,4 +215,19 @@ public class RiskPlanController extends BaseController
}
return getDataTable(dtos);
}
@Resource
private IInfoAssetsService infoAssetsService;
@Resource
private IInfoLedgerService infoLedgerService;
/**
* 查询固有风险信息列表
*/
@GetMapping("/test")
public String test()
{
return infoAssetsService.saveOrUpdateByHttp();
}
}
package com.censoft.censoftrongtong.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
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;
import java.util.Date;
/**
* 数据中台资产数据对象 info_assets
*
* @author ruoyi
* @date 2023-10-07
*/
@TableName("info_assets")
public class InfoAssets{
private static final long serialVersionUID = 1L;
/** 资产ID */
@TableField("id")
private String id;
/** 资产名称 */
@TableField("name")
@Excel(name = "资产名称")
private String name;
/** 集团资产编码 */
@TableField("out_id")
@Excel(name = "集团资产编码")
private String out_id;
/** 管理单位 */
@TableField("manage_corp_name")
@Excel(name = "管理单位")
private String manage_corp_name;
/** 所属项目 */
@TableField("proj_name")
@Excel(name = "所属项目")
private String proj_name;
/** 资产类型 */
@TableField("category_name")
@Excel(name = "资产类型")
private String category_name;
/** 资产用途 */
@TableField("type_name")
@Excel(name = "资产用途")
private String type_name;
/** 是否有消防验收意见书 */
@TableField("exist_fire_certificate")
@Excel(name = "是否有消防验收意见书")
private String exist_fire_certificate;
/** 是否存在危房 */
@TableField("exist_dilapidated_building")
@Excel(name = "是否存在危房")
private String exist_dilapidated_building;
/** 危房鉴定等级 */
@TableField("dilapidated_building_level")
@Excel(name = "危房鉴定等级")
private String dilapidated_building_level;
/** 危房数量 */
@TableField("dilapidated_building_quantity")
@Excel(name = "危房数量")
private String dilapidated_building_quantity;
/** 危房面积(㎡) */
@TableField("dilapidated_building_area")
@Excel(name = "危房面积", readConverterExp = "㎡=")
private String dilapidated_building_area;
/** 纬度 */
@TableField("lat")
@Excel(name = "纬度")
private String lat;
/** 经度 */
@TableField("lng")
@Excel(name = "经度")
private String lng;
/** 省 */
@TableField("province_name")
@Excel(name = "省")
private String province_name;
/** 市 */
@TableField("city_name")
@Excel(name = "市")
private String city_name;
/** 区 */
@TableField("district_name")
@Excel(name = "区")
private String district_name;
/** 街道 */
@TableField("street_name")
@Excel(name = "街道")
private String street_name;
/** 详细地址 */
@TableField("detail")
@Excel(name = "详细地址")
private String detail;
/** 资产面积(㎡) */
@TableField("area")
@Excel(name = "资产面积", readConverterExp = "㎡=")
private String area;
/** 清册面积(㎡) */
@TableField("inventory_area")
@Excel(name = "清册面积", readConverterExp = "㎡=")
private String inventory_area;
/** 资产编码 */
@TableField("asset_code")
@Excel(name = "资产编码")
private String asset_code;
/** 规划用途 */
@TableField("planned_uses")
@Excel(name = "规划用途")
private String planned_uses;
/** 实际用途 */
@TableField("practical_uses")
@Excel(name = "实际用途")
private String practical_uses;
/** 建筑结构 */
@TableField("building_structure")
@Excel(name = "建筑结构")
private String building_structure;
/** 地上层数 */
@TableField("ground_plies")
@Excel(name = "地上层数")
private String ground_plies;
/** 地下层数 */
@TableField("underground_plies")
@Excel(name = "地下层数")
private String underground_plies;
/** 首层层高 */
@TableField("first_floor_height")
@Excel(name = "首层层高")
private String first_floor_height;
/** 其他层高 */
@TableField("other_floor_height")
@Excel(name = "其他层高")
private String other_floor_height;
/** 接收时间 */
@TableField("receiving_date")
@Excel(name = "接收时间")
private String receiving_date;
/** 房产状态 */
@TableField("property_status")
@Excel(name = "房产状态")
private String property_status;
/** 建成年份 */
@TableField("year_built")
@Excel(name = "建成年份")
private String year_built;
/** 产权情况 */
@TableField("property_detail")
@Excel(name = "产权情况")
private String property_detail;
/** 产权单位 */
@TableField("property_corp_name")
@Excel(name = "产权单位")
private String property_corp_name;
/** 不动产证号(房产证) */
@TableField("property_deeds_code")
@Excel(name = "不动产证号", readConverterExp = "房=产证")
private String property_deeds_code;
/** 土地证发证日期 */
@TableField("land_deeds_issue_date")
@Excel(name = "土地证发证日期")
private String land_deeds_issue_date;
/** 土地到期日期 */
@TableField("land_expired_date")
@Excel(name = "土地到期日期")
private String land_expired_date;
/** 位置类型 */
@TableField("location_type")
@Excel(name = "位置类型")
private String location_type;
/** 是否有土地证 */
@TableField("exist_land_deeds")
@Excel(name = "是否有土地证")
private String exist_land_deeds;
/** 土地证起始时间 */
@TableField("land_deeds_start_date")
@Excel(name = "土地证起始时间")
private String land_deeds_start_date;
/** 土地证结束时间 */
@TableField("land_deeds_end_date")
@Excel(name = "土地证结束时间")
private String land_deeds_end_date;
/** 土地证类型 */
@TableField("land_deeds_type")
@Excel(name = "土地证类型")
private String land_deeds_type;
/** 房产总面积 */
@TableField("property_area")
@Excel(name = "房产总面积")
private String property_area;
/** 房产可出租面积 */
@TableField("property_leasable_area")
@Excel(name = "房产可出租面积")
private String property_leasable_area;
/** 地上总面积 */
@TableField("ground_area")
@Excel(name = "地上总面积")
private String ground_area;
/** 地下总面积 */
@TableField("underground_area")
@Excel(name = "地下总面积")
private String underground_area;
/** 房产有证面积 */
@TableField("property_certified_area")
@Excel(name = "房产有证面积")
private String property_certified_area;
/** 房产无证面积 */
@TableField("property_uncertified_area")
@Excel(name = "房产无证面积")
private String property_uncertified_area;
/** 土地总面积 */
@TableField("land_area")
@Excel(name = "土地总面积")
private String land_area;
/** 土地可出租面积 */
@TableField("land_leasable_area")
@Excel(name = "土地可出租面积")
private String land_leasable_area;
/** 土地有证面积 */
@TableField("land_certified_area")
@Excel(name = "土地有证面积")
private String land_certified_area;
/** 土地无证面积 */
@TableField("land_uncertified_area")
@Excel(name = "土地无证面积")
private String land_uncertified_area;
/** 是否有消防评估报告 */
@TableField("exist_fire_assessment")
@Excel(name = "是否有消防评估报告")
private String exist_fire_assessment;
/** 创建时间 */
@TableField("create_time")
private String create_time;
/** 更新时间 */
@TableField("update_time")
private String update_time;
/** 项目id */
@TableField("proj_id")
@Excel(name = "项目id")
private String proj_id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getOut_id() {
return out_id;
}
public void setOut_id(String out_id) {
this.out_id = out_id;
}
public String getManage_corp_name() {
return manage_corp_name;
}
public void setManage_corp_name(String manage_corp_name) {
this.manage_corp_name = manage_corp_name;
}
public String getProj_name() {
return proj_name;
}
public void setProj_name(String proj_name) {
this.proj_name = proj_name;
}
public String getCategory_name() {
return category_name;
}
public void setCategory_name(String category_name) {
this.category_name = category_name;
}
public String getType_name() {
return type_name;
}
public void setType_name(String type_name) {
this.type_name = type_name;
}
public String getExist_fire_certificate() {
return exist_fire_certificate;
}
public void setExist_fire_certificate(String exist_fire_certificate) {
this.exist_fire_certificate = exist_fire_certificate;
}
public String getExist_dilapidated_building() {
return exist_dilapidated_building;
}
public void setExist_dilapidated_building(String exist_dilapidated_building) {
this.exist_dilapidated_building = exist_dilapidated_building;
}
public String getDilapidated_building_level() {
return dilapidated_building_level;
}
public void setDilapidated_building_level(String dilapidated_building_level) {
this.dilapidated_building_level = dilapidated_building_level;
}
public String getDilapidated_building_quantity() {
return dilapidated_building_quantity;
}
public void setDilapidated_building_quantity(String dilapidated_building_quantity) {
this.dilapidated_building_quantity = dilapidated_building_quantity;
}
public String getDilapidated_building_area() {
return dilapidated_building_area;
}
public void setDilapidated_building_area(String dilapidated_building_area) {
this.dilapidated_building_area = dilapidated_building_area;
}
public String getLat() {
return lat;
}
public void setLat(String lat) {
this.lat = lat;
}
public String getLng() {
return lng;
}
public void setLng(String lng) {
this.lng = lng;
}
public String getProvince_name() {
return province_name;
}
public void setProvince_name(String province_name) {
this.province_name = province_name;
}
public String getCity_name() {
return city_name;
}
public void setCity_name(String city_name) {
this.city_name = city_name;
}
public String getDistrict_name() {
return district_name;
}
public void setDistrict_name(String district_name) {
this.district_name = district_name;
}
public String getStreet_name() {
return street_name;
}
public void setStreet_name(String street_name) {
this.street_name = street_name;
}
public String getDetail() {
return detail;
}
public void setDetail(String detail) {
this.detail = detail;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public String getInventory_area() {
return inventory_area;
}
public void setInventory_area(String inventory_area) {
this.inventory_area = inventory_area;
}
public String getAsset_code() {
return asset_code;
}
public void setAsset_code(String asset_code) {
this.asset_code = asset_code;
}
public String getPlanned_uses() {
return planned_uses;
}
public void setPlanned_uses(String planned_uses) {
this.planned_uses = planned_uses;
}
public String getPractical_uses() {
return practical_uses;
}
public void setPractical_uses(String practical_uses) {
this.practical_uses = practical_uses;
}
public String getBuilding_structure() {
return building_structure;
}
public void setBuilding_structure(String building_structure) {
this.building_structure = building_structure;
}
public String getGround_plies() {
return ground_plies;
}
public void setGround_plies(String ground_plies) {
this.ground_plies = ground_plies;
}
public String getUnderground_plies() {
return underground_plies;
}
public void setUnderground_plies(String underground_plies) {
this.underground_plies = underground_plies;
}
public String getFirst_floor_height() {
return first_floor_height;
}
public void setFirst_floor_height(String first_floor_height) {
this.first_floor_height = first_floor_height;
}
public String getOther_floor_height() {
return other_floor_height;
}
public void setOther_floor_height(String other_floor_height) {
this.other_floor_height = other_floor_height;
}
public String getReceiving_date() {
return receiving_date;
}
public void setReceiving_date(String receiving_date) {
this.receiving_date = receiving_date;
}
public String getProperty_status() {
return property_status;
}
public void setProperty_status(String property_status) {
this.property_status = property_status;
}
public String getYear_built() {
return year_built;
}
public void setYear_built(String year_built) {
this.year_built = year_built;
}
public String getProperty_detail() {
return property_detail;
}
public void setProperty_detail(String property_detail) {
this.property_detail = property_detail;
}
public String getProperty_corp_name() {
return property_corp_name;
}
public void setProperty_corp_name(String property_corp_name) {
this.property_corp_name = property_corp_name;
}
public String getProperty_deeds_code() {
return property_deeds_code;
}
public void setProperty_deeds_code(String property_deeds_code) {
this.property_deeds_code = property_deeds_code;
}
public String getLand_deeds_issue_date() {
return land_deeds_issue_date;
}
public void setLand_deeds_issue_date(String land_deeds_issue_date) {
this.land_deeds_issue_date = land_deeds_issue_date;
}
public String getLand_expired_date() {
return land_expired_date;
}
public void setLand_expired_date(String land_expired_date) {
this.land_expired_date = land_expired_date;
}
public String getLocation_type() {
return location_type;
}
public void setLocation_type(String location_type) {
this.location_type = location_type;
}
public String getExist_land_deeds() {
return exist_land_deeds;
}
public void setExist_land_deeds(String exist_land_deeds) {
this.exist_land_deeds = exist_land_deeds;
}
public String getLand_deeds_start_date() {
return land_deeds_start_date;
}
public void setLand_deeds_start_date(String land_deeds_start_date) {
this.land_deeds_start_date = land_deeds_start_date;
}
public String getLand_deeds_end_date() {
return land_deeds_end_date;
}
public void setLand_deeds_end_date(String land_deeds_end_date) {
this.land_deeds_end_date = land_deeds_end_date;
}
public String getLand_deeds_type() {
return land_deeds_type;
}
public void setLand_deeds_type(String land_deeds_type) {
this.land_deeds_type = land_deeds_type;
}
public String getProperty_area() {
return property_area;
}
public void setProperty_area(String property_area) {
this.property_area = property_area;
}
public String getProperty_leasable_area() {
return property_leasable_area;
}
public void setProperty_leasable_area(String property_leasable_area) {
this.property_leasable_area = property_leasable_area;
}
public String getGround_area() {
return ground_area;
}
public void setGround_area(String ground_area) {
this.ground_area = ground_area;
}
public String getUnderground_area() {
return underground_area;
}
public void setUnderground_area(String underground_area) {
this.underground_area = underground_area;
}
public String getProperty_certified_area() {
return property_certified_area;
}
public void setProperty_certified_area(String property_certified_area) {
this.property_certified_area = property_certified_area;
}
public String getProperty_uncertified_area() {
return property_uncertified_area;
}
public void setProperty_uncertified_area(String property_uncertified_area) {
this.property_uncertified_area = property_uncertified_area;
}
public String getLand_area() {
return land_area;
}
public void setLand_area(String land_area) {
this.land_area = land_area;
}
public String getLand_leasable_area() {
return land_leasable_area;
}
public void setLand_leasable_area(String land_leasable_area) {
this.land_leasable_area = land_leasable_area;
}
public String getLand_certified_area() {
return land_certified_area;
}
public void setLand_certified_area(String land_certified_area) {
this.land_certified_area = land_certified_area;
}
public String getLand_uncertified_area() {
return land_uncertified_area;
}
public void setLand_uncertified_area(String land_uncertified_area) {
this.land_uncertified_area = land_uncertified_area;
}
public String getExist_fire_assessment() {
return exist_fire_assessment;
}
public void setExist_fire_assessment(String exist_fire_assessment) {
this.exist_fire_assessment = exist_fire_assessment;
}
public String getCreate_time() {
return create_time;
}
public void setCreate_time(String create_time) {
this.create_time = create_time;
}
public String getUpdate_time() {
return update_time;
}
public void setUpdate_time(String update_time) {
this.update_time = update_time;
}
public String getProj_id() {
return proj_id;
}
public void setProj_id(String proj_id) {
this.proj_id = proj_id;
}
}
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;
/**
* 数据中台资产项目数据对象 info_ledger
*
* @author ruoyi
* @date 2023-10-07
*/
public class InfoLedger{
private static final long serialVersionUID = 1L;
/** 资产项目ID */
private String id;
/** 项目名称 */
@Excel(name = "项目名称")
private String name;
/** 所属公司 */
@Excel(name = "所属公司")
private String corp_name;
/** 项目编码 */
@Excel(name = "项目编码")
private String business_code;
/** 项目类型 */
@Excel(name = "项目类型")
private String business_type;
/** 坐落号 */
@Excel(name = "坐落号")
private String location_number;
/** 资产状态 */
@Excel(name = "资产状态")
private String asset_status;
/** 来源类型 */
@Excel(name = "来源类型")
private String source_type;
/** 接收人 */
@Excel(name = "接收人")
private String recipient;
/** 资产接受时间 */
@Excel(name = "资产接受时间")
private String receiving_time;
/** 区域类型 */
@Excel(name = "区域类型")
private String area_type;
/** 资产类别 */
@Excel(name = "资产类别")
private String asset_rank;
/** 规划用途 */
@Excel(name = "规划用途")
private String planned_use;
/** 实际用途 */
@Excel(name = "实际用途")
private String practical_use;
/** 规划容积率 */
@Excel(name = "规划容积率")
private String planned_floor_area_ratio;
/** 集团资产编码 */
@Excel(name = "集团资产编码")
private String out_id;
/** 财务系统资产编 */
@Excel(name = "财务系统资产编")
private String asset_code_of_financial_system;
/** 建筑结构安全等级 */
@Excel(name = "建筑结构安全等级")
private String safety_level_of_building_structure;
/** 楼栋数量 */
@Excel(name = "楼栋数量")
private String quantity_of_buildings;
/** 项目经营现状 */
@Excel(name = "项目经营现状")
private String operation_situation;
/** 纬度 */
@Excel(name = "纬度")
private String lat;
/** 经度 */
@Excel(name = "经度")
private String lng;
/** 省 */
@Excel(name = "省")
private String province_name;
/** 市 */
@Excel(name = "市")
private String city_name;
/** 区 */
@Excel(name = "区")
private String district_name;
/** 街道 */
@Excel(name = "街道")
private String street_name;
/** 详细地址 */
@Excel(name = "详细地址")
private String detail;
/** 创建时间 */
private String create_time;
/** 更新时间 */
private String update_time;
/** 公司id */
@Excel(name = "公司id")
private String corp_id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCorp_name() {
return corp_name;
}
public void setCorp_name(String corp_name) {
this.corp_name = corp_name;
}
public String getBusiness_code() {
return business_code;
}
public void setBusiness_code(String business_code) {
this.business_code = business_code;
}
public String getBusiness_type() {
return business_type;
}
public void setBusiness_type(String business_type) {
this.business_type = business_type;
}
public String getLocation_number() {
return location_number;
}
public void setLocation_number(String location_number) {
this.location_number = location_number;
}
public String getAsset_status() {
return asset_status;
}
public void setAsset_status(String asset_status) {
this.asset_status = asset_status;
}
public String getSource_type() {
return source_type;
}
public void setSource_type(String source_type) {
this.source_type = source_type;
}
public String getRecipient() {
return recipient;
}
public void setRecipient(String recipient) {
this.recipient = recipient;
}
public String getReceiving_time() {
return receiving_time;
}
public void setReceiving_time(String receiving_time) {
this.receiving_time = receiving_time;
}
public String getArea_type() {
return area_type;
}
public void setArea_type(String area_type) {
this.area_type = area_type;
}
public String getAsset_rank() {
return asset_rank;
}
public void setAsset_rank(String asset_rank) {
this.asset_rank = asset_rank;
}
public String getPlanned_use() {
return planned_use;
}
public void setPlanned_use(String planned_use) {
this.planned_use = planned_use;
}
public String getPractical_use() {
return practical_use;
}
public void setPractical_use(String practical_use) {
this.practical_use = practical_use;
}
public String getPlanned_floor_area_ratio() {
return planned_floor_area_ratio;
}
public void setPlanned_floor_area_ratio(String planned_floor_area_ratio) {
this.planned_floor_area_ratio = planned_floor_area_ratio;
}
public String getOut_id() {
return out_id;
}
public void setOut_id(String out_id) {
this.out_id = out_id;
}
public String getAsset_code_of_financial_system() {
return asset_code_of_financial_system;
}
public void setAsset_code_of_financial_system(String asset_code_of_financial_system) {
this.asset_code_of_financial_system = asset_code_of_financial_system;
}
public String getSafety_level_of_building_structure() {
return safety_level_of_building_structure;
}
public void setSafety_level_of_building_structure(String safety_level_of_building_structure) {
this.safety_level_of_building_structure = safety_level_of_building_structure;
}
public String getQuantity_of_buildings() {
return quantity_of_buildings;
}
public void setQuantity_of_buildings(String quantity_of_buildings) {
this.quantity_of_buildings = quantity_of_buildings;
}
public String getOperation_situation() {
return operation_situation;
}
public void setOperation_situation(String operation_situation) {
this.operation_situation = operation_situation;
}
public String getLat() {
return lat;
}
public void setLat(String lat) {
this.lat = lat;
}
public String getLng() {
return lng;
}
public void setLng(String lng) {
this.lng = lng;
}
public String getProvince_name() {
return province_name;
}
public void setProvince_name(String province_name) {
this.province_name = province_name;
}
public String getCity_name() {
return city_name;
}
public void setCity_name(String city_name) {
this.city_name = city_name;
}
public String getDistrict_name() {
return district_name;
}
public void setDistrict_name(String district_name) {
this.district_name = district_name;
}
public String getStreet_name() {
return street_name;
}
public void setStreet_name(String street_name) {
this.street_name = street_name;
}
public String getDetail() {
return detail;
}
public void setDetail(String detail) {
this.detail = detail;
}
public String getCreate_time() {
return create_time;
}
public void setCreate_time(String create_time) {
this.create_time = create_time;
}
public String getUpdate_time() {
return update_time;
}
public void setUpdate_time(String update_time) {
this.update_time = update_time;
}
public String getCorp_id() {
return corp_id;
}
public void setCorp_id(String corp_id) {
this.corp_id = corp_id;
}
}
......@@ -60,6 +60,9 @@ public class LedgerBuilding extends BaseEntityClean
@Excel(name = "详细地址",sort = 8)
private String address;
/** 中台楼宇id */
private String infoAssetsId;
/** 状态(0正常 1停用) */
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
......
......@@ -45,6 +45,9 @@ public class LedgerProject extends BaseEntityClean
/** 0-关联 1-自建 */
private String source;
/** 中台楼宇id */
private String infoAssetsId;
/** 状态(0正常 1停用) */
@Excel(name = "状态", dictType = "sys_normal_disable",sort = 7)
private String status;
......
package com.censoft.censoftrongtong.domain.dto;
import lombok.Data;
import java.util.List;
/**
* @author 周昊
* @desc ...
* @date 2023-10-08 10:52:06
*/
@Data
public class InfoResultDto {
private String retCode;
private retJSONDto retJSON;
public String getData() {
return retJSON.getResult().getData();
}
public String getTotal() {
return retJSON.getResult().getTotal();
}
}
@Data
class retJSONDto {
private resultDto result;
}
@Data
class resultDto {
private String total;
private String data;
private String pageSize;
private String pageNum;
}
package com.censoft.censoftrongtong.mapper;
import java.util.List;
import com.censoft.censoftrongtong.domain.InfoAssets;
import com.github.yulichang.base.MPJBaseMapper;
/**
* 数据中台资产数据Mapper接口
*
* @author ruoyi
* @date 2023-10-07
*/
public interface InfoAssetsMapper extends MPJBaseMapper<InfoAssets>
{
/**
* 查询数据中台资产数据
*
* @param id 数据中台资产数据主键
* @return 数据中台资产数据
*/
public InfoAssets selectInfoAssetsById(String id);
/**
* 查询数据中台资产数据列表
*
* @param infoAssets 数据中台资产数据
* @return 数据中台资产数据集合
*/
public List<InfoAssets> selectInfoAssetsList(InfoAssets infoAssets);
/**
* 新增数据中台资产数据
*
* @param infoAssets 数据中台资产数据
* @return 结果
*/
public int insertInfoAssets(InfoAssets infoAssets);
/**
* 修改数据中台资产数据
*
* @param infoAssets 数据中台资产数据
* @return 结果
*/
public int updateInfoAssets(InfoAssets infoAssets);
/**
* 删除数据中台资产数据
*
* @param id 数据中台资产数据主键
* @return 结果
*/
public int deleteInfoAssetsById(String id);
/**
* 批量删除数据中台资产数据
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteInfoAssetsByIds(String[] ids);
}
package com.censoft.censoftrongtong.mapper;
import java.util.List;
import com.censoft.censoftrongtong.domain.InfoLedger;
import com.github.yulichang.base.MPJBaseMapper;
/**
* 数据中台资产项目数据Mapper接口
*
* @author ruoyi
* @date 2023-10-07
*/
public interface InfoLedgerMapper extends MPJBaseMapper<InfoLedger>
{
/**
* 查询数据中台资产项目数据
*
* @param id 数据中台资产项目数据主键
* @return 数据中台资产项目数据
*/
public InfoLedger selectInfoLedgerById(String id);
/**
* 查询数据中台资产项目数据列表
*
* @param infoLedger 数据中台资产项目数据
* @return 数据中台资产项目数据集合
*/
public List<InfoLedger> selectInfoLedgerList(InfoLedger infoLedger);
/**
* 新增数据中台资产项目数据
*
* @param infoLedger 数据中台资产项目数据
* @return 结果
*/
public int insertInfoLedger(InfoLedger infoLedger);
/**
* 修改数据中台资产项目数据
*
* @param infoLedger 数据中台资产项目数据
* @return 结果
*/
public int updateInfoLedger(InfoLedger infoLedger);
/**
* 删除数据中台资产项目数据
*
* @param id 数据中台资产项目数据主键
* @return 结果
*/
public int deleteInfoLedgerById(String id);
/**
* 批量删除数据中台资产项目数据
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteInfoLedgerByIds(String[] ids);
}
package com.censoft.censoftrongtong.service;
import java.util.List;
import com.censoft.censoftrongtong.domain.InfoAssets;
import com.github.yulichang.base.MPJBaseService;
/**
* 数据中台资产数据Service接口
*
* @author ruoyi
* @date 2023-10-07
*/
public interface IInfoAssetsService extends MPJBaseService<InfoAssets>
{
/**
* 查询数据中台资产数据
*
* @param id 数据中台资产数据主键
* @return 数据中台资产数据
*/
public InfoAssets selectInfoAssetsById(String id);
/**
* 查询数据中台资产数据列表
*
* @param infoAssets 数据中台资产数据
* @return 数据中台资产数据集合
*/
public List<InfoAssets> selectInfoAssetsList(InfoAssets infoAssets);
/**
* 新增数据中台资产数据
*
* @param infoAssets 数据中台资产数据
* @return 结果
*/
public int insertInfoAssets(InfoAssets infoAssets);
/**
* 修改数据中台资产数据
*
* @param infoAssets 数据中台资产数据
* @return 结果
*/
public int updateInfoAssets(InfoAssets infoAssets);
/**
* 批量删除数据中台资产数据
*
* @param ids 需要删除的数据中台资产数据主键集合
* @return 结果
*/
public int deleteInfoAssetsByIds(String[] ids);
/**
* 删除数据中台资产数据信息
*
* @param id 数据中台资产数据主键
* @return 结果
*/
public int deleteInfoAssetsById(String id);
String saveOrUpdateByHttp();
}
package com.censoft.censoftrongtong.service;
import java.util.List;
import com.censoft.censoftrongtong.domain.InfoLedger;
import com.github.yulichang.base.MPJBaseService;
/**
* 数据中台资产项目数据Service接口
*
* @author ruoyi
* @date 2023-10-07
*/
public interface IInfoLedgerService extends MPJBaseService<InfoLedger>
{
/**
* 查询数据中台资产项目数据
*
* @param id 数据中台资产项目数据主键
* @return 数据中台资产项目数据
*/
public InfoLedger selectInfoLedgerById(String id);
/**
* 查询数据中台资产项目数据列表
*
* @param infoLedger 数据中台资产项目数据
* @return 数据中台资产项目数据集合
*/
public List<InfoLedger> selectInfoLedgerList(InfoLedger infoLedger);
/**
* 新增数据中台资产项目数据
*
* @param infoLedger 数据中台资产项目数据
* @return 结果
*/
public int insertInfoLedger(InfoLedger infoLedger);
/**
* 修改数据中台资产项目数据
*
* @param infoLedger 数据中台资产项目数据
* @return 结果
*/
public int updateInfoLedger(InfoLedger infoLedger);
/**
* 批量删除数据中台资产项目数据
*
* @param ids 需要删除的数据中台资产项目数据主键集合
* @return 结果
*/
public int deleteInfoLedgerByIds(String[] ids);
/**
* 删除数据中台资产项目数据信息
*
* @param id 数据中台资产项目数据主键
* @return 结果
*/
public int deleteInfoLedgerById(String id);
String saveOrUpdateByHttp();
}
package com.censoft.censoftrongtong.service.impl;
import java.util.*;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.censoft.censoftrongtong.domain.InfoAssets;
import com.censoft.censoftrongtong.domain.InfoLedger;
import com.censoft.censoftrongtong.domain.LedgerBuilding;
import com.censoft.censoftrongtong.domain.LedgerProject;
import com.censoft.censoftrongtong.domain.dto.InfoResultDto;
import com.censoft.censoftrongtong.mapper.InfoAssetsMapper;
import com.censoft.censoftrongtong.mapper.LedgerBuildingMapper;
import com.censoft.censoftrongtong.service.IInfoAssetsService;
import com.censoft.censoftrongtong.service.ILedgerBuildingService;
import com.censoft.censoftrongtong.service.ILedgerProjectService;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.github.yulichang.base.MPJBaseServiceImpl;
import javax.annotation.Resource;
/**
* 数据中台资产数据Service业务层处理
*
* @author ruoyi
* @date 2023-10-07
*/
@Service
public class InfoAssetsServiceImpl extends MPJBaseServiceImpl<InfoAssetsMapper, InfoAssets> implements IInfoAssetsService
{
@Autowired
private InfoAssetsMapper infoAssetsMapper;
@Resource
private ILedgerBuildingService ledgerBuildingService;
@Resource
private ILedgerProjectService ledgerProjectService;
@Resource
private LedgerBuildingMapper ledgerBuildingMapper;
/**
* 查询数据中台资产数据
*
* @param id 数据中台资产数据主键
* @return 数据中台资产数据
*/
@Override
public InfoAssets selectInfoAssetsById(String id)
{
return infoAssetsMapper.selectInfoAssetsById(id);
}
/**
* 查询数据中台资产数据列表
*
* @param infoAssets 数据中台资产数据
* @return 数据中台资产数据
*/
@Override
public List<InfoAssets> selectInfoAssetsList(InfoAssets infoAssets)
{
return infoAssetsMapper.selectInfoAssetsList(infoAssets);
}
/**
* 新增数据中台资产数据
*
* @param infoAssets 数据中台资产数据
* @return 结果
*/
@Override
public int insertInfoAssets(InfoAssets infoAssets)
{
return infoAssetsMapper.insertInfoAssets(infoAssets);
}
/**
* 修改数据中台资产数据
*
* @param infoAssets 数据中台资产数据
* @return 结果
*/
@Override
public int updateInfoAssets(InfoAssets infoAssets)
{
return infoAssetsMapper.updateInfoAssets(infoAssets);
}
/**
* 批量删除数据中台资产数据
*
* @param ids 需要删除的数据中台资产数据主键
* @return 结果
*/
@Override
public int deleteInfoAssetsByIds(String[] ids)
{
return infoAssetsMapper.deleteInfoAssetsByIds(ids);
}
/**
* 删除数据中台资产数据信息
*
* @param id 数据中台资产数据主键
* @return 结果
*/
@Override
public int deleteInfoAssetsById(String id)
{
return infoAssetsMapper.deleteInfoAssetsById(id);
}
@Override
public String saveOrUpdateByHttp() {
//获取全部数据
HashMap<String, Object> paramMap = new HashMap<>();
paramMap.put("create_time", DateUtil.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
paramMap.put("update_time", DateUtil.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
paramMap.put("pageSize", "1");
paramMap.put("pageNum", "1");
//链式构建请求
String result = HttpRequest.get("http://101.36.148.173:17027/api/risk/assets_info")
.header("X-HW-ID", "rpa.ioc.301test")//头信息,多个头信息多次调用此方法即可
.header("X-HW-APPKEY", "V6Ms/P7SvsFN/WdhFYgxrA==")
.form(paramMap)//表单内容
.timeout(20000)//超时,毫秒
.execute().body();
InfoResultDto infoResultDto = JSONObject.parseObject(result, InfoResultDto.class);
String total = infoResultDto.getTotal();
Integer totalNumber = Integer.valueOf(total);
int totalNum = totalNumber / 100 + 1;
for (int i = 1; i <= totalNum; i++) {
paramMap.put("pageSize", "100");
paramMap.put("pageNum", i);
//链式构建请求
result = HttpRequest.get("http://101.36.148.173:17027/api/risk/assets_info")
.header("X-HW-ID", "rpa.ioc.301test")//头信息,多个头信息多次调用此方法即可
.header("X-HW-APPKEY", "V6Ms/P7SvsFN/WdhFYgxrA==")
.form(paramMap)//表单内容
.timeout(20000)//超时,毫秒
.execute().body();
infoResultDto = JSONObject.parseObject(result, InfoResultDto.class);
List<InfoAssets> infoAssets = JSONArray.parseArray(infoResultDto.getData(), InfoAssets.class);
saveOrUpdateBatch(infoAssets);
List<LedgerProject> ledgerProjects = ledgerProjectService.selectLedgerProjectList(new LedgerProject());
List<LedgerBuilding> ledgerBuildings = ledgerBuildingService.selectLedgerBuildingList(new LedgerBuilding());
infoAssets.forEach(infoAsset -> {
Optional<LedgerBuilding> first = ledgerBuildings.stream().filter(ledgerBuilding -> ledgerBuilding.getName().equals(infoAsset.getName())).findFirst();
if (first.isPresent()) {
//关联id
LedgerBuilding ledgerBuilding = first.get();
ledgerBuilding.setInfoAssetsId(infoAsset.getId());
ledgerBuildingMapper.updateLedgerBuilding(ledgerBuilding);
} else {
//新建
LedgerBuilding ledgerBuilding = new LedgerBuilding();
Optional<LedgerProject> first1 = ledgerProjects.stream().filter(ledgerProject -> ledgerProject.getInfoAssetsId()
.equals(infoAsset.getId())).findFirst();
if (first1.isPresent()) {
LedgerProject ledgerProject = first1.get();
ledgerBuilding.setDeptId(ledgerProject.getDeptId());
ledgerBuilding.setProjectId(ledgerProject.getId());
}
ledgerBuilding.setInfoAssetsId(infoAsset.getId());
ledgerBuilding.setName(infoAsset.getName());
ledgerBuilding.setType(infoAsset.getType_name());
if (NumberUtil.isInteger(infoAsset.getGround_plies())){
ledgerBuilding.setGroundFloor(Integer.valueOf(infoAsset.getGround_plies()));
}else {
ledgerBuilding.setGroundFloor(0);
}
if (NumberUtil.isInteger(infoAsset.getUnderground_plies())){
ledgerBuilding.setUndergroundFloor(Integer.valueOf(infoAsset.getUnderground_plies()));
}else {
ledgerBuilding.setUndergroundFloor(0);
}
ledgerBuilding.setFloor(ledgerBuilding.getGroundFloor()+ ledgerBuilding.getUndergroundFloor()+"");
ledgerBuilding.setUseto(infoAsset.getType_name());
ledgerBuilding.setCity(infoAsset.getCity_name());
ledgerBuilding.setAddress(infoAsset.getName());
ledgerBuilding.setStatus("0");
ledgerBuilding.setDelFlag("0");
ledgerBuildingService.save(ledgerBuilding);
}
});
}
return result;
}
}
package com.censoft.censoftrongtong.service.impl;
import java.util.*;
import cn.hutool.core.date.DateUtil;
import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.censoft.censoftrongtong.domain.InfoAssets;
import com.censoft.censoftrongtong.domain.InfoLedger;
import com.censoft.censoftrongtong.domain.LedgerBuilding;
import com.censoft.censoftrongtong.domain.LedgerProject;
import com.censoft.censoftrongtong.domain.dto.InfoResultDto;
import com.censoft.censoftrongtong.mapper.InfoLedgerMapper;
import com.censoft.censoftrongtong.service.IInfoLedgerService;
import com.censoft.censoftrongtong.service.ILedgerBuildingService;
import com.censoft.censoftrongtong.service.ILedgerProjectService;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.service.ISysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.github.yulichang.base.MPJBaseServiceImpl;
import javax.annotation.Resource;
/**
* 数据中台资产项目数据Service业务层处理
*
* @author ruoyi
* @date 2023-10-07
*/
@Service
public class InfoLedgerServiceImpl extends MPJBaseServiceImpl<InfoLedgerMapper, InfoLedger> implements IInfoLedgerService
{
@Autowired
private InfoLedgerMapper infoLedgerMapper;
@Resource
private ILedgerProjectService ledgerProjectService;
@Resource
private ISysDeptService sysDeptService;
/**
* 查询数据中台资产项目数据
*
* @param id 数据中台资产项目数据主键
* @return 数据中台资产项目数据
*/
@Override
public InfoLedger selectInfoLedgerById(String id)
{
return infoLedgerMapper.selectInfoLedgerById(id);
}
/**
* 查询数据中台资产项目数据列表
*
* @param infoLedger 数据中台资产项目数据
* @return 数据中台资产项目数据
*/
@Override
public List<InfoLedger> selectInfoLedgerList(InfoLedger infoLedger)
{
return infoLedgerMapper.selectInfoLedgerList(infoLedger);
}
/**
* 新增数据中台资产项目数据
*
* @param infoLedger 数据中台资产项目数据
* @return 结果
*/
@Override
public int insertInfoLedger(InfoLedger infoLedger)
{
return infoLedgerMapper.insertInfoLedger(infoLedger);
}
/**
* 修改数据中台资产项目数据
*
* @param infoLedger 数据中台资产项目数据
* @return 结果
*/
@Override
public int updateInfoLedger(InfoLedger infoLedger)
{
return infoLedgerMapper.updateInfoLedger(infoLedger);
}
/**
* 批量删除数据中台资产项目数据
*
* @param ids 需要删除的数据中台资产项目数据主键
* @return 结果
*/
@Override
public int deleteInfoLedgerByIds(String[] ids)
{
return infoLedgerMapper.deleteInfoLedgerByIds(ids);
}
/**
* 删除数据中台资产项目数据信息
*
* @param id 数据中台资产项目数据主键
* @return 结果
*/
@Override
public int deleteInfoLedgerById(String id)
{
return infoLedgerMapper.deleteInfoLedgerById(id);
}
@Override
public String saveOrUpdateByHttp() {
//获取全部数据
HashMap<String, Object> paramMap = new HashMap<>();
paramMap.put("create_time", DateUtil.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
paramMap.put("update_time", DateUtil.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
paramMap.put("pageSize", "1");
paramMap.put("pageNum", "1");
//链式构建请求
String result = HttpRequest.get("http://101.36.148.173:17027/api/risk/ledger_info")
.header("X-HW-ID", "rpa.ioc.301test")//头信息,多个头信息多次调用此方法即可
.header("X-HW-APPKEY", "V6Ms/P7SvsFN/WdhFYgxrA==")
.form(paramMap)//表单内容
.timeout(20000)//超时,毫秒
.execute().body();
InfoResultDto infoResultDto = JSONObject.parseObject(result, InfoResultDto.class);
String total = infoResultDto.getTotal();
Integer totalNumber = Integer.valueOf(total);
int totalNum = totalNumber / 100 + 1;
for (int i = 1; i <= totalNum; i++) {
paramMap.put("pageSize", "100");
paramMap.put("pageNum", i);
//链式构建请求
result = HttpRequest.get("http://101.36.148.173:17027/api/risk/ledger_info")
.header("X-HW-ID", "rpa.ioc.301test")//头信息,多个头信息多次调用此方法即可
.header("X-HW-APPKEY", "V6Ms/P7SvsFN/WdhFYgxrA==")
.form(paramMap)//表单内容
.timeout(20000)//超时,毫秒
.execute().body();
infoResultDto = JSONObject.parseObject(result, InfoResultDto.class);
List<InfoLedger> infoLedgers = JSONArray.parseArray(infoResultDto.getData(), InfoLedger.class);
saveOrUpdateBatch(infoLedgers);
List<LedgerProject> ledgerProjects = ledgerProjectService.selectLedgerProjectList(new LedgerProject());
infoLedgers.forEach(infoLedger -> {
Optional<LedgerProject> first = ledgerProjects.stream().filter(ledgerProject -> ledgerProject.getInfoAssetsId()
.equals(infoLedger.getId())).findFirst();
if (first.isPresent()) {
//关联id
LedgerProject ledgerProject = first.get();
ledgerProject.setInfoAssetsId(infoLedger.getId());
ledgerProjectService.updateLedgerProject(ledgerProject);
} else {
//新建
LedgerProject ledgerProject = new LedgerProject();
ledgerProject.setInfoAssetsId(infoLedger.getId());
ledgerProject.setName(infoLedger.getName());
ledgerProject.setType(infoLedger.getBusiness_type());
ledgerProject.setCity(infoLedger.getCity_name());
ledgerProject.setAddress(infoLedger.getName());
ledgerProject.setDelFlag("0");
ledgerProject.setStatus("0");
List<SysDept> sysDepts = sysDeptService.selectDeptList(new SysDept());
Optional<SysDept> first1 = sysDepts.stream().filter(sysDept -> sysDept.getDeptName().replace("区域", "")
.equals(infoLedger.getCorp_name().replace("公司", ""))).findFirst();
if (first1.isPresent()) {
ledgerProject.setDeptId(first1.get().getDeptId());
}
ledgerProjectService.insertLedgerProject(ledgerProject);
}
});
}
return result;
}
}
<?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.InfoAssetsMapper">
<resultMap type="com.censoft.censoftrongtong.domain.InfoAssets" id="InfoAssetsResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="outId" column="out_id" />
<result property="manageCorpName" column="manage_corp_name" />
<result property="projName" column="proj_name" />
<result property="categoryName" column="category_name" />
<result property="typeName" column="type_name" />
<result property="existFireCertificate" column="exist_fire_certificate" />
<result property="existDilapidatedBuilding" column="exist_dilapidated_building" />
<result property="dilapidatedBuildingLevel" column="dilapidated_building_level" />
<result property="dilapidatedBuildingQuantity" column="dilapidated_building_quantity" />
<result property="dilapidatedBuildingArea" column="dilapidated_building_area" />
<result property="lat" column="lat" />
<result property="lng" column="lng" />
<result property="provinceName" column="province_name" />
<result property="cityName" column="city_name" />
<result property="districtName" column="district_name" />
<result property="streetName" column="street_name" />
<result property="detail" column="detail" />
<result property="area" column="area" />
<result property="inventoryArea" column="inventory_area" />
<result property="assetCode" column="asset_code" />
<result property="plannedUses" column="planned_uses" />
<result property="practicalUses" column="practical_uses" />
<result property="buildingStructure" column="building_structure" />
<result property="groundPlies" column="ground_plies" />
<result property="undergroundPlies" column="underground_plies" />
<result property="firstFloorHeight" column="first_floor_height" />
<result property="otherFloorHeight" column="other_floor_height" />
<result property="receivingDate" column="receiving_date" />
<result property="propertyStatus" column="property_status" />
<result property="yearBuilt" column="year_built" />
<result property="propertyDetail" column="property_detail" />
<result property="propertyCorpName" column="property_corp_name" />
<result property="propertyDeedsCode" column="property_deeds_code" />
<result property="landDeedsIssueDate" column="land_deeds_issue_date" />
<result property="landExpiredDate" column="land_expired_date" />
<result property="locationType" column="location_type" />
<result property="existLandDeeds" column="exist_land_deeds" />
<result property="landDeedsStartDate" column="land_deeds_start_date" />
<result property="landDeedsEndDate" column="land_deeds_end_date" />
<result property="landDeedsType" column="land_deeds_type" />
<result property="propertyArea" column="property_area" />
<result property="propertyLeasableArea" column="property_leasable_area" />
<result property="groundArea" column="ground_area" />
<result property="undergroundArea" column="underground_area" />
<result property="propertyCertifiedArea" column="property_certified_area" />
<result property="propertyUncertifiedArea" column="property_uncertified_area" />
<result property="landArea" column="land_area" />
<result property="landLeasableArea" column="land_leasable_area" />
<result property="landCertifiedArea" column="land_certified_area" />
<result property="landUncertifiedArea" column="land_uncertified_area" />
<result property="existFireAssessment" column="exist_fire_assessment" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="projId" column="proj_id" />
</resultMap>
<sql id="selectInfoAssetsVo">
select id, name, out_id, manage_corp_name, proj_name, category_name, type_name, exist_fire_certificate, exist_dilapidated_building, dilapidated_building_level, dilapidated_building_quantity, dilapidated_building_area, lat, lng, province_name, city_name, district_name, street_name, detail, area, inventory_area, asset_code, planned_uses, practical_uses, building_structure, ground_plies, underground_plies, first_floor_height, other_floor_height, receiving_date, property_status, year_built, property_detail, property_corp_name, property_deeds_code, land_deeds_issue_date, land_expired_date, location_type, exist_land_deeds, land_deeds_start_date, land_deeds_end_date, land_deeds_type, property_area, property_leasable_area, ground_area, underground_area, property_certified_area, property_uncertified_area, land_area, land_leasable_area, land_certified_area, land_uncertified_area, exist_fire_assessment, create_time, update_time, proj_id from info_assets
</sql>
<select id="selectInfoAssetsList" parameterType="com.censoft.censoftrongtong.domain.InfoAssets" resultMap="InfoAssetsResult">
<include refid="selectInfoAssetsVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="outId != null and outId != ''"> and out_id = #{outId}</if>
<if test="manageCorpName != null and manageCorpName != ''"> and manage_corp_name like concat('%', #{manageCorpName}, '%')</if>
<if test="projName != null and projName != ''"> and proj_name like concat('%', #{projName}, '%')</if>
<if test="categoryName != null and categoryName != ''"> and category_name like concat('%', #{categoryName}, '%')</if>
<if test="typeName != null and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
<if test="existFireCertificate != null and existFireCertificate != ''"> and exist_fire_certificate = #{existFireCertificate}</if>
<if test="existDilapidatedBuilding != null and existDilapidatedBuilding != ''"> and exist_dilapidated_building = #{existDilapidatedBuilding}</if>
<if test="dilapidatedBuildingLevel != null and dilapidatedBuildingLevel != ''"> and dilapidated_building_level = #{dilapidatedBuildingLevel}</if>
<if test="dilapidatedBuildingQuantity != null and dilapidatedBuildingQuantity != ''"> and dilapidated_building_quantity = #{dilapidatedBuildingQuantity}</if>
<if test="dilapidatedBuildingArea != null and dilapidatedBuildingArea != ''"> and dilapidated_building_area = #{dilapidatedBuildingArea}</if>
<if test="lat != null and lat != ''"> and lat = #{lat}</if>
<if test="lng != null and lng != ''"> and lng = #{lng}</if>
<if test="provinceName != null and provinceName != ''"> and province_name like concat('%', #{provinceName}, '%')</if>
<if test="cityName != null and cityName != ''"> and city_name like concat('%', #{cityName}, '%')</if>
<if test="districtName != null and districtName != ''"> and district_name like concat('%', #{districtName}, '%')</if>
<if test="streetName != null and streetName != ''"> and street_name like concat('%', #{streetName}, '%')</if>
<if test="detail != null and detail != ''"> and detail = #{detail}</if>
<if test="area != null and area != ''"> and area = #{area}</if>
<if test="inventoryArea != null and inventoryArea != ''"> and inventory_area = #{inventoryArea}</if>
<if test="assetCode != null and assetCode != ''"> and asset_code = #{assetCode}</if>
<if test="plannedUses != null and plannedUses != ''"> and planned_uses = #{plannedUses}</if>
<if test="practicalUses != null and practicalUses != ''"> and practical_uses = #{practicalUses}</if>
<if test="buildingStructure != null and buildingStructure != ''"> and building_structure = #{buildingStructure}</if>
<if test="groundPlies != null and groundPlies != ''"> and ground_plies = #{groundPlies}</if>
<if test="undergroundPlies != null and undergroundPlies != ''"> and underground_plies = #{undergroundPlies}</if>
<if test="firstFloorHeight != null and firstFloorHeight != ''"> and first_floor_height = #{firstFloorHeight}</if>
<if test="otherFloorHeight != null and otherFloorHeight != ''"> and other_floor_height = #{otherFloorHeight}</if>
<if test="receivingDate != null and receivingDate != ''"> and receiving_date = #{receivingDate}</if>
<if test="propertyStatus != null and propertyStatus != ''"> and property_status = #{propertyStatus}</if>
<if test="yearBuilt != null and yearBuilt != ''"> and year_built = #{yearBuilt}</if>
<if test="propertyDetail != null and propertyDetail != ''"> and property_detail = #{propertyDetail}</if>
<if test="propertyCorpName != null and propertyCorpName != ''"> and property_corp_name like concat('%', #{propertyCorpName}, '%')</if>
<if test="propertyDeedsCode != null and propertyDeedsCode != ''"> and property_deeds_code = #{propertyDeedsCode}</if>
<if test="landDeedsIssueDate != null and landDeedsIssueDate != ''"> and land_deeds_issue_date = #{landDeedsIssueDate}</if>
<if test="landExpiredDate != null and landExpiredDate != ''"> and land_expired_date = #{landExpiredDate}</if>
<if test="locationType != null and locationType != ''"> and location_type = #{locationType}</if>
<if test="existLandDeeds != null and existLandDeeds != ''"> and exist_land_deeds = #{existLandDeeds}</if>
<if test="landDeedsStartDate != null and landDeedsStartDate != ''"> and land_deeds_start_date = #{landDeedsStartDate}</if>
<if test="landDeedsEndDate != null and landDeedsEndDate != ''"> and land_deeds_end_date = #{landDeedsEndDate}</if>
<if test="landDeedsType != null and landDeedsType != ''"> and land_deeds_type = #{landDeedsType}</if>
<if test="propertyArea != null and propertyArea != ''"> and property_area = #{propertyArea}</if>
<if test="propertyLeasableArea != null and propertyLeasableArea != ''"> and property_leasable_area = #{propertyLeasableArea}</if>
<if test="groundArea != null and groundArea != ''"> and ground_area = #{groundArea}</if>
<if test="undergroundArea != null and undergroundArea != ''"> and underground_area = #{undergroundArea}</if>
<if test="propertyCertifiedArea != null and propertyCertifiedArea != ''"> and property_certified_area = #{propertyCertifiedArea}</if>
<if test="propertyUncertifiedArea != null and propertyUncertifiedArea != ''"> and property_uncertified_area = #{propertyUncertifiedArea}</if>
<if test="landArea != null and landArea != ''"> and land_area = #{landArea}</if>
<if test="landLeasableArea != null and landLeasableArea != ''"> and land_leasable_area = #{landLeasableArea}</if>
<if test="landCertifiedArea != null and landCertifiedArea != ''"> and land_certified_area = #{landCertifiedArea}</if>
<if test="landUncertifiedArea != null and landUncertifiedArea != ''"> and land_uncertified_area = #{landUncertifiedArea}</if>
<if test="existFireAssessment != null and existFireAssessment != ''"> and exist_fire_assessment = #{existFireAssessment}</if>
<if test="projId != null and projId != ''"> and proj_id = #{projId}</if>
</where>
</select>
<select id="selectInfoAssetsById" parameterType="String" resultMap="InfoAssetsResult">
<include refid="selectInfoAssetsVo"/>
where id = #{id}
</select>
<insert id="insertInfoAssets" parameterType="com.censoft.censoftrongtong.domain.InfoAssets">
insert into info_assets
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null">name,</if>
<if test="outId != null">out_id,</if>
<if test="manageCorpName != null">manage_corp_name,</if>
<if test="projName != null">proj_name,</if>
<if test="categoryName != null">category_name,</if>
<if test="typeName != null">type_name,</if>
<if test="existFireCertificate != null">exist_fire_certificate,</if>
<if test="existDilapidatedBuilding != null">exist_dilapidated_building,</if>
<if test="dilapidatedBuildingLevel != null">dilapidated_building_level,</if>
<if test="dilapidatedBuildingQuantity != null">dilapidated_building_quantity,</if>
<if test="dilapidatedBuildingArea != null">dilapidated_building_area,</if>
<if test="lat != null">lat,</if>
<if test="lng != null">lng,</if>
<if test="provinceName != null">province_name,</if>
<if test="cityName != null">city_name,</if>
<if test="districtName != null">district_name,</if>
<if test="streetName != null">street_name,</if>
<if test="detail != null">detail,</if>
<if test="area != null">area,</if>
<if test="inventoryArea != null">inventory_area,</if>
<if test="assetCode != null">asset_code,</if>
<if test="plannedUses != null">planned_uses,</if>
<if test="practicalUses != null">practical_uses,</if>
<if test="buildingStructure != null">building_structure,</if>
<if test="groundPlies != null">ground_plies,</if>
<if test="undergroundPlies != null">underground_plies,</if>
<if test="firstFloorHeight != null">first_floor_height,</if>
<if test="otherFloorHeight != null">other_floor_height,</if>
<if test="receivingDate != null">receiving_date,</if>
<if test="propertyStatus != null">property_status,</if>
<if test="yearBuilt != null">year_built,</if>
<if test="propertyDetail != null">property_detail,</if>
<if test="propertyCorpName != null">property_corp_name,</if>
<if test="propertyDeedsCode != null">property_deeds_code,</if>
<if test="landDeedsIssueDate != null">land_deeds_issue_date,</if>
<if test="landExpiredDate != null">land_expired_date,</if>
<if test="locationType != null">location_type,</if>
<if test="existLandDeeds != null">exist_land_deeds,</if>
<if test="landDeedsStartDate != null">land_deeds_start_date,</if>
<if test="landDeedsEndDate != null">land_deeds_end_date,</if>
<if test="landDeedsType != null">land_deeds_type,</if>
<if test="propertyArea != null">property_area,</if>
<if test="propertyLeasableArea != null">property_leasable_area,</if>
<if test="groundArea != null">ground_area,</if>
<if test="undergroundArea != null">underground_area,</if>
<if test="propertyCertifiedArea != null">property_certified_area,</if>
<if test="propertyUncertifiedArea != null">property_uncertified_area,</if>
<if test="landArea != null">land_area,</if>
<if test="landLeasableArea != null">land_leasable_area,</if>
<if test="landCertifiedArea != null">land_certified_area,</if>
<if test="landUncertifiedArea != null">land_uncertified_area,</if>
<if test="existFireAssessment != null">exist_fire_assessment,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="projId != null">proj_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null">#{name},</if>
<if test="outId != null">#{outId},</if>
<if test="manageCorpName != null">#{manageCorpName},</if>
<if test="projName != null">#{projName},</if>
<if test="categoryName != null">#{categoryName},</if>
<if test="typeName != null">#{typeName},</if>
<if test="existFireCertificate != null">#{existFireCertificate},</if>
<if test="existDilapidatedBuilding != null">#{existDilapidatedBuilding},</if>
<if test="dilapidatedBuildingLevel != null">#{dilapidatedBuildingLevel},</if>
<if test="dilapidatedBuildingQuantity != null">#{dilapidatedBuildingQuantity},</if>
<if test="dilapidatedBuildingArea != null">#{dilapidatedBuildingArea},</if>
<if test="lat != null">#{lat},</if>
<if test="lng != null">#{lng},</if>
<if test="provinceName != null">#{provinceName},</if>
<if test="cityName != null">#{cityName},</if>
<if test="districtName != null">#{districtName},</if>
<if test="streetName != null">#{streetName},</if>
<if test="detail != null">#{detail},</if>
<if test="area != null">#{area},</if>
<if test="inventoryArea != null">#{inventoryArea},</if>
<if test="assetCode != null">#{assetCode},</if>
<if test="plannedUses != null">#{plannedUses},</if>
<if test="practicalUses != null">#{practicalUses},</if>
<if test="buildingStructure != null">#{buildingStructure},</if>
<if test="groundPlies != null">#{groundPlies},</if>
<if test="undergroundPlies != null">#{undergroundPlies},</if>
<if test="firstFloorHeight != null">#{firstFloorHeight},</if>
<if test="otherFloorHeight != null">#{otherFloorHeight},</if>
<if test="receivingDate != null">#{receivingDate},</if>
<if test="propertyStatus != null">#{propertyStatus},</if>
<if test="yearBuilt != null">#{yearBuilt},</if>
<if test="propertyDetail != null">#{propertyDetail},</if>
<if test="propertyCorpName != null">#{propertyCorpName},</if>
<if test="propertyDeedsCode != null">#{propertyDeedsCode},</if>
<if test="landDeedsIssueDate != null">#{landDeedsIssueDate},</if>
<if test="landExpiredDate != null">#{landExpiredDate},</if>
<if test="locationType != null">#{locationType},</if>
<if test="existLandDeeds != null">#{existLandDeeds},</if>
<if test="landDeedsStartDate != null">#{landDeedsStartDate},</if>
<if test="landDeedsEndDate != null">#{landDeedsEndDate},</if>
<if test="landDeedsType != null">#{landDeedsType},</if>
<if test="propertyArea != null">#{propertyArea},</if>
<if test="propertyLeasableArea != null">#{propertyLeasableArea},</if>
<if test="groundArea != null">#{groundArea},</if>
<if test="undergroundArea != null">#{undergroundArea},</if>
<if test="propertyCertifiedArea != null">#{propertyCertifiedArea},</if>
<if test="propertyUncertifiedArea != null">#{propertyUncertifiedArea},</if>
<if test="landArea != null">#{landArea},</if>
<if test="landLeasableArea != null">#{landLeasableArea},</if>
<if test="landCertifiedArea != null">#{landCertifiedArea},</if>
<if test="landUncertifiedArea != null">#{landUncertifiedArea},</if>
<if test="existFireAssessment != null">#{existFireAssessment},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="projId != null">#{projId},</if>
</trim>
</insert>
<update id="updateInfoAssets" parameterType="com.censoft.censoftrongtong.domain.InfoAssets">
update info_assets
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="outId != null">out_id = #{outId},</if>
<if test="manageCorpName != null">manage_corp_name = #{manageCorpName},</if>
<if test="projName != null">proj_name = #{projName},</if>
<if test="categoryName != null">category_name = #{categoryName},</if>
<if test="typeName != null">type_name = #{typeName},</if>
<if test="existFireCertificate != null">exist_fire_certificate = #{existFireCertificate},</if>
<if test="existDilapidatedBuilding != null">exist_dilapidated_building = #{existDilapidatedBuilding},</if>
<if test="dilapidatedBuildingLevel != null">dilapidated_building_level = #{dilapidatedBuildingLevel},</if>
<if test="dilapidatedBuildingQuantity != null">dilapidated_building_quantity = #{dilapidatedBuildingQuantity},</if>
<if test="dilapidatedBuildingArea != null">dilapidated_building_area = #{dilapidatedBuildingArea},</if>
<if test="lat != null">lat = #{lat},</if>
<if test="lng != null">lng = #{lng},</if>
<if test="provinceName != null">province_name = #{provinceName},</if>
<if test="cityName != null">city_name = #{cityName},</if>
<if test="districtName != null">district_name = #{districtName},</if>
<if test="streetName != null">street_name = #{streetName},</if>
<if test="detail != null">detail = #{detail},</if>
<if test="area != null">area = #{area},</if>
<if test="inventoryArea != null">inventory_area = #{inventoryArea},</if>
<if test="assetCode != null">asset_code = #{assetCode},</if>
<if test="plannedUses != null">planned_uses = #{plannedUses},</if>
<if test="practicalUses != null">practical_uses = #{practicalUses},</if>
<if test="buildingStructure != null">building_structure = #{buildingStructure},</if>
<if test="groundPlies != null">ground_plies = #{groundPlies},</if>
<if test="undergroundPlies != null">underground_plies = #{undergroundPlies},</if>
<if test="firstFloorHeight != null">first_floor_height = #{firstFloorHeight},</if>
<if test="otherFloorHeight != null">other_floor_height = #{otherFloorHeight},</if>
<if test="receivingDate != null">receiving_date = #{receivingDate},</if>
<if test="propertyStatus != null">property_status = #{propertyStatus},</if>
<if test="yearBuilt != null">year_built = #{yearBuilt},</if>
<if test="propertyDetail != null">property_detail = #{propertyDetail},</if>
<if test="propertyCorpName != null">property_corp_name = #{propertyCorpName},</if>
<if test="propertyDeedsCode != null">property_deeds_code = #{propertyDeedsCode},</if>
<if test="landDeedsIssueDate != null">land_deeds_issue_date = #{landDeedsIssueDate},</if>
<if test="landExpiredDate != null">land_expired_date = #{landExpiredDate},</if>
<if test="locationType != null">location_type = #{locationType},</if>
<if test="existLandDeeds != null">exist_land_deeds = #{existLandDeeds},</if>
<if test="landDeedsStartDate != null">land_deeds_start_date = #{landDeedsStartDate},</if>
<if test="landDeedsEndDate != null">land_deeds_end_date = #{landDeedsEndDate},</if>
<if test="landDeedsType != null">land_deeds_type = #{landDeedsType},</if>
<if test="propertyArea != null">property_area = #{propertyArea},</if>
<if test="propertyLeasableArea != null">property_leasable_area = #{propertyLeasableArea},</if>
<if test="groundArea != null">ground_area = #{groundArea},</if>
<if test="undergroundArea != null">underground_area = #{undergroundArea},</if>
<if test="propertyCertifiedArea != null">property_certified_area = #{propertyCertifiedArea},</if>
<if test="propertyUncertifiedArea != null">property_uncertified_area = #{propertyUncertifiedArea},</if>
<if test="landArea != null">land_area = #{landArea},</if>
<if test="landLeasableArea != null">land_leasable_area = #{landLeasableArea},</if>
<if test="landCertifiedArea != null">land_certified_area = #{landCertifiedArea},</if>
<if test="landUncertifiedArea != null">land_uncertified_area = #{landUncertifiedArea},</if>
<if test="existFireAssessment != null">exist_fire_assessment = #{existFireAssessment},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="projId != null">proj_id = #{projId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInfoAssetsById" parameterType="String">
delete from info_assets where id = #{id}
</delete>
<delete id="deleteInfoAssetsByIds" parameterType="String">
delete from info_assets 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.InfoLedgerMapper">
<resultMap type="com.censoft.censoftrongtong.domain.InfoLedger" id="InfoLedgerResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="corpName" column="corp_name" />
<result property="businessCode" column="business_code" />
<result property="businessType" column="business_type" />
<result property="locationNumber" column="location_number" />
<result property="assetStatus" column="asset_status" />
<result property="sourceType" column="source_type" />
<result property="recipient" column="recipient" />
<result property="receivingTime" column="receiving_time" />
<result property="areaType" column="area_type" />
<result property="assetRank" column="asset_rank" />
<result property="plannedUse" column="planned_use" />
<result property="practicalUse" column="practical_use" />
<result property="plannedFloorAreaRatio" column="planned_floor_area_ratio" />
<result property="outId" column="out_id" />
<result property="assetCodeOfFinancialSystem" column="asset_code_of_financial_system" />
<result property="safetyLevelOfBuildingStructure" column="safety_level_of_building_structure" />
<result property="quantityOfBuildings" column="quantity_of_buildings" />
<result property="operationSituation" column="operation_situation" />
<result property="lat" column="lat" />
<result property="lng" column="lng" />
<result property="provinceName" column="province_name" />
<result property="cityName" column="city_name" />
<result property="districtName" column="district_name" />
<result property="streetName" column="street_name" />
<result property="detail" column="detail" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="corpId" column="corp_id" />
</resultMap>
<sql id="selectInfoLedgerVo">
select id, name, corp_name, business_code, business_type, location_number, asset_status, source_type, recipient, receiving_time, area_type, asset_rank, planned_use, practical_use, planned_floor_area_ratio, out_id, asset_code_of_financial_system, safety_level_of_building_structure, quantity_of_buildings, operation_situation, lat, lng, province_name, city_name, district_name, street_name, detail, create_time, update_time, corp_id from info_ledger
</sql>
<select id="selectInfoLedgerList" parameterType="com.censoft.censoftrongtong.domain.InfoLedger" resultMap="InfoLedgerResult">
<include refid="selectInfoLedgerVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="corpName != null and corpName != ''"> and corp_name like concat('%', #{corpName}, '%')</if>
<if test="businessCode != null and businessCode != ''"> and business_code = #{businessCode}</if>
<if test="businessType != null and businessType != ''"> and business_type = #{businessType}</if>
<if test="locationNumber != null and locationNumber != ''"> and location_number = #{locationNumber}</if>
<if test="assetStatus != null and assetStatus != ''"> and asset_status = #{assetStatus}</if>
<if test="sourceType != null and sourceType != ''"> and source_type = #{sourceType}</if>
<if test="recipient != null and recipient != ''"> and recipient = #{recipient}</if>
<if test="receivingTime != null and receivingTime != ''"> and receiving_time = #{receivingTime}</if>
<if test="areaType != null and areaType != ''"> and area_type = #{areaType}</if>
<if test="assetRank != null and assetRank != ''"> and asset_rank = #{assetRank}</if>
<if test="plannedUse != null and plannedUse != ''"> and planned_use = #{plannedUse}</if>
<if test="practicalUse != null and practicalUse != ''"> and practical_use = #{practicalUse}</if>
<if test="plannedFloorAreaRatio != null and plannedFloorAreaRatio != ''"> and planned_floor_area_ratio = #{plannedFloorAreaRatio}</if>
<if test="outId != null and outId != ''"> and out_id = #{outId}</if>
<if test="assetCodeOfFinancialSystem != null and assetCodeOfFinancialSystem != ''"> and asset_code_of_financial_system = #{assetCodeOfFinancialSystem}</if>
<if test="safetyLevelOfBuildingStructure != null and safetyLevelOfBuildingStructure != ''"> and safety_level_of_building_structure = #{safetyLevelOfBuildingStructure}</if>
<if test="quantityOfBuildings != null and quantityOfBuildings != ''"> and quantity_of_buildings = #{quantityOfBuildings}</if>
<if test="operationSituation != null and operationSituation != ''"> and operation_situation = #{operationSituation}</if>
<if test="lat != null and lat != ''"> and lat = #{lat}</if>
<if test="lng != null and lng != ''"> and lng = #{lng}</if>
<if test="provinceName != null and provinceName != ''"> and province_name like concat('%', #{provinceName}, '%')</if>
<if test="cityName != null and cityName != ''"> and city_name like concat('%', #{cityName}, '%')</if>
<if test="districtName != null and districtName != ''"> and district_name like concat('%', #{districtName}, '%')</if>
<if test="streetName != null and streetName != ''"> and street_name like concat('%', #{streetName}, '%')</if>
<if test="detail != null and detail != ''"> and detail = #{detail}</if>
<if test="corpId != null and corpId != ''"> and corp_id = #{corpId}</if>
</where>
</select>
<select id="selectInfoLedgerById" parameterType="String" resultMap="InfoLedgerResult">
<include refid="selectInfoLedgerVo"/>
where id = #{id}
</select>
<insert id="insertInfoLedger" parameterType="com.censoft.censoftrongtong.domain.InfoLedger">
insert into info_ledger
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null">name,</if>
<if test="corpName != null">corp_name,</if>
<if test="businessCode != null">business_code,</if>
<if test="businessType != null">business_type,</if>
<if test="locationNumber != null">location_number,</if>
<if test="assetStatus != null">asset_status,</if>
<if test="sourceType != null">source_type,</if>
<if test="recipient != null">recipient,</if>
<if test="receivingTime != null">receiving_time,</if>
<if test="areaType != null">area_type,</if>
<if test="assetRank != null">asset_rank,</if>
<if test="plannedUse != null">planned_use,</if>
<if test="practicalUse != null">practical_use,</if>
<if test="plannedFloorAreaRatio != null">planned_floor_area_ratio,</if>
<if test="outId != null">out_id,</if>
<if test="assetCodeOfFinancialSystem != null">asset_code_of_financial_system,</if>
<if test="safetyLevelOfBuildingStructure != null">safety_level_of_building_structure,</if>
<if test="quantityOfBuildings != null">quantity_of_buildings,</if>
<if test="operationSituation != null">operation_situation,</if>
<if test="lat != null">lat,</if>
<if test="lng != null">lng,</if>
<if test="provinceName != null">province_name,</if>
<if test="cityName != null">city_name,</if>
<if test="districtName != null">district_name,</if>
<if test="streetName != null">street_name,</if>
<if test="detail != null">detail,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="corpId != null">corp_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null">#{name},</if>
<if test="corpName != null">#{corpName},</if>
<if test="businessCode != null">#{businessCode},</if>
<if test="businessType != null">#{businessType},</if>
<if test="locationNumber != null">#{locationNumber},</if>
<if test="assetStatus != null">#{assetStatus},</if>
<if test="sourceType != null">#{sourceType},</if>
<if test="recipient != null">#{recipient},</if>
<if test="receivingTime != null">#{receivingTime},</if>
<if test="areaType != null">#{areaType},</if>
<if test="assetRank != null">#{assetRank},</if>
<if test="plannedUse != null">#{plannedUse},</if>
<if test="practicalUse != null">#{practicalUse},</if>
<if test="plannedFloorAreaRatio != null">#{plannedFloorAreaRatio},</if>
<if test="outId != null">#{outId},</if>
<if test="assetCodeOfFinancialSystem != null">#{assetCodeOfFinancialSystem},</if>
<if test="safetyLevelOfBuildingStructure != null">#{safetyLevelOfBuildingStructure},</if>
<if test="quantityOfBuildings != null">#{quantityOfBuildings},</if>
<if test="operationSituation != null">#{operationSituation},</if>
<if test="lat != null">#{lat},</if>
<if test="lng != null">#{lng},</if>
<if test="provinceName != null">#{provinceName},</if>
<if test="cityName != null">#{cityName},</if>
<if test="districtName != null">#{districtName},</if>
<if test="streetName != null">#{streetName},</if>
<if test="detail != null">#{detail},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="corpId != null">#{corpId},</if>
</trim>
</insert>
<update id="updateInfoLedger" parameterType="com.censoft.censoftrongtong.domain.InfoLedger">
update info_ledger
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="corpName != null">corp_name = #{corpName},</if>
<if test="businessCode != null">business_code = #{businessCode},</if>
<if test="businessType != null">business_type = #{businessType},</if>
<if test="locationNumber != null">location_number = #{locationNumber},</if>
<if test="assetStatus != null">asset_status = #{assetStatus},</if>
<if test="sourceType != null">source_type = #{sourceType},</if>
<if test="recipient != null">recipient = #{recipient},</if>
<if test="receivingTime != null">receiving_time = #{receivingTime},</if>
<if test="areaType != null">area_type = #{areaType},</if>
<if test="assetRank != null">asset_rank = #{assetRank},</if>
<if test="plannedUse != null">planned_use = #{plannedUse},</if>
<if test="practicalUse != null">practical_use = #{practicalUse},</if>
<if test="plannedFloorAreaRatio != null">planned_floor_area_ratio = #{plannedFloorAreaRatio},</if>
<if test="outId != null">out_id = #{outId},</if>
<if test="assetCodeOfFinancialSystem != null">asset_code_of_financial_system = #{assetCodeOfFinancialSystem},</if>
<if test="safetyLevelOfBuildingStructure != null">safety_level_of_building_structure = #{safetyLevelOfBuildingStructure},</if>
<if test="quantityOfBuildings != null">quantity_of_buildings = #{quantityOfBuildings},</if>
<if test="operationSituation != null">operation_situation = #{operationSituation},</if>
<if test="lat != null">lat = #{lat},</if>
<if test="lng != null">lng = #{lng},</if>
<if test="provinceName != null">province_name = #{provinceName},</if>
<if test="cityName != null">city_name = #{cityName},</if>
<if test="districtName != null">district_name = #{districtName},</if>
<if test="streetName != null">street_name = #{streetName},</if>
<if test="detail != null">detail = #{detail},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="corpId != null">corp_id = #{corpId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInfoLedgerById" parameterType="String">
delete from info_ledger where id = #{id}
</delete>
<delete id="deleteInfoLedgerByIds" parameterType="String">
delete from info_ledger where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
......@@ -17,6 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="city" column="city" />
<result property="area" column="area" />
<result property="address" column="address" />
<result property="infoAssetsId" column="info_assets_id" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
......@@ -26,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</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
select id, project_id, name, type, dept_id, floor, useto, city, area, address,info_assets_id, 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">
......@@ -45,6 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
b.city,
b.area,
b.address,
b.info_assets_id,
b.STATUS,
b.del_flag,
b.create_by,
......@@ -96,6 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="city != null">city,</if>
<if test="area != null">area,</if>
<if test="address != null">address,</if>
<if test="infoAssetsId != null">info_assets_id,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
......@@ -115,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="city != null">#{city},</if>
<if test="area != null">#{area},</if>
<if test="address != null">#{address},</if>
<if test="infoAssetsId != null">#{infoAssetsId},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
......@@ -136,6 +140,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="city != null">city = #{city},</if>
<if test="area != null">area = #{area},</if>
<if test="address != null">address = #{address},</if>
<if test="infoAssetsId != null">info_assets_id = #{infoAssetsId},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
......
......@@ -13,6 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="city" column="city" />
<result property="address" column="address" />
<result property="source" column="source" />
<result property="infoAssetsId" column="info_assets_id" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="businessStatus" column="business_status" />
......@@ -24,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectLedgerProjectVo">
select id, name, type,business, dept_id, city, address, source, status, del_flag, business_status, property_management, create_by, create_time, update_by, update_time from ledger_project
select id, name, type,business, dept_id, city, address, source, info_assets_id,status, del_flag, business_status, property_management, create_by, create_time, update_by, update_time from ledger_project
</sql>
<select id="selectLedgerProjectList" parameterType="com.censoft.censoftrongtong.domain.LedgerProject" resultMap="LedgerProjectResult">
......@@ -38,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
p.city,
p.address,
p.source,
p.info_assets_id,
p.STATUS,
p.del_flag,
p.create_by,
......@@ -78,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
lp.source,
lp.business_status,
lp.property_management,
lp.info_assets_id,
lp.STATUS,
lp.del_flag,
lp.create_by,
......@@ -102,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="city != null">city,</if>
<if test="address != null">address,</if>
<if test="source != null">source,</if>
<if test="infoAssetsId != null">info_assets_id,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="businessStatus != null">business_status,</if>
......@@ -119,6 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="city != null">#{city},</if>
<if test="address != null">#{address},</if>
<if test="source != null">#{source},</if>
<if test="infoAssetsId != null">#{infoAssetsId},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="businessStatus != null">#{businessStatus},</if>
......@@ -140,6 +145,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="city != null">city = #{city},</if>
<if test="address != null">address = #{address},</if>
<if test="source != null">source = #{source},</if>
<if test="infoAssetsId != null">info_assets_id = #{infoAssetsId},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="businessStatus != null">business_status = #{businessStatus},</if>
......
......@@ -66,7 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN sys_dept sd2 ON sd2.dept_id = lp.dept_id) TT
<where>
<if test="isLedger != null and isLedger != ''"> and ( TT.`status` = 'FINISH' OR TT.`status` = 'REVOKE' )</if>
<!-- <if test="isLedger != null and isLedger != ''"> and ( TT.`status` = 'FINISH' OR TT.`status` = 'REVOKE' )</if>-->
<if test="name != null and name != ''"> and TT.name like concat('%', #{name}, '%')</if>
<if test="no != null and no != ''"> and TT.no = #{no}</if>
<if test="projectId != null "> and TT.project_id = #{projectId}</if>
......
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