zhangtao
dongdingding 2 years ago
parent 8bfb056938
commit 4f881e7dce

@ -16,7 +16,6 @@
</description>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>

@ -110,5 +110,19 @@ public class BKeyEnterpriseController extends BaseController {
bKeyEnterpriseService.importUser(bKeyEnterpriseList);
return AjaxResult.success();
}
/**
*
*
* @param district
* @return
*/
@GetMapping("/getBydistrict")
@ApiOperation(value = "根据行政区划代码查询重点企业数量")
public AjaxResult getBydistrict(@RequestParam("district") String district) {
return success(bKeyEnterpriseService.getBydistrict(district));
}
}

@ -3,14 +3,22 @@ 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.poi.ExcelUtil;
import com.ruoyi.programManagement.entity.BKeyEnterprise;
import com.ruoyi.programManagement.entity.BPlanEnterprise;
import com.ruoyi.programManagement.entity.request.BPlanEnterPriseTreeResponse;
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
import com.ruoyi.programManagement.entity.request.PlanMxRequest;
import com.ruoyi.programManagement.entity.request.checkResultRequest;
import com.ruoyi.programManagement.entity.response.BPlanEnterpriseZhifaResponse;
import com.ruoyi.programManagement.mapper.BPlanEnterpriseMapper;
import com.ruoyi.programManagement.service.BKeyEnterpriseService;
import com.ruoyi.programManagement.service.BPlanEnterpriseService;
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.*;
@ -18,7 +26,9 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* (BPlanEnterprise)
@ -28,7 +38,7 @@ import java.util.List;
*/
@RestController
@RequestMapping("pharmaceuticals/bPlanEnterprise")
@Api(tags = "计划企业")
@Api(tags = "计划企业")
@Transactional(rollbackFor = Exception.class)
public class BPlanEnterpriseController extends BaseController {
/**
@ -43,17 +53,56 @@ public class BPlanEnterpriseController extends BaseController {
@Resource
private BPlanEnterpriseMapper bPlanEnterpriseMapper;
@Resource
private BKeyEnterpriseService bKeyEnterpriseService;
@Autowired
private IBAdministrativeService bAdministrativeService;
/**
*
*
* @return
*
*/
@ApiOperation(value = "查询计划企业列表")
@GetMapping("/list")
public AjaxResult list(BPlanEnterprise bPlanEnterprise) {
List<BPlanEnterprise> list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise);
return AjaxResult.success(list);
}
/**
*
*/
@GetMapping
@ApiOperation(value = "查询计划企业表", response = BPlanEnterprise.class)
public AjaxResult page() {
return success(bPlanEnterpriseService.page());
@ApiOperation(value = "查询计划企业表树结构")
@GetMapping("/tree")
public AjaxResult tree(BPlanEnterprisePageRequest req) {
List<BPlanEnterPriseTreeResponse> list = bAdministrativeService.selectBPlanEnterPriseTreeRequestRequestList(req);
// List<List<BPlanEnterPriseTreeResponse>> groupedList = list.stream()
// .collect(Collectors.groupingBy(BPlanEnterPriseTreeResponse::getCounty))
// .values()
// .stream()
// .collect(Collectors.toList());
// List<BPlanEnterPriseTreeResponse> cascadingSelectData = new ArrayList<>();
// for (List<BPlanEnterPriseTreeResponse> group : groupedList) {
// for (BPlanEnterPriseTreeResponse item1 : group) {
// BPlanEnterPriseTreeResponse parentDto = new BPlanEnterPriseTreeResponse(item1.getCounty(), item1.getSubdistrict());
// for (BPlanEnterPriseTreeResponse item2 : list) {
// if (item2.getSubdistrict() != null) {
// if (item2.getSubdistrict().substring(0, 10).equals(item1.getCounty().substring(0, 10))) {
// BPlanEnterPriseTreeResponse childDto = new BPlanEnterPriseTreeResponse(item2.getCounty(), item2.getSubdistrict());
// parentDto.addChild(childDto);
// }
// }
// }
// cascadingSelectData.add(parentDto);
// }
//}
return success(list);
}
/**
*
*
@ -75,8 +124,29 @@ public class BPlanEnterpriseController extends BaseController {
@PostMapping
@ApiOperation(value = "新增计划企业表", response = BPlanEnterprise.class)
public AjaxResult insert(@RequestBody BPlanEnterprise bPlanEnterprise) {
bPlanEnterprise.setCreateId(getDeptId());
return success(bPlanEnterpriseService.save(bPlanEnterprise));
bPlanEnterprise.setCreateId(getUserId());
String enterPriseId = String.valueOf(bPlanEnterprise.getEnterpriseId());
String district = bPlanEnterprise.getDistrict();
String[] idArray = enterPriseId.split(",");
String[] districtArray = district.split(",");
int i = 0;
for (String entId : idArray) {
//根据企业id查询重点企业表是 1:重点企业 2非重点企业
BKeyEnterprise count = bKeyEnterpriseService.getByentCode(entId);
if (count != null) {
bPlanEnterprise.setIsPoint(1);
}
bPlanEnterprise.setIsPoint(2);
bPlanEnterprise.setId(null);
bPlanEnterprise.setEnterpriseId(entId);
bPlanEnterprise.setCreateId(getUserId());
bPlanEnterprise.setDeptId(getDeptId());
bPlanEnterprise.setDistrict(districtArray[i]);
bPlanEnterpriseService.save(bPlanEnterprise);
i += 1;
}
return success();
}
/**
@ -128,6 +198,15 @@ public class BPlanEnterpriseController extends BaseController {
util.exportExcel(response, list, "导出计划管理");
}
/**
*
*/
@ApiOperation(value = "查看计划明细")
@PostMapping("/planmx")
public AjaxResult planmx(PlanMxRequest req) {
return AjaxResult.success(bPlanEnterpriseService.getPlanMx(req));
}
}

@ -1,193 +0,0 @@
package com.ruoyi.programManagement.controller;
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.BAdministrative;
import com.ruoyi.programManagement.entity.BKeyEnterprise;
import com.ruoyi.programManagement.entity.BPlanEnterprise;
import com.ruoyi.programManagement.entity.BPlanManage;
import com.ruoyi.programManagement.entity.request.BPlanManageAddRequest;
import com.ruoyi.programManagement.entity.request.checkResultRequest;
import com.ruoyi.programManagement.entity.response.BPlanManagePageResponse;
import com.ruoyi.programManagement.entity.response.BPlanManageResponse;
import com.ruoyi.programManagement.service.BKeyEnterpriseService;
import com.ruoyi.programManagement.service.BPlanEnterpriseService;
import com.ruoyi.programManagement.service.BPlanManageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.util.List;
/**
* (BPlanManage)
*
* @author wu
* @since 2023-09-07 09:43:07
*/
@RestController
@RequestMapping("pharmaceuticals/bPlanManage")
@Api(tags = "计划管理表")
@Transactional(rollbackFor = Exception.class)
public class BPlanManageController extends BaseController {
/**
*
*/
@Resource
private BPlanManageService bPlanManageService;
@Resource
private BPlanEnterpriseService bPlanEnterpriseService;
@Resource
private BKeyEnterpriseService bKeyEnterpriseService;
/**
*
*
* @param req
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询计划管理表", response = BPlanManagePageResponse.class)
public AjaxResult page(@Valid checkResultRequest req) {
return success(bPlanManageService.page(req));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条计划管理表", response = BPlanManageResponse.class)
public AjaxResult getById(@PathVariable Long id) {
return success(bPlanManageService.selectById(id));
}
/**
*
*
* @param bPlanManageAddRequest
* @return
*/
@PostMapping
@ApiOperation(value = "新增计划管理表", response = BPlanManageAddRequest.class)
public AjaxResult insert(@RequestBody BPlanManageAddRequest bPlanManageAddRequest) {
BPlanManage bPlanManage = new BPlanManage();
BeanUtils.copyProperties(bPlanManageAddRequest, bPlanManage);
bPlanManage.setCreateId(getUserId());
bPlanManage.setDeptId(getDeptId());
//新增计划管理
bPlanManageService.save(bPlanManage);
//新增企业 获取企业id和计划id
String enterPriseId = String.valueOf(bPlanManageAddRequest.getEnterpriseId());
String district = bPlanManageAddRequest.getDistrict();
Long id = bPlanManage.getId();
BPlanEnterprise bPlanEnterprise = new BPlanEnterprise();
//获取逗号分隔的id
String[] idArray = enterPriseId.split(",");
String[] districtArray = district.split(",");
int i = 0;
for (String entId : idArray) {
//根据企业id查询重点企业表是 1:重点企业 2非重点企业
BKeyEnterprise count = bKeyEnterpriseService.getByentCode(entId);
if (count != null) {
bPlanEnterprise.setIsPoint(1);
}else{
bPlanEnterprise.setIsPoint(2);
}
bPlanEnterprise.setPlanId(id);
bPlanEnterprise.setId(null);
bPlanEnterprise.setEnterpriseId(entId);
bPlanEnterprise.setCreateId(getUserId());
bPlanEnterprise.setDeptId(getDeptId());
bPlanEnterprise.setDistrict(districtArray[i]);
bPlanEnterpriseService.save(bPlanEnterprise);
i += 1;
}
return success();
}
/**
*
*
* @param bPlanManage
* @return
*/
@PutMapping
@ApiOperation(value = "修改计划管理表")
public AjaxResult update(@RequestBody BPlanManage bPlanManage) {
//获取planId
String planId = String.valueOf(bPlanManage.getId());
//删除计划企业中的planId
String[] idArray = planId.split(",");
for (String pId : idArray) {
bPlanEnterpriseService.deleteByPlanId(Long.valueOf(pId));
}
//新增企业 获取企业id
String enterPriseId = String.valueOf(bPlanManage.getEnterpriseId());
//计划id
Long id = bPlanManage.getId();
BPlanEnterprise bPlanEnterprise = new BPlanEnterprise();
//获取逗号分隔的id
String[] eidArray = enterPriseId.split(",");
for (String entId : eidArray) {
//根据企业id查询重点企业表是 1:重点企业 2非重点企业
BKeyEnterprise count = bKeyEnterpriseService.getByentCode(entId);
if (count != null) {
bPlanEnterprise.setIsPoint(1);
}else{
bPlanEnterprise.setIsPoint(2);
}
bPlanEnterprise.setPlanId(id);
bPlanEnterprise.setId(null);
bPlanEnterprise.setEnterpriseId(entId);
bPlanEnterprise.setCreateId(getUserId());
bPlanEnterprise.setDeptId(getDeptId());
bPlanEnterpriseService.save(bPlanEnterprise);
}
bPlanManage.setUpdateId(getDeptId());
return success(bPlanManageService.updateById(bPlanManage));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除计划管理表")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
//删除计划企业
idList.forEach(id -> {
bPlanEnterpriseService.deleteByPlanId(Long.valueOf(id));
});
return success(bPlanManageService.removeByIds(idList));
}
/**
*
*/
@ApiOperation(value = "导出计划管理")
@PostMapping("/export")
public void export(HttpServletResponse response, BPlanManage bPlanManage) {
List<BPlanManage> list = bPlanManageService.selectBybPlanManage(bPlanManage);
ExcelUtil<BPlanManage> util = new ExcelUtil<BPlanManage>(BPlanManage.class);
util.exportExcel(response, list, "导出计划管理");
}
}

