zhangtao
dongdingding 1 year ago
parent e7e288cb7d
commit 150f5b190a

@ -219,11 +219,12 @@ public class BPlanEnterpriseController extends BaseController {
@ApiOperation(value = "导出执法结果")
@PostMapping("/export")
public void export(HttpServletResponse response, checkResultRequest req) {
if (req.getDistrict() != null && req.getDistrict().contains("000000000")) {
String result = req.getDistrict().replaceAll("0+$", "");
req.setDistrict(result);
}
List<BPlanEnterpriseZhifaResponse> list = bPlanEnterpriseMapper.getZhifa(req);
for (BPlanEnterpriseZhifaResponse a : list) {
String district = a.getDistrict();
String countyList = bAdministrativeService.getBydistinct(district);
a.setDistrict(countyList);
}
ExcelUtil<BPlanEnterpriseZhifaResponse> util = new ExcelUtil<BPlanEnterpriseZhifaResponse>(BPlanEnterpriseZhifaResponse.class);
util.exportExcel(response, list, "导出执法结果");
}

@ -4,6 +4,7 @@ import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.programManagement.entity.SzsEnterpriseInformation;
import com.ruoyi.programManagement.entity.request.SzsEnterpriseInformationRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
@ -42,13 +43,11 @@ public class SzsEnterpriseInformationController extends BaseController
/**
* -
*/
@ApiOperation("查询省-企业基本信息列表")
@ApiOperation(value = "查询省-企业基本信息列表",response = SzsEnterpriseInformation.class)
@GetMapping("/list")
public TableDataInfo list(SzsEnterpriseInformation szsEnterpriseInformation)
public AjaxResult page(SzsEnterpriseInformationRequest szsEnterpriseInformationRequest)
{
startPage();
List<SzsEnterpriseInformation> list = szsEnterpriseInformationService.selectSzsEnterpriseInformationList(szsEnterpriseInformation);
return getDataTable(list);
return AjaxResult.success(szsEnterpriseInformationService.selectList(szsEnterpriseInformationRequest));
}
/**

@ -1,5 +1,6 @@
package com.ruoyi.programManagement.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
@ -405,4 +406,19 @@ public class SzsEnterpriseInformation extends BaseEntity {
*/
@ApiModelProperty(value = "是否重点企业1是2否")
private Integer isPoint;
/**
* size
*/
@TableField(exist = false)
@ApiModelProperty("size")
private int pageSize;
/**
* num
*/
@TableField(exist = false)
@ApiModelProperty("num")
private int pageNum;
}

