zhangtao
dongdingding 1 year ago
parent 7461aecd2e
commit 242a1e2dc9

@ -1,112 +1,112 @@
package com.ruoyi.programManagement.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.programManagement.entity.BAdministrative;
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
import com.ruoyi.programManagement.service.IBAdministrativeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
/**
* Controller
*
* @author ruoyi
* @date 2023-09-11
*/
@Api(tags = "行政区划")
@Transactional(rollbackFor = Exception.class)
@RestController
@RequestMapping("/pharmaceuticals/administrative")
public class BAdministrativeController extends BaseController {
@Autowired
private IBAdministrativeService bAdministrativeService;
/**
*
*/
@GetMapping("/list")
public TableDataInfo list(BAdministrative bAdministrative) {
startPage();
List<BAdministrative> list = bAdministrativeService.selectBAdministrativeList(bAdministrative);
return getDataTable(list);
}
/**
*
*/
@PostMapping("/export")
public void export(HttpServletResponse response, BAdministrative bAdministrative) {
List<BAdministrative> list = bAdministrativeService.selectBAdministrativeList(bAdministrative);
ExcelUtil<BAdministrative> util = new ExcelUtil<BAdministrative>(BAdministrative.class);
util.exportExcel(response, list, "行政区划数据");
}
/**
*
*/
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(bAdministrativeService.selectBAdministrativeById(id));
}
/**
*
*/
@PostMapping
public AjaxResult add(@RequestBody BAdministrative bAdministrative) {
return toAjax(bAdministrativeService.insertBAdministrative(bAdministrative));
}
/**
*
*/
@PutMapping
public AjaxResult edit(@RequestBody BAdministrative bAdministrative) {
return toAjax(bAdministrativeService.updateBAdministrative(bAdministrative));
}
/**
*
*/
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bAdministrativeService.deleteBAdministrativeByIds(ids));
}
/**
*
*/
@ApiOperation(value = "行政区划树结构")
@GetMapping("/tree")
public AjaxResult tree() {
List<BAdministrativeTreeRequest> list = bAdministrativeService.selectBAdministrativeTreeRequestList();
List<BAdministrativeTreeRequest> listsub = bAdministrativeService.selectcascadingSelectDataList();
List<BAdministrativeTreeRequest> cascadingSelectData = new ArrayList<>();
for (BAdministrativeTreeRequest item1 : list) {
BAdministrativeTreeRequest parentDto = new BAdministrativeTreeRequest(item1.getCounty(), item1.getSubdistrict(), item1.getInstitutionName());
for (BAdministrativeTreeRequest item2 : listsub) {
if (item2.getSubdistrict()!=null && !item2.getSubdistrict().equals("")){
if (item2.getSubdistrict().substring(0, 7).equals(item1.getCounty().substring(0, 7))) {
BAdministrativeTreeRequest childDto = new BAdministrativeTreeRequest(item2.getCounty(), item2.getSubdistrict(), item2.getInstitutionName());
parentDto.addChild(childDto);
}
}
}
cascadingSelectData.add(parentDto);
}
return success(cascadingSelectData);
}
}
//package com.ruoyi.programManagement.controller;
//
//import com.ruoyi.common.core.controller.BaseController;
//import com.ruoyi.common.core.domain.AjaxResult;
//import com.ruoyi.common.core.page.TableDataInfo;
//import com.ruoyi.common.utils.StringUtils;
//import com.ruoyi.common.utils.poi.ExcelUtil;
//import com.ruoyi.programManagement.entity.BAdministrative;
//import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
//import com.ruoyi.programManagement.service.IBAdministrativeService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.transaction.annotation.Transactional;
//import org.springframework.web.bind.annotation.*;
//
//import javax.servlet.http.HttpServletResponse;
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * 行政区划Controller
// *
// * @author ruoyi
// * @date 2023-09-11
// */
//@Api(tags = "行政区划")
//@Transactional(rollbackFor = Exception.class)
//@RestController
//@RequestMapping("/pharmaceuticals/administrative")
//public class BAdministrativeController extends BaseController {
// @Autowired
// private IBAdministrativeService bAdministrativeService;
//
// /**
// * 查询行政区划列表
// */
// @GetMapping("/list")
// public TableDataInfo list(BAdministrative bAdministrative) {
// startPage();
// List<BAdministrative> list = bAdministrativeService.selectBAdministrativeList(bAdministrative);
// return getDataTable(list);
// }
//
// /**
// * 导出行政区划列表
// */
// @PostMapping("/export")
// public void export(HttpServletResponse response, BAdministrative bAdministrative) {
// List<BAdministrative> list = bAdministrativeService.selectBAdministrativeList(bAdministrative);
// ExcelUtil<BAdministrative> util = new ExcelUtil<BAdministrative>(BAdministrative.class);
// util.exportExcel(response, list, "行政区划数据");
// }
//
// /**
// * 获取行政区划详细信息
// */
// @GetMapping(value = "/{id}")
// public AjaxResult getInfo(@PathVariable("id") Long id) {
// return success(bAdministrativeService.selectBAdministrativeById(id));
// }
//
// /**
// * 新增行政区划
// */
//
// @PostMapping
// public AjaxResult add(@RequestBody BAdministrative bAdministrative) {
// return toAjax(bAdministrativeService.insertBAdministrative(bAdministrative));
// }
//
// /**
// * 修改行政区划
// */
// @PutMapping
// public AjaxResult edit(@RequestBody BAdministrative bAdministrative) {
// return toAjax(bAdministrativeService.updateBAdministrative(bAdministrative));
// }
//
// /**
// * 删除行政区划
// */
// @DeleteMapping("/{ids}")
// public AjaxResult remove(@PathVariable Long[] ids) {
// return toAjax(bAdministrativeService.deleteBAdministrativeByIds(ids));
// }
//
// /**
// * 行政区划树结构
// */
// @ApiOperation(value = "行政区划树结构")
// @GetMapping("/tree")
// public AjaxResult tree() {
// List<BAdministrativeTreeRequest> list = bAdministrativeService.selectBAdministrativeTreeRequestList();
// List<BAdministrativeTreeRequest> listsub = bAdministrativeService.selectcascadingSelectDataList();
// List<BAdministrativeTreeRequest> cascadingSelectData = new ArrayList<>();
// for (BAdministrativeTreeRequest item1 : list) {
// BAdministrativeTreeRequest parentDto = new BAdministrativeTreeRequest(item1.getCounty(), item1.getSubdistrict(), item1.getInstitutionName());
// for (BAdministrativeTreeRequest item2 : listsub) {
// if (item2.getSubdistrict()!=null && !item2.getSubdistrict().equals("")){
// if (item2.getSubdistrict().substring(0, 7).equals(item1.getCounty().substring(0, 7))) {
// BAdministrativeTreeRequest childDto = new BAdministrativeTreeRequest(item2.getCounty(), item2.getSubdistrict(), item2.getInstitutionName());
// parentDto.addChild(childDto);
// }
// }
// }
// cascadingSelectData.add(parentDto);
// }
// return success(cascadingSelectData);
// }
//
//}