@ -0,0 +1,105 @@
package com.ruoyi.programManagement.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.programManagement.entity.SzEnforExamine;
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.ISzEnforExamineService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-09-26
*/
@Api(tags = "现场检查记录")
@RestController
@RequestMapping("/pharmaceuticals/examine")
public class SzEnforExamineController extends BaseController
{
@Autowired
private ISzEnforExamineService szEnforExamineService;
/**
*
*/
@ApiOperation("查询现场检查记录列表")
@GetMapping("/list")
public TableDataInfo list(SzEnforExamine szEnforExamine)
{
startPage();
List<SzEnforExamine> list = szEnforExamineService.selectSzEnforExamineList(szEnforExamine);
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出现场检查记录列表")
@PostMapping("/export")
public void export(HttpServletResponse response, SzEnforExamine szEnforExamine)
{
List<SzEnforExamine> list = szEnforExamineService.selectSzEnforExamineList(szEnforExamine);
ExcelUtil<SzEnforExamine> util = new ExcelUtil<SzEnforExamine>(SzEnforExamine.class);
util.exportExcel(response, list, "现场检查记录数据");
}
/**
*
*/
@ApiOperation("获取现场检查记录详细信息")
@GetMapping(value = "/{ID}")
public AjaxResult getInfo(@PathVariable("ID") String ID)
{
return success(szEnforExamineService.selectSzEnforExamineByID(ID));
}
/**
*
*/
@ApiOperation("新增现场检查记录")
@PostMapping
public AjaxResult add(@RequestBody SzEnforExamine szEnforExamine)
{
return toAjax(szEnforExamineService.insertSzEnforExamine(szEnforExamine));
}
/**
*
*/
@ApiOperation("修改现场检查记录")
@PutMapping
public AjaxResult edit(@RequestBody SzEnforExamine szEnforExamine)
{
return toAjax(szEnforExamineService.updateSzEnforExamine(szEnforExamine));
}
/**
*
*/
@ApiOperation("删除现场检查记录")
@DeleteMapping("/{IDs}")
public AjaxResult remove(@PathVariable String[] IDs)
{
return toAjax(szEnforExamineService.deleteSzEnforExamineByIDs(IDs));
}
}

@ -2,9 +2,11 @@ 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.poi.ExcelUtil;
import com.ruoyi.programManagement.entity.SzEntBasicInfo;
import com.ruoyi.programManagement.entity.request.SzEntBasicInfoPageRequest;
import com.ruoyi.programManagement.entity.response.SzEntBasicInfoPageResponse;
import com.ruoyi.programManagement.service.ISzEntBasicInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -35,7 +37,7 @@ public class SzEntBasicInfoController extends BaseController {
*
* @Parm req
*/
@ApiOperation(value = "分页查询企业基本信息列表", response = SzEntBasicInfo.class)
@ApiOperation(value = "分页查询企业基本信息列表", response = SzEntBasicInfoPageResponse.class)
@GetMapping("/list")
public AjaxResult page(@Valid SzEntBasicInfoPageRequest req) {
return success(szEntBasicInfoService.page(req));

@ -44,12 +44,13 @@ public class BKeyEnterprise implements Serializable {
*
*/
@ApiModelProperty(value = "大类")
@Excel(name = "大类")
private String type;
/**
*
*/
@Excel(name = "年份",dateFormat = "")
@Excel(name = "年份")
@ApiModelProperty("年份")
private String year;
@ -108,12 +109,20 @@ public class BKeyEnterprise implements Serializable {
private Long deptId;
/**
*
*/
@ApiModelProperty(value = "企业名称")
@Excel(name = "企业名称")
private String enterpriseName;
/**
*
*/
@ApiModelProperty(value = "区划代码")
@Excel(name = "区划代码")
private String district;
}

@ -31,11 +31,6 @@ public class BPlanEnterprise implements Serializable {
@TableId(type = IdType.AUTO)
private Long id;
/**
* id
*/
@ApiModelProperty(value = "计划id")
private Long planId;
/**
* id
@ -108,11 +103,37 @@ public class BPlanEnterprise implements Serializable {
private String district;
/**
* 1 2
*
*/
@ApiModelProperty(value = "是否重点企业 1是 2否")
private Integer isPoint;
@ApiModelProperty(value = "计划年份")
@Excel(name = "计划年份")
private String plannedYear;
/**
*
*/
@ApiModelProperty(value = "计划标题")
@Excel(name = "计划标题")
private String planName;
/**
*
*/
@ApiModelProperty(value = "计划内容")
@Excel(name = "计划内容")
private String planContent;
/**
* 12
*/
@ApiModelProperty(value = "是否重点企业1是2否")
private Integer isPoint;
}

@ -1,143 +0,0 @@
package com.ruoyi.programManagement.entity;
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.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDate;
import java.util.Date;
/**
* (BPlanManage)
*
* @author wu
* @since 2023-09-07 09:43:07
*/
@Data
@ApiModel("计划管理表实体类")
public class BPlanManage {
private static final long serialVersionUID = 886164627593957269L;
/**
*
*/
@Excel(name = "编号")
@ApiModelProperty(value = "编号")
@TableId(type = IdType.AUTO)
private Long id;
/**
*
*/
@Excel(name = "计划年份")
@ApiModelProperty(value = "计划年份")
private String plannedYear;
/**
*
*/
@Excel(name = "行政区划")
@ApiModelProperty(value = "行政区划")
private String district;
/**
*
*/
@Excel(name = "计划企业数量")
@ApiModelProperty(value = "计划企业数量")
private String planNumb;
/**
*
*/
@Excel(name = "计划标题")
@ApiModelProperty(value = "计划标题")
private String planName;
/**
*
*/
@Excel(name = "计划内容")
@ApiModelProperty(value = "计划内容")
private String planContent;
/**
* ID
*/
@ApiModelProperty(value = "创建者ID")
private Long createId;
/**
* ID
*/
@ApiModelProperty(value = "更新者ID")
private Long 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,165 @@
package com.ruoyi.programManagement.entity;
import java.util.Date;
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 org.springframework.format.annotation.DateTimeFormat;
/**
* sz_enfor_examine
*
* @author ruoyi
* @date 2023-09-26
*/
@Data
@ApiModel("现场检查记录对象")
public class SzEnforExamine extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Date dmsTimestamp;
/** ID */
@ApiModelProperty(value = "ID")
private String ID;
/** 检查方案id */
@Excel(name = "检查方案id")
@ApiModelProperty(value = "检查方案id")
private String planExamineId;
/** 企业名称 */
@Excel(name = "企业名称")
@ApiModelProperty(value = "企业名称")
private String entprName;
/** 统一社会信用代码 */
@Excel(name = "统一社会信用代码")
@ApiModelProperty(value = "统一社会信用代码")
private String uscCode;
/** 检查场所 */
@Excel(name = "检查场所")
@ApiModelProperty(value = "检查场所")
private String examineSite;
/** 检查来源 */
@Excel(name = "检查来源")
@ApiModelProperty(value = "检查来源")
private String examineSource;
/** 检查开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(value = "检查开始时间")
@Excel(name = "检查开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date examineStartTime;
/** 检查结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "检查结束时间", width = 30, dateFormat = "yyyy-MM-dd")
@ApiModelProperty(value = "检查结束时间")
private Date examineEndTime;
/** 检查人员id */
@ApiModelProperty(value = "检查人员id")
@Excel(name = "检查人员id")
private String executorId;
/** 检查情况 */
@Excel(name = "检查情况")
@ApiModelProperty(value = "检查情况")
private String examineSituation;
/** 文书文号 */
@Excel(name = "文书文号")
@ApiModelProperty(value = "文书文号")
private String writNo;
/** 文书类型 */
@Excel(name = "文书类型")
@ApiModelProperty(value = "文书类型")
private String typeCode;
/** 现场证据附件 */
@Excel(name = "现场证据附件")
@ApiModelProperty(value = "现场证据附件")
private String EVIDENCE;
/** 执法部门 */
@Excel(name = "执法部门")
@ApiModelProperty(value = "执法部门")
private String executorDept;
/** 执法部门代码 */
@ApiModelProperty(value = "执法部门代码")
@Excel(name = "执法部门代码")
private String executorDeptCode;
/** 检查方式 */
@Excel(name = "检查方式")
@ApiModelProperty(value = "检查方式")
private String examineType;
/** 是否是三年专项 */
@ApiModelProperty(value = "是否是三年专项")
@Excel(name = "是否是三年专项")
private String threeSpecialType;
/** 钢铁三年专项时,企业设施的版本号 */
@ApiModelProperty(value = "钢铁三年专项时,企业设施的版本号")
@Excel(name = "钢铁三年专项时,企业设施的版本号")
private String enterpriseUnitVersion;
/** 创建人 */
@ApiModelProperty(value = "创建人")
@Excel(name = "创建人")
private String CREATER;
/** 更新人 */
@ApiModelProperty(value = "更新人")
@Excel(name = "更新人")
private String UPDATER;
/** 数据来源 */
@ApiModelProperty(value = "数据来源")
@Excel(name = "数据来源")
private String sourceData;
/** 是否专家参与 */
@ApiModelProperty(value = "是否专家参与")
@Excel(name = "是否专家参与")
private Long expertsInFlag;
/** 专家姓名 */
@ApiModelProperty(value = "专家姓名")
@Excel(name = "专家姓名")
private String expertsName;
/**
*
*/
@Excel(name = "年份", dateFormat = "yyyy/MM/dd HH:mm:ss")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
private Date CREATETIME;
/**
*
*/
@Excel(name = "年份", dateFormat = "yyyy/MM/dd HH:mm:ss")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "修改时间")
private Date UPDATETIME;
}

@ -26,7 +26,17 @@ public class BKeyEnterprisePageRequest implements Serializable {
@ApiModelProperty("年份")
private String year;
/**
*
*/
@ApiModelProperty("信用代码")
private String entCode;
/**
*
*/
@ApiModelProperty("区划代码")
private String district;
/**
* size

@ -0,0 +1,80 @@
package com.ruoyi.programManagement.entity.request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@Data
@ApiModel("行政区划书请求类")
public class BPlanEnterPriseTreeResponse {
/**
* id
*/
@ApiModelProperty("计划id")
private Long id;
/**
*
*/
@ApiModelProperty("所在县(市,区)")
private String county;
/**
*
*
*/
@ApiModelProperty("所在乡镇")
private String subdistrict;
/**
*
*/
@ApiModelProperty("企业总数")
private Integer enterpriseCount;
/**
*
*/
@ApiModelProperty("已计划数")
private Integer plannedEnterpriseCount;
/**
*
*/
@ApiModelProperty("已计划重点数")
private Integer planneKeyEnterpriseCount;
/**
*
*/
@ApiModelProperty("剩余重点数")
private Integer remainingKeyEnterpriseCount;
/**
*
*/
@ApiModelProperty("名称")
private String institutionName;
// private List<BPlanEnterPriseTreeResponse> children;
//
//
// public BPlanEnterPriseTreeResponse(String county, String subdistrict) {
// this.county = county;
// this.subdistrict = subdistrict;
// this.children = new ArrayList<>();
// }
//
// public void addChild(BPlanEnterPriseTreeResponse childDto) {
// this.children.add(childDto);
// }
}

@ -0,0 +1,19 @@
package com.ruoyi.programManagement.entity.request;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
*
*/
@Data
public class BPlanEnterprisePageRequest {
/**
*
*/
@ApiModelProperty(value = "计划年份")
private String plannedYear;
}

@ -1,128 +0,0 @@
package com.ruoyi.programManagement.entity.request;
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 BPlanManageAddRequest {
/**
*
*/
@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;
/**
* 0: 1:
*/
@ApiModelProperty(value = "状态0:未执法 1:已执法)")
private String planState;
/**
* ID
*/
@ApiModelProperty(value = "创建者ID")
private Integer createId;
/**
*
*/
@ApiModelProperty(value = "创建者")
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 createTime;
/**
* ID
*/
@ApiModelProperty(value = "更新者ID")
private Integer updateId;
/**
*
*/
@ApiModelProperty(value = "更新者")
private String updateBy;
/**
*
*/
@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(value = "备注")
private String remark;
/**
* id
*/
@ApiModelProperty(value = "用户权限id")
private Long userId;
/**
* id
*/
@ApiModelProperty(value = "部门权限id")
private Long deptId;
/**
* id
*/
@ApiModelProperty(value = "企业id")
private String enterpriseId;
/**
*
*/
@ApiModelProperty("重点企业数量")
private Integer keyCount;
}

@ -0,0 +1,42 @@
package com.ruoyi.programManagement.entity.request;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
*
*/
@ApiModel("查看计划明细")
@Data
public class PlanMxRequest {
/**
*
*/
@ApiModelProperty(value = "所在乡镇(街道")
private String district;
/**
*
*/
@ApiModelProperty(value = "计划年份")
private String plannedYear;
/**
* size
*/
@ApiModelProperty("size")
private int pageSize;
/**
* num
*/
@ApiModelProperty("num")
private int pageNum;
}

@ -0,0 +1,41 @@
package com.ruoyi.programManagement.entity.request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
*
*/
@Data
@ApiModel("执法计划工作情况统计请求类")
public class zhifaRequest {
/**
*
*/
@ApiModelProperty(value = "计划年份")
private String plannedYear;
/**
* id
*/
@ApiModelProperty(value = "区县id")
private String deptName;
/**
* size
*/
@ApiModelProperty("size")
private int pageSize;
/**
* num
*/
@ApiModelProperty("num")
private int pageNum;
}

@ -18,22 +18,28 @@ public class BPlanEnterpriseZhifaResponse {
/**
*
*/
@Excel(name = "编号")
@ApiModelProperty(value = "编号")
@TableId(type = IdType.AUTO)
private Long id;
/**
* id
*/
@ApiModelProperty(value = "检查表id")
private String longId;
/**
* id
*/
@Excel(name = "计划名称")
@ApiModelProperty(value = "计划id")
private Long planId;
/**
* id
*/
@Excel(name = "企业信用代码")
@ApiModelProperty(value = "企业id")
private String enterpriseId;
@ -52,7 +58,7 @@ public class BPlanEnterpriseZhifaResponse {
/**
*
*/
@Excel(name = "年份", dateFormat = "yyyy/MM/dd HH:mm:ss")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
@ -98,7 +104,7 @@ public class BPlanEnterpriseZhifaResponse {
/**
*
*/
@Excel(name = "行政区划")
@ApiModelProperty(value = "行政区划")
private String district;
@ -106,7 +112,7 @@ public class BPlanEnterpriseZhifaResponse {
/**
*
*/
@Excel(name = "企业名称")
@ApiModelProperty(value = "企业名称")
private String entprName;
@ -114,14 +120,14 @@ public class BPlanEnterpriseZhifaResponse {
/**
*
*/
@Excel(name = "计划年份")
@ApiModelProperty(value = "计划年份")
private String plannedYear;
/**
*
*/
@Excel(name = "检查状态",readConverterExp = "1=已检查,2=未检查")
@ApiModelProperty(value = "检查状态 1=已检查2=未检查")
private String checkStatus;

@ -1,139 +0,0 @@
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 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;
/**
*
*/
@ApiModelProperty("备注")
private String remark;
/**
* list
*/
@ApiModelProperty("企业详情list")
List<SzEntBasicInfo> list;
/**
*
*/
@ApiModelProperty("重点企业数量")
private Integer keyCount;
}

@ -16,7 +16,7 @@ public class DictDataResponse {
private String dictLabel;
@ApiModelProperty(value = "字典键值")
private Integer dictValue;
private String dictValue;
}

@ -1,22 +1,22 @@
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.ApiModel;
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 {
@ApiModel("计划明细响应类")
public class PlanMxResponse {
/**
*
*/
@ -24,49 +24,56 @@ public class BPlanManagePageResponse {
@TableId(type = IdType.AUTO)
private Long id;
/**
*
* id
*/
@ApiModelProperty(value = "计划年份")
private String plannedYear;
@ApiModelProperty(value = "企业id")
private String enterpriseId;
/**
*
* ID
*/
@ApiModelProperty(value = "行政区划")
private String district;
@ApiModelProperty(value = "创建者ID")
private Long createId;
/**
*
*
*/
@ApiModelProperty(value = "计划企业数量")
private String planNumb;
@ApiModelProperty(value = "创建者")
private String createBy;
/**
*
*
*/
@ApiModelProperty(value = "计划标题")
private String planName;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
*
* ID
*/
@ApiModelProperty(value = "计划内容")
private String planContent;
@ApiModelProperty(value = "更新者ID")
private Long updateId;
/**
* ID
*
*/
@ApiModelProperty(value = "创建者ID")
private Integer createId;
@ApiModelProperty(value = "更新者")
private String updateBy;
/**
* ID
*
*/
@ApiModelProperty(value = "更新者ID")
private Integer updateId;
@ApiModelProperty(value = "更新时间")
private Date updateTime;
/**
*
*/
@ApiModelProperty(value = "备注")
private String remark;
/**
* id
@ -81,48 +88,53 @@ public class BPlanManagePageResponse {
private Long deptId;
@TableField(exist = false)
@ApiModelProperty(value = "企业id")
private String enterpriseId;
/**
*
*/
@ApiModelProperty(value = "行政区划")
private String district;
/**
*
*
*/
@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;
@ApiModelProperty(value = "计划年份")
private String plannedYear;
/**
*
*
*/
private String updateBy;
@ApiModelProperty(value = "计划标题")
private String planName;
/**
*
*
*/
private String createBy;
@ApiModelProperty(value = "计划内容")
private String planContent;
/**
*
* 12
*/
@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(value = "是否重点企业1是2否")
private Integer isPoint;
/**
*
*
*/
private String remark;
@ApiModelProperty(value = "区域名称")
private String institutionName;
/**
*
*
*/
@ApiModelProperty("重点企业数量")
private Integer keyCount;
@ApiModelProperty(value = "企业名称")
private String entprName;
}

@ -0,0 +1,607 @@
package com.ruoyi.programManagement.entity.response;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
*
*/
@Data
@ApiModel("企业基本信息响应类")
public class SzEntBasicInfoPageResponse {
private Date dmsTimestamp;
/**
* ID
*/
private String ID;
/**
* ID
*/
@ApiModelProperty(value = "企业ID")
@Excel(name = "企业ID")
@TableId(type = IdType.AUTO)
private String entprId;
/**
*
*/
@ApiModelProperty(value = "企业名称")
@Excel(name = "企业名称")
private String entprName;
/**
*
*/
@ApiModelProperty(value = "统一社会信用代码")
@Excel(name = "统一社会信用代码")
private String uscCode;
/**
*
*/
@ApiModelProperty(value = "行政区划")
@Excel(name = "行政区划")
private String REGION;
/**
*
*/
@ApiModelProperty(value = "所在省")
@Excel(name = "所在省")
private String PROVINCE;
/**
*
*/
@ApiModelProperty(value = "所在市")
@Excel(name = "所在市")
private String CITY;
/**
*
*/
@ApiModelProperty(value = "所在县(市、区)")
@Excel(name = "所在县", readConverterExp = "市=、区")
private String COUNTY;
/**
*
*/
@ApiModelProperty(value = "所在乡镇(街道)")
@Excel(name = "所在乡镇", readConverterExp = "街=道")
private String SUBDISTRICT;
/**
*
*/
@ApiModelProperty(value = "所在村(社区)")
@Excel(name = "所在村", readConverterExp = "社=区")
private String VILLAGE;
/**
*
*/
@ApiModelProperty(value = "所在园区(开发区)")
@Excel(name = "所在园区", readConverterExp = "开=发区")
private String PARK;
/**
*
*/
@ApiModelProperty(value = "注册地址")
@Excel(name = "注册地址")
private String regAddr;
/**
*
*/
@ApiModelProperty(value = "生产经营地址")
@Excel(name = "生产经营地址")
private String bizAddr;
/**
*
*/
@ApiModelProperty(value = "邮政编码")
@Excel(name = "邮政编码")
private String POSTCODE;
/**
*
*/
@ApiModelProperty(value = "成立日期")
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "成立日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date setupDate;
/**
*
*/
@ApiModelProperty(value = "法定代表人")
@Excel(name = "法定代表人")
private String legalPerson;
/**
*
*/
@ApiModelProperty(value = "企业固定电话")
@Excel(name = "企业固定电话")
private String contactTel;
/**
*
*/
@ApiModelProperty(value = "电子邮箱")
@Excel(name = "电子邮箱")
private String contactEmail;
/**
* QQ
*/
@ApiModelProperty(value = "联系QQ号码")
@Excel(name = "联系QQ号码")
private String contactQq;
/**
*
*/
@ApiModelProperty(value = "官方网站地址")
@Excel(name = "官方网站地址")
private String WEBSITE;
/**
*
*/
@ApiModelProperty(value = "单位传真")
@Excel(name = "单位传真")
private String FAX;
/**
*
*/
@ApiModelProperty(value = "主要负责人")
@Excel(name = "主要负责人")
private String BOSS;
/**
*
*/
@ApiModelProperty(value = "主要负责人固定电话")
@Excel(name = "主要负责人固定电话")
private String bossTel;
/**
*
*/
@ApiModelProperty(value = "主要负责人移动电话")
@Excel(name = "主要负责人移动电话")
private String bossMobtel;
/**
*
*/
@ApiModelProperty(value = "主要负责人电子邮箱")
@Excel(name = "主要负责人电子邮箱")
private String bossEmail;
/**
*
*/
@ApiModelProperty(value = "安全负责人")
@Excel(name = "安全负责人")
private String safetyManager;
/**
*
*/
@ApiModelProperty(value = "安全负责人固定电话")
@Excel(name = "安全负责人固定电话")
private String safetyTel;
/**
*
*/
@ApiModelProperty(value = "安全负责人移动电话")
@Excel(name = "安全负责人移动电话")
private String safetyMobtel;
/**
*
*/
@ApiModelProperty(value = "安全负责人电子邮箱")
@Excel(name = "安全负责人电子邮箱")
private String safetyEmail;
/**
*
*/
@ApiModelProperty(value = "经济类型大类")
@Excel(name = "经济类型大类")
private String ecoTypeLarge;
/**
*
*/
@ApiModelProperty(value = "经济类型小类")
@Excel(name = "经济类型小类")
private String ecoTypeSmall;
/**
*
*/
@ApiModelProperty(value = "行业类别门类")
@Excel(name = "行业类别门类")
private String indusTypeClass;
/**
*
*/
@ApiModelProperty(value = "行业类别大类")
@Excel(name = "行业类别大类")
private String indusTypeLagre;
/**
*
*/
@ApiModelProperty(value = "行业类别中类")
@Excel(name = "行业类别中类")
private String indusTypeMiddle;
/**
*
*/
@ApiModelProperty(value = "行业类别小类")
@Excel(name = "行业类别小类")
private String indusTypeSmall;
/**
*
*/
@ApiModelProperty(value = "行业监管大类")
@Excel(name = "行业监管大类")
private String supervisionLarge;
/**
*
*/
@ApiModelProperty(value = "行业监管小类")
@Excel(name = "行业监管小类")
private String supervisionSmall;
/**
*
*/
@ApiModelProperty(value = "专项治理类别")
@Excel(name = "专项治理类别")
private String specialGovernance;
/**
*
*/
@ApiModelProperty(value = "是否为国有企业")
@Excel(name = "是否为国有企业")
private String stateOwed;
/**
*
*/
@ApiModelProperty(value = "隶属关系")
@Excel(name = "隶属关系")
private String AFFILIATION;
/**
*
*/
@ApiModelProperty(value = "经营范围")
@Excel(name = "经营范围")
private String businessScope;
/**
*
*/
@ApiModelProperty(value = "经营状态")
@Excel(name = "经营状态")
private String operatingStatus;
/**
*
*/
@ApiModelProperty(value = "注册资金(万元)")
@Excel(name = "注册资金", readConverterExp = "万=元")
private BigDecimal regCapi;
/**
*
*/
@ApiModelProperty(value = "占地面积(㎡)")
@Excel(name = "占地面积", readConverterExp = "㎡=")
private BigDecimal floorArea;
/**
*
*/
@ApiModelProperty(value = "从业人员数量")
@Excel(name = "从业人员数量")
private Long employeeNum;
/**
*
*/
@ApiModelProperty(value = "特种作业人员数量")
@Excel(name = "特种作业人员数量")
private Long speclalOperationNum;
/**
*
*/
@ApiModelProperty(value = "专职安全生产管理人员数量")
@Excel(name = "专职安全生产管理人员数量")
private Long fullSafetyNum;
/**
*
*/
@ApiModelProperty(value = "兼职安全生产管理人员数量")
@Excel(name = "兼职安全生产管理人员数量")
private Long partSafetyNum;
/**
*
*/
@ApiModelProperty(value = "专职应急管理人员数量")
@Excel(name = "专职应急管理人员数量")
private Long fullEmegNum;
/**
*
*/
@ApiModelProperty(value = "是否有专门安全机构")
@Excel(name = "是否有专门安全机构")
private String safetyDepart;
/**
*
*/
@ApiModelProperty(value = "安全管理机构名称")
@Excel(name = "安全管理机构名称")
private String safetyDepartName;
/**
*
*/
@ApiModelProperty(value = "安全管理机构职责")
@Excel(name = "安全管理机构职责")
private String safetyDepartDuty;
/**
*
*/
@ApiModelProperty(value = "安全管理机构成员数量")
@Excel(name = "安全管理机构成员数量")
private Long safetyDepartNum;
/**
*
*/
@ApiModelProperty(value = "注册安全工程师人员数量")
@Excel(name = "注册安全工程师人员数量")
private Long cseNum;
/**
*
*/
@ApiModelProperty(value = "是否有专职安全人员")
@Excel(name = "是否有专职安全人员")
private String fullSafety;
/**
*
*/
@ApiModelProperty(value = "规模情况")
@Excel(name = "规模情况")
private String SCALE;
/**
*
*/
@ApiModelProperty(value = "母公司名称")
@Excel(name = "母公司名称")
private String parentCompName;
/**
*
*/
@ApiModelProperty(value = "集团公司名称")
@Excel(name = "集团公司名称")
private String groupCompName;
/**
*
*/
@ApiModelProperty(value = "标准化等级")
@Excel(name = "标准化等级")
private String standLevel;
/**
*
*/
@ApiModelProperty(value = "安全监管等级")
@Excel(name = "安全监管等级")
private String safetySupervisionLevel;
/**
*
*/
@ApiModelProperty(value = "属地安监机构")
@Excel(name = "属地安监机构")
private String localSafetyAdmin;
/**
*
*/
@ApiModelProperty(value = "是否存在重大危险源")
@Excel(name = "是否存在重大危险源")
private String majorHazardInstallations;
/**
*
*/
@ApiModelProperty(value = "重大危险源等级")
@Excel(name = "重大危险源等级")
private String majorHazardLevel;
/**
*
*/
@ApiModelProperty(value = "企业平面图")
@Excel(name = "企业平面图")
private String entprPlaneGragh;
/**
* 84
*/
@ApiModelProperty(value = "经度(度) 84")
@Excel(name = "经度", readConverterExp = "度=")
private BigDecimal longitudeGps;
/**
* 84
*/
@ApiModelProperty(value = "纬度(度) 84")
@Excel(name = "纬度", readConverterExp = "度=")
private BigDecimal latitudeGps;
/**
*
*/
@ApiModelProperty(value = "经度(度)")
@Excel(name = "经度", readConverterExp = "度=")
private BigDecimal LONGITUDE;
/**
*
*/
@ApiModelProperty(value = "纬度(度)")
@Excel(name = "纬度", readConverterExp = "度=")
private BigDecimal LATITUDE;
/**
*
*/
@Excel(name = "备注")
private String entprNotes;
/**
*
*/
@ApiModelProperty(value = "创建人")
@Excel(name = "创建人")
private String CREATER;
/**
*
*/
@ApiModelProperty(value = "修改人")
@Excel(name = "修改人")
private String UPDATER;
/**
*
*/
@ApiModelProperty(value = "主要产品")
@Excel(name = "主要产品")
private String mainProduct;
/**
* ()
*/
@ApiModelProperty(value = "工贸涉及(专项治理类别)")
@Excel(name = "工贸涉及(专项治理类别)")
private String industryRefer;
/**
*
*/
@ApiModelProperty(value = "网格编码")
@Excel(name = "网格编码")
private String gridCode;
/**
*
*/
@ApiModelProperty(value = "网格对企业的关停和恢复")
@Excel(name = "网格对企业的关停和恢复")
private String gridEntprStatus;
/**
*
*/
@ApiModelProperty(value = "数据年份")
@Excel(name = "数据年份")
private String infoYear;
/**
*
*/
@ApiModelProperty(value = "是否开展双重预防机制")
@Excel(name = "是否开展双重预防机制")
private String doublePreven;
/**
*
*/
@ApiModelProperty(value = "企业分色图")
@Excel(name = "企业分色图")
private String enterColorChart;
/**
*
*/
@ApiModelProperty(value = "企业分色")
@Excel(name = "企业分色")
private String ENTPRCOLOR;
/**
*
*/
@ApiModelProperty(value = "是否购买安责险字段")
@Excel(name = "是否购买安责险字段")
private String ISBUYSAFETYINSURANCE;
/**
* -
*/
@ApiModelProperty(value = "企业产值(营业额-万元)")
@Excel(name = "企业产值", readConverterExp = "营=业额-万元")
private BigDecimal TURNOVER;
/**
*
*/
@ApiModelProperty(value = "数据来源")
@Excel(name = "数据来源")
private String sourceData;
/**
* 1 2
*/
@ApiModelProperty(value = "是否重点企业1是 2否")
@Excel(name = "是否重点企业1是 2否")
private String isPoint;
}

@ -0,0 +1,80 @@
package com.ruoyi.programManagement.entity.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
*
*/
@Data
@ApiModel("执法计划工作情况响应类")
public class zhifaCountResponse {
/**
* id
*/
@ApiModelProperty(value = "部门id")
private String deptId;
/**
*
*/
@ApiModelProperty(value = "部门名称")
private String deptName;
/**
*
*/
@ApiModelProperty(value = "省重点企业数量")
private Integer keyPlan;
/**
*
*/
@ApiModelProperty(value = "非省重点企业数量")
private Integer nonKeyPlan;
/**
*
*/
@ApiModelProperty(value = "省重点完成数")
private Integer keyCompleted;
/**
*
*/
@ApiModelProperty(value = "非省重点完成数")
private Integer nonKeyCompleted;
/**
*
*/
@ApiModelProperty(value = "省重点完成比")
private Integer percentageCompleted;
/**
*
*/
@ApiModelProperty(value = "非省重点完成比")
private Integer percentageNonCompleted;
/**
*
*/
@ApiModelProperty(value = "合计计划数量")
private Integer totalPlanCount;
}

@ -0,0 +1,30 @@
package com.ruoyi.programManagement.entity.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
/**
*
*/
@Data
@ApiModel("各区域执法计划")
public class zhifaPlanResponse {
/**
*
*/
@ApiModelProperty(value = "数量")
private Integer count;
/**
*
*/
@ApiModelProperty(value = "部门")
private String deptName;
}

@ -2,20 +2,22 @@ package com.ruoyi.programManagement.mapper;
import com.ruoyi.programManagement.entity.BAdministrative;
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
import com.ruoyi.programManagement.entity.request.BPlanEnterPriseTreeResponse;
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* Mapper
*
*
* @author ruoyi
* @date 2023-09-11
*/
public interface BAdministrativeMapper
{
public interface BAdministrativeMapper {
/**
*
*
*
* @param id
* @return
*/
@ -23,7 +25,7 @@ public interface BAdministrativeMapper
/**
*
*
*
* @param bAdministrative
* @return
*/
@ -31,7 +33,7 @@ public interface BAdministrativeMapper
/**
*
*
*
* @param bAdministrative
* @return
*/
@ -39,7 +41,7 @@ public interface BAdministrativeMapper
/**
*
*
*
* @param bAdministrative
* @return
*/
@ -47,7 +49,7 @@ public interface BAdministrativeMapper
/**
*
*
*
* @param id
* @return
*/
@ -55,15 +57,13 @@ public interface BAdministrativeMapper
/**
*
*
*
* @param ids
* @return
*/
public int deleteBAdministrativeByIds(Long[] ids);
/**
*
*
@ -78,4 +78,9 @@ public interface BAdministrativeMapper
* @return
*/
List<BAdministrativeTreeRequest> selectcascadingSelectDataList();
List<BPlanEnterPriseTreeResponse> selectBPlanEnterPriseTreeRequestRequestList(@Param("req") BPlanEnterprisePageRequest req);
}

@ -42,6 +42,18 @@ public interface BKeyEnterpriseMapper extends BaseMapper<BKeyEnterprise> {
*/
BKeyEnterprise getByentCode(@Param("entCode") String entCode);
/**
*
*
* @param district
* @return
*/
Integer getBydistrict(String district);
}

@ -3,8 +3,14 @@ package com.ruoyi.programManagement.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.programManagement.entity.BPlanEnterprise;
import com.ruoyi.programManagement.entity.SzEntBasicInfo;
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
import com.ruoyi.programManagement.entity.request.PlanMxRequest;
import com.ruoyi.programManagement.entity.request.checkResultRequest;
import com.ruoyi.programManagement.entity.request.zhifaRequest;
import com.ruoyi.programManagement.entity.response.BPlanEnterpriseZhifaResponse;
import com.ruoyi.programManagement.entity.response.PlanMxResponse;
import com.ruoyi.programManagement.entity.response.zhifaCountResponse;
import com.ruoyi.programManagement.entity.response.zhifaPlanResponse;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -37,12 +43,47 @@ public interface BPlanEnterpriseMapper extends BaseMapper<BPlanEnterprise> {
List<BPlanEnterpriseZhifaResponse> getZhifa(@Param("req") checkResultRequest req);
/**
*
*
* @return
*/
List<BPlanEnterprise> page();
List<BPlanEnterprise> page(@Param("req") BPlanEnterprisePageRequest req);
/**
*
*
* @return
*/
List<zhifaCountResponse> getzhifacount(@Param("req") zhifaRequest req);
/**
*
*
* @return
*/
List<zhifaPlanResponse> getplan();
/**
*
*
* @return
* @Parm req
*/
List<PlanMxResponse> getPlanMx(@Param("req") PlanMxRequest req);
/**
*
*
* @param bPlanEnterprise
* @return
*/
public List<BPlanEnterprise> selectBPlanEnterpriseList(BPlanEnterprise bPlanEnterprise);
}

@ -1,50 +0,0 @@
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.BPlanManage;
import com.ruoyi.programManagement.entity.request.checkResultRequest;
import com.ruoyi.programManagement.entity.response.BPlanManagePageResponse;
import com.ruoyi.programManagement.entity.response.BPlanManageResponse;
import org.apache.ibatis.annotations.Param;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* (BPlanManage)访
*
* @author wu
* @since 2023-09-07 09:43:07
*/
public interface BPlanManageMapper extends BaseMapper<BPlanManage> {
/**
* id
*
* @param id id
* @return
*/
BPlanManageResponse selectByPlanId(Long id);
/**
*
*
* @param req
* @return
*/
public List<BPlanManagePageResponse> page(@Param("req") checkResultRequest req);
/**
*
* @param bPlanManage
* @return
*/
List<BPlanManage> selectBybPlanManage(BPlanManage bPlanManage);
}

@ -0,0 +1,63 @@
package com.ruoyi.programManagement.mapper;
import com.ruoyi.programManagement.entity.SzEnforExamine;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-09-26
*/
public interface SzEnforExamineMapper
{
/**
*
*
* @param ID
* @return
*/
public SzEnforExamine selectSzEnforExamineByID(String ID);
/**
*
*
* @param szEnforExamine
* @return
*/
public List<SzEnforExamine> selectSzEnforExamineList(SzEnforExamine szEnforExamine);
/**
*
*
* @param szEnforExamine
* @return
*/
public int insertSzEnforExamine(SzEnforExamine szEnforExamine);
/**
*
*
* @param szEnforExamine
* @return
*/
public int updateSzEnforExamine(SzEnforExamine szEnforExamine);
/**
*
*
* @param ID
* @return
*/
public int deleteSzEnforExamineByID(String ID);
/**
*
*
* @param IDs
* @return
*/
public int deleteSzEnforExamineByIDs(String[] IDs);
}

@ -3,6 +3,7 @@ package com.ruoyi.programManagement.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.programManagement.entity.SzEntBasicInfo;
import com.ruoyi.programManagement.entity.request.SzEntBasicInfoPageRequest;
import com.ruoyi.programManagement.entity.response.SzEntBasicInfoPageResponse;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -69,13 +70,4 @@ public interface SzEntBasicInfoMapper extends BaseMapper<SzEntBasicInfo> {
*/
List<SzEntBasicInfo> page(@Param("req") SzEntBasicInfoPageRequest req);
/**
*
* @return
*/
Integer countIspoint();
}

@ -38,5 +38,14 @@ public interface BKeyEnterpriseService extends IService<BKeyEnterprise> {
BKeyEnterprise getByentCode(String entCode);
/**
*
*
* @param district
* @return
*/
Integer getBydistrict(String district);
}

@ -1,8 +1,14 @@
package com.ruoyi.programManagement.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ruoyi.programManagement.entity.BPlanEnterprise;
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
import com.ruoyi.programManagement.entity.request.PlanMxRequest;
import com.ruoyi.programManagement.entity.request.checkResultRequest;
import com.ruoyi.programManagement.entity.request.zhifaRequest;
import com.ruoyi.programManagement.entity.response.zhifaCountResponse;
import com.ruoyi.programManagement.entity.response.zhifaPlanResponse;
import java.util.List;
import java.util.Map;
@ -16,6 +22,14 @@ import java.util.Map;
public interface BPlanEnterpriseService extends IService<BPlanEnterprise> {
/**
*
*
* @param bPlanEnterprise
* @return
*/
public List<BPlanEnterprise> selectBPlanEnterpriseList(BPlanEnterprise bPlanEnterprise);
/**
* planId
*
@ -38,6 +52,32 @@ public interface BPlanEnterpriseService extends IService<BPlanEnterprise> {
*
* @return
*/
List<BPlanEnterprise> page();
List<BPlanEnterprise> page(BPlanEnterprisePageRequest req);
/**
*
*
* @return
*/
Map<String, Object> getzhifacount(zhifaRequest req);
/**
*
*
* @return
*/
List<zhifaPlanResponse> getplan();
/**
*
*
* @return
* @Parm req
*/
Map<String, Object> getPlanMx(PlanMxRequest req);
}

@ -1,45 +0,0 @@
package com.ruoyi.programManagement.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.programManagement.entity.BPlanManage;
import com.ruoyi.programManagement.entity.request.checkResultRequest;
import com.ruoyi.programManagement.entity.response.BPlanManageResponse;
import java.util.List;
import java.util.Map;
/**
* (BPlanManage)
*
* @author wu
* @since 2023-09-07 09:43:07
*/
public interface BPlanManageService extends IService<BPlanManage> {
/**
* id
*
* @param id id
* @return
*/
BPlanManageResponse selectById(Long id);
/**
*
*
* @param req
* @return
*/
public Map<String, Object> page(checkResultRequest req);
/**
*
* @param bPlanManage
* @return
*/
List<BPlanManage> selectBybPlanManage(BPlanManage bPlanManage);
}

@ -2,6 +2,8 @@ package com.ruoyi.programManagement.service;
import com.ruoyi.programManagement.entity.BAdministrative;
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
import com.ruoyi.programManagement.entity.request.BPlanEnterPriseTreeResponse;
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
import java.util.List;
@ -70,10 +72,15 @@ public interface IBAdministrativeService {
List<BAdministrativeTreeRequest> selectBAdministrativeTreeRequestList();
List<BPlanEnterPriseTreeResponse> selectBPlanEnterPriseTreeRequestRequestList(BPlanEnterprisePageRequest req);
/**
*
*
* @return
*/
List<BAdministrativeTreeRequest> selectcascadingSelectDataList();
}

@ -0,0 +1,63 @@
package com.ruoyi.programManagement.service;
import com.ruoyi.programManagement.entity.SzEnforExamine;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-09-26
*/
public interface ISzEnforExamineService
{
/**
*
*
* @param ID
* @return
*/
public SzEnforExamine selectSzEnforExamineByID(String ID);
/**
*
*
* @param szEnforExamine
* @return
*/
public List<SzEnforExamine> selectSzEnforExamineList(SzEnforExamine szEnforExamine);
/**
*
*
* @param szEnforExamine
* @return
*/
public int insertSzEnforExamine(SzEnforExamine szEnforExamine);
/**
*
*
* @param szEnforExamine
* @return
*/
public int updateSzEnforExamine(SzEnforExamine szEnforExamine);
/**
*
*
* @param IDs
* @return
*/
public int deleteSzEnforExamineByIDs(String[] IDs);
/**
*
*
* @param ID
* @return
*/
public int deleteSzEnforExamineByID(String ID);
}

@ -3,6 +3,7 @@ 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 com.ruoyi.programManagement.entity.response.SzEntBasicInfoPageResponse;
import java.util.List;
import java.util.Map;

@ -3,6 +3,8 @@ package com.ruoyi.programManagement.service.impl;
import com.ruoyi.programManagement.entity.BAdministrative;
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
import com.ruoyi.programManagement.entity.request.BPlanEnterPriseTreeResponse;
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
import com.ruoyi.programManagement.mapper.BAdministrativeMapper;
import com.ruoyi.programManagement.service.IBAdministrativeService;
import org.springframework.beans.factory.annotation.Autowired;
@ -92,6 +94,11 @@ public class BAdministrativeServiceImpl implements IBAdministrativeService {
return bAdministrativeMapper.selectBAdministrativeTreeRequestList();
}
@Override
public List<BPlanEnterPriseTreeResponse> selectBPlanEnterPriseTreeRequestRequestList(BPlanEnterprisePageRequest req) {
return bAdministrativeMapper.selectBPlanEnterPriseTreeRequestRequestList(req);
}
@Override
public List<BAdministrativeTreeRequest> selectcascadingSelectDataList() {
return bAdministrativeMapper.selectcascadingSelectDataList();

@ -54,6 +54,11 @@ public class BKeyEnterpriseServiceImpl extends ServiceImpl<BKeyEnterpriseMapper,
return bKeyEnterpriseMapper.getByentCode(entCode);
}
@Override
public Integer getBydistrict(String district) {
return bKeyEnterpriseMapper.getBydistrict(district);
}
}

@ -4,11 +4,18 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.programManagement.entity.BPlanEnterprise;
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
import com.ruoyi.programManagement.entity.request.PlanMxRequest;
import com.ruoyi.programManagement.entity.request.checkResultRequest;
import com.ruoyi.programManagement.entity.request.zhifaRequest;
import com.ruoyi.programManagement.entity.response.BPlanEnterpriseZhifaResponse;
import com.ruoyi.programManagement.entity.response.PlanMxResponse;
import com.ruoyi.programManagement.entity.response.zhifaCountResponse;
import com.ruoyi.programManagement.entity.response.zhifaPlanResponse;
import com.ruoyi.programManagement.mapper.BPlanEnterpriseMapper;
import com.ruoyi.programManagement.service.BPlanEnterpriseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.HashMap;
@ -31,10 +38,23 @@ public class BPlanEnterpriseServiceImpl extends ServiceImpl<BPlanEnterpriseMappe
bPlanEnterpriseMapper.deleteByPlanId(planId);
}
/**
*
*
* @param bPlanEnterprise
* @return
*/
@Override
public List<BPlanEnterprise> selectBPlanEnterpriseList(BPlanEnterprise bPlanEnterprise)
{
return bPlanEnterpriseMapper.selectBPlanEnterpriseList(bPlanEnterprise);
}
@Override
public Map<String, Object> getZhifa(checkResultRequest req) {
PageHelper.startPage(req.getPageNum(), req.getPageSize());
List<BPlanEnterpriseZhifaResponse> getZhifa = bPlanEnterpriseMapper.getZhifa(req);
PageHelper.startPage(req.getPageNum(), req.getPageSize());
PageInfo<BPlanEnterpriseZhifaResponse> pageInfo = new PageInfo<>(getZhifa);
Map<String, Object> result = new HashMap<>();
result.put("total", pageInfo.getTotal());
@ -43,8 +63,39 @@ public class BPlanEnterpriseServiceImpl extends ServiceImpl<BPlanEnterpriseMappe
}
@Override
public List<BPlanEnterprise> page() {
return bPlanEnterpriseMapper.page();
public List<BPlanEnterprise> page(BPlanEnterprisePageRequest req) {
return bPlanEnterpriseMapper.page(req);
}
@Override
public Map<String,Object> getzhifacount(zhifaRequest req) {
List<zhifaCountResponse> getZhifa = bPlanEnterpriseMapper.getzhifacount(req);
PageHelper.startPage(req.getPageNum(), req.getPageSize());
PageInfo<zhifaCountResponse> pageInfo = new PageInfo<>(getZhifa);
Map<String, Object> result = new HashMap<>();
result.put("total", pageInfo.getTotal());
result.put("list", pageInfo.getList());
return result;
}
@Override
public List<zhifaPlanResponse> getplan() {
return bPlanEnterpriseMapper.getplan();
}
@Override
public Map<String, Object> getPlanMx(PlanMxRequest req) {
List<PlanMxResponse> getPlanMx = bPlanEnterpriseMapper.getPlanMx(req);
PageHelper.startPage(req.getPageNum(), req.getPageSize());
PageInfo<PlanMxResponse> pageInfo = new PageInfo<>(getPlanMx);
Map<String, Object> result = new HashMap<>();
result.put("total", pageInfo.getTotal());
result.put("list", pageInfo.getList());
return result;
}

@ -1,64 +0,0 @@
package com.ruoyi.programManagement.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
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.entity.request.checkResultRequest;
import com.ruoyi.programManagement.entity.response.BPlanManagePageResponse;
import com.ruoyi.programManagement.entity.response.BPlanManageResponse;
import com.ruoyi.programManagement.mapper.BPlanEnterpriseMapper;
import com.ruoyi.programManagement.mapper.BPlanManageMapper;
import com.ruoyi.programManagement.entity.BPlanManage;
import com.ruoyi.programManagement.service.BPlanManageService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* (BPlanManage)
*
* @author wu
* @since 2023-09-07 09:43:07
*/
@Service("bPlanManageService")
public class BPlanManageServiceImpl extends ServiceImpl<BPlanManageMapper, BPlanManage> implements BPlanManageService {
@Resource
private BPlanManageMapper bPlanManageMapper;
@Resource
private BPlanEnterpriseMapper bPlanEnterpriseMapper;
@Override
public BPlanManageResponse selectById(Long id) {
BPlanManageResponse bPlanManage=bPlanManageMapper.selectByPlanId(id);
//根据id获取企业列表
bPlanManage.setList(bPlanEnterpriseMapper.getByPlanId(id));
return bPlanManage;
}
@Override
public Map<String, Object> page(checkResultRequest req) {
List<BPlanManagePageResponse> bPlanManageInfos = bPlanManageMapper.page(req);
PageHelper.startPage(req.getPageNum(),req.getPageSize());
PageInfo<BPlanManagePageResponse> pageInfo = new PageInfo<>(bPlanManageInfos);
Map<String, Object> result =new HashMap<>();
result.put("total",pageInfo.getTotal());
result.put("list",pageInfo.getList());
return result;
}
@Override
public List<BPlanManage> selectBybPlanManage(BPlanManage bPlanManage) {
return bPlanManageMapper.selectBybPlanManage(bPlanManage);
}
}

@ -0,0 +1,95 @@
package com.ruoyi.programManagement.service.impl;
import java.util.List;
import com.ruoyi.programManagement.entity.SzEnforExamine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.programManagement.mapper.SzEnforExamineMapper;
import com.ruoyi.programManagement.service.ISzEnforExamineService;
/**
* Service
*
* @author ruoyi
* @date 2023-09-26
*/
@Service
public class SzEnforExamineServiceImpl implements ISzEnforExamineService
{
@Autowired
private SzEnforExamineMapper szEnforExamineMapper;
/**
*
*
* @param ID
* @return
*/
@Override
public SzEnforExamine selectSzEnforExamineByID(String ID)
{
return szEnforExamineMapper.selectSzEnforExamineByID(ID);
}
/**
*
*
* @param szEnforExamine
* @return
*/
@Override
public List<SzEnforExamine> selectSzEnforExamineList(SzEnforExamine szEnforExamine)
{
return szEnforExamineMapper.selectSzEnforExamineList(szEnforExamine);
}
/**
*
*
* @param szEnforExamine
* @return
*/
@Override
public int insertSzEnforExamine(SzEnforExamine szEnforExamine)
{
return szEnforExamineMapper.insertSzEnforExamine(szEnforExamine);
}
/**
*
*
* @param szEnforExamine
* @return
*/
@Override
public int updateSzEnforExamine(SzEnforExamine szEnforExamine)
{
return szEnforExamineMapper.updateSzEnforExamine(szEnforExamine);
}
/**
*
*
* @param IDs
* @return
*/
@Override
public int deleteSzEnforExamineByIDs(String[] IDs)
{
return szEnforExamineMapper.deleteSzEnforExamineByIDs(IDs);
}
/**
*
*
* @param ID
* @return
*/
@Override
public int deleteSzEnforExamineByID(String ID)
{
return szEnforExamineMapper.deleteSzEnforExamineByID(ID);
}
}

@ -10,6 +10,7 @@ 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.entity.response.SzEntBasicInfoPageResponse;
import com.ruoyi.programManagement.mapper.SzEntBasicInfoMapper;
import com.ruoyi.programManagement.service.ISzEntBasicInfoService;
import org.springframework.beans.factory.annotation.Autowired;
@ -102,14 +103,12 @@ public class SzEntBasicInfoServiceImpl implements ISzEntBasicInfoService
@Override
public Map<String, Object> page(SzEntBasicInfoPageRequest req) {
PageHelper.startPage(req.getPageNum(),req.getPageSize());
PageHelper.startPage(1,10);
List<SzEntBasicInfo> szEntBasicInfos = szEntBasicInfoMapper.page(req);
int count=szEntBasicInfoMapper.countIspoint();
PageInfo<SzEntBasicInfo> pageInfo = new PageInfo<>(szEntBasicInfos);
Map<String, Object> result =new HashMap<>();
result.put("total",pageInfo.getTotal());
result.put("list",pageInfo.getList());
result.put("count",count);
return result;
}

@ -6,9 +6,13 @@ spring:
druid:
# 主库数据源
master:
#本地
url: jdbc:mysql://39.101.188.84:3307/ying_ji?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: Admin123@
# url: jdbc:mysql://192.167.2.56:3306/ying_ji?useUnicode=true&useSSL=false&characterEncoding=utf8&serverTimezone=UTC
# username: root
# password: Jichuang@2023
# 从库数据源
slave:
# 从数据源开关/默认关闭

@ -18,6 +18,8 @@ ruoyi:
# 开发环境配置
server:
# 服务器的HTTP端口默认为8080
# port: 13002
#本地
port: 9033
servlet:
# 应用的访问路径

@ -1,46 +1,73 @@
<?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">
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" />
<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
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>
<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 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 county, subdistrict, institution_name as institutionName
from b_administrative
</select>
<select id="selectBPlanEnterPriseTreeRequestRequestList"
resultType="com.ruoyi.programManagement.entity.request.BPlanEnterPriseTreeResponse">
SELECT a.subdistrict AS subdistrict,a.county,c.id,a.institution_name as institutionName,
COUNT(b.subdistrict) AS enterpriseCount,
COUNT(DISTINCT k.ent_code) - COUNT(DISTINCT c.enterprise_id) AS remainingKeyEnterpriseCount,
COUNT(DISTINCT c.enterprise_id) AS plannedEnterpriseCount,
COUNT(DISTINCT CASE WHEN k.ent_code IS NOT NULL THEN c.enterprise_id END) AS planneKeyEnterpriseCount
FROM b_administrative a
LEFT JOIN sz_ent_basic_info b ON a.subdistrict = LPAD(b.subdistrict, LENGTH(a.subdistrict), '0')
LEFT JOIN b_key_enterprise k ON a.subdistrict = k.district
LEFT JOIN b_plan_enterprise c ON k.ent_code = c.enterprise_id
WHERE a.SUBDISTRICT LIKE '%13205%'
<where>
<if test="req.plannedYear!=null and req.plannedYear!=''">
c.planned_year#{req.plannedYear}
</if>
</where>
GROUP BY a.subdistrict,a.county;
</select>
@ -53,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="county != null">county,</if>
<if test="subdistrict != null">subdistrict,</if>
<if test="institutionName != null">institution_name,</if>
</trim>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="region != null">#{region},</if>
<if test="province != null">#{province},</if>
@ -61,7 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="county != null">#{county},</if>
<if test="subdistrict != null">#{subdistrict},</if>
<if test="institutionName != null">#{institutionName},</if>
</trim>
</trim>
</insert>
<update id="updateBAdministrative" parameterType="BAdministrative">
@ -78,11 +105,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteBAdministrativeById" parameterType="Long">
delete from b_administrative where id = #{id}
delete
from b_administrative
where id = #{id}
</delete>
<delete id="deleteBAdministrativeByIds" parameterType="String">
delete from b_administrative where id in
delete from b_administrative where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>

@ -10,24 +10,40 @@
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="entCode != null">ent_code,</if>
<if test="year != null">year,</if>
<if test="type != null">type,</if>
<if test="enterpriseName != null">enterprise_name,</if>
<if test="district != null">district,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="entCode != null">#{entCode},</if>
<if test="year != null">#{year},</if>
<if test="type != null">#{type},</if>
<if test="enterpriseName != null">#{enterpriseName},</if>
<if test="district != null">#{district},</if>
</trim>
</insert>
<select id="page" resultType="com.ruoyi.programManagement.entity.BKeyEnterprise">
select * from b_key_enterprise
select id,ent_code as entCode, type ,year,enterprise_name as enterpriseName from b_key_enterprise
<where>
<if test=" req.year !=null">
and year = #{req.year}
</if>
<if test=" req.entCode !=null">
and ent_code = #{req.entCode}
</if>
<if test=" req.district !=null">
and district = #{req.district}
</if>
</where>
order by id desc
</select>
<select id="getBydistrict" resultType="java.lang.Integer">
select count(*) as count from b_key_enterprise where district like concat('%',#{district},'%')
</select>
<select id="getByentCode" resultType="com.ruoyi.programManagement.entity.BKeyEnterprise">
select * from b_key_enterprise where ent_code=#{entCode}
select * from b_key_enterprise where ent_code =#{entCode}
</select>
</mapper>

@ -4,27 +4,79 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.programManagement.mapper.BPlanEnterpriseMapper">
<resultMap type="BPlanEnterprise" id="BPlanEnterpriseResult">
<result property="id" column="id"/>
<result property="enterpriseId" column="enterprise_id"/>
<result property="createId" column="create_id"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateId" column="update_id"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="remark" column="remark"/>
<result property="userId" column="user_id"/>
<result property="deptId" column="dept_id"/>
<result property="district" column="district"/>
<result property="plannedYear" column="planned_year"/>
<result property="planName" column="plan_name"/>
<result property="planContent" column="plan_content"/>
<result property="isPoint" column="is_point"/>
</resultMap>
<sql id="selectBPlanEnterpriseVo">
select id,
enterprise_id,
create_id,
create_by,
create_time,
update_id,
update_by,
update_time,
remark,
user_id,
dept_id,
district,
planned_year,
plan_name,
plan_content,
is_point
from b_plan_enterprise
</sql>
<select id="selectBPlanEnterpriseList" parameterType="BPlanEnterprise" resultMap="BPlanEnterpriseResult">
<include refid="selectBPlanEnterpriseVo"/>
<where>
<if test="enterpriseId != null and enterpriseId != ''">and enterprise_id = #{enterpriseId}</if>
<if test="createId != null ">and create_id = #{createId}</if>
<if test="updateId != null ">and update_id = #{updateId}</if>
<if test="userId != null ">and user_id = #{userId}</if>
<if test="deptId != null ">and dept_id = #{deptId}</if>
<if test="district != null and district != ''">and district = #{district}</if>
<if test="plannedYear != null and plannedYear != ''">and planned_year = #{plannedYear}</if>
<if test="planName != null and planName != ''">and plan_name like concat('%', #{planName}, '%')</if>
<if test="planContent != null and planContent != ''">and plan_content = #{planContent}</if>
<if test="isPoint != null ">and is_point = #{isPoint}</if>
</where>
</select>
<delete id="deleteByPlanId">
delete
from b_plan_enterprise where plan_id=
#{planId}
from b_plan_enterprise
where plan_id =
#{planId}
</delete>
<select id="getByPlanId" resultType="com.ruoyi.programManagement.entity.SzEntBasicInfo">
SELECT
s.*,
CASE
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
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">
@ -35,19 +87,16 @@
SELECT
a.*,
d.ENTPR_NAME AS entprName,
c.planned_year AS plannedYear,
a.planned_year AS plannedYear,
b.id as longId,
CASE
WHEN b.USC_CODE IS NOT NULL THEN
1 ELSE 2
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}
@ -59,10 +108,72 @@
and s.checkStatus =#{req.checkStatus}
</if>
</where>
group by s.enterprise_id
</select>
<select id="page" resultType="com.ruoyi.programManagement.entity.BPlanEnterprise">
select * from b_plan_enterprise
select * from b_plan_enterprise
<where>
<if test="req.plannedYear !=null and req.plannedYear !=''">
and plannedYear =#{req.plannedYear}
</if>
<if test="req.district !=null and req.district !=''">
and district =#{req.district}
</if>
</where>
</select>
<select id="getzhifacount" resultType="com.ruoyi.programManagement.entity.response.zhifaCountResponse">
SELECT bpm.dept_id as deptId,
c.dept_name as deptName ,
COUNT(CASE WHEN bpe.is_point = 1 THEN 1 END) as keyPlan,
COUNT(CASE WHEN bpe.is_point = 2 THEN 1 END) as nonKeyPlan,
COUNT(CASE WHEN bpe.is_point = 1 AND exm.USC_CODE IS NOT NULL THEN 1 END) as keyCompleted ,
COUNT(CASE WHEN bpe.is_point = 2 AND exm.USC_CODE IS NULL THEN 1 END) as nonKeyCompleted,
COUNT(CASE WHEN bpe.is_point = 1 AND exm.USC_CODE IS NOT NULL THEN 1 END) * 100 /
COUNT(CASE WHEN bpe.is_point = 1 THEN 1 END) as percentageCompleted,
COUNT(CASE WHEN bpe.is_point = 2 AND exm.USC_CODE IS NULL THEN 1 END) * 100 /
COUNT(CASE WHEN bpe.is_point = 2 THEN 1 END) as percentageNonCompleted,
COUNT(*) as totalPlanCount
FROM b_plan_manage bpm
JOIN
b_plan_enterprise bpe ON bpm.id = bpe.plan_id
LEFT JOIN
sz_enfor_examine exm ON bpe.enterprise_id = exm.USC_CODE
LEFT JOIN sys_dept c on bpm.dept_id = c.dept_id
<where>
<if test="req.plannedYear !=null and req.plannedYear !=''">
and bpm.planned_year =#{req.plannedYear}
</if>
<if test="req.deptName !=null and req.deptName !=''">
and c.dept_name =#{req.deptName}
</if>
</where>
GROUP BY bpm.dept_id
</select>
<select id="getplan" resultType="com.ruoyi.programManagement.entity.response.zhifaPlanResponse">
SELECT COUNT(*) AS count, b.dept_name AS deptName
FROM b_plan_manage a
LEFT JOIN sys_dept b
ON a.dept_id = b.dept_id
WHERE b.ancestors REGEXP '^([^,]*,){0,1}[^,]*$'
GROUP BY a.dept_id
</select>
<select id="getPlanMx" resultType="com.ruoyi.programManagement.entity.response.PlanMxResponse">
SELECT
a.*,
b.institution_name AS institutionName,
c.ENTPR_NAME as entprName
FROM
b_plan_enterprise a
LEFT JOIN b_administrative b ON a.district = b.subdistrict
LEFT JOIN sz_ent_basic_info c ON a.enterprise_id = c.USC_CODE
<where>
<if test="req.district !=null and req.district!='' ">
and a.district =#{req.district}
</if>
<if test="req.plannedYear !=null and req.plannedYear!='' ">
and a.planned_year =#{req.plannedYear}
</if>
</where>
</select>

@ -1,29 +0,0 @@
<?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>
<select id="selectBybPlanManage" resultType="com.ruoyi.programManagement.entity.BPlanManage">
select a.*
from b_plan_manage a
</select>
</mapper>

@ -0,0 +1,178 @@
<?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.SzEnforExamineMapper">
<resultMap type="SzEnforExamine" id="SzEnforExamineResult">
<result property="dmsTimestamp" column="dms_timestamp" />
<result property="ID" column="ID" />
<result property="planExamineId" column="PLAN_EXAMINE_ID" />
<result property="entprName" column="ENTPR_NAME" />
<result property="uscCode" column="USC_CODE" />
<result property="examineSite" column="EXAMINE_SITE" />
<result property="examineSource" column="EXAMINE_SOURCE" />
<result property="examineStartTime" column="EXAMINE_START_TIME" />
<result property="examineEndTime" column="EXAMINE_END_TIME" />
<result property="executorId" column="EXECUTOR_ID" />
<result property="examineSituation" column="EXAMINE_SITUATION" />
<result property="writNo" column="WRIT_NO" />
<result property="typeCode" column="TYPE_CODE" />
<result property="EVIDENCE" column="EVIDENCE" />
<result property="executorDept" column="EXECUTOR_DEPT" />
<result property="executorDeptCode" column="EXECUTOR_DEPT_CODE" />
<result property="examineType" column="EXAMINE_TYPE" />
<result property="threeSpecialType" column="THREE_SPECIAL_TYPE" />
<result property="enterpriseUnitVersion" column="ENTERPRISE_UNIT_VERSION" />
<result property="CREATER" column="CREATER" />
<result property="CREATETIME" column="CREATETIME" />
<result property="UPDATER" column="UPDATER" />
<result property="UPDATETIME" column="UPDATETIME" />
<result property="sourceData" column="SOURCE_DATA" />
<result property="expertsInFlag" column="EXPERTS_IN_FLAG" />
<result property="expertsName" column="EXPERTS_NAME" />
</resultMap>
<sql id="selectSzEnforExamineVo">
select dms_timestamp, ID, PLAN_EXAMINE_ID, ENTPR_NAME, USC_CODE, EXAMINE_SITE, EXAMINE_SOURCE, EXAMINE_START_TIME, EXAMINE_END_TIME, EXECUTOR_ID, EXAMINE_SITUATION, WRIT_NO, TYPE_CODE, EVIDENCE, EXECUTOR_DEPT, EXECUTOR_DEPT_CODE, EXAMINE_TYPE, THREE_SPECIAL_TYPE, ENTERPRISE_UNIT_VERSION, CREATER, CREATETIME, UPDATER, UPDATETIME, SOURCE_DATA, EXPERTS_IN_FLAG, EXPERTS_NAME from sz_enfor_examine
</sql>
<select id="selectSzEnforExamineList" parameterType="SzEnforExamine" resultMap="SzEnforExamineResult">
<include refid="selectSzEnforExamineVo"/>
<where>
<if test="dmsTimestamp != null "> and dms_timestamp = #{dmsTimestamp}</if>
<if test="planExamineId != null and planExamineId != ''"> and PLAN_EXAMINE_ID = #{planExamineId}</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="examineSite != null and examineSite != ''"> and EXAMINE_SITE = #{examineSite}</if>
<if test="examineSource != null and examineSource != ''"> and EXAMINE_SOURCE = #{examineSource}</if>
<if test="examineStartTime != null "> and EXAMINE_START_TIME = #{examineStartTime}</if>
<if test="examineEndTime != null "> and EXAMINE_END_TIME = #{examineEndTime}</if>
<if test="executorId != null and executorId != ''"> and EXECUTOR_ID = #{executorId}</if>
<if test="examineSituation != null and examineSituation != ''"> and EXAMINE_SITUATION = #{examineSituation}</if>
<if test="writNo != null and writNo != ''"> and WRIT_NO = #{writNo}</if>
<if test="typeCode != null and typeCode != ''"> and TYPE_CODE = #{typeCode}</if>
<if test="EVIDENCE != null and EVIDENCE != ''"> and EVIDENCE = #{EVIDENCE}</if>
<if test="executorDept != null and executorDept != ''"> and EXECUTOR_DEPT = #{executorDept}</if>
<if test="executorDeptCode != null and executorDeptCode != ''"> and EXECUTOR_DEPT_CODE = #{executorDeptCode}</if>
<if test="examineType != null and examineType != ''"> and EXAMINE_TYPE = #{examineType}</if>
<if test="threeSpecialType != null and threeSpecialType != ''"> and THREE_SPECIAL_TYPE = #{threeSpecialType}</if>
<if test="enterpriseUnitVersion != null and enterpriseUnitVersion != ''"> and ENTERPRISE_UNIT_VERSION = #{enterpriseUnitVersion}</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="sourceData != null and sourceData != ''"> and SOURCE_DATA = #{sourceData}</if>
<if test="expertsInFlag != null "> and EXPERTS_IN_FLAG = #{expertsInFlag}</if>
<if test="expertsName != null and expertsName != ''"> and EXPERTS_NAME like concat('%', #{expertsName}, '%')</if>
</where>
</select>
<select id="selectSzEnforExamineByID" parameterType="String" resultMap="SzEnforExamineResult">
<include refid="selectSzEnforExamineVo"/>
where ID = #{ID}
</select>
<insert id="insertSzEnforExamine" parameterType="SzEnforExamine">
insert into sz_enfor_examine
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="dmsTimestamp != null">dms_timestamp,</if>
<if test="ID != null">ID,</if>
<if test="planExamineId != null">PLAN_EXAMINE_ID,</if>
<if test="entprName != null and entprName != ''">ENTPR_NAME,</if>
<if test="uscCode != null and uscCode != ''">USC_CODE,</if>
<if test="examineSite != null">EXAMINE_SITE,</if>
<if test="examineSource != null">EXAMINE_SOURCE,</if>
<if test="examineStartTime != null">EXAMINE_START_TIME,</if>
<if test="examineEndTime != null">EXAMINE_END_TIME,</if>
<if test="executorId != null and executorId != ''">EXECUTOR_ID,</if>
<if test="examineSituation != null">EXAMINE_SITUATION,</if>
<if test="writNo != null">WRIT_NO,</if>
<if test="typeCode != null">TYPE_CODE,</if>
<if test="EVIDENCE != null">EVIDENCE,</if>
<if test="executorDept != null">EXECUTOR_DEPT,</if>
<if test="executorDeptCode != null and executorDeptCode != ''">EXECUTOR_DEPT_CODE,</if>
<if test="examineType != null">EXAMINE_TYPE,</if>
<if test="threeSpecialType != null">THREE_SPECIAL_TYPE,</if>
<if test="enterpriseUnitVersion != null">ENTERPRISE_UNIT_VERSION,</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="sourceData != null">SOURCE_DATA,</if>
<if test="expertsInFlag != null">EXPERTS_IN_FLAG,</if>
<if test="expertsName != null">EXPERTS_NAME,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="dmsTimestamp != null">#{dmsTimestamp},</if>
<if test="ID != null">#{ID},</if>
<if test="planExamineId != null">#{planExamineId},</if>
<if test="entprName != null and entprName != ''">#{entprName},</if>
<if test="uscCode != null and uscCode != ''">#{uscCode},</if>
<if test="examineSite != null">#{examineSite},</if>
<if test="examineSource != null">#{examineSource},</if>
<if test="examineStartTime != null">#{examineStartTime},</if>
<if test="examineEndTime != null">#{examineEndTime},</if>
<if test="executorId != null and executorId != ''">#{executorId},</if>
<if test="examineSituation != null">#{examineSituation},</if>
<if test="writNo != null">#{writNo},</if>
<if test="typeCode != null">#{typeCode},</if>
<if test="EVIDENCE != null">#{EVIDENCE},</if>
<if test="executorDept != null">#{executorDept},</if>
<if test="executorDeptCode != null and executorDeptCode != ''">#{executorDeptCode},</if>
<if test="examineType != null">#{examineType},</if>
<if test="threeSpecialType != null">#{threeSpecialType},</if>
<if test="enterpriseUnitVersion != null">#{enterpriseUnitVersion},</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="sourceData != null">#{sourceData},</if>
<if test="expertsInFlag != null">#{expertsInFlag},</if>
<if test="expertsName != null">#{expertsName},</if>
</trim>
</insert>
<update id="updateSzEnforExamine" parameterType="SzEnforExamine">
update sz_enfor_examine
<trim prefix="SET" suffixOverrides=",">
<if test="dmsTimestamp != null">dms_timestamp = #{dmsTimestamp},</if>
<if test="planExamineId != null">PLAN_EXAMINE_ID = #{planExamineId},</if>
<if test="entprName != null and entprName != ''">ENTPR_NAME = #{entprName},</if>
<if test="uscCode != null and uscCode != ''">USC_CODE = #{uscCode},</if>
<if test="examineSite != null">EXAMINE_SITE = #{examineSite},</if>
<if test="examineSource != null">EXAMINE_SOURCE = #{examineSource},</if>
<if test="examineStartTime != null">EXAMINE_START_TIME = #{examineStartTime},</if>
<if test="examineEndTime != null">EXAMINE_END_TIME = #{examineEndTime},</if>
<if test="executorId != null and executorId != ''">EXECUTOR_ID = #{executorId},</if>
<if test="examineSituation != null">EXAMINE_SITUATION = #{examineSituation},</if>
<if test="writNo != null">WRIT_NO = #{writNo},</if>
<if test="typeCode != null">TYPE_CODE = #{typeCode},</if>
<if test="EVIDENCE != null">EVIDENCE = #{EVIDENCE},</if>
<if test="executorDept != null">EXECUTOR_DEPT = #{executorDept},</if>
<if test="executorDeptCode != null and executorDeptCode != ''">EXECUTOR_DEPT_CODE = #{executorDeptCode},</if>
<if test="examineType != null">EXAMINE_TYPE = #{examineType},</if>
<if test="threeSpecialType != null">THREE_SPECIAL_TYPE = #{threeSpecialType},</if>
<if test="enterpriseUnitVersion != null">ENTERPRISE_UNIT_VERSION = #{enterpriseUnitVersion},</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="sourceData != null">SOURCE_DATA = #{sourceData},</if>
<if test="expertsInFlag != null">EXPERTS_IN_FLAG = #{expertsInFlag},</if>
<if test="expertsName != null">EXPERTS_NAME = #{expertsName},</if>
</trim>
where ID = #{ID}
</update>
<delete id="deleteSzEnforExamineByID" parameterType="String">
delete from sz_enfor_examine where ID = #{ID}
</delete>
<delete id="deleteSzEnforExamineByIDs" parameterType="String">
delete from sz_enfor_examine where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>
</delete>
</mapper>

@ -1,204 +1,330 @@
<?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">
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" />
<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
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>
<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 id="countIspoint" resultType="java.lang.Integer">
SELECT count(*) as count
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
) AS s
WHERE s.is_point = 1
</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
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS is_point
FROM
sz_ent_basic_info a
LEFT JOIN
b_key_enterprise b ON a.USC_CODE = b.ent_code)s
b_key_enterprise b ON a.USC_CODE = b.ent_code where a.SUBDISTRICT like '%013205%' or a.SUBDISTRICT like
'%13205%')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>
@ -214,21 +340,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="req.indusTypeClass != null and req.indusTypeClass != ''">and
s.indus_type_class=#{req.indusTypeClass}
</if>
</where>
order by is_point desc
</select>
<select id="countIspoint" resultType="java.lang.Integer">
SELECT count(*) as count
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
) AS s
WHERE s.is_point = 1
order by is_point asc
</select>
<insert id="insertSzEntBasicInfo" parameterType="SzEntBasicInfo">
@ -296,7 +410,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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="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>
@ -319,7 +434,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ISBUYSAFETYINSURANCE != null">ISBUYSAFETYINSURANCE,</if>
<if test="TURNOVER != null">TURNOVER,</if>
<if test="sourceData != null">SOURCE_DATA,</if>
</trim>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="dmsTimestamp != null">#{dmsTimestamp},</if>
<if test="ID != null">#{ID},</if>
@ -383,7 +498,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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="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>
@ -406,7 +523,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ISBUYSAFETYINSURANCE != null">#{ISBUYSAFETYINSURANCE},</if>
<if test="TURNOVER != null">#{TURNOVER},</if>
<if test="sourceData != null">#{sourceData},</if>
</trim>
</trim>
</insert>
<update id="updateSzEntBasicInfo" parameterType="SzEntBasicInfo">
@ -471,10 +588,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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="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>
@ -501,11 +624,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteSzEntBasicInfoByID" parameterType="String">
delete from sz_ent_basic_info where ID = #{ID}
delete
from sz_ent_basic_info
where ID = #{ID}
</delete>
<delete id="deleteSzEntBasicInfoByIDs" parameterType="String">
delete from sz_ent_basic_info where ID in
delete from sz_ent_basic_info where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>

Loading…
Cancel
Save