@ -0,0 +1,433 @@
package com.ruoyi.programManagement.entity.request;
import com.baomidou.mybatisplus.annotation.TableField;
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.util.Date;
/**
* -
*/
@Data
@ApiModel("查询省-企业基本信息列表请求类")
public class SzsEnterpriseInformationRequest {
/**
* $column.columnComment
*/
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Date jhptUpdateTime;
/**
*
*/
@Excel(name = "法人移动电话")
@ApiModelProperty("法人移动电话")
private String legalPersonCellphone;
/**
*
*/
@Excel(name = "国民经济中类")
@ApiModelProperty("国民经济中类")
private String indusTypeMiddle;
/**
*
*/
@Excel(name = "法人类型")
@ApiModelProperty("法人类型")
private String legalPersonType;
/**
*
*/
@Excel(name = "国民经济大类")
@ApiModelProperty("国民经济大类")
private String indusTypeLagre;
/**
*
*/
@Excel(name = "行业监管大类")
@ApiModelProperty("行业监管大类")
private String supervisionLarge;
/**
*
*/
@Excel(name = "所在市")
@ApiModelProperty("所在市")
private String CITY;
/**
*
*/
@Excel(name = "生产经营地址")
@ApiModelProperty("生产经营地址")
private String businessAddress;
/**
*
*/
@ApiModelProperty("所在县(市、区)")
@Excel(name = "所在县", readConverterExp = "市=、区")
private String COUNTY;
/**
* id
*/
@Excel(name = "报告历史id")
@ApiModelProperty("报告历史id")
private String reportHistoryId;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty("登记时间")
@Excel(name = "登记时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date registerTime;
/**
*
*/
@Excel(name = "办公地址")
@ApiModelProperty("办公地址")
private String enterpriseAddress;
/**
*
*/
@Excel(name = "所在省")
@ApiModelProperty("所在省")
private String PROVINCE;
/**
*
*/
@Excel(name = "申请人联系方式")
@ApiModelProperty("申请人联系方式")
private String SQRLXFS;
/**
*
*/
@Excel(name = "申请人")
@ApiModelProperty("申请人")
private String SQR;
/**
*
*/
@ApiModelProperty("有效期止")
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "有效期止", width = 30, dateFormat = "yyyy-MM-dd")
private Date termEnd;
/**
* ID
*/
@ApiModelProperty("主键ID")
private String ID;
/**
*
*/
@Excel(name = "所在村", readConverterExp = "社=区")
@ApiModelProperty("所在村(社区)")
private String VILLAGE;
/**
*
*/
@Excel(name = "法人职务")
@ApiModelProperty("法人职务")
private String legalPersonPost;
/**
*
*/
@Excel(name = "法定代表人")
@ApiModelProperty("法定代表人")
private String legalPerson;
/**
*
*/
@Excel(name = "企业类型")
@ApiModelProperty("企业类型")
private String zjEconKind;
/**
*
*/
@Excel(name = "登记状态")
@ApiModelProperty("登记状态")
private String corpStatus;
/**
*
*/
@Excel(name = "统一社会信用代码")
@ApiModelProperty("统一社会信用代码")
private String uuitNo;
/**
*
*/
@Excel(name = "行业监管小类")
@ApiModelProperty("行业监管小类")
private String supervisionSmall;
/**
*
*/
@Excel(name = "注册地址")
@ApiModelProperty("注册地址")
private String rigisterAddress;
/**
*
*/
@Excel(name = "是否上报风险报告")
@ApiModelProperty("是否上报风险报告")
private String riskReport;
/**
*
*/
@Excel(name = "国民经济小类")
@ApiModelProperty("国民经济小类")
private String indusTypeSmall;
/**
*
*/
@Excel(name = "删除标识")
@ApiModelProperty("删除标识")
private String isDelete;
/**
*
*/
@Excel(name = "经营范围")
@ApiModelProperty("经营范围")
private String businessScope;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty("成立时间")
@Excel(name = "成立时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date startTime;
/**
*
*/
@ApiModelProperty("法人固定电话")
@Excel(name = "法人固定电话")
private String legalPersonTel;
/**
*
*/
@Excel(name = "国民经济门类")
@ApiModelProperty("国民经济门类")
private String indusTypeClass;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty("有效期起")
@Excel(name = "有效期起", width = 30, dateFormat = "yyyy-MM-dd")
private Date termStart;
/**
*
*/
@Excel(name = "企业规模")
@ApiModelProperty("企业规模")
private String enterpristScale;
/**
*
*/
@Excel(name = "登记机关")
@ApiModelProperty("登记机关")
private String registrationOrg;
/**
*
*/
@Excel(name = "行政区划")
@ApiModelProperty("行政区划")
private String districtCode;
/**
*
*/
@Excel(name = "所在乡镇", readConverterExp = "街=道")
@ApiModelProperty("所在乡镇(街道) ")
private String subdistrict;
/**
*
*/
@Excel(name = "其他名称")
@ApiModelProperty("其他名称 ")
private String otherName;
/**
*
*/
@Excel(name = "注册资金")
@ApiModelProperty("注册资金 ")
private String rigisterFund;
/**
*
*/
@Excel(name = "企业名称")
@ApiModelProperty("企业名称 ")
private String enterpriseName;
/**
*
*/
@Excel(name = "机构编码")
@ApiModelProperty("机构编码 ")
private String orgCode;
/**
*
*/
@Excel(name = "是否规上企业")
@ApiModelProperty("是否规上企业 ")
private String aboveDesignated;
/**
*
*/
@Excel(name = "法人证件号")
@ApiModelProperty("法人证件号 ")
private String FRZJH;
/**
*
*/
@Excel(name = "创建人")
@ApiModelProperty("创建人 ")
private String CREATER;
/**
*
*/
@Excel(name = "修改人")
@ApiModelProperty("修改人")
private String UPDATER;
/**
*
*/
@ApiModelProperty("上次调用省接口保存数据截至页数")
@Excel(name = "上次调用省接口保存数据截至页数")
private Long lastPageNumber;
/**
*
*/
@Excel(name = "占地面积")
@ApiModelProperty("占地面积")
private String floorSpace;
/**
*
*/
@Excel(name = "企业规模")
@ApiModelProperty("企业规模")
private String aboveDesignatedTwo;
/**
*
*/
@Excel(name = "安全生产投入占比")
@ApiModelProperty("安全生产投入占比")
private String safetyProductionInvestment;
/**
*
*/
@ApiModelProperty("上一年经营收入")
@Excel(name = "上一年经营收入")
private String lastYearOperatingIncome;
/**
*
*/
@Excel(name = "企业上一年投入生产")
@ApiModelProperty("企业上一年投入生产")
private String lastYeatOnStream;
/**
*
*/
@Excel(name = "主营业务及产品")
@ApiModelProperty("主营业务及产品")
private String majorProduct;
/**
*
*/
@Excel(name = "工艺流程内容")
@ApiModelProperty("工艺流程内容")
private String htmlText;
/**
*
*/
@ApiModelProperty("固定资产")
@Excel(name = "固定资产")
private String fixedAssets;
/**
* 12
*/
@ApiModelProperty(value = "是否重点企业1是2否")
private Integer isPoint;
/**
* size
*/
@TableField(exist = false)
@ApiModelProperty("size")
private int pageSize;
/**
* num
*/
@TableField(exist = false)
@ApiModelProperty("num")
private int pageNum;
/**
* newpageSize
*/
@TableField(exist = false)
private int newpageSize;
/**
* newpageNum
*/
@TableField(exist = false)
private int newpageNum;
}

@ -1,6 +1,8 @@
package com.ruoyi.programManagement.mapper;
import com.ruoyi.programManagement.entity.SzsEnterpriseInformation;
import com.ruoyi.programManagement.entity.request.SzsEnterpriseInformationRequest;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -60,4 +62,13 @@ public interface SzsEnterpriseInformationMapper
* @return
*/
public int deleteSzsEnterpriseInformationByIDs(String[] IDs);
/**
* -
*
* @param req -
* @return -
*/
public List<SzsEnterpriseInformation> selectList(@Param("req") SzsEnterpriseInformationRequest req);
}