@ -0,0 +1,132 @@
package com.ruoyi.programManagement.controller;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.programManagement.entity.SzsAdministrativeDivision;
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.programManagement.service.ISzsAdministrativeDivisionService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* -_Controller
*
* @author ruoyi
* @date 2023-10-17
*/
@Api(tags = "省-工业企业风险评估上报系统_行政区划")
@RestController
@RequestMapping("/pharmaceuticals/division")
public class SzsAdministrativeDivisionController extends BaseController
{
@Autowired
private ISzsAdministrativeDivisionService szsAdministrativeDivisionService;
/**
* -_
*/
@GetMapping("/list")
public TableDataInfo list(SzsAdministrativeDivision szsAdministrativeDivision)
{
startPage();
List<SzsAdministrativeDivision> list = szsAdministrativeDivisionService.selectSzsAdministrativeDivisionList(szsAdministrativeDivision);
return getDataTable(list);
}
/**
* -_
*/
@PostMapping("/export")
public void export(HttpServletResponse response, SzsAdministrativeDivision szsAdministrativeDivision)
{
List<SzsAdministrativeDivision> list = szsAdministrativeDivisionService.selectSzsAdministrativeDivisionList(szsAdministrativeDivision);
ExcelUtil<SzsAdministrativeDivision> util = new ExcelUtil<SzsAdministrativeDivision>(SzsAdministrativeDivision.class);
util.exportExcel(response, list, "省-工业企业风险评估上报系统_行政区划字典数据");
}
/**
* -_
*/
@GetMapping(value = "/{ID}")
public AjaxResult getInfo(@PathVariable("ID") String ID)
{
return success(szsAdministrativeDivisionService.selectSzsAdministrativeDivisionByID(ID));
}
/**
* -_
*/
@PostMapping
public AjaxResult add(@RequestBody SzsAdministrativeDivision szsAdministrativeDivision)
{
return toAjax(szsAdministrativeDivisionService.insertSzsAdministrativeDivision(szsAdministrativeDivision));
}
/**
* -_
*/
@PutMapping
public AjaxResult edit(@RequestBody SzsAdministrativeDivision szsAdministrativeDivision)
{
return toAjax(szsAdministrativeDivisionService.updateSzsAdministrativeDivision(szsAdministrativeDivision));
}
/**
* -_
*/
@DeleteMapping("/{IDs}")
public AjaxResult remove(@PathVariable String[] IDs)
{
return toAjax(szsAdministrativeDivisionService.deleteSzsAdministrativeDivisionByIDs(IDs));
}
/**
*
*/
@ApiOperation(value = "行政区划树结构")
@GetMapping("/tree")
public AjaxResult tree() {
List<BAdministrativeTreeRequest> list = szsAdministrativeDivisionService.selectBAdministrativeTreeRequestList();
List<BAdministrativeTreeRequest> listsub = szsAdministrativeDivisionService.selectcascadingSelectDataList();
List<BAdministrativeTreeRequest> cascadingSelectData = new ArrayList<>();
for (BAdministrativeTreeRequest item1 : list) {
BAdministrativeTreeRequest parentDto = new BAdministrativeTreeRequest(item1.getCounty(), item1.getSubdistrict(), item1.getInstitutionName());
for (BAdministrativeTreeRequest item2 : listsub) {
if (item2.getCounty()!=null && !item2.getCounty().equals("")){
if (item2.getCounty().equals(item1.getSubdistrict())) {
BAdministrativeTreeRequest childDto = new BAdministrativeTreeRequest(item2.getCounty(), item2.getSubdistrict(), item2.getInstitutionName());
parentDto.addChild(childDto);
}
}
}
cascadingSelectData.add(parentDto);
}
return success(cascadingSelectData);
}
}

@ -0,0 +1,105 @@
package com.ruoyi.programManagement.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.programManagement.entity.SzsEnterpriseInformation;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.programManagement.service.ISzsEnterpriseInformationService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* -Controller
*
* @author ruoyi
* @date 2023-10-17
*/
@Api(tags = "省-企业基本信息")
@RestController
@RequestMapping("/pharmaceuticals/information")
public class SzsEnterpriseInformationController extends BaseController
{
@Autowired
private ISzsEnterpriseInformationService szsEnterpriseInformationService;
/**
* -
*/
@ApiOperation("查询省-企业基本信息列表")
@GetMapping("/list")
public TableDataInfo list(SzsEnterpriseInformation szsEnterpriseInformation)
{
startPage();
List<SzsEnterpriseInformation> list = szsEnterpriseInformationService.selectSzsEnterpriseInformationList(szsEnterpriseInformation);
return getDataTable(list);
}
/**
* -
*/
@PostMapping("/export")
public void export(HttpServletResponse response, SzsEnterpriseInformation szsEnterpriseInformation)
{
List<SzsEnterpriseInformation> list = szsEnterpriseInformationService.selectSzsEnterpriseInformationList(szsEnterpriseInformation);
ExcelUtil<SzsEnterpriseInformation> util = new ExcelUtil<SzsEnterpriseInformation>(SzsEnterpriseInformation.class);
util.exportExcel(response, list, "省-企业基本信息数据");
}
/**
* -
*/
@GetMapping(value = "/{ID}")
public AjaxResult getInfo(@PathVariable("ID") String ID)
{
return success(szsEnterpriseInformationService.selectSzsEnterpriseInformationByID(ID));
}
/**
* -
*/
@PostMapping
public AjaxResult add(@RequestBody SzsEnterpriseInformation szsEnterpriseInformation)
{
return toAjax(szsEnterpriseInformationService.insertSzsEnterpriseInformation(szsEnterpriseInformation));
}
/**
* -
*/
@PutMapping
public AjaxResult edit(@RequestBody SzsEnterpriseInformation szsEnterpriseInformation)
{
return toAjax(szsEnterpriseInformationService.updateSzsEnterpriseInformation(szsEnterpriseInformation));
}
/**
* -
*/
@DeleteMapping("/{IDs}")
public AjaxResult remove(@PathVariable String[] IDs)
{
return toAjax(szsEnterpriseInformationService.deleteSzsEnterpriseInformationByIDs(IDs));
}
}

@ -0,0 +1,84 @@
package com.ruoyi.programManagement.entity;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
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;
/**
* -_ szs_administrative_division
*
* @author ruoyi
* @date 2023-10-17
*/
@Data
@ApiModel("省-工业企业风险评估上报系统_行政区划")
public class SzsAdministrativeDivision extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Date jhptUpdateTime;
/** 纬度 */
@Excel(name = "纬度")
private String LATITUDE;
/** 区划名称 */
@Excel(name = "区划名称")
private String districtName;
/** 1省级2地市级以此类推 */
@Excel(name = "1省级2地市级以此类推")
private String distLevel;
/** 全称 */
@Excel(name = "全称")
private String fullName;
/** 区划编码 */
@Excel(name = "区划编码")
private String districtCode;
/** 上级编码 */
@Excel(name = "上级编码")
private String parentCode;
/** 简称 */
@Excel(name = "简称")
private String shortName;
/** 主键ID */
private String ID;
/** 区划编码排序 */
@Excel(name = "区划编码排序")
private String districtCodeSort;
/** 经度 */
@Excel(name = "经度")
private Long LONGITUDE;
/** 创建人 */
@Excel(name = "创建人")
private String CREATER;
/** 修改人 */
@Excel(name = "修改人")
private String UPDATER;
/** 拼写 */
@Excel(name = "拼写")
private String SPELLING;
/** 删除标识 */
@Excel(name = "删除标识")
private String isDelete;
}

