parent
c166121ca8
commit
044279191c
@ -0,0 +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){
|
||||
if (item2.getSubdistrict().substring(0, 10).equals(item1.getCounty().substring(0, 10))) {
|
||||
BAdministrativeTreeRequest childDto = new BAdministrativeTreeRequest(item2.getCounty(), item2.getSubdistrict(), item2.getInstitutionName());
|
||||
parentDto.addChild(childDto);
|
||||
}
|
||||
}
|
||||
}
|
||||
cascadingSelectData.add(parentDto);
|
||||
}
|
||||
return success(cascadingSelectData);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package com.ruoyi.programManagement.controller;
|
||||
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.programManagement.entity.response.DictDataResponse;
|
||||
import com.ruoyi.programManagement.service.DictDataService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 数据字典信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("pharmaceuticals/dictdata")
|
||||
@Api(tags = "数据字典信息")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class DictDataController extends BaseController {
|
||||
@Resource
|
||||
private DictDataService dictDataService;
|
||||
|
||||
/**
|
||||
* 查询所有字典数据
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
@GetMapping
|
||||
@ApiOperation("查询所有字典数据")
|
||||
public AjaxResult list(@RequestParam("list") List<String> list) {
|
||||
List<DictDataResponse> resList = dictDataService.getDicttypeList(list);
|
||||
Map<String, List<DictDataResponse>> prodMap = resList.stream().collect(Collectors.groupingBy(DictDataResponse::getDictType));
|
||||
return AjaxResult.success(prodMap);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.ruoyi.programManagement.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.programManagement.entity.SzEntBasicInfo;
|
||||
import com.ruoyi.programManagement.entity.request.SzEntBasicInfoPageRequest;
|
||||
import com.ruoyi.programManagement.service.ISzEntBasicInfoService;
|
||||
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 javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业基本信息Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-09-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pharmaceuticals/info")
|
||||
@Api(tags = "企业基本信息")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class SzEntBasicInfoController extends BaseController {
|
||||
@Autowired
|
||||
private ISzEntBasicInfoService szEntBasicInfoService;
|
||||
|
||||
/**
|
||||
* 分页查询企业基本信息列表
|
||||
*
|
||||
* @Parm req 请求类
|
||||
*/
|
||||
@ApiOperation(value = "分页查询企业基本信息列表", response = SzEntBasicInfo.class)
|
||||
@GetMapping("/list")
|
||||
public AjaxResult page(@Valid SzEntBasicInfoPageRequest req) {
|
||||
return success(szEntBasicInfoService.page(req));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出企业基本信息列表
|
||||
*/
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SzEntBasicInfo szEntBasicInfo) {
|
||||
List<SzEntBasicInfo> list = szEntBasicInfoService.selectSzEntBasicInfoList(szEntBasicInfo);
|
||||
ExcelUtil<SzEntBasicInfo> util = new ExcelUtil<SzEntBasicInfo>(SzEntBasicInfo.class);
|
||||
util.exportExcel(response, list, "企业基本信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取企业基本信息详细信息
|
||||
*/
|
||||
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String ID) {
|
||||
return success(szEntBasicInfoService.selectSzEntBasicInfoByID(ID));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增企业基本信息
|
||||
*/
|
||||
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SzEntBasicInfo szEntBasicInfo) {
|
||||
return toAjax(szEntBasicInfoService.insertSzEntBasicInfo(szEntBasicInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改企业基本信息
|
||||
*/
|
||||
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SzEntBasicInfo szEntBasicInfo) {
|
||||
return toAjax(szEntBasicInfoService.updateSzEntBasicInfo(szEntBasicInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除企业基本信息
|
||||
*/
|
||||
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] IDs) {
|
||||
return toAjax(szEntBasicInfoService.deleteSzEntBasicInfoByIDs(IDs));
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.ruoyi.programManagement.entity.request;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 省重点企业表请求类
|
||||
*/
|
||||
@Data
|
||||
public class BKeyEnterprisePageRequest implements Serializable {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 年份
|
||||
*/
|
||||
@Excel(name = "年份",dateFormat = "")
|
||||
@ApiModelProperty("年份")
|
||||
private String year;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* size
|
||||
*/
|
||||
@ApiModelProperty("size")
|
||||
private int pageSize;
|
||||
|
||||
|
||||
/**
|
||||
* num
|
||||
*/
|
||||
@ApiModelProperty("num")
|
||||
private int pageNum;
|
||||
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
package com.ruoyi.programManagement.entity.request;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 企业基本信息分页查询请求类
|
||||
*/
|
||||
@Data
|
||||
public class SzEntBasicInfoPageRequest implements Serializable {
|
||||
|
||||
|
||||
/**
|
||||
* 行政区划-所在街道
|
||||
*/
|
||||
@ApiModelProperty("行政区划")
|
||||
private String subdistrict;
|
||||
|
||||
|
||||
/**
|
||||
* 经济类型大类
|
||||
*/
|
||||
@ApiModelProperty("经济类型大类")
|
||||
private String ecoTypeLarge;
|
||||
|
||||
/**
|
||||
* 行业类别门类
|
||||
*/
|
||||
@ApiModelProperty("行业类别门类")
|
||||
private String indusTypeClass;
|
||||
|
||||
|
||||
/**
|
||||
* 是否重点
|
||||
*/
|
||||
@ApiModelProperty("是否重点")
|
||||
private String isPoint;
|
||||
|
||||
|
||||
/**
|
||||
* 重大危险源等级
|
||||
*/
|
||||
@ApiModelProperty("重大危险源等级")
|
||||
private String majorHazardLevel;
|
||||
|
||||
|
||||
/**
|
||||
* 企业分色
|
||||
*/
|
||||
@ApiModelProperty("企业分色")
|
||||
private String entprColor;
|
||||
|
||||
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
*/
|
||||
@ApiModelProperty("统一社会信用代码")
|
||||
private String uscCode;
|
||||
|
||||
|
||||
/**
|
||||
* size
|
||||
*/
|
||||
@ApiModelProperty("size")
|
||||
private int pageSize;
|
||||
|
||||
|
||||
/**
|
||||
* num
|
||||
*/
|
||||
@ApiModelProperty("num")
|
||||
private int pageNum;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,128 @@
|
||||
package com.ruoyi.programManagement.entity.response;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 计划管理分页响应类
|
||||
*/
|
||||
@Data
|
||||
public class BPlanManagePageResponse {
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@ApiModelProperty(value = "编号")
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 计划年份
|
||||
*/
|
||||
@ApiModelProperty(value = "计划年份")
|
||||
private String plannedYear;
|
||||
|
||||
/**
|
||||
* 行政区划
|
||||
*/
|
||||
@ApiModelProperty(value = "行政区划")
|
||||
private String district;
|
||||
|
||||
/**
|
||||
* 计划企业数量
|
||||
*/
|
||||
@ApiModelProperty(value = "计划企业数量")
|
||||
private String planNumb;
|
||||
|
||||
/**
|
||||
* 计划标题
|
||||
*/
|
||||
@ApiModelProperty(value = "计划标题")
|
||||
private String planName;
|
||||
|
||||
/**
|
||||
* 计划内容
|
||||
*/
|
||||
@ApiModelProperty(value = "计划内容")
|
||||
private String planContent;
|
||||
|
||||
|
||||
/**
|
||||
* 创建者ID
|
||||
*/
|
||||
@ApiModelProperty(value = "创建者ID")
|
||||
private Integer createId;
|
||||
|
||||
/**
|
||||
* 更新者ID
|
||||
*/
|
||||
@ApiModelProperty(value = "更新者ID")
|
||||
private Integer updateId;
|
||||
|
||||
|
||||
/**
|
||||
* 用户权限id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户权限id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 部门权限id
|
||||
*/
|
||||
@ApiModelProperty(value = "部门权限id")
|
||||
private Long deptId;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private String enterpriseId;
|
||||
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Excel(name = "年份",dateFormat = "yyyy/MM/dd HH:mm:ss")
|
||||
@ApiModelProperty("创建时间")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
private String createBy;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Excel(name = "年份",dateFormat = "yyyy/MM/dd HH:mm:ss")
|
||||
@ApiModelProperty("更新时间")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
|
||||
/**
|
||||
* 重点企业数量
|
||||
*/
|
||||
@ApiModelProperty("重点企业数量")
|
||||
private Integer keyCount;
|
||||
}
|
@ -0,0 +1,139 @@
|
||||
package com.ruoyi.programManagement.entity.response;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.programManagement.entity.SzEntBasicInfo;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 计划管理查看详情响应类
|
||||
*/
|
||||
@Data
|
||||
public class BPlanManageResponse {
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@ApiModelProperty(value = "编号")
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 计划年份
|
||||
*/
|
||||
@ApiModelProperty(value = "计划年份")
|
||||
private String plannedYear;
|
||||
|
||||
/**
|
||||
* 行政区划
|
||||
*/
|
||||
@ApiModelProperty(value = "行政区划")
|
||||
private String district;
|
||||
|
||||
/**
|
||||
* 计划企业数量
|
||||
*/
|
||||
@ApiModelProperty(value = "计划企业数量")
|
||||
private String planNumb;
|
||||
|
||||
/**
|
||||
* 计划标题
|
||||
*/
|
||||
@ApiModelProperty(value = "计划标题")
|
||||
private String planName;
|
||||
|
||||
/**
|
||||
* 计划内容
|
||||
*/
|
||||
@ApiModelProperty(value = "计划内容")
|
||||
private String planContent;
|
||||
|
||||
|
||||
/**
|
||||
* 创建者ID
|
||||
*/
|
||||
@ApiModelProperty(value = "创建者ID")
|
||||
private Integer createId;
|
||||
|
||||
/**
|
||||
* 更新者ID
|
||||
*/
|
||||
@ApiModelProperty(value = "更新者ID")
|
||||
private Integer updateId;
|
||||
|
||||
|
||||
/**
|
||||
* 用户权限id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户权限id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 部门权限id
|
||||
*/
|
||||
@ApiModelProperty(value = "部门权限id")
|
||||
private Long deptId;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private String enterpriseId;
|
||||
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Excel(name = "年份", dateFormat = "yyyy/MM/dd HH:mm:ss")
|
||||
@ApiModelProperty("创建时间")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDate createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
private String createBy;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Excel(name = "年份", dateFormat = "yyyy/MM/dd HH:mm:ss")
|
||||
@ApiModelProperty("更新时间")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
/**
|
||||
* 企业详情list
|
||||
*/
|
||||
@ApiModelProperty("企业详情list")
|
||||
List<SzEntBasicInfo> list;
|
||||
|
||||
|
||||
/**
|
||||
* 重点企业数量
|
||||
*/
|
||||
@ApiModelProperty("重点企业数量")
|
||||
private Integer keyCount;
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.ruoyi.programManagement.entity.response;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel("字典数据响应类")
|
||||
public class DictDataResponse {
|
||||
|
||||
@ApiModelProperty(value = "字典类型")
|
||||
private String dictType;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "字典值")
|
||||
private String dictLabel;
|
||||
|
||||
@ApiModelProperty(value = "字典键值")
|
||||
private Integer dictValue;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
package com.ruoyi.programManagement.mapper;
|
||||
|
||||
import com.ruoyi.programManagement.entity.BAdministrative;
|
||||
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 行政区划Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-09-11
|
||||
*/
|
||||
public interface BAdministrativeMapper
|
||||
{
|
||||
/**
|
||||
* 查询行政区划
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 行政区划
|
||||
*/
|
||||
public BAdministrative selectBAdministrativeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询行政区划列表
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 行政区划集合
|
||||
*/
|
||||
public List<BAdministrative> selectBAdministrativeList(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 新增行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBAdministrative(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 修改行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBAdministrative(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 删除行政区划
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBAdministrativeById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除行政区划
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBAdministrativeByIds(Long[] ids);
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 行政获取县区
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<BAdministrativeTreeRequest> selectBAdministrativeTreeRequestList();
|
||||
|
||||
|
||||
/**
|
||||
* 行政获取乡镇
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<BAdministrativeTreeRequest> selectcascadingSelectDataList();
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.ruoyi.programManagement.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.programManagement.entity.DictData;
|
||||
import com.ruoyi.programManagement.entity.response.DictDataResponse;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DictDataDao extends BaseMapper<DictData> {
|
||||
|
||||
/**
|
||||
* 根据查询查询字典信息
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
|
||||
List<DictDataResponse> getDicttypeList(List<String> list);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
package com.ruoyi.programManagement.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.programManagement.entity.SzEntBasicInfo;
|
||||
import com.ruoyi.programManagement.entity.request.SzEntBasicInfoPageRequest;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业基本信息Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-09-09
|
||||
*/
|
||||
public interface SzEntBasicInfoMapper extends BaseMapper<SzEntBasicInfo> {
|
||||
/**
|
||||
* 查询企业基本信息
|
||||
*
|
||||
* @param ID 企业基本信息主键
|
||||
* @return 企业基本信息
|
||||
*/
|
||||
public SzEntBasicInfo selectSzEntBasicInfoByID(String ID);
|
||||
|
||||
/**
|
||||
* 查询企业基本信息列表
|
||||
*
|
||||
* @param szEntBasicInfo 企业基本信息
|
||||
* @return 企业基本信息集合
|
||||
*/
|
||||
public List<SzEntBasicInfo> selectSzEntBasicInfoList(SzEntBasicInfo szEntBasicInfo);
|
||||
|
||||
/**
|
||||
* 新增企业基本信息
|
||||
*
|
||||
* @param szEntBasicInfo 企业基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSzEntBasicInfo(SzEntBasicInfo szEntBasicInfo);
|
||||
|
||||
/**
|
||||
* 修改企业基本信息
|
||||
*
|
||||
* @param szEntBasicInfo 企业基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSzEntBasicInfo(SzEntBasicInfo szEntBasicInfo);
|
||||
|
||||
/**
|
||||
* 删除企业基本信息
|
||||
*
|
||||
* @param ID 企业基本信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSzEntBasicInfoByID(String ID);
|
||||
|
||||
/**
|
||||
* 批量删除企业基本信息
|
||||
*
|
||||
* @param IDs 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSzEntBasicInfoByIDs(String[] IDs);
|
||||
|
||||
/**
|
||||
* 分页查询企业基本信息列表
|
||||
*
|
||||
* @Parm req 请求类
|
||||
*/
|
||||
List<SzEntBasicInfo> page(@Param("req") SzEntBasicInfoPageRequest req);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.programManagement.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.programManagement.entity.DictData;
|
||||
import com.ruoyi.programManagement.entity.response.DictDataResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 字典信息
|
||||
*/
|
||||
public interface DictDataService extends IService<DictData> {
|
||||
|
||||
|
||||
public List<DictDataResponse> getDicttypeList(List<String> list);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package com.ruoyi.programManagement.service;
|
||||
|
||||
import com.ruoyi.programManagement.entity.BAdministrative;
|
||||
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 行政区划Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-09-11
|
||||
*/
|
||||
public interface IBAdministrativeService {
|
||||
/**
|
||||
* 查询行政区划
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 行政区划
|
||||
*/
|
||||
public BAdministrative selectBAdministrativeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询行政区划列表
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 行政区划集合
|
||||
*/
|
||||
public List<BAdministrative> selectBAdministrativeList(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 新增行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBAdministrative(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 修改行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBAdministrative(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 批量删除行政区划
|
||||
*
|
||||
* @param ids 需要删除的行政区划主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBAdministrativeByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除行政区划信息
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBAdministrativeById(Long id);
|
||||
|
||||
|
||||
/**
|
||||
* 行政获取县区
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<BAdministrativeTreeRequest> selectBAdministrativeTreeRequestList();
|
||||
|
||||
|
||||
/**
|
||||
* 行政获取乡镇
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<BAdministrativeTreeRequest> selectcascadingSelectDataList();
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
package com.ruoyi.programManagement.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.programManagement.entity.SzEntBasicInfo;
|
||||
import com.ruoyi.programManagement.entity.request.SzEntBasicInfoPageRequest;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* 企业基本信息Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-09-09
|
||||
*/
|
||||
public interface ISzEntBasicInfoService {
|
||||
/**
|
||||
* 查询企业基本信息
|
||||
*
|
||||
* @param ID 企业基本信息主键
|
||||
* @return 企业基本信息
|
||||
*/
|
||||
public SzEntBasicInfo selectSzEntBasicInfoByID(String ID);
|
||||
|
||||
/**
|
||||
* 查询企业基本信息列表
|
||||
*
|
||||
* @param szEntBasicInfo 企业基本信息
|
||||
* @return 企业基本信息集合
|
||||
*/
|
||||
public List<SzEntBasicInfo> selectSzEntBasicInfoList(SzEntBasicInfo szEntBasicInfo);
|
||||
|
||||
/**
|
||||
* 新增企业基本信息
|
||||
*
|
||||
* @param szEntBasicInfo 企业基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSzEntBasicInfo(SzEntBasicInfo szEntBasicInfo);
|
||||
|
||||
/**
|
||||
* 修改企业基本信息
|
||||
*
|
||||
* @param szEntBasicInfo 企业基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSzEntBasicInfo(SzEntBasicInfo szEntBasicInfo);
|
||||
|
||||
/**
|
||||
* 批量删除企业基本信息
|
||||
*
|
||||
* @param IDs 需要删除的企业基本信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSzEntBasicInfoByIDs(String[] IDs);
|
||||
|
||||
/**
|
||||
* 删除企业基本信息信息
|
||||
*
|
||||
* @param ID 企业基本信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSzEntBasicInfoByID(String ID);
|
||||
|
||||
/**
|
||||
* 分页查询企业基本信息列表
|
||||
*
|
||||
* @Parm req 请求类
|
||||
*/
|
||||
Map<String, Object> page(SzEntBasicInfoPageRequest req);
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
package com.ruoyi.programManagement.service.impl;
|
||||
|
||||
|
||||
import com.ruoyi.programManagement.entity.BAdministrative;
|
||||
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
|
||||
import com.ruoyi.programManagement.mapper.BAdministrativeMapper;
|
||||
import com.ruoyi.programManagement.service.IBAdministrativeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 行政区划Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-09-11
|
||||
*/
|
||||
@Service
|
||||
public class BAdministrativeServiceImpl implements IBAdministrativeService {
|
||||
@Autowired
|
||||
private BAdministrativeMapper bAdministrativeMapper;
|
||||
|
||||
/**
|
||||
* 查询行政区划
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 行政区划
|
||||
*/
|
||||
@Override
|
||||
public BAdministrative selectBAdministrativeById(Long id) {
|
||||
return bAdministrativeMapper.selectBAdministrativeById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询行政区划列表
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 行政区划
|
||||
*/
|
||||
@Override
|
||||
public List<BAdministrative> selectBAdministrativeList(BAdministrative bAdministrative) {
|
||||
return bAdministrativeMapper.selectBAdministrativeList(bAdministrative);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBAdministrative(BAdministrative bAdministrative) {
|
||||
return bAdministrativeMapper.insertBAdministrative(bAdministrative);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBAdministrative(BAdministrative bAdministrative) {
|
||||
return bAdministrativeMapper.updateBAdministrative(bAdministrative);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除行政区划
|
||||
*
|
||||
* @param ids 需要删除的行政区划主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBAdministrativeByIds(Long[] ids) {
|
||||
return bAdministrativeMapper.deleteBAdministrativeByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除行政区划信息
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBAdministrativeById(Long id) {
|
||||
return bAdministrativeMapper.deleteBAdministrativeById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BAdministrativeTreeRequest> selectBAdministrativeTreeRequestList() {
|
||||
return bAdministrativeMapper.selectBAdministrativeTreeRequestList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BAdministrativeTreeRequest> selectcascadingSelectDataList() {
|
||||
return bAdministrativeMapper.selectcascadingSelectDataList();
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.ruoyi.programManagement.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.programManagement.entity.DictData;
|
||||
import com.ruoyi.programManagement.entity.response.DictDataResponse;
|
||||
import com.ruoyi.programManagement.mapper.DictDataDao;
|
||||
import com.ruoyi.programManagement.service.DictDataService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service("dictDataService")
|
||||
public class DictDataServiceImpl extends ServiceImpl<DictDataDao, DictData> implements DictDataService {
|
||||
|
||||
@Override
|
||||
public List<DictDataResponse> getDicttypeList(List<String> list) {
|
||||
return baseMapper.getDicttypeList(list);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
package com.ruoyi.programManagement.service.impl;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.ruoyi.programManagement.entity.SzEntBasicInfo;
|
||||
import com.ruoyi.programManagement.entity.request.SzEntBasicInfoPageRequest;
|
||||
import com.ruoyi.programManagement.mapper.SzEntBasicInfoMapper;
|
||||
import com.ruoyi.programManagement.service.ISzEntBasicInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 企业基本信息Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-09-09
|
||||
*/
|
||||
@Service
|
||||
public class SzEntBasicInfoServiceImpl implements ISzEntBasicInfoService
|
||||
{
|
||||
@Autowired
|
||||
private SzEntBasicInfoMapper szEntBasicInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询企业基本信息
|
||||
*
|
||||
* @param ID 企业基本信息主键
|
||||
* @return 企业基本信息
|
||||
*/
|
||||
@Override
|
||||
public SzEntBasicInfo selectSzEntBasicInfoByID(String ID)
|
||||
{
|
||||
return szEntBasicInfoMapper.selectSzEntBasicInfoByID(ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询企业基本信息列表
|
||||
*
|
||||
* @param szEntBasicInfo 企业基本信息
|
||||
* @return 企业基本信息
|
||||
*/
|
||||
@Override
|
||||
public List<SzEntBasicInfo> selectSzEntBasicInfoList(SzEntBasicInfo szEntBasicInfo)
|
||||
{
|
||||
return szEntBasicInfoMapper.selectSzEntBasicInfoList(szEntBasicInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增企业基本信息
|
||||
*
|
||||
* @param szEntBasicInfo 企业基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSzEntBasicInfo(SzEntBasicInfo szEntBasicInfo)
|
||||
{
|
||||
return szEntBasicInfoMapper.insertSzEntBasicInfo(szEntBasicInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改企业基本信息
|
||||
*
|
||||
* @param szEntBasicInfo 企业基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSzEntBasicInfo(SzEntBasicInfo szEntBasicInfo)
|
||||
{
|
||||
return szEntBasicInfoMapper.updateSzEntBasicInfo(szEntBasicInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除企业基本信息
|
||||
*
|
||||
* @param IDs 需要删除的企业基本信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSzEntBasicInfoByIDs(String[] IDs)
|
||||
{
|
||||
return szEntBasicInfoMapper.deleteSzEntBasicInfoByIDs(IDs);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除企业基本信息信息
|
||||
*
|
||||
* @param ID 企业基本信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSzEntBasicInfoByID(String ID)
|
||||
{
|
||||
return szEntBasicInfoMapper.deleteSzEntBasicInfoByID(ID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> page(SzEntBasicInfoPageRequest req) {
|
||||
PageHelper.startPage(req.getPageNum(),req.getPageSize());
|
||||
List<SzEntBasicInfo> szEntBasicInfos = szEntBasicInfoMapper.page(req);
|
||||
PageInfo<SzEntBasicInfo> pageInfo = new PageInfo<>(szEntBasicInfos);
|
||||
Map<String, Object> result =new HashMap<>();
|
||||
result.put("total",pageInfo.getTotal());
|
||||
result.put("list",pageInfo.getList());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
<?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.BAdministrativeMapper">
|
||||
|
||||
<resultMap type="BAdministrative" id="BAdministrativeResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="region" column="region" />
|
||||
<result property="province" column="province" />
|
||||
<result property="city" column="city" />
|
||||
<result property="county" column="county" />
|
||||
<result property="subdistrict" column="subdistrict" />
|
||||
<result property="institutionName" column="institution_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBAdministrativeVo">
|
||||
select id, region, province, city, county, subdistrict, institution_name from b_administrative
|
||||
</sql>
|
||||
|
||||
<select id="selectBAdministrativeList" parameterType="BAdministrative" resultMap="BAdministrativeResult">
|
||||
<include refid="selectBAdministrativeVo"/>
|
||||
<where>
|
||||
<if test="region != null and region != ''"> and region = #{region}</if>
|
||||
<if test="province != null and province != ''"> and province = #{province}</if>
|
||||
<if test="city != null and city != ''"> and city = #{city}</if>
|
||||
<if test="county != null and county != ''"> and county = #{county}</if>
|
||||
<if test="subdistrict != null and subdistrict != ''"> and subdistrict = #{subdistrict}</if>
|
||||
<if test="institutionName != null and institutionName != ''"> and institution_name like concat('%', #{institutionName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBAdministrativeById" parameterType="Long" resultMap="BAdministrativeResult">
|
||||
<include refid="selectBAdministrativeVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="selectBAdministrativeTreeRequestList"
|
||||
resultType="com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest">
|
||||
select county, subdistrict, institution_name as institutionName from b_administrative where institution_name!='苏州市' group by county
|
||||
</select>
|
||||
<select id="selectcascadingSelectDataList"
|
||||
resultType="com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest">
|
||||
select county, subdistrict, institution_name as institutionName from b_administrative
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertBAdministrative" parameterType="BAdministrative" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into b_administrative
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="region != null">region,</if>
|
||||
<if test="province != null">province,</if>
|
||||
<if test="city != null">city,</if>
|
||||
<if test="county != null">county,</if>
|
||||
<if test="subdistrict != null">subdistrict,</if>
|
||||
<if test="institutionName != null">institution_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="region != null">#{region},</if>
|
||||
<if test="province != null">#{province},</if>
|
||||
<if test="city != null">#{city},</if>
|
||||
<if test="county != null">#{county},</if>
|
||||
<if test="subdistrict != null">#{subdistrict},</if>
|
||||
<if test="institutionName != null">#{institutionName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBAdministrative" parameterType="BAdministrative">
|
||||
update b_administrative
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="region != null">region = #{region},</if>
|
||||
<if test="province != null">province = #{province},</if>
|
||||
<if test="city != null">city = #{city},</if>
|
||||
<if test="county != null">county = #{county},</if>
|
||||
<if test="subdistrict != null">subdistrict = #{subdistrict},</if>
|
||||
<if test="institutionName != null">institution_name = #{institutionName},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBAdministrativeById" parameterType="Long">
|
||||
delete from b_administrative where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBAdministrativeByIds" parameterType="String">
|
||||
delete from b_administrative where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,29 @@
|
||||
<?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.BKeyEnterpriseMapper">
|
||||
|
||||
|
||||
<insert id="bKeyEnterpriseAdd" parameterType="com.ruoyi.programManagement.entity.BKeyEnterprise">
|
||||
insert into b_key_enterprise
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="entCode != null">ent_code,</if>
|
||||
<if test="year != null">year,</if>
|
||||
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="entCode != null">#{entCode},</if>
|
||||
<if test="year != null">#{year},</if>
|
||||
</trim>
|
||||
|
||||
</insert>
|
||||
<select id="page" resultType="com.ruoyi.programManagement.entity.BKeyEnterprise">
|
||||
select * from b_key_enterprise
|
||||
<where>
|
||||
<if test=" req.year !=null">
|
||||
and year = #{req.year}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,66 @@
|
||||
<?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.BPlanEnterpriseMapper">
|
||||
|
||||
|
||||
<delete id="deleteByPlanId">
|
||||
delete
|
||||
* from b_plan_enterprise where plan_id=
|
||||
#{planId}
|
||||
</delete>
|
||||
<select id="getByPlanId" resultType="com.ruoyi.programManagement.entity.SzEntBasicInfo">
|
||||
SELECT
|
||||
s.*,
|
||||
CASE
|
||||
|
||||
WHEN c.ent_code IS NOT NULL THEN
|
||||
1 ELSE 0
|
||||
END AS is_point
|
||||
FROM
|
||||
( SELECT b.*, a.plan_id FROM b_plan_enterprise a LEFT JOIN sz_ent_basic_info b ON a.enterprise_id = b.USC_CODE ) s
|
||||
LEFT JOIN b_key_enterprise c ON s.USC_CODE = c.ent_code
|
||||
WHERE
|
||||
s.plan_id = #{planId}
|
||||
GROUP BY
|
||||
s.ENTPR_ID
|
||||
|
||||
</select>
|
||||
<select id="getZhifa" resultType="com.ruoyi.programManagement.entity.response.BPlanEnterpriseZhifaResponse">
|
||||
SELECT
|
||||
s.*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
a.*,
|
||||
d.ENTPR_NAME AS entprName,
|
||||
c.planned_year AS plannedYear,
|
||||
|
||||
CASE
|
||||
|
||||
WHEN b.USC_CODE IS NOT NULL THEN
|
||||
1 ELSE 0
|
||||
END AS checkStatus
|
||||
FROM
|
||||
b_plan_enterprise a
|
||||
LEFT JOIN sz_enfor_examine b ON a.enterprise_id = b.USC_CODE
|
||||
LEFT JOIN b_plan_manage c ON a.plan_id = c.id
|
||||
left join sz_ent_basic_info d on a.enterprise_id=d.USC_CODE) s
|
||||
|
||||
<where>
|
||||
<if test="req.plannedYear !=null and req.plannedYear !=''">
|
||||
and s.plannedYear =#{req.plannedYear}
|
||||
</if>
|
||||
<if test="req.district !=null and req.district !=''">
|
||||
and s.district =#{req.district}
|
||||
</if>
|
||||
<if test="req.checkStatus !=null and req.checkStatus !=''">
|
||||
and s.checkStatus =#{req.checkStatus}
|
||||
</if>
|
||||
</where>
|
||||
group by s.enterprise_id
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,25 @@
|
||||
<?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.BPlanManageMapper">
|
||||
|
||||
|
||||
<select id="page" resultType="com.ruoyi.programManagement.entity.response.BPlanManagePageResponse">
|
||||
SELECT a.*
|
||||
FROM b_plan_manage a
|
||||
<where>
|
||||
<if test="req.plannedYear !=null and req.plannedYear !='' ">
|
||||
and a.planned_year =#{req.plannedYear}
|
||||
</if>
|
||||
<if test="req.district !=null and req.district !='' ">
|
||||
and a.district =#{req.district}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectByPlanId" resultType="com.ruoyi.programManagement.entity.response.BPlanManageResponse">
|
||||
select a.*
|
||||
from b_plan_manage a
|
||||
where id = #{id}
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,21 @@
|
||||
<?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.DictDataDao">
|
||||
|
||||
|
||||
|
||||
<select id="getDicttypeList" resultType="com.ruoyi.programManagement.entity.response.DictDataResponse">
|
||||
select a.dict_type,a.dict_label,a.dict_value from SYS_DICT_DATA a
|
||||
where a.dict_type in
|
||||
<foreach item="item"
|
||||
collection="list" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,500 @@
|
||||
<?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.SzEntBasicInfoMapper">
|
||||
|
||||
<resultMap type="SzEntBasicInfo" id="SzEntBasicInfoResult">
|
||||
<result property="dmsTimestamp" column="dms_timestamp" />
|
||||
<result property="ID" column="ID" />
|
||||
<result property="entprId" column="ENTPR_ID" />
|
||||
<result property="entprName" column="ENTPR_NAME" />
|
||||
<result property="uscCode" column="USC_CODE" />
|
||||
<result property="REGION" column="REGION" />
|
||||
<result property="PROVINCE" column="PROVINCE" />
|
||||
<result property="CITY" column="CITY" />
|
||||
<result property="COUNTY" column="COUNTY" />
|
||||
<result property="SUBDISTRICT" column="SUBDISTRICT" />
|
||||
<result property="VILLAGE" column="VILLAGE" />
|
||||
<result property="PARK" column="PARK" />
|
||||
<result property="regAddr" column="REG_ADDR" />
|
||||
<result property="bizAddr" column="BIZ_ADDR" />
|
||||
<result property="POSTCODE" column="POSTCODE" />
|
||||
<result property="setupDate" column="SETUP_DATE" />
|
||||
<result property="legalPerson" column="LEGAL_PERSON" />
|
||||
<result property="contactTel" column="CONTACT_TEL" />
|
||||
<result property="contactEmail" column="CONTACT_EMAIL" />
|
||||
<result property="contactQq" column="CONTACT_QQ" />
|
||||
<result property="WEBSITE" column="WEBSITE" />
|
||||
<result property="FAX" column="FAX" />
|
||||
<result property="BOSS" column="BOSS" />
|
||||
<result property="bossTel" column="BOSS_TEL" />
|
||||
<result property="bossMobtel" column="BOSS_MOBTEL" />
|
||||
<result property="bossEmail" column="BOSS_EMAIL" />
|
||||
<result property="safetyManager" column="SAFETY_MANAGER" />
|
||||
<result property="safetyTel" column="SAFETY_TEL" />
|
||||
<result property="safetyMobtel" column="SAFETY_MOBTEL" />
|
||||
<result property="safetyEmail" column="SAFETY_EMAIL" />
|
||||
<result property="ecoTypeLarge" column="ECO_TYPE_LARGE" />
|
||||
<result property="ecoTypeSmall" column="ECO_TYPE_SMALL" />
|
||||
<result property="indusTypeClass" column="INDUS_TYPE_CLASS" />
|
||||
<result property="indusTypeLagre" column="INDUS_TYPE_LAGRE" />
|
||||
<result property="indusTypeMiddle" column="INDUS_TYPE_MIDDLE" />
|
||||
<result property="indusTypeSmall" column="INDUS_TYPE_SMALL" />
|
||||
<result property="supervisionLarge" column="SUPERVISION_LARGE" />
|
||||
<result property="supervisionSmall" column="SUPERVISION_SMALL" />
|
||||
<result property="specialGovernance" column="SPECIAL_GOVERNANCE" />
|
||||
<result property="stateOwed" column="STATE_OWED" />
|
||||
<result property="AFFILIATION" column="AFFILIATION" />
|
||||
<result property="businessScope" column="BUSINESS_SCOPE" />
|
||||
<result property="operatingStatus" column="OPERATING_STATUS" />
|
||||
<result property="regCapi" column="REG_CAPI" />
|
||||
<result property="floorArea" column="FLOOR_AREA" />
|
||||
<result property="employeeNum" column="EMPLOYEE_NUM" />
|
||||
<result property="speclalOperationNum" column="SPECLAL_OPERATION_NUM" />
|
||||
<result property="fullSafetyNum" column="FULL_SAFETY_NUM" />
|
||||
<result property="partSafetyNum" column="PART_SAFETY_NUM" />
|
||||
<result property="fullEmegNum" column="FULL_EMEG_NUM" />
|
||||
<result property="safetyDepart" column="SAFETY_DEPART" />
|
||||
<result property="safetyDepartName" column="SAFETY_DEPART_NAME" />
|
||||
<result property="safetyDepartDuty" column="SAFETY_DEPART_DUTY" />
|
||||
<result property="safetyDepartNum" column="SAFETY_DEPART_NUM" />
|
||||
<result property="cseNum" column="CSE_NUM" />
|
||||
<result property="fullSafety" column="FULL_SAFETY" />
|
||||
<result property="SCALE" column="SCALE" />
|
||||
<result property="parentCompName" column="PARENT_COMP_NAME" />
|
||||
<result property="groupCompName" column="GROUP_COMP_NAME" />
|
||||
<result property="standLevel" column="STAND_LEVEL" />
|
||||
<result property="safetySupervisionLevel" column="SAFETY_SUPERVISION_LEVEL" />
|
||||
<result property="localSafetyAdmin" column="LOCAL_SAFETY_ADMIN" />
|
||||
<result property="majorHazardInstallations" column="MAJOR_HAZARD_INSTALLATIONS" />
|
||||
<result property="majorHazardLevel" column="MAJOR_HAZARD_LEVEL" />
|
||||
<result property="entprPlaneGragh" column="ENTPR_PLANE_GRAGH" />
|
||||
<result property="longitudeGps" column="LONGITUDE_GPS" />
|
||||
<result property="latitudeGps" column="LATITUDE_GPS" />
|
||||
<result property="LONGITUDE" column="LONGITUDE" />
|
||||
<result property="LATITUDE" column="LATITUDE" />
|
||||
<result property="entprNotes" column="ENTPR_NOTES" />
|
||||
<result property="CREATER" column="CREATER" />
|
||||
<result property="CREATETIME" column="CREATETIME" />
|
||||
<result property="UPDATER" column="UPDATER" />
|
||||
<result property="UPDATETIME" column="UPDATETIME" />
|
||||
<result property="mainProduct" column="MAIN_PRODUCT" />
|
||||
<result property="industryRefer" column="INDUSTRY_REFER" />
|
||||
<result property="gridCode" column="GRID_CODE" />
|
||||
<result property="gridEntprStatus" column="GRID_ENTPR_STATUS" />
|
||||
<result property="infoYear" column="INFO_YEAR" />
|
||||
<result property="doublePreven" column="DOUBLE_PREVEN" />
|
||||
<result property="enterColorChart" column="ENTER_COLOR_CHART" />
|
||||
<result property="ENTPRCOLOR" column="ENTPRCOLOR" />
|
||||
<result property="ISBUYSAFETYINSURANCE" column="ISBUYSAFETYINSURANCE" />
|
||||
<result property="TURNOVER" column="TURNOVER" />
|
||||
<result property="sourceData" column="SOURCE_DATA" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSzEntBasicInfoVo">
|
||||
select dms_timestamp, ID, ENTPR_ID, ENTPR_NAME, USC_CODE, REGION, PROVINCE, CITY, COUNTY, SUBDISTRICT, VILLAGE, PARK, REG_ADDR, BIZ_ADDR, POSTCODE, SETUP_DATE, LEGAL_PERSON, CONTACT_TEL, CONTACT_EMAIL, CONTACT_QQ, WEBSITE, FAX, BOSS, BOSS_TEL, BOSS_MOBTEL, BOSS_EMAIL, SAFETY_MANAGER, SAFETY_TEL, SAFETY_MOBTEL, SAFETY_EMAIL, ECO_TYPE_LARGE, ECO_TYPE_SMALL, INDUS_TYPE_CLASS, INDUS_TYPE_LAGRE, INDUS_TYPE_MIDDLE, INDUS_TYPE_SMALL, SUPERVISION_LARGE, SUPERVISION_SMALL, SPECIAL_GOVERNANCE, STATE_OWED, AFFILIATION, BUSINESS_SCOPE, OPERATING_STATUS, REG_CAPI, FLOOR_AREA, EMPLOYEE_NUM, SPECLAL_OPERATION_NUM, FULL_SAFETY_NUM, PART_SAFETY_NUM, FULL_EMEG_NUM, SAFETY_DEPART, SAFETY_DEPART_NAME, SAFETY_DEPART_DUTY, SAFETY_DEPART_NUM, CSE_NUM, FULL_SAFETY, SCALE, PARENT_COMP_NAME, GROUP_COMP_NAME, STAND_LEVEL, SAFETY_SUPERVISION_LEVEL, LOCAL_SAFETY_ADMIN, MAJOR_HAZARD_INSTALLATIONS, MAJOR_HAZARD_LEVEL, ENTPR_PLANE_GRAGH, LONGITUDE_GPS, LATITUDE_GPS, LONGITUDE, LATITUDE, ENTPR_NOTES, CREATER, CREATETIME, UPDATER, UPDATETIME, MAIN_PRODUCT, INDUSTRY_REFER, GRID_CODE, GRID_ENTPR_STATUS, INFO_YEAR, DOUBLE_PREVEN, ENTER_COLOR_CHART, ENTPRCOLOR, ISBUYSAFETYINSURANCE, TURNOVER, SOURCE_DATA from sz_ent_basic_info
|
||||
</sql>
|
||||
|
||||
<select id="selectSzEntBasicInfoList" parameterType="SzEntBasicInfo" resultMap="SzEntBasicInfoResult">
|
||||
<include refid="selectSzEntBasicInfoVo"/>
|
||||
<where>
|
||||
<if test="dmsTimestamp != null "> and dms_timestamp = #{dmsTimestamp}</if>
|
||||
<if test="entprId != null and entprId != ''"> and ENTPR_ID = #{entprId}</if>
|
||||
<if test="entprName != null and entprName != ''"> and ENTPR_NAME like concat('%', #{entprName}, '%')</if>
|
||||
<if test="uscCode != null and uscCode != ''"> and USC_CODE = #{uscCode}</if>
|
||||
<if test="REGION != null and REGION != ''"> and REGION = #{REGION}</if>
|
||||
<if test="PROVINCE != null and PROVINCE != ''"> and PROVINCE = #{PROVINCE}</if>
|
||||
<if test="CITY != null and CITY != ''"> and CITY = #{CITY}</if>
|
||||
<if test="COUNTY != null and COUNTY != ''"> and COUNTY = #{COUNTY}</if>
|
||||
<if test="SUBDISTRICT != null and SUBDISTRICT != ''"> and SUBDISTRICT = #{SUBDISTRICT}</if>
|
||||
<if test="VILLAGE != null and VILLAGE != ''"> and VILLAGE = #{VILLAGE}</if>
|
||||
<if test="PARK != null and PARK != ''"> and PARK = #{PARK}</if>
|
||||
<if test="regAddr != null and regAddr != ''"> and REG_ADDR = #{regAddr}</if>
|
||||
<if test="bizAddr != null and bizAddr != ''"> and BIZ_ADDR = #{bizAddr}</if>
|
||||
<if test="POSTCODE != null and POSTCODE != ''"> and POSTCODE = #{POSTCODE}</if>
|
||||
<if test="setupDate != null "> and SETUP_DATE = #{setupDate}</if>
|
||||
<if test="legalPerson != null and legalPerson != ''"> and LEGAL_PERSON = #{legalPerson}</if>
|
||||
<if test="contactTel != null and contactTel != ''"> and CONTACT_TEL = #{contactTel}</if>
|
||||
<if test="contactEmail != null and contactEmail != ''"> and CONTACT_EMAIL = #{contactEmail}</if>
|
||||
<if test="contactQq != null and contactQq != ''"> and CONTACT_QQ = #{contactQq}</if>
|
||||
<if test="WEBSITE != null and WEBSITE != ''"> and WEBSITE = #{WEBSITE}</if>
|
||||
<if test="FAX != null and FAX != ''"> and FAX = #{FAX}</if>
|
||||
<if test="BOSS != null and BOSS != ''"> and BOSS = #{BOSS}</if>
|
||||
<if test="bossTel != null and bossTel != ''"> and BOSS_TEL = #{bossTel}</if>
|
||||
<if test="bossMobtel != null and bossMobtel != ''"> and BOSS_MOBTEL = #{bossMobtel}</if>
|
||||
<if test="bossEmail != null and bossEmail != ''"> and BOSS_EMAIL = #{bossEmail}</if>
|
||||
<if test="safetyManager != null and safetyManager != ''"> and SAFETY_MANAGER = #{safetyManager}</if>
|
||||
<if test="safetyTel != null and safetyTel != ''"> and SAFETY_TEL = #{safetyTel}</if>
|
||||
<if test="safetyMobtel != null and safetyMobtel != ''"> and SAFETY_MOBTEL = #{safetyMobtel}</if>
|
||||
<if test="safetyEmail != null and safetyEmail != ''"> and SAFETY_EMAIL = #{safetyEmail}</if>
|
||||
<if test="ecoTypeLarge != null and ecoTypeLarge != ''"> and ECO_TYPE_LARGE = #{ecoTypeLarge}</if>
|
||||
<if test="ecoTypeSmall != null and ecoTypeSmall != ''"> and ECO_TYPE_SMALL = #{ecoTypeSmall}</if>
|
||||
<if test="indusTypeClass != null and indusTypeClass != ''"> and INDUS_TYPE_CLASS = #{indusTypeClass}</if>
|
||||
<if test="indusTypeLagre != null and indusTypeLagre != ''"> and INDUS_TYPE_LAGRE = #{indusTypeLagre}</if>
|
||||
<if test="indusTypeMiddle != null and indusTypeMiddle != ''"> and INDUS_TYPE_MIDDLE = #{indusTypeMiddle}</if>
|
||||
<if test="indusTypeSmall != null and indusTypeSmall != ''"> and INDUS_TYPE_SMALL = #{indusTypeSmall}</if>
|
||||
<if test="supervisionLarge != null and supervisionLarge != ''"> and SUPERVISION_LARGE = #{supervisionLarge}</if>
|
||||
<if test="supervisionSmall != null and supervisionSmall != ''"> and SUPERVISION_SMALL = #{supervisionSmall}</if>
|
||||
<if test="specialGovernance != null and specialGovernance != ''"> and SPECIAL_GOVERNANCE = #{specialGovernance}</if>
|
||||
<if test="stateOwed != null and stateOwed != ''"> and STATE_OWED = #{stateOwed}</if>
|
||||
<if test="AFFILIATION != null and AFFILIATION != ''"> and AFFILIATION = #{AFFILIATION}</if>
|
||||
<if test="businessScope != null and businessScope != ''"> and BUSINESS_SCOPE = #{businessScope}</if>
|
||||
<if test="operatingStatus != null and operatingStatus != ''"> and OPERATING_STATUS = #{operatingStatus}</if>
|
||||
<if test="regCapi != null "> and REG_CAPI = #{regCapi}</if>
|
||||
<if test="floorArea != null "> and FLOOR_AREA = #{floorArea}</if>
|
||||
<if test="employeeNum != null "> and EMPLOYEE_NUM = #{employeeNum}</if>
|
||||
<if test="speclalOperationNum != null "> and SPECLAL_OPERATION_NUM = #{speclalOperationNum}</if>
|
||||
<if test="fullSafetyNum != null "> and FULL_SAFETY_NUM = #{fullSafetyNum}</if>
|
||||
<if test="partSafetyNum != null "> and PART_SAFETY_NUM = #{partSafetyNum}</if>
|
||||
<if test="fullEmegNum != null "> and FULL_EMEG_NUM = #{fullEmegNum}</if>
|
||||
<if test="safetyDepart != null and safetyDepart != ''"> and SAFETY_DEPART = #{safetyDepart}</if>
|
||||
<if test="safetyDepartName != null and safetyDepartName != ''"> and SAFETY_DEPART_NAME like concat('%', #{safetyDepartName}, '%')</if>
|
||||
<if test="safetyDepartDuty != null and safetyDepartDuty != ''"> and SAFETY_DEPART_DUTY = #{safetyDepartDuty}</if>
|
||||
<if test="safetyDepartNum != null "> and SAFETY_DEPART_NUM = #{safetyDepartNum}</if>
|
||||
<if test="cseNum != null "> and CSE_NUM = #{cseNum}</if>
|
||||
<if test="fullSafety != null and fullSafety != ''"> and FULL_SAFETY = #{fullSafety}</if>
|
||||
<if test="SCALE != null and SCALE != ''"> and SCALE = #{SCALE}</if>
|
||||
<if test="parentCompName != null and parentCompName != ''"> and PARENT_COMP_NAME like concat('%', #{parentCompName}, '%')</if>
|
||||
<if test="groupCompName != null and groupCompName != ''"> and GROUP_COMP_NAME like concat('%', #{groupCompName}, '%')</if>
|
||||
<if test="standLevel != null and standLevel != ''"> and STAND_LEVEL = #{standLevel}</if>
|
||||
<if test="safetySupervisionLevel != null and safetySupervisionLevel != ''"> and SAFETY_SUPERVISION_LEVEL = #{safetySupervisionLevel}</if>
|
||||
<if test="localSafetyAdmin != null and localSafetyAdmin != ''"> and LOCAL_SAFETY_ADMIN = #{localSafetyAdmin}</if>
|
||||
<if test="majorHazardInstallations != null and majorHazardInstallations != ''"> and MAJOR_HAZARD_INSTALLATIONS = #{majorHazardInstallations}</if>
|
||||
<if test="majorHazardLevel != null and majorHazardLevel != ''"> and MAJOR_HAZARD_LEVEL = #{majorHazardLevel}</if>
|
||||
<if test="entprPlaneGragh != null and entprPlaneGragh != ''"> and ENTPR_PLANE_GRAGH = #{entprPlaneGragh}</if>
|
||||
<if test="longitudeGps != null "> and LONGITUDE_GPS = #{longitudeGps}</if>
|
||||
<if test="latitudeGps != null "> and LATITUDE_GPS = #{latitudeGps}</if>
|
||||
<if test="LONGITUDE != null "> and LONGITUDE = #{LONGITUDE}</if>
|
||||
<if test="LATITUDE != null "> and LATITUDE = #{LATITUDE}</if>
|
||||
<if test="entprNotes != null and entprNotes != ''"> and ENTPR_NOTES = #{entprNotes}</if>
|
||||
<if test="CREATER != null and CREATER != ''"> and CREATER = #{CREATER}</if>
|
||||
<if test="CREATETIME != null "> and CREATETIME = #{CREATETIME}</if>
|
||||
<if test="UPDATER != null and UPDATER != ''"> and UPDATER = #{UPDATER}</if>
|
||||
<if test="UPDATETIME != null "> and UPDATETIME = #{UPDATETIME}</if>
|
||||
<if test="mainProduct != null and mainProduct != ''"> and MAIN_PRODUCT = #{mainProduct}</if>
|
||||
<if test="industryRefer != null and industryRefer != ''"> and INDUSTRY_REFER = #{industryRefer}</if>
|
||||
<if test="gridCode != null and gridCode != ''"> and GRID_CODE = #{gridCode}</if>
|
||||
<if test="gridEntprStatus != null and gridEntprStatus != ''"> and GRID_ENTPR_STATUS = #{gridEntprStatus}</if>
|
||||
<if test="infoYear != null and infoYear != ''"> and INFO_YEAR = #{infoYear}</if>
|
||||
<if test="doublePreven != null and doublePreven != ''"> and DOUBLE_PREVEN = #{doublePreven}</if>
|
||||
<if test="enterColorChart != null and enterColorChart != ''"> and ENTER_COLOR_CHART = #{enterColorChart}</if>
|
||||
<if test="ENTPRCOLOR != null and ENTPRCOLOR != ''"> and ENTPRCOLOR = #{ENTPRCOLOR}</if>
|
||||
<if test="ISBUYSAFETYINSURANCE != null and ISBUYSAFETYINSURANCE != ''"> and ISBUYSAFETYINSURANCE = #{ISBUYSAFETYINSURANCE}</if>
|
||||
<if test="TURNOVER != null "> and TURNOVER = #{TURNOVER}</if>
|
||||
<if test="sourceData != null and sourceData != ''"> and SOURCE_DATA = #{sourceData}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSzEntBasicInfoByID" parameterType="String" resultMap="SzEntBasicInfoResult">
|
||||
<include refid="selectSzEntBasicInfoVo"/>
|
||||
where ID = #{ID}
|
||||
</select>
|
||||
<select id="page" resultType="com.ruoyi.programManagement.entity.SzEntBasicInfo">
|
||||
select s.* from(
|
||||
SELECT
|
||||
a.*,
|
||||
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 0 END AS is_point
|
||||
FROM
|
||||
sz_ent_basic_info a
|
||||
LEFT JOIN
|
||||
b_key_enterprise b ON a.USC_CODE = b.ent_code)s
|
||||
<where>
|
||||
<if test="req.uscCode != null and req.uscCode != ''">and s.USC_CODE=#{req.uscCode}</if>
|
||||
<if test="req.entprColor != null and req.entprColor != ''">and s.ENTPRCOLOR=#{req.entprColor}</if>
|
||||
<if test="req.majorHazardLevel != null and req.majorHazardLevel != ''">and
|
||||
s.MAJOR_HAZARD_LEVEL=#{req.majorHazardLevel}
|
||||
</if>
|
||||
<if test="req.isPoint != null and req.isPoint != ''">and s.is_point=#{req.isPoint}</if>
|
||||
<if test="req.subdistrict != null and req.subdistrict != ''">
|
||||
and s.subdistrict like concat('%',#{req.subdistrict},'%')
|
||||
</if>
|
||||
<if test="req.ecoTypeLarge != null and req.ecoTypeLarge != ''">and s.eco_type_large=#{req.ecoTypeLarge}
|
||||
</if>
|
||||
<if test="req.indusTypeClass != null and req.indusTypeClass != ''">and
|
||||
s.indus_type_class=#{req.indusTypeClass}
|
||||
</if>
|
||||
</where>
|
||||
group by s.USC_CODE
|
||||
</select>
|
||||
|
||||
<insert id="insertSzEntBasicInfo" parameterType="SzEntBasicInfo">
|
||||
insert into sz_ent_basic_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="dmsTimestamp != null">dms_timestamp,</if>
|
||||
<if test="ID != null">ID,</if>
|
||||
<if test="entprId != null and entprId != ''">ENTPR_ID,</if>
|
||||
<if test="entprName != null and entprName != ''">ENTPR_NAME,</if>
|
||||
<if test="uscCode != null and uscCode != ''">USC_CODE,</if>
|
||||
<if test="REGION != null and REGION != ''">REGION,</if>
|
||||
<if test="PROVINCE != null and PROVINCE != ''">PROVINCE,</if>
|
||||
<if test="CITY != null and CITY != ''">CITY,</if>
|
||||
<if test="COUNTY != null and COUNTY != ''">COUNTY,</if>
|
||||
<if test="SUBDISTRICT != null and SUBDISTRICT != ''">SUBDISTRICT,</if>
|
||||
<if test="VILLAGE != null">VILLAGE,</if>
|
||||
<if test="PARK != null">PARK,</if>
|
||||
<if test="regAddr != null and regAddr != ''">REG_ADDR,</if>
|
||||
<if test="bizAddr != null and bizAddr != ''">BIZ_ADDR,</if>
|
||||
<if test="POSTCODE != null and POSTCODE != ''">POSTCODE,</if>
|
||||
<if test="setupDate != null">SETUP_DATE,</if>
|
||||
<if test="legalPerson != null and legalPerson != ''">LEGAL_PERSON,</if>
|
||||
<if test="contactTel != null and contactTel != ''">CONTACT_TEL,</if>
|
||||
<if test="contactEmail != null and contactEmail != ''">CONTACT_EMAIL,</if>
|
||||
<if test="contactQq != null">CONTACT_QQ,</if>
|
||||
<if test="WEBSITE != null">WEBSITE,</if>
|
||||
<if test="FAX != null and FAX != ''">FAX,</if>
|
||||
<if test="BOSS != null and BOSS != ''">BOSS,</if>
|
||||
<if test="bossTel != null">BOSS_TEL,</if>
|
||||
<if test="bossMobtel != null">BOSS_MOBTEL,</if>
|
||||
<if test="bossEmail != null">BOSS_EMAIL,</if>
|
||||
<if test="safetyManager != null">SAFETY_MANAGER,</if>
|
||||
<if test="safetyTel != null">SAFETY_TEL,</if>
|
||||
<if test="safetyMobtel != null">SAFETY_MOBTEL,</if>
|
||||
<if test="safetyEmail != null">SAFETY_EMAIL,</if>
|
||||
<if test="ecoTypeLarge != null and ecoTypeLarge != ''">ECO_TYPE_LARGE,</if>
|
||||
<if test="ecoTypeSmall != null and ecoTypeSmall != ''">ECO_TYPE_SMALL,</if>
|
||||
<if test="indusTypeClass != null and indusTypeClass != ''">INDUS_TYPE_CLASS,</if>
|
||||
<if test="indusTypeLagre != null and indusTypeLagre != ''">INDUS_TYPE_LAGRE,</if>
|
||||
<if test="indusTypeMiddle != null and indusTypeMiddle != ''">INDUS_TYPE_MIDDLE,</if>
|
||||
<if test="indusTypeSmall != null and indusTypeSmall != ''">INDUS_TYPE_SMALL,</if>
|
||||
<if test="supervisionLarge != null and supervisionLarge != ''">SUPERVISION_LARGE,</if>
|
||||
<if test="supervisionSmall != null and supervisionSmall != ''">SUPERVISION_SMALL,</if>
|
||||
<if test="specialGovernance != null">SPECIAL_GOVERNANCE,</if>
|
||||
<if test="stateOwed != null">STATE_OWED,</if>
|
||||
<if test="AFFILIATION != null">AFFILIATION,</if>
|
||||
<if test="businessScope != null">BUSINESS_SCOPE,</if>
|
||||
<if test="operatingStatus != null and operatingStatus != ''">OPERATING_STATUS,</if>
|
||||
<if test="regCapi != null">REG_CAPI,</if>
|
||||
<if test="floorArea != null">FLOOR_AREA,</if>
|
||||
<if test="employeeNum != null">EMPLOYEE_NUM,</if>
|
||||
<if test="speclalOperationNum != null">SPECLAL_OPERATION_NUM,</if>
|
||||
<if test="fullSafetyNum != null">FULL_SAFETY_NUM,</if>
|
||||
<if test="partSafetyNum != null">PART_SAFETY_NUM,</if>
|
||||
<if test="fullEmegNum != null">FULL_EMEG_NUM,</if>
|
||||
<if test="safetyDepart != null and safetyDepart != ''">SAFETY_DEPART,</if>
|
||||
<if test="safetyDepartName != null">SAFETY_DEPART_NAME,</if>
|
||||
<if test="safetyDepartDuty != null">SAFETY_DEPART_DUTY,</if>
|
||||
<if test="safetyDepartNum != null">SAFETY_DEPART_NUM,</if>
|
||||
<if test="cseNum != null">CSE_NUM,</if>
|
||||
<if test="fullSafety != null">FULL_SAFETY,</if>
|
||||
<if test="SCALE != null and SCALE != ''">SCALE,</if>
|
||||
<if test="parentCompName != null">PARENT_COMP_NAME,</if>
|
||||
<if test="groupCompName != null">GROUP_COMP_NAME,</if>
|
||||
<if test="standLevel != null and standLevel != ''">STAND_LEVEL,</if>
|
||||
<if test="safetySupervisionLevel != null and safetySupervisionLevel != ''">SAFETY_SUPERVISION_LEVEL,</if>
|
||||
<if test="localSafetyAdmin != null and localSafetyAdmin != ''">LOCAL_SAFETY_ADMIN,</if>
|
||||
<if test="majorHazardInstallations != null and majorHazardInstallations != ''">MAJOR_HAZARD_INSTALLATIONS,</if>
|
||||
<if test="majorHazardLevel != null and majorHazardLevel != ''">MAJOR_HAZARD_LEVEL,</if>
|
||||
<if test="entprPlaneGragh != null">ENTPR_PLANE_GRAGH,</if>
|
||||
<if test="longitudeGps != null">LONGITUDE_GPS,</if>
|
||||
<if test="latitudeGps != null">LATITUDE_GPS,</if>
|
||||
<if test="LONGITUDE != null">LONGITUDE,</if>
|
||||
<if test="LATITUDE != null">LATITUDE,</if>
|
||||
<if test="entprNotes != null">ENTPR_NOTES,</if>
|
||||
<if test="CREATER != null">CREATER,</if>
|
||||
<if test="CREATETIME != null">CREATETIME,</if>
|
||||
<if test="UPDATER != null">UPDATER,</if>
|
||||
<if test="UPDATETIME != null">UPDATETIME,</if>
|
||||
<if test="mainProduct != null">MAIN_PRODUCT,</if>
|
||||
<if test="industryRefer != null">INDUSTRY_REFER,</if>
|
||||
<if test="gridCode != null">GRID_CODE,</if>
|
||||
<if test="gridEntprStatus != null">GRID_ENTPR_STATUS,</if>
|
||||
<if test="infoYear != null">INFO_YEAR,</if>
|
||||
<if test="doublePreven != null">DOUBLE_PREVEN,</if>
|
||||
<if test="enterColorChart != null">ENTER_COLOR_CHART,</if>
|
||||
<if test="ENTPRCOLOR != null">ENTPRCOLOR,</if>
|
||||
<if test="ISBUYSAFETYINSURANCE != null">ISBUYSAFETYINSURANCE,</if>
|
||||
<if test="TURNOVER != null">TURNOVER,</if>
|
||||
<if test="sourceData != null">SOURCE_DATA,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="dmsTimestamp != null">#{dmsTimestamp},</if>
|
||||
<if test="ID != null">#{ID},</if>
|
||||
<if test="entprId != null and entprId != ''">#{entprId},</if>
|
||||
<if test="entprName != null and entprName != ''">#{entprName},</if>
|
||||
<if test="uscCode != null and uscCode != ''">#{uscCode},</if>
|
||||
<if test="REGION != null and REGION != ''">#{REGION},</if>
|
||||
<if test="PROVINCE != null and PROVINCE != ''">#{PROVINCE},</if>
|
||||
<if test="CITY != null and CITY != ''">#{CITY},</if>
|
||||
<if test="COUNTY != null and COUNTY != ''">#{COUNTY},</if>
|
||||
<if test="SUBDISTRICT != null and SUBDISTRICT != ''">#{SUBDISTRICT},</if>
|
||||
<if test="VILLAGE != null">#{VILLAGE},</if>
|
||||
<if test="PARK != null">#{PARK},</if>
|
||||
<if test="regAddr != null and regAddr != ''">#{regAddr},</if>
|
||||
<if test="bizAddr != null and bizAddr != ''">#{bizAddr},</if>
|
||||
<if test="POSTCODE != null and POSTCODE != ''">#{POSTCODE},</if>
|
||||
<if test="setupDate != null">#{setupDate},</if>
|
||||
<if test="legalPerson != null and legalPerson != ''">#{legalPerson},</if>
|
||||
<if test="contactTel != null and contactTel != ''">#{contactTel},</if>
|
||||
<if test="contactEmail != null and contactEmail != ''">#{contactEmail},</if>
|
||||
<if test="contactQq != null">#{contactQq},</if>
|
||||
<if test="WEBSITE != null">#{WEBSITE},</if>
|
||||
<if test="FAX != null and FAX != ''">#{FAX},</if>
|
||||
<if test="BOSS != null and BOSS != ''">#{BOSS},</if>
|
||||
<if test="bossTel != null">#{bossTel},</if>
|
||||
<if test="bossMobtel != null">#{bossMobtel},</if>
|
||||
<if test="bossEmail != null">#{bossEmail},</if>
|
||||
<if test="safetyManager != null">#{safetyManager},</if>
|
||||
<if test="safetyTel != null">#{safetyTel},</if>
|
||||
<if test="safetyMobtel != null">#{safetyMobtel},</if>
|
||||
<if test="safetyEmail != null">#{safetyEmail},</if>
|
||||
<if test="ecoTypeLarge != null and ecoTypeLarge != ''">#{ecoTypeLarge},</if>
|
||||
<if test="ecoTypeSmall != null and ecoTypeSmall != ''">#{ecoTypeSmall},</if>
|
||||
<if test="indusTypeClass != null and indusTypeClass != ''">#{indusTypeClass},</if>
|
||||
<if test="indusTypeLagre != null and indusTypeLagre != ''">#{indusTypeLagre},</if>
|
||||
<if test="indusTypeMiddle != null and indusTypeMiddle != ''">#{indusTypeMiddle},</if>
|
||||
<if test="indusTypeSmall != null and indusTypeSmall != ''">#{indusTypeSmall},</if>
|
||||
<if test="supervisionLarge != null and supervisionLarge != ''">#{supervisionLarge},</if>
|
||||
<if test="supervisionSmall != null and supervisionSmall != ''">#{supervisionSmall},</if>
|
||||
<if test="specialGovernance != null">#{specialGovernance},</if>
|
||||
<if test="stateOwed != null">#{stateOwed},</if>
|
||||
<if test="AFFILIATION != null">#{AFFILIATION},</if>
|
||||
<if test="businessScope != null">#{businessScope},</if>
|
||||
<if test="operatingStatus != null and operatingStatus != ''">#{operatingStatus},</if>
|
||||
<if test="regCapi != null">#{regCapi},</if>
|
||||
<if test="floorArea != null">#{floorArea},</if>
|
||||
<if test="employeeNum != null">#{employeeNum},</if>
|
||||
<if test="speclalOperationNum != null">#{speclalOperationNum},</if>
|
||||
<if test="fullSafetyNum != null">#{fullSafetyNum},</if>
|
||||
<if test="partSafetyNum != null">#{partSafetyNum},</if>
|
||||
<if test="fullEmegNum != null">#{fullEmegNum},</if>
|
||||
<if test="safetyDepart != null and safetyDepart != ''">#{safetyDepart},</if>
|
||||
<if test="safetyDepartName != null">#{safetyDepartName},</if>
|
||||
<if test="safetyDepartDuty != null">#{safetyDepartDuty},</if>
|
||||
<if test="safetyDepartNum != null">#{safetyDepartNum},</if>
|
||||
<if test="cseNum != null">#{cseNum},</if>
|
||||
<if test="fullSafety != null">#{fullSafety},</if>
|
||||
<if test="SCALE != null and SCALE != ''">#{SCALE},</if>
|
||||
<if test="parentCompName != null">#{parentCompName},</if>
|
||||
<if test="groupCompName != null">#{groupCompName},</if>
|
||||
<if test="standLevel != null and standLevel != ''">#{standLevel},</if>
|
||||
<if test="safetySupervisionLevel != null and safetySupervisionLevel != ''">#{safetySupervisionLevel},</if>
|
||||
<if test="localSafetyAdmin != null and localSafetyAdmin != ''">#{localSafetyAdmin},</if>
|
||||
<if test="majorHazardInstallations != null and majorHazardInstallations != ''">#{majorHazardInstallations},</if>
|
||||
<if test="majorHazardLevel != null and majorHazardLevel != ''">#{majorHazardLevel},</if>
|
||||
<if test="entprPlaneGragh != null">#{entprPlaneGragh},</if>
|
||||
<if test="longitudeGps != null">#{longitudeGps},</if>
|
||||
<if test="latitudeGps != null">#{latitudeGps},</if>
|
||||
<if test="LONGITUDE != null">#{LONGITUDE},</if>
|
||||
<if test="LATITUDE != null">#{LATITUDE},</if>
|
||||
<if test="entprNotes != null">#{entprNotes},</if>
|
||||
<if test="CREATER != null">#{CREATER},</if>
|
||||
<if test="CREATETIME != null">#{CREATETIME},</if>
|
||||
<if test="UPDATER != null">#{UPDATER},</if>
|
||||
<if test="UPDATETIME != null">#{UPDATETIME},</if>
|
||||
<if test="mainProduct != null">#{mainProduct},</if>
|
||||
<if test="industryRefer != null">#{industryRefer},</if>
|
||||
<if test="gridCode != null">#{gridCode},</if>
|
||||
<if test="gridEntprStatus != null">#{gridEntprStatus},</if>
|
||||
<if test="infoYear != null">#{infoYear},</if>
|
||||
<if test="doublePreven != null">#{doublePreven},</if>
|
||||
<if test="enterColorChart != null">#{enterColorChart},</if>
|
||||
<if test="ENTPRCOLOR != null">#{ENTPRCOLOR},</if>
|
||||
<if test="ISBUYSAFETYINSURANCE != null">#{ISBUYSAFETYINSURANCE},</if>
|
||||
<if test="TURNOVER != null">#{TURNOVER},</if>
|
||||
<if test="sourceData != null">#{sourceData},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSzEntBasicInfo" parameterType="SzEntBasicInfo">
|
||||
update sz_ent_basic_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="dmsTimestamp != null">dms_timestamp = #{dmsTimestamp},</if>
|
||||
<if test="entprId != null and entprId != ''">ENTPR_ID = #{entprId},</if>
|
||||
<if test="entprName != null and entprName != ''">ENTPR_NAME = #{entprName},</if>
|
||||
<if test="uscCode != null and uscCode != ''">USC_CODE = #{uscCode},</if>
|
||||
<if test="REGION != null and REGION != ''">REGION = #{REGION},</if>
|
||||
<if test="PROVINCE != null and PROVINCE != ''">PROVINCE = #{PROVINCE},</if>
|
||||
<if test="CITY != null and CITY != ''">CITY = #{CITY},</if>
|
||||
<if test="COUNTY != null and COUNTY != ''">COUNTY = #{COUNTY},</if>
|
||||
<if test="SUBDISTRICT != null and SUBDISTRICT != ''">SUBDISTRICT = #{SUBDISTRICT},</if>
|
||||
<if test="VILLAGE != null">VILLAGE = #{VILLAGE},</if>
|
||||
<if test="PARK != null">PARK = #{PARK},</if>
|
||||
<if test="regAddr != null and regAddr != ''">REG_ADDR = #{regAddr},</if>
|
||||
<if test="bizAddr != null and bizAddr != ''">BIZ_ADDR = #{bizAddr},</if>
|
||||
<if test="POSTCODE != null and POSTCODE != ''">POSTCODE = #{POSTCODE},</if>
|
||||
<if test="setupDate != null">SETUP_DATE = #{setupDate},</if>
|
||||
<if test="legalPerson != null and legalPerson != ''">LEGAL_PERSON = #{legalPerson},</if>
|
||||
<if test="contactTel != null and contactTel != ''">CONTACT_TEL = #{contactTel},</if>
|
||||
<if test="contactEmail != null and contactEmail != ''">CONTACT_EMAIL = #{contactEmail},</if>
|
||||
<if test="contactQq != null">CONTACT_QQ = #{contactQq},</if>
|
||||
<if test="WEBSITE != null">WEBSITE = #{WEBSITE},</if>
|
||||
<if test="FAX != null and FAX != ''">FAX = #{FAX},</if>
|
||||
<if test="BOSS != null and BOSS != ''">BOSS = #{BOSS},</if>
|
||||
<if test="bossTel != null">BOSS_TEL = #{bossTel},</if>
|
||||
<if test="bossMobtel != null">BOSS_MOBTEL = #{bossMobtel},</if>
|
||||
<if test="bossEmail != null">BOSS_EMAIL = #{bossEmail},</if>
|
||||
<if test="safetyManager != null">SAFETY_MANAGER = #{safetyManager},</if>
|
||||
<if test="safetyTel != null">SAFETY_TEL = #{safetyTel},</if>
|
||||
<if test="safetyMobtel != null">SAFETY_MOBTEL = #{safetyMobtel},</if>
|
||||
<if test="safetyEmail != null">SAFETY_EMAIL = #{safetyEmail},</if>
|
||||
<if test="ecoTypeLarge != null and ecoTypeLarge != ''">ECO_TYPE_LARGE = #{ecoTypeLarge},</if>
|
||||
<if test="ecoTypeSmall != null and ecoTypeSmall != ''">ECO_TYPE_SMALL = #{ecoTypeSmall},</if>
|
||||
<if test="indusTypeClass != null and indusTypeClass != ''">INDUS_TYPE_CLASS = #{indusTypeClass},</if>
|
||||
<if test="indusTypeLagre != null and indusTypeLagre != ''">INDUS_TYPE_LAGRE = #{indusTypeLagre},</if>
|
||||
<if test="indusTypeMiddle != null and indusTypeMiddle != ''">INDUS_TYPE_MIDDLE = #{indusTypeMiddle},</if>
|
||||
<if test="indusTypeSmall != null and indusTypeSmall != ''">INDUS_TYPE_SMALL = #{indusTypeSmall},</if>
|
||||
<if test="supervisionLarge != null and supervisionLarge != ''">SUPERVISION_LARGE = #{supervisionLarge},</if>
|
||||
<if test="supervisionSmall != null and supervisionSmall != ''">SUPERVISION_SMALL = #{supervisionSmall},</if>
|
||||
<if test="specialGovernance != null">SPECIAL_GOVERNANCE = #{specialGovernance},</if>
|
||||
<if test="stateOwed != null">STATE_OWED = #{stateOwed},</if>
|
||||
<if test="AFFILIATION != null">AFFILIATION = #{AFFILIATION},</if>
|
||||
<if test="businessScope != null">BUSINESS_SCOPE = #{businessScope},</if>
|
||||
<if test="operatingStatus != null and operatingStatus != ''">OPERATING_STATUS = #{operatingStatus},</if>
|
||||
<if test="regCapi != null">REG_CAPI = #{regCapi},</if>
|
||||
<if test="floorArea != null">FLOOR_AREA = #{floorArea},</if>
|
||||
<if test="employeeNum != null">EMPLOYEE_NUM = #{employeeNum},</if>
|
||||
<if test="speclalOperationNum != null">SPECLAL_OPERATION_NUM = #{speclalOperationNum},</if>
|
||||
<if test="fullSafetyNum != null">FULL_SAFETY_NUM = #{fullSafetyNum},</if>
|
||||
<if test="partSafetyNum != null">PART_SAFETY_NUM = #{partSafetyNum},</if>
|
||||
<if test="fullEmegNum != null">FULL_EMEG_NUM = #{fullEmegNum},</if>
|
||||
<if test="safetyDepart != null and safetyDepart != ''">SAFETY_DEPART = #{safetyDepart},</if>
|
||||
<if test="safetyDepartName != null">SAFETY_DEPART_NAME = #{safetyDepartName},</if>
|
||||
<if test="safetyDepartDuty != null">SAFETY_DEPART_DUTY = #{safetyDepartDuty},</if>
|
||||
<if test="safetyDepartNum != null">SAFETY_DEPART_NUM = #{safetyDepartNum},</if>
|
||||
<if test="cseNum != null">CSE_NUM = #{cseNum},</if>
|
||||
<if test="fullSafety != null">FULL_SAFETY = #{fullSafety},</if>
|
||||
<if test="SCALE != null and SCALE != ''">SCALE = #{SCALE},</if>
|
||||
<if test="parentCompName != null">PARENT_COMP_NAME = #{parentCompName},</if>
|
||||
<if test="groupCompName != null">GROUP_COMP_NAME = #{groupCompName},</if>
|
||||
<if test="standLevel != null and standLevel != ''">STAND_LEVEL = #{standLevel},</if>
|
||||
<if test="safetySupervisionLevel != null and safetySupervisionLevel != ''">SAFETY_SUPERVISION_LEVEL = #{safetySupervisionLevel},</if>
|
||||
<if test="localSafetyAdmin != null and localSafetyAdmin != ''">LOCAL_SAFETY_ADMIN = #{localSafetyAdmin},</if>
|
||||
<if test="majorHazardInstallations != null and majorHazardInstallations != ''">MAJOR_HAZARD_INSTALLATIONS = #{majorHazardInstallations},</if>
|
||||
<if test="majorHazardLevel != null and majorHazardLevel != ''">MAJOR_HAZARD_LEVEL = #{majorHazardLevel},</if>
|
||||
<if test="entprPlaneGragh != null">ENTPR_PLANE_GRAGH = #{entprPlaneGragh},</if>
|
||||
<if test="longitudeGps != null">LONGITUDE_GPS = #{longitudeGps},</if>
|
||||
<if test="latitudeGps != null">LATITUDE_GPS = #{latitudeGps},</if>
|
||||
<if test="LONGITUDE != null">LONGITUDE = #{LONGITUDE},</if>
|
||||
<if test="LATITUDE != null">LATITUDE = #{LATITUDE},</if>
|
||||
<if test="entprNotes != null">ENTPR_NOTES = #{entprNotes},</if>
|
||||
<if test="CREATER != null">CREATER = #{CREATER},</if>
|
||||
<if test="CREATETIME != null">CREATETIME = #{CREATETIME},</if>
|
||||
<if test="UPDATER != null">UPDATER = #{UPDATER},</if>
|
||||
<if test="UPDATETIME != null">UPDATETIME = #{UPDATETIME},</if>
|
||||
<if test="mainProduct != null">MAIN_PRODUCT = #{mainProduct},</if>
|
||||
<if test="industryRefer != null">INDUSTRY_REFER = #{industryRefer},</if>
|
||||
<if test="gridCode != null">GRID_CODE = #{gridCode},</if>
|
||||
<if test="gridEntprStatus != null">GRID_ENTPR_STATUS = #{gridEntprStatus},</if>
|
||||
<if test="infoYear != null">INFO_YEAR = #{infoYear},</if>
|
||||
<if test="doublePreven != null">DOUBLE_PREVEN = #{doublePreven},</if>
|
||||
<if test="enterColorChart != null">ENTER_COLOR_CHART = #{enterColorChart},</if>
|
||||
<if test="ENTPRCOLOR != null">ENTPRCOLOR = #{ENTPRCOLOR},</if>
|
||||
<if test="ISBUYSAFETYINSURANCE != null">ISBUYSAFETYINSURANCE = #{ISBUYSAFETYINSURANCE},</if>
|
||||
<if test="TURNOVER != null">TURNOVER = #{TURNOVER},</if>
|
||||
<if test="sourceData != null">SOURCE_DATA = #{sourceData},</if>
|
||||
</trim>
|
||||
where ID = #{ID}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSzEntBasicInfoByID" parameterType="String">
|
||||
delete from sz_ent_basic_info where ID = #{ID}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSzEntBasicInfoByIDs" parameterType="String">
|
||||
delete from sz_ent_basic_info where ID in
|
||||
<foreach item="ID" collection="array" open="(" separator="," close=")">
|
||||
#{ID}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in new issue