@ -1,8 +1,11 @@
package com.ruoyi.programManagement.service;
import com.ruoyi.programManagement.entity.SzsEnterpriseInformation;
import com.ruoyi.programManagement.entity.request.BKeyEnterprisePageRequest;
import com.ruoyi.programManagement.entity.request.SzsEnterpriseInformationRequest;
import java.util.List;
import java.util.Map;
/**
@ -60,4 +63,13 @@ public interface ISzsEnterpriseInformationService
* @return
*/
public int deleteSzsEnterpriseInformationByID(String ID);
/**
*
*
* @param szsEnterpriseInformationRequest
* @return
*/
public Map<String, Object> selectList(SzsEnterpriseInformationRequest szsEnterpriseInformationRequest);
}

@ -1,13 +1,18 @@
package com.ruoyi.programManagement.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.programManagement.entity.SzsEnterpriseInformation;
import com.ruoyi.programManagement.entity.request.SzsEnterpriseInformationRequest;
import com.ruoyi.programManagement.mapper.SzsEnterpriseInformationMapper;
import com.ruoyi.programManagement.service.ISzsEnterpriseInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* -Service
@ -87,4 +92,17 @@ public class SzsEnterpriseInformationServiceImpl implements ISzsEnterpriseInform
public int deleteSzsEnterpriseInformationByID(String ID) {
return szsEnterpriseInformationMapper.deleteSzsEnterpriseInformationByID(ID);
}
@Override
public Map<String, Object> selectList(SzsEnterpriseInformationRequest req) {
PageHelper.startPage(req.getPageNum(), req.getPageSize());
req.setNewpageNum((req.getPageNum()-1)*req.getPageSize());
req.setNewpageSize(req.getPageSize());
List<SzsEnterpriseInformation> szEntBasicInfos = szsEnterpriseInformationMapper.selectList(req);
PageInfo<SzsEnterpriseInformation> pageInfo = new PageInfo<>(szEntBasicInfos);
Map<String, Object> result = new HashMap<>();
result.put("total", pageInfo.getTotal());
result.put("list", pageInfo.getList());
return result;
}
}