@ -0,0 +1,404 @@
package com.ruoyi.programManagement.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* - szs_enterprise_information
*
* @author ruoyi
* @date 2023-10-17
*/
@Data
@ApiModel("省-企业基本信息对象")
public class SzsEnterpriseInformation extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Date jhptUpdateTime;
/**
*
*/
@Excel(name = "法人移动电话")
@ApiModelProperty("法人移动电话")
private String legalPersonCellphone;
/**
*
*/
@Excel(name = "国民经济中类")
@ApiModelProperty("国民经济中类")
private String indusTypeMiddle;
/**
*
*/
@Excel(name = "法人类型")
@ApiModelProperty("法人类型")
private String legalPersonType;
/**
*
*/
@Excel(name = "国民经济大类")
@ApiModelProperty("国民经济大类")
private String indusTypeLagre;
/**
*
*/
@Excel(name = "行业监管大类")
@ApiModelProperty("行业监管大类")
private String supervisionLarge;
/**
*
*/
@Excel(name = "所在市")
@ApiModelProperty("所在市")
private String CITY;
/**
*
*/
@Excel(name = "生产经营地址")
@ApiModelProperty("生产经营地址")
private String businessAddress;
/**
*
*/
@ApiModelProperty("所在县(市、区)")
@Excel(name = "所在县", readConverterExp = "市=、区")
private String COUNTY;
/**
* id
*/
@Excel(name = "报告历史id")
@ApiModelProperty("报告历史id")
private String reportHistoryId;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty("登记时间")
@Excel(name = "登记时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date registerTime;
/**
*
*/
@Excel(name = "办公地址")
@ApiModelProperty("办公地址")
private String enterpriseAddress;
/**
*
*/
@Excel(name = "所在省")
@ApiModelProperty("所在省")
private String PROVINCE;
/**
*
*/
@Excel(name = "申请人联系方式")
@ApiModelProperty("申请人联系方式")
private String SQRLXFS;
/**
*
*/
@Excel(name = "申请人")
@ApiModelProperty("申请人")
private String SQR;
/**
*
*/
@ApiModelProperty("有效期止")
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "有效期止", width = 30, dateFormat = "yyyy-MM-dd")
private Date termEnd;
/**
* ID
*/
@ApiModelProperty("主键ID")
private String ID;
/**
*
*/
@Excel(name = "所在村", readConverterExp = "社=区")
@ApiModelProperty("所在村(社区)")
private String VILLAGE;
/**
*
*/
@Excel(name = "法人职务")
@ApiModelProperty("法人职务")
private String legalPersonPost;
/**
*
*/
@Excel(name = "法定代表人")
@ApiModelProperty("法定代表人")
private String legalPerson;
/**
*
*/
@Excel(name = "企业类型")
@ApiModelProperty("企业类型")
private String zjEconKind;
/**
*
*/
@Excel(name = "登记状态")
@ApiModelProperty("登记状态")
private String corpStatus;
/**
*
*/
@Excel(name = "统一社会信用代码")
@ApiModelProperty("统一社会信用代码")
private String uuitNo;
/**
*
*/
@Excel(name = "行业监管小类")
@ApiModelProperty("行业监管小类")
private String supervisionSmall;
/**
*
*/
@Excel(name = "注册地址")
@ApiModelProperty("注册地址")
private String rigisterAddress;
/**
*
*/
@Excel(name = "是否上报风险报告")
@ApiModelProperty("是否上报风险报告")
private String riskReport;
/**
*
*/
@Excel(name = "国民经济小类")
@ApiModelProperty("国民经济小类")
private String indusTypeSmall;
/**
*
*/
@Excel(name = "删除标识")
@ApiModelProperty("删除标识")
private String isDelete;
/**
*
*/
@Excel(name = "经营范围")
@ApiModelProperty("经营范围")
private String businessScope;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty("成立时间")
@Excel(name = "成立时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date startTime;
/**
*
*/
@ApiModelProperty("法人固定电话")
@Excel(name = "法人固定电话")
private String legalPersonTel;
/**
*
*/
@Excel(name = "国民经济门类")
@ApiModelProperty("国民经济门类")
private String indusTypeClass;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty("有效期起")
@Excel(name = "有效期起", width = 30, dateFormat = "yyyy-MM-dd")
private Date termStart;
/**
*
*/
@Excel(name = "企业规模")
@ApiModelProperty("企业规模")
private String enterpristScale;
/**
*
*/
@Excel(name = "登记机关")
@ApiModelProperty("登记机关")
private String registrationOrg;
/**
*
*/
@Excel(name = "行政区划")
@ApiModelProperty("行政区划")
private String districtCode;
/**
*
*/
@Excel(name = "所在乡镇", readConverterExp = "街=道")
@ApiModelProperty("所在乡镇(街道) ")
private String SUBDISTRICT;
/**
*
*/
@Excel(name = "其他名称")
@ApiModelProperty("其他名称 ")
private String otherName;
/**
*
*/
@Excel(name = "注册资金")
@ApiModelProperty("注册资金 ")
private String rigisterFund;
/**
*
*/
@Excel(name = "企业名称")
@ApiModelProperty("企业名称 ")
private String enterpriseName;
/**
*
*/
@Excel(name = "机构编码")
@ApiModelProperty("机构编码 ")
private String orgCode;
/**
*
*/
@Excel(name = "是否规上企业")
@ApiModelProperty("是否规上企业 ")
private String aboveDesignated;
/**
*
*/
@Excel(name = "法人证件号")
@ApiModelProperty("法人证件号 ")
private String FRZJH;
/**
*
*/
@Excel(name = "创建人")
@ApiModelProperty("创建人 ")
private String CREATER;
/**
*
*/
@Excel(name = "修改人")
@ApiModelProperty("修改人")
private String UPDATER;
/**
*
*/
@ApiModelProperty("上次调用省接口保存数据截至页数")
@Excel(name = "上次调用省接口保存数据截至页数")
private Long lastPageNumber;
/**
*
*/
@Excel(name = "占地面积")
@ApiModelProperty("占地面积")
private String floorSpace;
/**
*
*/
@Excel(name = "企业规模")
@ApiModelProperty("企业规模")
private String aboveDesignatedTwo;
/**
*
*/
@Excel(name = "安全生产投入占比")
@ApiModelProperty("安全生产投入占比")
private String safetyProductionInvestment;
/**
*
*/
@ApiModelProperty("上一年经营收入")
@Excel(name = "上一年经营收入")
private String lastYearOperatingIncome;
/**
*
*/
@Excel(name = "企业上一年投入生产")
@ApiModelProperty("企业上一年投入生产")
private String lastYeatOnStream;
/**
*
*/
@Excel(name = "主营业务及产品")
@ApiModelProperty("主营业务及产品")
private String majorProduct;
/**
*
*/
@Excel(name = "工艺流程内容")
@ApiModelProperty("工艺流程内容")
private String htmlText;
/**
*
*/
@ApiModelProperty("固定资产")
@Excel(name = "固定资产")
private String fixedAssets;
}

@ -0,0 +1,80 @@
package com.ruoyi.programManagement.mapper;
import com.ruoyi.programManagement.entity.SzsAdministrativeDivision;
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
import java.util.List;
/**
* -_Mapper
*
* @author ruoyi
* @date 2023-10-17
*/
public interface SzsAdministrativeDivisionMapper
{
/**
* -_
*
* @param ID -_
* @return -_
*/
public SzsAdministrativeDivision selectSzsAdministrativeDivisionByID(String ID);
/**
* -_
*
* @param szsAdministrativeDivision -_
* @return -_
*/
public List<SzsAdministrativeDivision> selectSzsAdministrativeDivisionList(SzsAdministrativeDivision szsAdministrativeDivision);
/**
* -_
*
* @param szsAdministrativeDivision -_
* @return
*/
public int insertSzsAdministrativeDivision(SzsAdministrativeDivision szsAdministrativeDivision);
/**
* -_
*
* @param szsAdministrativeDivision -_
* @return
*/
public int updateSzsAdministrativeDivision(SzsAdministrativeDivision szsAdministrativeDivision);
/**
* -_
*
* @param ID -_
* @return
*/
public int deleteSzsAdministrativeDivisionByID(String ID);
/**
* -_
*
* @param IDs
* @return
*/
public int deleteSzsAdministrativeDivisionByIDs(String[] IDs);
/**
*
* @return
*/
List<BAdministrativeTreeRequest> selectBAdministrativeTreeRequestList();
/**
*
* @return
*/
List<BAdministrativeTreeRequest> selectcascadingSelectDataList();
}

@ -0,0 +1,63 @@
package com.ruoyi.programManagement.mapper;
import com.ruoyi.programManagement.entity.SzsEnterpriseInformation;
import java.util.List;
/**
* -Mapper
*
* @author ruoyi
* @date 2023-10-17
*/
public interface SzsEnterpriseInformationMapper
{
/**
* -
*
* @param ID -
* @return -
*/
public SzsEnterpriseInformation selectSzsEnterpriseInformationByID(String ID);
/**
* -
*
* @param szsEnterpriseInformation -
* @return -
*/
public List<SzsEnterpriseInformation> selectSzsEnterpriseInformationList(SzsEnterpriseInformation szsEnterpriseInformation);
/**
* -
*
* @param szsEnterpriseInformation -
* @return
*/
public int insertSzsEnterpriseInformation(SzsEnterpriseInformation szsEnterpriseInformation);
/**
* -
*
* @param szsEnterpriseInformation -
* @return
*/
public int updateSzsEnterpriseInformation(SzsEnterpriseInformation szsEnterpriseInformation);
/**
* -
*
* @param ID -
* @return
*/
public int deleteSzsEnterpriseInformationByID(String ID);
/**
* -
*
* @param IDs
* @return
*/
public int deleteSzsEnterpriseInformationByIDs(String[] IDs);
}

@ -0,0 +1,78 @@
package com.ruoyi.programManagement.service;
import com.ruoyi.programManagement.entity.SzsAdministrativeDivision;
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
import java.util.List;
/**
* -_Service
*
* @author ruoyi
* @date 2023-10-17
*/
public interface ISzsAdministrativeDivisionService
{
/**
* -_
*
* @param ID -_
* @return -_
*/
public SzsAdministrativeDivision selectSzsAdministrativeDivisionByID(String ID);
/**
* -_
*
* @param szsAdministrativeDivision -_
* @return -_
*/
public List<SzsAdministrativeDivision> selectSzsAdministrativeDivisionList(SzsAdministrativeDivision szsAdministrativeDivision);
/**
* -_
*
* @param szsAdministrativeDivision -_
* @return
*/
public int insertSzsAdministrativeDivision(SzsAdministrativeDivision szsAdministrativeDivision);
/**
* -_
*
* @param szsAdministrativeDivision -_
* @return
*/
public int updateSzsAdministrativeDivision(SzsAdministrativeDivision szsAdministrativeDivision);
/**
* -_
*
* @param IDs -_
* @return
*/
public int deleteSzsAdministrativeDivisionByIDs(String[] IDs);
/**
* -_
*
* @param ID -_
* @return
*/
public int deleteSzsAdministrativeDivisionByID(String ID);
/**
*
* @return
*/
List<BAdministrativeTreeRequest> selectBAdministrativeTreeRequestList();
/**
*
* @return
*/
List<BAdministrativeTreeRequest> selectcascadingSelectDataList();
}

