zhangtao
dongdingding 1 year ago
parent 150f5b190a
commit a77c9bb829

@ -4,7 +4,6 @@ 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;
@ -43,11 +42,13 @@ public class SzsEnterpriseInformationController extends BaseController
/**
* -
*/
@ApiOperation(value = "查询省-企业基本信息列表",response = SzsEnterpriseInformation.class)
@ApiOperation("查询省-企业基本信息列表")
@GetMapping("/list")
public AjaxResult page(SzsEnterpriseInformationRequest szsEnterpriseInformationRequest)
public TableDataInfo list(SzsEnterpriseInformation szsEnterpriseInformation)
{
return AjaxResult.success(szsEnterpriseInformationService.selectList(szsEnterpriseInformationRequest));
startPage();
List<SzsEnterpriseInformation> list = szsEnterpriseInformationService.selectSzsEnterpriseInformationList(szsEnterpriseInformation);
return getDataTable(list);
}
/**

@ -1,433 +0,0 @@
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,7 +1,6 @@
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;
@ -64,11 +63,4 @@ public interface SzsEnterpriseInformationMapper
public int deleteSzsEnterpriseInformationByIDs(String[] IDs);
/**
* -
*
* @param req -
* @return -
*/
public List<SzsEnterpriseInformation> selectList(@Param("req") SzsEnterpriseInformationRequest req);
}

@ -1,11 +1,8 @@
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;
/**
@ -65,11 +62,4 @@ public interface ISzsEnterpriseInformationService
public int deleteSzsEnterpriseInformationByID(String ID);
/**
*
*
* @param szsEnterpriseInformationRequest
* @return
*/
public Map<String, Object> selectList(SzsEnterpriseInformationRequest szsEnterpriseInformationRequest);
}

@ -1,18 +1,13 @@
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
@ -93,16 +88,5 @@ public class SzsEnterpriseInformationServiceImpl implements ISzsEnterpriseInform
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;
}
}

@ -96,25 +96,7 @@ 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

Loading…
Cancel
Save