@ -178,11 +178,10 @@
SELECT
a.*,
b.DISTRICT_NAME AS institutionName,
c.ENTERPRISE_NAME as enterpriseName
a.ENTERPRISE_NAME as enterpriseName
FROM
b_plan_enterprise a
LEFT JOIN szs_administrative_division b ON a.district = b.DISTRICT_CODE
LEFT JOIN szs_enterprise_information c ON a.enterprise_id = c.UUIT_NO
<where>
<if test="req.district !=null and req.district!='' ">
AND a.district like concat('%', #{req.district}, '%')
@ -191,7 +190,7 @@
and a.planned_year =#{req.plannedYear}
</if>
<if test="req.enterpriseName !=null and req.enterpriseName!='' ">
and c.ENTERPRISE_NAME like concat('%', #{req.enterpriseName}, '%')
and a.ENTERPRISE_NAME like concat('%', #{req.enterpriseName}, '%')
</if>
</where>
@ -206,7 +205,7 @@
a.update_id,
a.update_by,
a. update_time,
a. remark,
a.remark,
a.user_id,
a. dept_id,
a.district,
@ -214,8 +213,8 @@
a.plan_name,
a.plan_content,
a.is_point,
b.ENTERPRISE_NAME as entprName
from b_plan_enterprise a LEFT JOIN szs_enterprise_information b ON a.enterprise_id = b.UUIT_NO
a.enterprise_name as entprName
from b_plan_enterprise a
where a.id=#{id}
</select>

@ -96,7 +96,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectSzsEnterpriseInformationVo"/>
where ID = #{ID}
</select>
<select id="selectList" resultType="com.ruoyi.programManagement.entity.SzsEnterpriseInformation">
select s.* from(
SELECT
a.*,
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS is_point
FROM
(select * from szs_enterprise_information limit #{req.newpageNum},#{req.newpageSize}) a
LEFT JOIN
b_key_enterprise b ON a.UUIT_NO = b.ent_code )s
<where>
<if test="req.supervisionLarge != null and req.supervisionLarge != ''"> and s.SUPERVISION_LARGE like concat('%',#{req.supervisionLarge}, '%')</if>
<if test="req.uuitNo != null and req.uuitNo != ''"> and s.UUIT_NO = #{uuitNo}</if>
<if test="req.subdistrict != null and req.subdistrict != ''"> and s.SUBDISTRICT like concat('%',#{req.subdistrict}, '%') </if>
<if test="req.aboveDesignatedTwo != null and req.aboveDesignatedTwo != ''"> and s.ABOVE_DESIGNATED_TWO = #{req.aboveDesignatedTwo}</if>
<if test="req.isPoint != null and req.isPoint != ''">and s.is_point=#{isPoint}</if>
<if test="req.enterpriseName != null and req.enterpriseName != ''">and s.enterprise_name like concat('%',#{req.enterpriseName}, '%')</if>
</where>
</select>
<insert id="insertSzsEnterpriseInformation" parameterType="SzsEnterpriseInformation">
insert into szs_enterprise_information
<trim prefix="(" suffix=")" suffixOverrides=",">

Loading…
Cancel
Save