@ -0,0 +1,63 @@
package com.ruoyi.programManagement.service;
import com.ruoyi.programManagement.entity.SzsEnterpriseInformation;
import java.util.List;
/**
* -Service
*
* @author ruoyi
* @date 2023-10-17
*/
public interface ISzsEnterpriseInformationService
{
/**
* -
*
* @param ID -
* @return -
*/
public SzsEnterpriseInformation selectSzsEnterpriseInformationByID(String ID);
/**
* -
*
* @param szsEnterpriseInformation -
* @return -
*/
public List<SzsEnterpriseInformation> selectSzsEnterpriseInformationList(SzsEnterpriseInformation szsEnterpriseInformation);
/**
* -
*
* @param szsEnterpriseInformation -
* @return
*/
public int insertSzsEnterpriseInformation(SzsEnterpriseInformation szsEnterpriseInformation);
/**
* -
*
* @param szsEnterpriseInformation -
* @return
*/
public int updateSzsEnterpriseInformation(SzsEnterpriseInformation szsEnterpriseInformation);
/**
* -
*
* @param IDs -
* @return
*/
public int deleteSzsEnterpriseInformationByIDs(String[] IDs);
/**
* -
*
* @param ID -
* @return
*/
public int deleteSzsEnterpriseInformationByID(String ID);
}

@ -0,0 +1,106 @@
package com.ruoyi.programManagement.service.impl;
import java.util.List;
import com.ruoyi.programManagement.entity.SzsAdministrativeDivision;
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.programManagement.mapper.SzsAdministrativeDivisionMapper;
import com.ruoyi.programManagement.service.ISzsAdministrativeDivisionService;
/**
* -_Service
*
* @author ruoyi
* @date 2023-10-17
*/
@Service
public class SzsAdministrativeDivisionServiceImpl implements ISzsAdministrativeDivisionService
{
@Autowired
private SzsAdministrativeDivisionMapper szsAdministrativeDivisionMapper;
/**
* -_
*
* @param ID -_
* @return -_
*/
@Override
public SzsAdministrativeDivision selectSzsAdministrativeDivisionByID(String ID)
{
return szsAdministrativeDivisionMapper.selectSzsAdministrativeDivisionByID(ID);
}
/**
* -_
*
* @param szsAdministrativeDivision -_
* @return -_
*/
@Override
public List<SzsAdministrativeDivision> selectSzsAdministrativeDivisionList(SzsAdministrativeDivision szsAdministrativeDivision)
{
return szsAdministrativeDivisionMapper.selectSzsAdministrativeDivisionList(szsAdministrativeDivision);
}
/**
* -_
*
* @param szsAdministrativeDivision -_
* @return
*/
@Override
public int insertSzsAdministrativeDivision(SzsAdministrativeDivision szsAdministrativeDivision)
{
return szsAdministrativeDivisionMapper.insertSzsAdministrativeDivision(szsAdministrativeDivision);
}
/**
* -_
*
* @param szsAdministrativeDivision -_
* @return
*/
@Override
public int updateSzsAdministrativeDivision(SzsAdministrativeDivision szsAdministrativeDivision)
{
return szsAdministrativeDivisionMapper.updateSzsAdministrativeDivision(szsAdministrativeDivision);
}
/**
* -_
*
* @param IDs -_
* @return
*/
@Override
public int deleteSzsAdministrativeDivisionByIDs(String[] IDs)
{
return szsAdministrativeDivisionMapper.deleteSzsAdministrativeDivisionByIDs(IDs);
}
/**
* -_
*
* @param ID -_
* @return
*/
@Override
public int deleteSzsAdministrativeDivisionByID(String ID)
{
return szsAdministrativeDivisionMapper.deleteSzsAdministrativeDivisionByID(ID);
}
@Override
public List<BAdministrativeTreeRequest> selectBAdministrativeTreeRequestList() {
return szsAdministrativeDivisionMapper.selectBAdministrativeTreeRequestList();
}
@Override
public List<BAdministrativeTreeRequest> selectcascadingSelectDataList() {
return szsAdministrativeDivisionMapper.selectcascadingSelectDataList();
}
}

@ -0,0 +1,90 @@
package com.ruoyi.programManagement.service.impl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.programManagement.entity.SzsEnterpriseInformation;
import com.ruoyi.programManagement.mapper.SzsEnterpriseInformationMapper;
import com.ruoyi.programManagement.service.ISzsEnterpriseInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* -Service
*
* @author ruoyi
* @date 2023-10-17
*/
@Service
public class SzsEnterpriseInformationServiceImpl implements ISzsEnterpriseInformationService {
@Autowired
private SzsEnterpriseInformationMapper szsEnterpriseInformationMapper;
/**
* -
*
* @param ID -
* @return -
*/
@Override
public SzsEnterpriseInformation selectSzsEnterpriseInformationByID(String ID) {
return szsEnterpriseInformationMapper.selectSzsEnterpriseInformationByID(ID);
}
/**
* -
*
* @param szsEnterpriseInformation -
* @return -
*/
@Override
public List<SzsEnterpriseInformation> selectSzsEnterpriseInformationList(SzsEnterpriseInformation szsEnterpriseInformation) {
return szsEnterpriseInformationMapper.selectSzsEnterpriseInformationList(szsEnterpriseInformation);
}
/**
* -
*
* @param szsEnterpriseInformation -
* @return
*/
@Override
public int insertSzsEnterpriseInformation(SzsEnterpriseInformation szsEnterpriseInformation) {
szsEnterpriseInformation.setCreateTime(DateUtils.getNowDate());
return szsEnterpriseInformationMapper.insertSzsEnterpriseInformation(szsEnterpriseInformation);
}
/**
* -
*
* @param szsEnterpriseInformation -
* @return
*/
@Override
public int updateSzsEnterpriseInformation(SzsEnterpriseInformation szsEnterpriseInformation) {
szsEnterpriseInformation.setUpdateTime(DateUtils.getNowDate());
return szsEnterpriseInformationMapper.updateSzsEnterpriseInformation(szsEnterpriseInformation);
}
/**
* -
*
* @param IDs -
* @return
*/
@Override
public int deleteSzsEnterpriseInformationByIDs(String[] IDs) {
return szsEnterpriseInformationMapper.deleteSzsEnterpriseInformationByIDs(IDs);
}
/**
* -
*
* @param ID -
* @return
*/
@Override
public int deleteSzsEnterpriseInformationByID(String ID) {
return szsEnterpriseInformationMapper.deleteSzsEnterpriseInformationByID(ID);
}
}

