浏览代码

企业信息完善

Memory_LG 11 月之前
父节点
当前提交
412f7beefb

+ 44 - 0
data-ui/src/api/data/housingconstruction/enterprise.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询住建-企业信息列表
+export function listEnterprise(query) {
+  return request({
+    url: '/sooka-sponest-center-data/housingconstruction/enterprise/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询住建-企业信息详细
+export function getEnterprise(id) {
+  return request({
+    url: '/sooka-sponest-center-data/housingconstruction/enterprise/' + id,
+    method: 'get'
+  })
+}
+
+// 新增住建-企业信息
+export function addEnterprise(data) {
+  return request({
+    url: '/sooka-sponest-center-data/housingconstruction/enterprise',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改住建-企业信息
+export function updateEnterprise(data) {
+  return request({
+    url: '/sooka-sponest-center-data/housingconstruction/enterprise',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除住建-企业信息
+export function delEnterprise(id) {
+  return request({
+    url: '/sooka-sponest-center-data/housingconstruction/enterprise/' + id,
+    method: 'delete'
+  })
+}

+ 484 - 0
data-ui/src/views/data/housingconstruction/enterprise/index.vue

@@ -0,0 +1,484 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="企业名称" prop="enterpriseName">
+        <el-input
+          v-model="queryParams.enterpriseName"
+          placeholder="请输入企业名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="法人代表" prop="legalRepresentative">
+        <el-input
+          v-model="queryParams.legalRepresentative"
+          placeholder="请输入法人代表"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['Housingconstruction:enterprise:add']"
+        >新增
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['Housingconstruction:enterprise:edit']"
+        >修改
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['Housingconstruction:enterprise:remove']"
+        >删除
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['Housingconstruction:enterprise:export']"
+        >导出
+        </el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="enterpriseList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center"/>
+      <el-table-column label="企业名称" align="center" prop="enterpriseName"/>
+      <el-table-column label="企业行政区域" align="center" prop="enterpriseAdministrativeArea"/>
+      <el-table-column label="法人代表" align="center" prop="legalRepresentative"/>
+      <el-table-column label="登记注册地址" align="center" prop="registeredAddress"/>
+      <el-table-column label="经营类别" align="center" prop="businessCategory"/>
+      <el-table-column label="经营区域" align="center" prop="operatingArea"/>
+      <el-table-column label="发证时间" align="center" prop="issuingTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.issuingTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="许可期限开始时间" align="center" prop="licensePeriodStart"/>
+      <el-table-column label="许可期限结束时间" align="center" prop="licensePeriodEnd"/>
+      <el-table-column label="发证机关" align="center" prop="issuingAuthority"/>
+      <el-table-column label="经度" align="center" prop="longitude"/>
+      <el-table-column label="纬度" align="center" prop="latitude"/>
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['Housingconstruction:enterprise:edit']"
+          >修改
+          </el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['Housingconstruction:enterprise:remove']"
+          >删除
+          </el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改住建-企业信息对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="135px">
+        <el-row :gutter="24">
+          <el-col :span="12">
+            <el-form-item label="企业名称" prop="enterpriseName">
+              <el-input v-model="form.enterpriseName" placeholder="请输入企业名称"/>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="企业行政区域" prop="enterpriseAdministrativeArea">
+              <el-input v-model="form.enterpriseAdministrativeArea" placeholder="请输入企业行政区域"/>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="24">
+          <el-col :span="12">
+            <el-form-item label="法人代表" prop="legalRepresentative">
+              <el-input v-model="form.legalRepresentative" placeholder="请输入法人代表"/>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="登记注册地址" prop="registeredAddress">
+              <el-input v-model="form.registeredAddress" placeholder="请输入登记注册地址"/>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="24">
+          <el-col :span="12">
+            <el-form-item label="发证机关" prop="issuingAuthority">
+              <el-input v-model="form.issuingAuthority" placeholder="请输入发证机关"/>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="发证时间" prop="issuingTime">
+              <el-date-picker clearable size="small"
+                              v-model="form.issuingTime"
+                              type="date"
+                              value-format="yyyy-MM-dd"
+                              placeholder="选择发证时间">
+              </el-date-picker>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="24">
+          <el-col :span="12">
+            <el-form-item label="许可期限开始时间" prop="licensePeriodStart">
+              <el-input v-model="form.licensePeriodStart" placeholder="请输入许可期限开始时间"/>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="许可期限结束时间" prop="licensePeriodEnd">
+              <el-input v-model="form.licensePeriodEnd" placeholder="请输入许可期限结束时间"/>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="24">
+          <el-col :span="12">
+            <el-form-item label="经度" prop="longitude" @dblclick.native="showMap">
+              <el-input v-model="form.longitude" placeholder="鼠标双击选择经纬度"/>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="纬度" prop="latitude" @dblclick.native="showMap">
+              <el-input v-model="form.latitude" placeholder="鼠标双击选择经纬度"/>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="24">
+          <el-col :span="12">
+            <el-form-item label="所属部门" prop="deptId">
+              <treeselect v-model="form.deptId" :options="deptOptions" multiple:false :show-count="true"
+                          placeholder="请选择部门" @select="hx" :noResultsText="'空'" :noOptionsText="'空'"/>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="24">
+          <el-col :span="24">
+            <el-form-item label="经营类别" prop="businessCategory">
+              <el-input v-model="form.businessCategory" type="textarea" placeholder="请输入内容"/>
+            </el-form-item>
+          </el-col>
+          <el-col :span="24">
+            <el-form-item label="经营区域" prop="operatingArea">
+              <el-input v-model="form.operatingArea" type="textarea" placeholder="请输入内容"/>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+    <el-dialog :title="titleLongitude" :visible.sync="showLongitude" append-to-body>
+      <el-input v-show="false" v-model="form.longitude" disabled></el-input>
+      <el-input v-show="false" v-model="form.latitude" disabled></el-input>
+      <supermap style="width: 100%;height: 500px;" :mapDiv="'landingMap'" :mapSite="{doubleClickZoom:false}"
+                :codes="['9fa5']" :isSideBySide="false" :showLatLng="showLatLng"></supermap>
+      <el-button type="primary" @click="showLongitude=false">确定</el-button>
+    </el-dialog>
+    <ISuperMap ref="ISuperMap" v-if="ISuperMapvisible" @send="send"/>
+  </div>
+</template>
+
+<script>
+import {
+  addEnterprise,
+  delEnterprise,
+  getEnterprise,
+  listEnterprise,
+  updateEnterprise
+} from "@/api/data/housingconstruction/enterprise";
+import deptselector from "@/views/components/deptselector.vue";
+import {treeselect} from "@/api/system/dept";
+import Treeselect from "@riophae/vue-treeselect";
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+import {checkLat, checkLon} from "@/api/rules/rules";
+import ISuperMap from "@/views/data/common/ISuperMap.vue";
+import supermap from "@/views/components/supermap.vue";
+import DataImageUpload from "@/components/ImageUpload/dataUpload.vue";
+
+export default {
+  name: "Enterprise",
+  components: {deptselector, Treeselect, supermap, ISuperMap,DataImageUpload},
+  data() {
+    return {
+      titleLongitude: '',
+      showLongitude: false,
+      ISuperMapvisible: false,
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 住建-企业信息表格数据
+      enterpriseList: [],
+      // 部门树选项
+      deptOptions: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        enterpriseName: null,
+        legalRepresentative: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+        enterpriseName: [
+          {required: true, message: "企业名称不能为空", trigger: "blur"}
+        ],
+        enterpriseAdministrativeArea: [
+          {required: true, message: "企业行政区域不能为空", trigger: "blur"}
+        ],
+        legalRepresentative: [
+          {required: true, message: "法人代表不能为空", trigger: "blur"}
+        ],
+        registeredAddress: [
+          {required: true, message: "登记注册地址不能为空", trigger: "blur"}
+        ],
+        businessCategory: [
+          {required: true, message: "经营类别不能为空", trigger: "blur"}
+        ],
+        operatingArea: [
+          {required: true, message: "经营区域不能为空", trigger: "blur"}
+        ],
+        issuingTime: [
+          {required: true, message: "发证时间不能为空", trigger: "blur"}
+        ],
+        licensePeriodStart: [
+          {required: true, message: "许可期限开始时间不能为空", trigger: "blur"}
+        ],
+        licensePeriodEnd: [
+          {required: true, message: "许可期限结束时间不能为空", trigger: "blur"}
+        ],
+        issuingAuthority: [
+          {required: true, message: "发证机关不能为空", trigger: "blur"}
+        ],
+        longitude: [
+          {required: true, message: '经度不能为空', trigger: ['change', 'blur']},
+          {validator: checkLon, trigger: 'blur'}
+        ],
+        latitude: [
+          {required: true, message: '纬度不能为空', trigger: ['change', 'blur']},
+          {validator: checkLat, trigger: 'blur'}
+        ],
+      }
+    };
+  },
+  created() {
+    this.getList();
+    this.getTreeselect();
+  },
+  methods: {
+    showLatLng: function (lat, lng) {
+      this.form.latitude = lat
+      this.form.longitude = lng
+    },
+    send(val) {
+      if (val === true) {
+        this.ISuperMapvisible = false;
+        return;
+      }
+      if (this.sign === 1) {
+        this.form.longitude = val.longitude;
+        this.form.latitude = val.latitude;
+      }
+      if (this.sign === 2 || this.sign === 3) this.form.longitude = val.xiantude;//this.form.longitude 换成对应的线或区域的字段
+      this.ISuperMapvisible = false
+    },
+    /** 查询部门下拉树结构 */
+    getTreeselect() {
+      treeselect().then(response => {
+        this.deptOptions = response.data;
+      });
+    },
+    hx(node) {
+      this.form.dataDeptId = node.id
+      this.form.deptId = node.id
+      this.form.deptName = node.label
+      this.$refs.form.validateField("deptId")
+    },
+    showMap() {
+      this.ISuperMapvisible = true;
+      this.$nextTick(() => {
+        this.$refs.ISuperMap.init(this.sign, {
+          id: this.form.id,
+          longitude: this.form.longitude,
+          latitude: this.form.latitude,
+          xiantude: this.form.longitude//this.form.longitude换成每个页面对应线或者面对应的字段
+        })
+      })
+    },
+    /** 查询住建-企业信息列表 */
+    getList() {
+      this.loading = true;
+      listEnterprise(this.queryParams).then(response => {
+        this.enterpriseList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        enterpriseName: null,
+        enterpriseAdministrativeArea: null,
+        legalRepresentative: null,
+        registeredAddress: null,
+        businessCategory: null,
+        operatingArea: null,
+        issuingTime: null,
+        licensePeriodStart: null,
+        licensePeriodEnd: null,
+        issuingAuthority: null,
+        longitude: null,
+        latitude: null,
+        createTime: null,
+        createBy: null,
+        createName: null,
+        updateTime: null,
+        updateBy: null,
+        updateName: null,
+        deptId: null,
+        deptName: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length !== 1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加住建-企业信息";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getEnterprise(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改住建-企业信息";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateEnterprise(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addEnterprise(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除选中的数据项?').then(function () {
+        return delEnterprise(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {
+      });
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('Housingconstruction/enterprise/export', {
+        ...this.queryParams
+      }, `企业信息_${new Date().getTime()}.xlsx`)
+    }
+  }
+};
+</script>

+ 97 - 0
src/main/java/com/sooka/sponest/data/housingconstruction/controller/CenterdataTHousingconstructionEnterpriseController.java

@@ -0,0 +1,97 @@
+package com.sooka.sponest.data.housingconstruction.controller;
+
+import com.ruoyi.common.core.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.web.controller.BaseController;
+import com.ruoyi.common.core.web.domain.AjaxResult;
+import com.ruoyi.common.core.web.page.TableDataInfo;
+import com.ruoyi.common.log.annotation.Log;
+import com.ruoyi.common.log.enums.BusinessType;
+import com.ruoyi.common.security.annotation.RequiresPermissions;
+import com.sooka.sponest.data.housingconstruction.domain.CenterdataTHousingconstructionEnterprise;
+import com.sooka.sponest.data.housingconstruction.service.ICenterdataTHousingconstructionEnterpriseService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+
+/**
+ * 住建-企业信息Controller
+ *
+ * @author LG
+ * @date 2024-07-29
+ */
+@RestController
+@RequestMapping("/housingconstruction/enterprise")
+public class CenterdataTHousingconstructionEnterpriseController extends BaseController {
+    @Autowired
+    private ICenterdataTHousingconstructionEnterpriseService centerdataTHousingconstructionEnterpriseService;
+
+    /**
+     * 查询住建-企业信息列表
+     */
+    @RequiresPermissions("Housingconstruction:enterprise:list")
+    @GetMapping("/list")
+    public TableDataInfo list(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise) {
+        startPage();
+        List<CenterdataTHousingconstructionEnterprise> list = centerdataTHousingconstructionEnterpriseService.selectCenterdataTHousingconstructionEnterpriseList(centerdataTHousingconstructionEnterprise);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出住建-企业信息列表
+     */
+    @RequiresPermissions("Housingconstruction:enterprise:export")
+    @Log(title = "住建-企业信息", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise) {
+        List<CenterdataTHousingconstructionEnterprise> list = centerdataTHousingconstructionEnterpriseService.selectCenterdataTHousingconstructionEnterpriseList(centerdataTHousingconstructionEnterprise);
+        ExcelUtil<CenterdataTHousingconstructionEnterprise> util = new ExcelUtil<CenterdataTHousingconstructionEnterprise>(CenterdataTHousingconstructionEnterprise.class);
+        util.exportExcel(response, list, "住建-企业信息数据");
+    }
+
+    /**
+     * 获取住建-企业信息详细信息
+     */
+    @RequiresPermissions("Housingconstruction:enterprise:query")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id) {
+        return AjaxResult.success(centerdataTHousingconstructionEnterpriseService.selectCenterdataTHousingconstructionEnterpriseById(id));
+    }
+
+    /**
+     * 新增住建-企业信息
+     */
+    @RequiresPermissions("Housingconstruction:enterprise:add")
+    @Log(title = "住建-企业信息", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise) {
+        return toAjax(centerdataTHousingconstructionEnterpriseService.insertCenterdataTHousingconstructionEnterprise(centerdataTHousingconstructionEnterprise));
+    }
+
+    /**
+     * 修改住建-企业信息
+     */
+    @RequiresPermissions("Housingconstruction:enterprise:edit")
+    @Log(title = "住建-企业信息", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise) {
+        return toAjax(centerdataTHousingconstructionEnterpriseService.updateCenterdataTHousingconstructionEnterprise(centerdataTHousingconstructionEnterprise));
+    }
+
+    /**
+     * 删除住建-企业信息
+     */
+    @RequiresPermissions("Housingconstruction:enterprise:remove")
+    @Log(title = "住建-企业信息", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids) {
+        return toAjax(centerdataTHousingconstructionEnterpriseService.deleteCenterdataTHousingconstructionEnterpriseByIds(ids));
+    }
+
+    @GetMapping("/getListAll")
+    public AjaxResult getListAll(CenterdataTHousingconstructionEnterprise vo){
+        List<CenterdataTHousingconstructionEnterprise> dataList = centerdataTHousingconstructionEnterpriseService.getListAll(vo);
+        return AjaxResult.success(dataList);
+    }
+}

+ 149 - 0
src/main/java/com/sooka/sponest/data/housingconstruction/domain/CenterdataTHousingconstructionEnterprise.java

@@ -0,0 +1,149 @@
+package com.sooka.sponest.data.housingconstruction.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.common.core.annotation.Excel;
+import com.ruoyi.common.core.web.domain.BaseEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+import java.util.Date;
+
+/**
+ * 住建-企业信息对象 centerdata_t_housingconstruction_enterprise
+ *
+ * @author LG
+ * @date 2024-07-29
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class CenterdataTHousingconstructionEnterprise extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 企业id
+     */
+    private String id;
+
+    /**
+     * 企业名称
+     */
+    @Excel(name = "企业名称")
+    private String enterpriseName;
+
+    /**
+     * 企业行政区域
+     */
+    @Excel(name = "企业行政区域")
+    private String enterpriseAdministrativeArea;
+
+    /**
+     * 法人代表
+     */
+    @Excel(name = "法人代表")
+    private String legalRepresentative;
+
+    /**
+     * 登记注册地址
+     */
+    @Excel(name = "登记注册地址")
+    private String registeredAddress;
+
+    /**
+     * 经营类别
+     */
+    @Excel(name = "经营类别")
+    private String businessCategory;
+
+    /**
+     * 经营区域
+     */
+    @Excel(name = "经营区域")
+    private String operatingArea;
+
+    /**
+     * 发证时间
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "发证时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date issuingTime;
+
+    /**
+     * 许可期限开始时间
+     */
+    @Excel(name = "许可期限开始时间")
+    private String licensePeriodStart;
+
+    /**
+     * 许可期限结束时间
+     */
+    @Excel(name = "许可期限结束时间")
+    private String licensePeriodEnd;
+
+    /**
+     * 发证机关
+     */
+    @Excel(name = "发证机关")
+    private String issuingAuthority;
+
+    /**
+     * 经度
+     */
+    @Excel(name = "经度")
+    private String longitude;
+
+    /**
+     * 纬度
+     */
+    @Excel(name = "纬度")
+    private String latitude;
+
+    /**
+     * 创建人
+     */
+    private String createName;
+
+    /**
+     * 修改人
+     */
+    private String updateName;
+
+    /**
+     * 所属部门
+     */
+    private Long deptId;
+
+    /**
+     * 部门名称
+     */
+    private String deptName;
+
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("enterpriseName", getEnterpriseName())
+                .append("enterpriseAdministrativeArea", getEnterpriseAdministrativeArea())
+                .append("legalRepresentative", getLegalRepresentative())
+                .append("registeredAddress", getRegisteredAddress())
+                .append("businessCategory", getBusinessCategory())
+                .append("operatingArea", getOperatingArea())
+                .append("issuingTime", getIssuingTime())
+                .append("licensePeriodStart", getLicensePeriodStart())
+                .append("licensePeriodEnd", getLicensePeriodEnd())
+                .append("issuingAuthority", getIssuingAuthority())
+                .append("longitude", getLongitude())
+                .append("latitude", getLatitude())
+                .append("createTime", getCreateTime())
+                .append("createBy", getCreateBy())
+                .append("createName", getCreateName())
+                .append("updateTime", getUpdateTime())
+                .append("updateBy", getUpdateBy())
+                .append("updateName", getUpdateName())
+                .append("deptId", getDeptId())
+                .append("deptName", getDeptName())
+                .toString();
+    }
+}

+ 64 - 0
src/main/java/com/sooka/sponest/data/housingconstruction/mapper/CenterdataTHousingconstructionEnterpriseMapper.java

@@ -0,0 +1,64 @@
+package com.sooka.sponest.data.housingconstruction.mapper;
+
+import com.sooka.sponest.data.housingconstruction.domain.CenterdataTHousingconstructionEnterprise;
+
+import java.util.List;
+
+/**
+ * 住建-企业信息Mapper接口
+ *
+ * @author LG
+ * @date 2024-07-29
+ */
+public interface CenterdataTHousingconstructionEnterpriseMapper
+{
+    /**
+     * 查询住建-企业信息
+     *
+     * @param id 住建-企业信息主键
+     * @return 住建-企业信息
+     */
+    public CenterdataTHousingconstructionEnterprise selectCenterdataTHousingconstructionEnterpriseById(String id);
+
+    /**
+     * 查询住建-企业信息列表
+     *
+     * @param centerdataTHousingconstructionEnterprise 住建-企业信息
+     * @return 住建-企业信息集合
+     */
+    public List<CenterdataTHousingconstructionEnterprise> selectCenterdataTHousingconstructionEnterpriseList(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise);
+
+    /**
+     * 新增住建-企业信息
+     *
+     * @param centerdataTHousingconstructionEnterprise 住建-企业信息
+     * @return 结果
+     */
+    public int insertCenterdataTHousingconstructionEnterprise(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise);
+
+    /**
+     * 修改住建-企业信息
+     *
+     * @param centerdataTHousingconstructionEnterprise 住建-企业信息
+     * @return 结果
+     */
+    public int updateCenterdataTHousingconstructionEnterprise(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise);
+
+    /**
+     * 删除住建-企业信息
+     *
+     * @param id 住建-企业信息主键
+     * @return 结果
+     */
+    public int deleteCenterdataTHousingconstructionEnterpriseById(String id);
+
+    /**
+     * 批量删除住建-企业信息
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteCenterdataTHousingconstructionEnterpriseByIds(String[] ids);
+
+    List<CenterdataTHousingconstructionEnterprise> getListAll(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise);
+}

+ 64 - 0
src/main/java/com/sooka/sponest/data/housingconstruction/service/ICenterdataTHousingconstructionEnterpriseService.java

@@ -0,0 +1,64 @@
+package com.sooka.sponest.data.housingconstruction.service;
+
+import com.sooka.sponest.data.housingconstruction.domain.CenterdataTHousingconstructionEnterprise;
+
+import java.util.List;
+
+/**
+ * 住建-企业信息Service接口
+ *
+ * @author LG
+ * @date 2024-07-29
+ */
+public interface ICenterdataTHousingconstructionEnterpriseService
+{
+    /**
+     * 查询住建-企业信息
+     *
+     * @param id 住建-企业信息主键
+     * @return 住建-企业信息
+     */
+    public CenterdataTHousingconstructionEnterprise selectCenterdataTHousingconstructionEnterpriseById(String id);
+
+    /**
+     * 查询住建-企业信息列表
+     *
+     * @param centerdataTHousingconstructionEnterprise 住建-企业信息
+     * @return 住建-企业信息集合
+     */
+    public List<CenterdataTHousingconstructionEnterprise> selectCenterdataTHousingconstructionEnterpriseList(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise);
+
+    /**
+     * 新增住建-企业信息
+     *
+     * @param centerdataTHousingconstructionEnterprise 住建-企业信息
+     * @return 结果
+     */
+    public int insertCenterdataTHousingconstructionEnterprise(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise);
+
+    /**
+     * 修改住建-企业信息
+     *
+     * @param centerdataTHousingconstructionEnterprise 住建-企业信息
+     * @return 结果
+     */
+    public int updateCenterdataTHousingconstructionEnterprise(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise);
+
+    /**
+     * 批量删除住建-企业信息
+     *
+     * @param ids 需要删除的住建-企业信息主键集合
+     * @return 结果
+     */
+    public int deleteCenterdataTHousingconstructionEnterpriseByIds(String[] ids);
+
+    /**
+     * 删除住建-企业信息信息
+     *
+     * @param id 住建-企业信息主键
+     * @return 结果
+     */
+    public int deleteCenterdataTHousingconstructionEnterpriseById(String id);
+
+    List<CenterdataTHousingconstructionEnterprise> getListAll(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise);
+}

+ 100 - 0
src/main/java/com/sooka/sponest/data/housingconstruction/service/impl/CenterdataTHousingconstructionEnterpriseServiceImpl.java

@@ -0,0 +1,100 @@
+package com.sooka.sponest.data.housingconstruction.service.impl;
+
+import com.ruoyi.common.core.utils.DateUtils;
+import com.ruoyi.common.core.utils.uuid.IdUtils;
+import com.ruoyi.common.security.utils.SecurityUtils;
+import com.sooka.sponest.data.housingconstruction.domain.CenterdataTHousingconstructionEnterprise;
+import com.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionEnterpriseMapper;
+import com.sooka.sponest.data.housingconstruction.service.ICenterdataTHousingconstructionEnterpriseService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 住建-企业信息Service业务层处理
+ *
+ * @author LG
+ * @date 2024-07-29
+ */
+@Service
+public class CenterdataTHousingconstructionEnterpriseServiceImpl implements ICenterdataTHousingconstructionEnterpriseService {
+    @Autowired
+    private CenterdataTHousingconstructionEnterpriseMapper centerdataTHousingconstructionEnterpriseMapper;
+
+    /**
+     * 查询住建-企业信息
+     *
+     * @param id 住建-企业信息主键
+     * @return 住建-企业信息
+     */
+    @Override
+    public CenterdataTHousingconstructionEnterprise selectCenterdataTHousingconstructionEnterpriseById(String id) {
+        return centerdataTHousingconstructionEnterpriseMapper.selectCenterdataTHousingconstructionEnterpriseById(id);
+    }
+
+    /**
+     * 查询住建-企业信息列表
+     *
+     * @param centerdataTHousingconstructionEnterprise 住建-企业信息
+     * @return 住建-企业信息
+     */
+    @Override
+    public List<CenterdataTHousingconstructionEnterprise> selectCenterdataTHousingconstructionEnterpriseList(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise) {
+        return centerdataTHousingconstructionEnterpriseMapper.selectCenterdataTHousingconstructionEnterpriseList(centerdataTHousingconstructionEnterprise);
+    }
+
+    /**
+     * 新增住建-企业信息
+     *
+     * @param centerdataTHousingconstructionEnterprise 住建-企业信息
+     * @return 结果
+     */
+    @Override
+    public int insertCenterdataTHousingconstructionEnterprise(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise) {
+        centerdataTHousingconstructionEnterprise.setId(IdUtils.fastUUID());
+        centerdataTHousingconstructionEnterprise.setCreateTime(DateUtils.getNowDate());
+        centerdataTHousingconstructionEnterprise.setCreateBy(SecurityUtils.getUserId().toString());
+        centerdataTHousingconstructionEnterprise.setCreateName(SecurityUtils.getLoginUser().getSysUser().getNickName());
+        return centerdataTHousingconstructionEnterpriseMapper.insertCenterdataTHousingconstructionEnterprise(centerdataTHousingconstructionEnterprise);
+    }
+
+    /**
+     * 修改住建-企业信息
+     *
+     * @param centerdataTHousingconstructionEnterprise 住建-企业信息
+     * @return 结果
+     */
+    @Override
+    public int updateCenterdataTHousingconstructionEnterprise(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise) {
+        centerdataTHousingconstructionEnterprise.setUpdateTime(DateUtils.getNowDate());
+        return centerdataTHousingconstructionEnterpriseMapper.updateCenterdataTHousingconstructionEnterprise(centerdataTHousingconstructionEnterprise);
+    }
+
+    /**
+     * 批量删除住建-企业信息
+     *
+     * @param ids 需要删除的住建-企业信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCenterdataTHousingconstructionEnterpriseByIds(String[] ids) {
+        return centerdataTHousingconstructionEnterpriseMapper.deleteCenterdataTHousingconstructionEnterpriseByIds(ids);
+    }
+
+    /**
+     * 删除住建-企业信息信息
+     *
+     * @param id 住建-企业信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCenterdataTHousingconstructionEnterpriseById(String id) {
+        return centerdataTHousingconstructionEnterpriseMapper.deleteCenterdataTHousingconstructionEnterpriseById(id);
+    }
+
+    @Override
+    public List<CenterdataTHousingconstructionEnterprise> getListAll(CenterdataTHousingconstructionEnterprise centerdataTHousingconstructionEnterprise) {
+        return centerdataTHousingconstructionEnterpriseMapper.getListAll(centerdataTHousingconstructionEnterprise);
+    }
+}

+ 149 - 0
src/main/resources/mapper/housingconstruction/CenterdataTHousingconstructionEnterpriseMapper.xml

@@ -0,0 +1,149 @@
+<?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.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionEnterpriseMapper">
+    
+    <resultMap type="CenterdataTHousingconstructionEnterprise" id="CenterdataTHousingconstructionEnterpriseResult">
+        <result property="id"    column="id"    />
+        <result property="enterpriseName"    column="enterprise_name"    />
+        <result property="enterpriseAdministrativeArea"    column="enterprise_administrative_area"    />
+        <result property="legalRepresentative"    column="legal_representative"    />
+        <result property="registeredAddress"    column="registered_address"    />
+        <result property="businessCategory"    column="business_category"    />
+        <result property="operatingArea"    column="operating_area"    />
+        <result property="issuingTime"    column="issuing_time"    />
+        <result property="licensePeriodStart"    column="license_period_start"    />
+        <result property="licensePeriodEnd"    column="license_period_end"    />
+        <result property="issuingAuthority"    column="issuing_authority"    />
+        <result property="longitude"    column="longitude"    />
+        <result property="latitude"    column="latitude"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createName"    column="create_name"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateName"    column="update_name"    />
+        <result property="deptId"    column="dept_id"    />
+        <result property="deptName"    column="dept_name"    />
+    </resultMap>
+
+    <sql id="selectCenterdataTHousingconstructionEnterpriseVo">
+        select id, enterprise_name, enterprise_administrative_area, legal_representative, registered_address, business_category, operating_area, issuing_time, license_period_start, license_period_end, issuing_authority, longitude, latitude, create_time, create_by, create_name, update_time, update_by, update_name, dept_id, dept_name from centerdata_t_housingconstruction_enterprise
+    </sql>
+
+    <select id="selectCenterdataTHousingconstructionEnterpriseList" parameterType="CenterdataTHousingconstructionEnterprise" resultMap="CenterdataTHousingconstructionEnterpriseResult">
+        <include refid="selectCenterdataTHousingconstructionEnterpriseVo"/>
+        <where>  
+            <if test="enterpriseName != null  and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
+            <if test="enterpriseAdministrativeArea != null  and enterpriseAdministrativeArea != ''"> and enterprise_administrative_area = #{enterpriseAdministrativeArea}</if>
+            <if test="legalRepresentative != null  and legalRepresentative != ''"> and legal_representative = #{legalRepresentative}</if>
+            <if test="registeredAddress != null  and registeredAddress != ''"> and registered_address = #{registeredAddress}</if>
+            <if test="businessCategory != null  and businessCategory != ''"> and business_category = #{businessCategory}</if>
+            <if test="operatingArea != null  and operatingArea != ''"> and operating_area = #{operatingArea}</if>
+            <if test="issuingTime != null "> and issuing_time = #{issuingTime}</if>
+            <if test="licensePeriodStart != null  and licensePeriodStart != ''"> and license_period_start = #{licensePeriodStart}</if>
+            <if test="licensePeriodEnd != null  and licensePeriodEnd != ''"> and license_period_end = #{licensePeriodEnd}</if>
+            <if test="issuingAuthority != null  and issuingAuthority != ''"> and issuing_authority = #{issuingAuthority}</if>
+            <if test="longitude != null  and longitude != ''"> and longitude = #{longitude}</if>
+            <if test="latitude != null  and latitude != ''"> and latitude = #{latitude}</if>
+        </where>
+    </select>
+    
+    <select id="selectCenterdataTHousingconstructionEnterpriseById" parameterType="String" resultMap="CenterdataTHousingconstructionEnterpriseResult">
+        <include refid="selectCenterdataTHousingconstructionEnterpriseVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertCenterdataTHousingconstructionEnterprise" parameterType="CenterdataTHousingconstructionEnterprise">
+        insert into centerdata_t_housingconstruction_enterprise
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="enterpriseName != null and enterpriseName != ''">enterprise_name,</if>
+            <if test="enterpriseAdministrativeArea != null and enterpriseAdministrativeArea != ''">enterprise_administrative_area,</if>
+            <if test="legalRepresentative != null and legalRepresentative != ''">legal_representative,</if>
+            <if test="registeredAddress != null and registeredAddress != ''">registered_address,</if>
+            <if test="businessCategory != null and businessCategory != ''">business_category,</if>
+            <if test="operatingArea != null and operatingArea != ''">operating_area,</if>
+            <if test="issuingTime != null">issuing_time,</if>
+            <if test="licensePeriodStart != null and licensePeriodStart != ''">license_period_start,</if>
+            <if test="licensePeriodEnd != null and licensePeriodEnd != ''">license_period_end,</if>
+            <if test="issuingAuthority != null and issuingAuthority != ''">issuing_authority,</if>
+            <if test="longitude != null and longitude != ''">longitude,</if>
+            <if test="latitude != null and latitude != ''">latitude,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createName != null">create_name,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateName != null">update_name,</if>
+            <if test="deptId != null">dept_id,</if>
+            <if test="deptName != null">dept_name,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="enterpriseName != null and enterpriseName != ''">#{enterpriseName},</if>
+            <if test="enterpriseAdministrativeArea != null and enterpriseAdministrativeArea != ''">#{enterpriseAdministrativeArea},</if>
+            <if test="legalRepresentative != null and legalRepresentative != ''">#{legalRepresentative},</if>
+            <if test="registeredAddress != null and registeredAddress != ''">#{registeredAddress},</if>
+            <if test="businessCategory != null and businessCategory != ''">#{businessCategory},</if>
+            <if test="operatingArea != null and operatingArea != ''">#{operatingArea},</if>
+            <if test="issuingTime != null">#{issuingTime},</if>
+            <if test="licensePeriodStart != null and licensePeriodStart != ''">#{licensePeriodStart},</if>
+            <if test="licensePeriodEnd != null and licensePeriodEnd != ''">#{licensePeriodEnd},</if>
+            <if test="issuingAuthority != null and issuingAuthority != ''">#{issuingAuthority},</if>
+            <if test="longitude != null and longitude != ''">#{longitude},</if>
+            <if test="latitude != null and latitude != ''">#{latitude},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createName != null">#{createName},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateName != null">#{updateName},</if>
+            <if test="deptId != null">#{deptId},</if>
+            <if test="deptName != null">#{deptName},</if>
+         </trim>
+    </insert>
+
+    <update id="updateCenterdataTHousingconstructionEnterprise" parameterType="CenterdataTHousingconstructionEnterprise">
+        update centerdata_t_housingconstruction_enterprise
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="enterpriseName != null and enterpriseName != ''">enterprise_name = #{enterpriseName},</if>
+            <if test="enterpriseAdministrativeArea != null and enterpriseAdministrativeArea != ''">enterprise_administrative_area = #{enterpriseAdministrativeArea},</if>
+            <if test="legalRepresentative != null and legalRepresentative != ''">legal_representative = #{legalRepresentative},</if>
+            <if test="registeredAddress != null and registeredAddress != ''">registered_address = #{registeredAddress},</if>
+            <if test="businessCategory != null and businessCategory != ''">business_category = #{businessCategory},</if>
+            <if test="operatingArea != null and operatingArea != ''">operating_area = #{operatingArea},</if>
+            <if test="issuingTime != null">issuing_time = #{issuingTime},</if>
+            <if test="licensePeriodStart != null and licensePeriodStart != ''">license_period_start = #{licensePeriodStart},</if>
+            <if test="licensePeriodEnd != null and licensePeriodEnd != ''">license_period_end = #{licensePeriodEnd},</if>
+            <if test="issuingAuthority != null and issuingAuthority != ''">issuing_authority = #{issuingAuthority},</if>
+            <if test="longitude != null and longitude != ''">longitude = #{longitude},</if>
+            <if test="latitude != null and latitude != ''">latitude = #{latitude},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createName != null">create_name = #{createName},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateName != null">update_name = #{updateName},</if>
+            <if test="deptId != null">dept_id = #{deptId},</if>
+            <if test="deptName != null">dept_name = #{deptName},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteCenterdataTHousingconstructionEnterpriseById" parameterType="String">
+        delete from centerdata_t_housingconstruction_enterprise where id = #{id}
+    </delete>
+
+    <delete id="deleteCenterdataTHousingconstructionEnterpriseByIds" parameterType="String">
+        delete from centerdata_t_housingconstruction_enterprise where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+    <select id="getListAll" parameterType="CenterdataTHousingconstructionEnterprise" resultMap="CenterdataTHousingconstructionEnterpriseResult">
+        select * from centerdata_t_housingconstruction_enterprise
+    </select>
+</mapper>