@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.programManagement.mapper.SzsAdministrativeDivisionMapper">
<resultMap type="SzsAdministrativeDivision" id="SzsAdministrativeDivisionResult">
<result property="jhptUpdateTime" column="jhpt_update_time"/>
<result property="LATITUDE" column="LATITUDE"/>
<result property="districtName" column="DISTRICT_NAME"/>
<result property="distLevel" column="DIST_LEVEL"/>
<result property="fullName" column="FULL_NAME"/>
<result property="districtCode" column="DISTRICT_CODE"/>
<result property="parentCode" column="PARENT_CODE"/>
<result property="shortName" column="SHORT_NAME"/>
<result property="ID" column="ID"/>
<result property="districtCodeSort" column="DISTRICT_CODE_SORT"/>
<result property="LONGITUDE" column="LONGITUDE"/>
<result property="CREATER" column="CREATER"/>
<result property="UPDATER" column="UPDATER"/>
<result property="SPELLING" column="SPELLING"/>
<result property="isDelete" column="IS_DELETE"/>
</resultMap>
<sql id="selectSzsAdministrativeDivisionVo">
select jhpt_update_time,
LATITUDE,
REMARK,
DISTRICT_NAME,
DIST_LEVEL,
FULL_NAME,
DISTRICT_CODE,
PARENT_CODE,
SHORT_NAME,
ID,
DISTRICT_CODE_SORT,
LONGITUDE,
CREATER,
UPDATER,
CREATETIME,
UPDATETIME,
SPELLING,
IS_DELETE
from szs_administrative_division
</sql>
<select id="selectSzsAdministrativeDivisionList" parameterType="SzsAdministrativeDivision"
resultMap="SzsAdministrativeDivisionResult">
<include refid="selectSzsAdministrativeDivisionVo"/>
<where>
<if test="jhptUpdateTime != null ">and jhpt_update_time = #{jhptUpdateTime}</if>
<if test="LATITUDE != null and LATITUDE != ''">and LATITUDE = #{LATITUDE}</if>
<if test="REMARK != null and REMARK != ''">and REMARK = #{REMARK}</if>
<if test="districtName != null and districtName != ''">and DISTRICT_NAME like concat('%', #{districtName},
'%')
</if>
<if test="distLevel != null and distLevel != ''">and DIST_LEVEL = #{distLevel}</if>
<if test="fullName != null and fullName != ''">and FULL_NAME like concat('%', #{fullName}, '%')</if>
<if test="districtCode != null and districtCode != ''">and DISTRICT_CODE = #{districtCode}</if>
<if test="parentCode != null and parentCode != ''">and PARENT_CODE = #{parentCode}</if>
<if test="shortName != null and shortName != ''">and SHORT_NAME like concat('%', #{shortName}, '%')</if>
<if test="districtCodeSort != null and districtCodeSort != ''">and DISTRICT_CODE_SORT =
#{districtCodeSort}
</if>
<if test="LONGITUDE != null ">and LONGITUDE = #{LONGITUDE}</if>
<if test="CREATER != null and CREATER != ''">and CREATER = #{CREATER}</if>
<if test="UPDATER != null and UPDATER != ''">and UPDATER = #{UPDATER}</if>
<if test="CREATETIME != null ">and CREATETIME = #{CREATETIME}</if>
<if test="UPDATETIME != null ">and UPDATETIME = #{UPDATETIME}</if>
<if test="SPELLING != null and SPELLING != ''">and SPELLING = #{SPELLING}</if>
<if test="isDelete != null and isDelete != ''">and IS_DELETE = #{isDelete}</if>
</where>
</select>
<select id="selectSzsAdministrativeDivisionByID" parameterType="String" resultMap="SzsAdministrativeDivisionResult">
<include refid="selectSzsAdministrativeDivisionVo"/>
where ID = #{ID}
</select>
<select id="selectBAdministrativeTreeRequestList"
resultType="com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest">
SELECT DISTRICT_NAME as institutionName,DISTRICT_CODE as subdistrict,PARENT_CODE as county
FROM `szs_administrative_division`
where DISTRICT_CODE like '%3205%' and DISTRICT_NAME !='苏州市'
</select>
<select id="selectcascadingSelectDataList"
resultType="com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest">
SELECT DISTRICT_NAME as institutionName, DISTRICT_CODE as subdistrict, PARENT_CODE as county
FROM `szs_administrative_division`
where DISTRICT_CODE like '%3205%'
and DISTRICT_NAME !='苏州市'
</select>
<insert id="insertSzsAdministrativeDivision" parameterType="SzsAdministrativeDivision">
insert into szs_administrative_division
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jhptUpdateTime != null">jhpt_update_time,</if>
<if test="LATITUDE != null">LATITUDE,</if>
<if test="REMARK != null">REMARK,</if>
<if test="districtName != null">DISTRICT_NAME,</if>
<if test="distLevel != null">DIST_LEVEL,</if>
<if test="fullName != null">FULL_NAME,</if>
<if test="districtCode != null">DISTRICT_CODE,</if>
<if test="parentCode != null">PARENT_CODE,</if>
<if test="shortName != null">SHORT_NAME,</if>
<if test="ID != null">ID,</if>
<if test="districtCodeSort != null">DISTRICT_CODE_SORT,</if>
<if test="LONGITUDE != null">LONGITUDE,</if>
<if test="CREATER != null">CREATER,</if>
<if test="UPDATER != null">UPDATER,</if>
<if test="CREATETIME != null">CREATETIME,</if>
<if test="UPDATETIME != null">UPDATETIME,</if>
<if test="SPELLING != null">SPELLING,</if>
<if test="isDelete != null">IS_DELETE,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jhptUpdateTime != null">#{jhptUpdateTime},</if>
<if test="LATITUDE != null">#{LATITUDE},</if>
<if test="REMARK != null">#{REMARK},</if>
<if test="districtName != null">#{districtName},</if>
<if test="distLevel != null">#{distLevel},</if>
<if test="fullName != null">#{fullName},</if>
<if test="districtCode != null">#{districtCode},</if>
<if test="parentCode != null">#{parentCode},</if>
<if test="shortName != null">#{shortName},</if>
<if test="ID != null">#{ID},</if>
<if test="districtCodeSort != null">#{districtCodeSort},</if>
<if test="LONGITUDE != null">#{LONGITUDE},</if>
<if test="CREATER != null">#{CREATER},</if>
<if test="UPDATER != null">#{UPDATER},</if>
<if test="CREATETIME != null">#{CREATETIME},</if>
<if test="UPDATETIME != null">#{UPDATETIME},</if>
<if test="SPELLING != null">#{SPELLING},</if>
<if test="isDelete != null">#{isDelete},</if>
</trim>
</insert>
<update id="updateSzsAdministrativeDivision" parameterType="SzsAdministrativeDivision">
update szs_administrative_division
<trim prefix="SET" suffixOverrides=",">
<if test="jhptUpdateTime != null">jhpt_update_time = #{jhptUpdateTime},</if>
<if test="LATITUDE != null">LATITUDE = #{LATITUDE},</if>
<if test="REMARK != null">REMARK = #{REMARK},</if>
<if test="districtName != null">DISTRICT_NAME = #{districtName},</if>
<if test="distLevel != null">DIST_LEVEL = #{distLevel},</if>
<if test="fullName != null">FULL_NAME = #{fullName},</if>
<if test="districtCode != null">DISTRICT_CODE = #{districtCode},</if>
<if test="parentCode != null">PARENT_CODE = #{parentCode},</if>
<if test="shortName != null">SHORT_NAME = #{shortName},</if>
<if test="districtCodeSort != null">DISTRICT_CODE_SORT = #{districtCodeSort},</if>
<if test="LONGITUDE != null">LONGITUDE = #{LONGITUDE},</if>
<if test="CREATER != null">CREATER = #{CREATER},</if>
<if test="UPDATER != null">UPDATER = #{UPDATER},</if>
<if test="CREATETIME != null">CREATETIME = #{CREATETIME},</if>
<if test="UPDATETIME != null">UPDATETIME = #{UPDATETIME},</if>
<if test="SPELLING != null">SPELLING = #{SPELLING},</if>
<if test="isDelete != null">IS_DELETE = #{isDelete},</if>
</trim>
where ID = #{ID}
</update>
<delete id="deleteSzsAdministrativeDivisionByID" parameterType="String">
delete
from szs_administrative_division
where ID = #{ID}
</delete>
<delete id="deleteSzsAdministrativeDivisionByIDs" parameterType="String">
delete from szs_administrative_division where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>
</delete>
</mapper>

@ -0,0 +1,353 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.programManagement.mapper.SzsEnterpriseInformationMapper">
<resultMap type="SzsEnterpriseInformation" id="SzsEnterpriseInformationResult">
<result property="jhptUpdateTime" column="jhpt_update_time" />
<result property="legalPersonCellphone" column="LEGAL_PERSON_CELLPHONE" />
<result property="indusTypeMiddle" column="INDUS_TYPE_MIDDLE" />
<result property="legalPersonType" column="LEGAL_PERSON_TYPE" />
<result property="indusTypeLagre" column="INDUS_TYPE_LAGRE" />
<result property="supervisionLarge" column="SUPERVISION_LARGE" />
<result property="CITY" column="CITY" />
<result property="businessAddress" column="BUSINESS_ADDRESS" />
<result property="COUNTY" column="COUNTY" />
<!-- <result property="REMARK" column="REMARK" />-->
<result property="reportHistoryId" column="REPORT_HISTORY_ID" />
<result property="registerTime" column="REGISTER_TIME" />
<result property="enterpriseAddress" column="ENTERPRISE_ADDRESS" />
<result property="createBy" column="CREATE_BY" />
<result property="updateTime" column="UPDATE_TIME" />
<result property="PROVINCE" column="PROVINCE" />
<result property="SQRLXFS" column="SQRLXFS" />
<result property="SQR" column="SQR" />
<result property="termEnd" column="TERM_END" />
<result property="ID" column="ID" />
<result property="VILLAGE" column="VILLAGE" />
<result property="updateBy" column="UPDATE_BY" />
<result property="legalPersonPost" column="LEGAL_PERSON_POST" />
<result property="legalPerson" column="LEGAL_PERSON" />
<result property="zjEconKind" column="ZJ_ECON_KIND" />
<result property="corpStatus" column="CORP_STATUS" />
<result property="createTime" column="CREATE_TIME" />
<result property="uuitNo" column="UUIT_NO" />
<result property="supervisionSmall" column="SUPERVISION_SMALL" />
<result property="rigisterAddress" column="RIGISTER_ADDRESS" />
<result property="riskReport" column="RISK_REPORT" />
<result property="indusTypeSmall" column="INDUS_TYPE_SMALL" />
<result property="isDelete" column="IS_DELETE" />
<result property="businessScope" column="BUSINESS_SCOPE" />
<result property="startTime" column="START_TIME" />
<result property="legalPersonTel" column="LEGAL_PERSON_TEL" />
<result property="indusTypeClass" column="INDUS_TYPE_CLASS" />
<result property="termStart" column="TERM_START" />
<result property="enterpristScale" column="ENTERPRIST_SCALE" />
<result property="registrationOrg" column="REGISTRATION_ORG" />
<result property="districtCode" column="DISTRICT_CODE" />
<result property="SUBDISTRICT" column="SUBDISTRICT" />
<result property="otherName" column="OTHER_NAME" />
<result property="rigisterFund" column="RIGISTER_FUND" />
<result property="enterpriseName" column="ENTERPRISE_NAME" />
<result property="orgCode" column="ORG_CODE" />
<result property="aboveDesignated" column="ABOVE_DESIGNATED" />
<result property="FRZJH" column="FRZJH" />
<result property="CREATER" column="CREATER" />
<result property="UPDATER" column="UPDATER" />
<!-- <result property="CREATETIME" column="CREATETIME" />-->
<!-- <result property="UPDATETIME" column="UPDATETIME" />-->
<result property="lastPageNumber" column="LAST_PAGE_NUMBER" />
<result property="floorSpace" column="FLOOR_SPACE" />
<result property="aboveDesignatedTwo" column="ABOVE_DESIGNATED_TWO" />
<result property="safetyProductionInvestment" column="SAFETY_PRODUCTION_INVESTMENT" />
<result property="lastYearOperatingIncome" column="LAST_YEAR_OPERATING_INCOME" />
<result property="lastYeatOnStream" column="LAST_YEAT_ON_STREAM" />
<result property="majorProduct" column="MAJOR_PRODUCT" />
<result property="htmlText" column="HTML_TEXT" />
<result property="fixedAssets" column="FIXED_ASSETS" />
</resultMap>
<sql id="selectSzsEnterpriseInformationVo">
select jhpt_update_time, LEGAL_PERSON_CELLPHONE, INDUS_TYPE_MIDDLE, LEGAL_PERSON_TYPE, INDUS_TYPE_LAGRE, SUPERVISION_LARGE, CITY, BUSINESS_ADDRESS, COUNTY, REMARK, REPORT_HISTORY_ID, REGISTER_TIME, ENTERPRISE_ADDRESS, CREATE_BY, UPDATE_TIME, PROVINCE, SQRLXFS, SQR, TERM_END, ID, VILLAGE, UPDATE_BY, LEGAL_PERSON_POST, LEGAL_PERSON, ZJ_ECON_KIND, CORP_STATUS, CREATE_TIME, UUIT_NO, SUPERVISION_SMALL, RIGISTER_ADDRESS, RISK_REPORT, INDUS_TYPE_SMALL, IS_DELETE, BUSINESS_SCOPE, START_TIME, LEGAL_PERSON_TEL, INDUS_TYPE_CLASS, TERM_START, ENTERPRIST_SCALE, REGISTRATION_ORG, DISTRICT_CODE, SUBDISTRICT, OTHER_NAME, RIGISTER_FUND, ENTERPRISE_NAME, ORG_CODE, ABOVE_DESIGNATED, FRZJH, CREATER, UPDATER, CREATETIME, UPDATETIME, LAST_PAGE_NUMBER, FLOOR_SPACE, ABOVE_DESIGNATED_TWO, SAFETY_PRODUCTION_INVESTMENT, LAST_YEAR_OPERATING_INCOME, LAST_YEAT_ON_STREAM, MAJOR_PRODUCT, HTML_TEXT, FIXED_ASSETS from szs_enterprise_information
</sql>
<select id="selectSzsEnterpriseInformationList" parameterType="SzsEnterpriseInformation" resultMap="SzsEnterpriseInformationResult">
<include refid="selectSzsEnterpriseInformationVo"/>
<where>
<if test="jhptUpdateTime != null "> and jhpt_update_time = #{jhptUpdateTime}</if>
<if test="legalPersonCellphone != null and legalPersonCellphone != ''"> and LEGAL_PERSON_CELLPHONE = #{legalPersonCellphone}</if>
<if test="indusTypeMiddle != null and indusTypeMiddle != ''"> and INDUS_TYPE_MIDDLE = #{indusTypeMiddle}</if>
<if test="legalPersonType != null and legalPersonType != ''"> and LEGAL_PERSON_TYPE = #{legalPersonType}</if>
<if test="indusTypeLagre != null and indusTypeLagre != ''"> and INDUS_TYPE_LAGRE = #{indusTypeLagre}</if>
<if test="supervisionLarge != null and supervisionLarge != ''"> and SUPERVISION_LARGE = #{supervisionLarge}</if>
<if test="CITY != null and CITY != ''"> and CITY = #{CITY}</if>
<if test="businessAddress != null and businessAddress != ''"> and BUSINESS_ADDRESS = #{businessAddress}</if>
<if test="COUNTY != null and COUNTY != ''"> and COUNTY = #{COUNTY}</if>
<!-- <if test="REMARK != null and REMARK != ''"> and REMARK = #{REMARK}</if>-->
<if test="reportHistoryId != null and reportHistoryId != ''"> and REPORT_HISTORY_ID = #{reportHistoryId}</if>
<if test="registerTime != null "> and REGISTER_TIME = #{registerTime}</if>
<if test="enterpriseAddress != null and enterpriseAddress != ''"> and ENTERPRISE_ADDRESS = #{enterpriseAddress}</if>
<if test="createBy != null and createBy != ''"> and CREATE_BY = #{createBy}</if>
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
<if test="PROVINCE != null and PROVINCE != ''"> and PROVINCE = #{PROVINCE}</if>
<if test="SQRLXFS != null and SQRLXFS != ''"> and SQRLXFS = #{SQRLXFS}</if>
<if test="SQR != null and SQR != ''"> and SQR = #{SQR}</if>
<if test="termEnd != null "> and TERM_END = #{termEnd}</if>
<if test="VILLAGE != null and VILLAGE != ''"> and VILLAGE = #{VILLAGE}</if>
<if test="updateBy != null and updateBy != ''"> and UPDATE_BY = #{updateBy}</if>
<if test="legalPersonPost != null and legalPersonPost != ''"> and LEGAL_PERSON_POST = #{legalPersonPost}</if>
<if test="legalPerson != null and legalPerson != ''"> and LEGAL_PERSON = #{legalPerson}</if>
<if test="zjEconKind != null and zjEconKind != ''"> and ZJ_ECON_KIND = #{zjEconKind}</if>
<if test="corpStatus != null and corpStatus != ''"> and CORP_STATUS = #{corpStatus}</if>
<if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
<if test="uuitNo != null and uuitNo != ''"> and UUIT_NO = #{uuitNo}</if>
<if test="supervisionSmall != null and supervisionSmall != ''"> and SUPERVISION_SMALL = #{supervisionSmall}</if>
<if test="rigisterAddress != null and rigisterAddress != ''"> and RIGISTER_ADDRESS = #{rigisterAddress}</if>
<if test="riskReport != null and riskReport != ''"> and RISK_REPORT = #{riskReport}</if>
<if test="indusTypeSmall != null and indusTypeSmall != ''"> and INDUS_TYPE_SMALL = #{indusTypeSmall}</if>
<if test="isDelete != null and isDelete != ''"> and IS_DELETE = #{isDelete}</if>
<if test="businessScope != null and businessScope != ''"> and BUSINESS_SCOPE = #{businessScope}</if>
<if test="startTime != null "> and START_TIME = #{startTime}</if>
<if test="legalPersonTel != null and legalPersonTel != ''"> and LEGAL_PERSON_TEL = #{legalPersonTel}</if>
<if test="indusTypeClass != null and indusTypeClass != ''"> and INDUS_TYPE_CLASS = #{indusTypeClass}</if>
<if test="termStart != null "> and TERM_START = #{termStart}</if>
<if test="enterpristScale != null and enterpristScale != ''"> and ENTERPRIST_SCALE = #{enterpristScale}</if>
<if test="registrationOrg != null and registrationOrg != ''"> and REGISTRATION_ORG = #{registrationOrg}</if>
<if test="districtCode != null and districtCode != ''"> and DISTRICT_CODE = #{districtCode}</if>
<if test="SUBDISTRICT != null and SUBDISTRICT != ''"> and SUBDISTRICT = #{SUBDISTRICT}</if>
<if test="otherName != null and otherName != ''"> and OTHER_NAME like concat('%', #{otherName}, '%')</if>
<if test="rigisterFund != null and rigisterFund != ''"> and RIGISTER_FUND = #{rigisterFund}</if>
<if test="enterpriseName != null and enterpriseName != ''"> and ENTERPRISE_NAME like concat('%', #{enterpriseName}, '%')</if>
<if test="orgCode != null and orgCode != ''"> and ORG_CODE = #{orgCode}</if>
<if test="aboveDesignated != null and aboveDesignated != ''"> and ABOVE_DESIGNATED = #{aboveDesignated}</if>
<if test="FRZJH != null and FRZJH != ''"> and FRZJH = #{FRZJH}</if>
<if test="CREATER != null and CREATER != ''"> and CREATER = #{CREATER}</if>
<if test="UPDATER != null and UPDATER != ''"> and UPDATER = #{UPDATER}</if>
<!-- <if test="CREATETIME != null "> and CREATETIME = #{CREATETIME}</if>-->
<!-- <if test="UPDATETIME != null "> and UPDATETIME = #{UPDATETIME}</if>-->
<if test="lastPageNumber != null "> and LAST_PAGE_NUMBER = #{lastPageNumber}</if>
<if test="floorSpace != null and floorSpace != ''"> and FLOOR_SPACE = #{floorSpace}</if>
<if test="aboveDesignatedTwo != null and aboveDesignatedTwo != ''"> and ABOVE_DESIGNATED_TWO = #{aboveDesignatedTwo}</if>
<if test="safetyProductionInvestment != null and safetyProductionInvestment != ''"> and SAFETY_PRODUCTION_INVESTMENT = #{safetyProductionInvestment}</if>
<if test="lastYearOperatingIncome != null and lastYearOperatingIncome != ''"> and LAST_YEAR_OPERATING_INCOME = #{lastYearOperatingIncome}</if>
<if test="lastYeatOnStream != null and lastYeatOnStream != ''"> and LAST_YEAT_ON_STREAM = #{lastYeatOnStream}</if>
<if test="majorProduct != null and majorProduct != ''"> and MAJOR_PRODUCT = #{majorProduct}</if>
<if test="htmlText != null and htmlText != ''"> and HTML_TEXT = #{htmlText}</if>
<if test="fixedAssets != null and fixedAssets != ''"> and FIXED_ASSETS = #{fixedAssets}</if>
</where>
</select>
<select id="selectSzsEnterpriseInformationByID" parameterType="String" resultMap="SzsEnterpriseInformationResult">
<include refid="selectSzsEnterpriseInformationVo"/>
where ID = #{ID}
</select>
<insert id="insertSzsEnterpriseInformation" parameterType="SzsEnterpriseInformation">
insert into szs_enterprise_information
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jhptUpdateTime != null">jhpt_update_time,</if>
<if test="legalPersonCellphone != null">LEGAL_PERSON_CELLPHONE,</if>
<if test="indusTypeMiddle != null">INDUS_TYPE_MIDDLE,</if>
<if test="legalPersonType != null">LEGAL_PERSON_TYPE,</if>
<if test="indusTypeLagre != null">INDUS_TYPE_LAGRE,</if>
<if test="supervisionLarge != null">SUPERVISION_LARGE,</if>
<if test="CITY != null">CITY,</if>
<if test="businessAddress != null">BUSINESS_ADDRESS,</if>
<if test="COUNTY != null">COUNTY,</if>
<if test="REMARK != null">REMARK,</if>
<if test="reportHistoryId != null">REPORT_HISTORY_ID,</if>
<if test="registerTime != null">REGISTER_TIME,</if>
<if test="enterpriseAddress != null">ENTERPRISE_ADDRESS,</if>
<if test="createBy != null">CREATE_BY,</if>
<if test="updateTime != null">UPDATE_TIME,</if>
<if test="PROVINCE != null">PROVINCE,</if>
<if test="SQRLXFS != null">SQRLXFS,</if>
<if test="SQR != null">SQR,</if>
<if test="termEnd != null">TERM_END,</if>
<if test="ID != null">ID,</if>
<if test="VILLAGE != null">VILLAGE,</if>
<if test="updateBy != null">UPDATE_BY,</if>
<if test="legalPersonPost != null">LEGAL_PERSON_POST,</if>
<if test="legalPerson != null">LEGAL_PERSON,</if>
<if test="zjEconKind != null">ZJ_ECON_KIND,</if>
<if test="corpStatus != null">CORP_STATUS,</if>
<if test="createTime != null">CREATE_TIME,</if>
<if test="uuitNo != null">UUIT_NO,</if>
<if test="supervisionSmall != null">SUPERVISION_SMALL,</if>
<if test="rigisterAddress != null">RIGISTER_ADDRESS,</if>
<if test="riskReport != null">RISK_REPORT,</if>
<if test="indusTypeSmall != null">INDUS_TYPE_SMALL,</if>
<if test="isDelete != null">IS_DELETE,</if>
<if test="businessScope != null">BUSINESS_SCOPE,</if>
<if test="startTime != null">START_TIME,</if>
<if test="legalPersonTel != null">LEGAL_PERSON_TEL,</if>
<if test="indusTypeClass != null">INDUS_TYPE_CLASS,</if>
<if test="termStart != null">TERM_START,</if>
<if test="enterpristScale != null">ENTERPRIST_SCALE,</if>
<if test="registrationOrg != null">REGISTRATION_ORG,</if>
<if test="districtCode != null">DISTRICT_CODE,</if>
<if test="SUBDISTRICT != null">SUBDISTRICT,</if>
<if test="otherName != null">OTHER_NAME,</if>
<if test="rigisterFund != null">RIGISTER_FUND,</if>
<if test="enterpriseName != null">ENTERPRISE_NAME,</if>
<if test="orgCode != null">ORG_CODE,</if>
<if test="aboveDesignated != null">ABOVE_DESIGNATED,</if>
<if test="FRZJH != null">FRZJH,</if>
<if test="CREATER != null">CREATER,</if>
<if test="UPDATER != null">UPDATER,</if>
<if test="CREATETIME != null">CREATETIME,</if>
<if test="UPDATETIME != null">UPDATETIME,</if>
<if test="lastPageNumber != null">LAST_PAGE_NUMBER,</if>
<if test="floorSpace != null">FLOOR_SPACE,</if>
<if test="aboveDesignatedTwo != null">ABOVE_DESIGNATED_TWO,</if>
<if test="safetyProductionInvestment != null">SAFETY_PRODUCTION_INVESTMENT,</if>
<if test="lastYearOperatingIncome != null">LAST_YEAR_OPERATING_INCOME,</if>
<if test="lastYeatOnStream != null">LAST_YEAT_ON_STREAM,</if>
<if test="majorProduct != null">MAJOR_PRODUCT,</if>
<if test="htmlText != null">HTML_TEXT,</if>
<if test="fixedAssets != null">FIXED_ASSETS,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jhptUpdateTime != null">#{jhptUpdateTime},</if>
<if test="legalPersonCellphone != null">#{legalPersonCellphone},</if>
<if test="indusTypeMiddle != null">#{indusTypeMiddle},</if>
<if test="legalPersonType != null">#{legalPersonType},</if>
<if test="indusTypeLagre != null">#{indusTypeLagre},</if>
<if test="supervisionLarge != null">#{supervisionLarge},</if>
<if test="CITY != null">#{CITY},</if>
<if test="businessAddress != null">#{businessAddress},</if>
<if test="COUNTY != null">#{COUNTY},</if>
<if test="REMARK != null">#{REMARK},</if>
<if test="reportHistoryId != null">#{reportHistoryId},</if>
<if test="registerTime != null">#{registerTime},</if>
<if test="enterpriseAddress != null">#{enterpriseAddress},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="PROVINCE != null">#{PROVINCE},</if>
<if test="SQRLXFS != null">#{SQRLXFS},</if>
<if test="SQR != null">#{SQR},</if>
<if test="termEnd != null">#{termEnd},</if>
<if test="ID != null">#{ID},</if>
<if test="VILLAGE != null">#{VILLAGE},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="legalPersonPost != null">#{legalPersonPost},</if>
<if test="legalPerson != null">#{legalPerson},</if>
<if test="zjEconKind != null">#{zjEconKind},</if>
<if test="corpStatus != null">#{corpStatus},</if>
<if test="createTime != null">#{createTime},</if>
<if test="uuitNo != null">#{uuitNo},</if>
<if test="supervisionSmall != null">#{supervisionSmall},</if>
<if test="rigisterAddress != null">#{rigisterAddress},</if>
<if test="riskReport != null">#{riskReport},</if>
<if test="indusTypeSmall != null">#{indusTypeSmall},</if>
<if test="isDelete != null">#{isDelete},</if>
<if test="businessScope != null">#{businessScope},</if>
<if test="startTime != null">#{startTime},</if>
<if test="legalPersonTel != null">#{legalPersonTel},</if>
<if test="indusTypeClass != null">#{indusTypeClass},</if>
<if test="termStart != null">#{termStart},</if>
<if test="enterpristScale != null">#{enterpristScale},</if>
<if test="registrationOrg != null">#{registrationOrg},</if>
<if test="districtCode != null">#{districtCode},</if>
<if test="SUBDISTRICT != null">#{SUBDISTRICT},</if>
<if test="otherName != null">#{otherName},</if>
<if test="rigisterFund != null">#{rigisterFund},</if>
<if test="enterpriseName != null">#{enterpriseName},</if>
<if test="orgCode != null">#{orgCode},</if>
<if test="aboveDesignated != null">#{aboveDesignated},</if>
<if test="FRZJH != null">#{FRZJH},</if>
<if test="CREATER != null">#{CREATER},</if>
<if test="UPDATER != null">#{UPDATER},</if>
<if test="CREATETIME != null">#{CREATETIME},</if>
<if test="UPDATETIME != null">#{UPDATETIME},</if>
<if test="lastPageNumber != null">#{lastPageNumber},</if>
<if test="floorSpace != null">#{floorSpace},</if>
<if test="aboveDesignatedTwo != null">#{aboveDesignatedTwo},</if>
<if test="safetyProductionInvestment != null">#{safetyProductionInvestment},</if>
<if test="lastYearOperatingIncome != null">#{lastYearOperatingIncome},</if>
<if test="lastYeatOnStream != null">#{lastYeatOnStream},</if>
<if test="majorProduct != null">#{majorProduct},</if>
<if test="htmlText != null">#{htmlText},</if>
<if test="fixedAssets != null">#{fixedAssets},</if>
</trim>
</insert>
<update id="updateSzsEnterpriseInformation" parameterType="SzsEnterpriseInformation">
update szs_enterprise_information
<trim prefix="SET" suffixOverrides=",">
<if test="jhptUpdateTime != null">jhpt_update_time = #{jhptUpdateTime},</if>
<if test="legalPersonCellphone != null">LEGAL_PERSON_CELLPHONE = #{legalPersonCellphone},</if>
<if test="indusTypeMiddle != null">INDUS_TYPE_MIDDLE = #{indusTypeMiddle},</if>
<if test="legalPersonType != null">LEGAL_PERSON_TYPE = #{legalPersonType},</if>
<if test="indusTypeLagre != null">INDUS_TYPE_LAGRE = #{indusTypeLagre},</if>
<if test="supervisionLarge != null">SUPERVISION_LARGE = #{supervisionLarge},</if>
<if test="CITY != null">CITY = #{CITY},</if>
<if test="businessAddress != null">BUSINESS_ADDRESS = #{businessAddress},</if>
<if test="COUNTY != null">COUNTY = #{COUNTY},</if>
<if test="REMARK != null">REMARK = #{REMARK},</if>
<if test="reportHistoryId != null">REPORT_HISTORY_ID = #{reportHistoryId},</if>
<if test="registerTime != null">REGISTER_TIME = #{registerTime},</if>
<if test="enterpriseAddress != null">ENTERPRISE_ADDRESS = #{enterpriseAddress},</if>
<if test="createBy != null">CREATE_BY = #{createBy},</if>
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
<if test="PROVINCE != null">PROVINCE = #{PROVINCE},</if>
<if test="SQRLXFS != null">SQRLXFS = #{SQRLXFS},</if>
<if test="SQR != null">SQR = #{SQR},</if>
<if test="termEnd != null">TERM_END = #{termEnd},</if>
<if test="VILLAGE != null">VILLAGE = #{VILLAGE},</if>
<if test="updateBy != null">UPDATE_BY = #{updateBy},</if>
<if test="legalPersonPost != null">LEGAL_PERSON_POST = #{legalPersonPost},</if>
<if test="legalPerson != null">LEGAL_PERSON = #{legalPerson},</if>
<if test="zjEconKind != null">ZJ_ECON_KIND = #{zjEconKind},</if>
<if test="corpStatus != null">CORP_STATUS = #{corpStatus},</if>
<if test="createTime != null">CREATE_TIME = #{createTime},</if>
<if test="uuitNo != null">UUIT_NO = #{uuitNo},</if>
<if test="supervisionSmall != null">SUPERVISION_SMALL = #{supervisionSmall},</if>
<if test="rigisterAddress != null">RIGISTER_ADDRESS = #{rigisterAddress},</if>
<if test="riskReport != null">RISK_REPORT = #{riskReport},</if>
<if test="indusTypeSmall != null">INDUS_TYPE_SMALL = #{indusTypeSmall},</if>
<if test="isDelete != null">IS_DELETE = #{isDelete},</if>
<if test="businessScope != null">BUSINESS_SCOPE = #{businessScope},</if>
<if test="startTime != null">START_TIME = #{startTime},</if>
<if test="legalPersonTel != null">LEGAL_PERSON_TEL = #{legalPersonTel},</if>
<if test="indusTypeClass != null">INDUS_TYPE_CLASS = #{indusTypeClass},</if>
<if test="termStart != null">TERM_START = #{termStart},</if>
<if test="enterpristScale != null">ENTERPRIST_SCALE = #{enterpristScale},</if>
<if test="registrationOrg != null">REGISTRATION_ORG = #{registrationOrg},</if>
<if test="districtCode != null">DISTRICT_CODE = #{districtCode},</if>
<if test="SUBDISTRICT != null">SUBDISTRICT = #{SUBDISTRICT},</if>
<if test="otherName != null">OTHER_NAME = #{otherName},</if>
<if test="rigisterFund != null">RIGISTER_FUND = #{rigisterFund},</if>
<if test="enterpriseName != null">ENTERPRISE_NAME = #{enterpriseName},</if>
<if test="orgCode != null">ORG_CODE = #{orgCode},</if>
<if test="aboveDesignated != null">ABOVE_DESIGNATED = #{aboveDesignated},</if>
<if test="FRZJH != null">FRZJH = #{FRZJH},</if>
<if test="CREATER != null">CREATER = #{CREATER},</if>
<if test="UPDATER != null">UPDATER = #{UPDATER},</if>
<if test="CREATETIME != null">CREATETIME = #{CREATETIME},</if>
<if test="UPDATETIME != null">UPDATETIME = #{UPDATETIME},</if>
<if test="lastPageNumber != null">LAST_PAGE_NUMBER = #{lastPageNumber},</if>
<if test="floorSpace != null">FLOOR_SPACE = #{floorSpace},</if>
<if test="aboveDesignatedTwo != null">ABOVE_DESIGNATED_TWO = #{aboveDesignatedTwo},</if>
<if test="safetyProductionInvestment != null">SAFETY_PRODUCTION_INVESTMENT = #{safetyProductionInvestment},</if>
<if test="lastYearOperatingIncome != null">LAST_YEAR_OPERATING_INCOME = #{lastYearOperatingIncome},</if>
<if test="lastYeatOnStream != null">LAST_YEAT_ON_STREAM = #{lastYeatOnStream},</if>
<if test="majorProduct != null">MAJOR_PRODUCT = #{majorProduct},</if>
<if test="htmlText != null">HTML_TEXT = #{htmlText},</if>
<if test="fixedAssets != null">FIXED_ASSETS = #{fixedAssets},</if>
</trim>
where ID = #{ID}
</update>
<delete id="deleteSzsEnterpriseInformationByID" parameterType="String">
delete from szs_enterprise_information where ID = #{ID}
</delete>
<delete id="deleteSzsEnterpriseInformationByIDs" parameterType="String">
delete from szs_enterprise_information where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save