Browse Source

重复企业

v6
yanyan 1 year ago
parent
commit
24ce3494f6
  1. 5
      lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnterpriseInformationController.java
  2. 21
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/EnterpriseInformation.java
  3. 1
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/mapper/EnterpriseInformationMapper.java
  4. 2
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/IEnterpriseInformationService.java
  5. 6
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnterpriseInformationServiceImpl.java
  6. 26
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnterpriseInformationMapper.xml

5
lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnterpriseInformationController.java

@ -78,9 +78,10 @@ public class AppEnterpriseInformationController extends BaseController
{
// startPage();
List<EnterpriseInformation> list = enterpriseInformationService.selectEnterpriseInformationAndQrInfo(enterpriseInformation);
int count = enterpriseInformationService.selectEnterpriseInformationAndQrInfoCount(enterpriseInformation);
// return getDataTable(list);
long total = Math.min(list.size(), 60);
TableDataInfo rspData = getDataTable(list);
long total = Math.min(count, 60);
TableDataInfo rspData = new TableDataInfo();
rspData.setCode(0);
rspData.setRows(list);
rspData.setTotal(total);

21
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/EnterpriseInformation.java

@ -113,6 +113,11 @@ public class EnterpriseInformation extends BaseDomain
private String qy;
private Integer pageNum;
private Integer pageSize;
public String getReason() {
return reason;
}
@ -370,4 +375,20 @@ public class EnterpriseInformation extends BaseDomain
.append("createBy", getCreateBy())
.toString();
}
public Integer getPageNum() {
return pageNum;
}
public void setPageNum(Integer pageNum) {
this.pageNum = pageNum;
}
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
}

1
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/mapper/EnterpriseInformationMapper.java

@ -44,6 +44,7 @@ public interface EnterpriseInformationMapper
* @return
*/
List<EnterpriseInformation> selectEnterpriseInformationAndQrInfo(EnterpriseInformation enterpriseInformation);
int selectEnterpriseInformationAndQrInfoCount(String searchValue,String enterpriseName);
/**
* 新增企业信息登记

2
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/IEnterpriseInformationService.java

@ -56,6 +56,8 @@ public interface IEnterpriseInformationService
*/
List<EnterpriseInformation> selectEnterpriseInformationAndQrInfo(EnterpriseInformation enterpriseInformation);
int selectEnterpriseInformationAndQrInfoCount(EnterpriseInformation enterpriseInformation);
/**
* 新增企业信息登记
*

6
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnterpriseInformationServiceImpl.java

@ -259,6 +259,12 @@ public class EnterpriseInformationServiceImpl implements IEnterpriseInformationS
return enterpriseInformationMapper.selectEnterpriseInformationAndQrInfo(enterpriseInformation);
}
@Override
public int selectEnterpriseInformationAndQrInfoCount(EnterpriseInformation enterpriseInformation) {
return enterpriseInformationMapper.selectEnterpriseInformationAndQrInfoCount(
enterpriseInformation.getSearchValue(),enterpriseInformation.getEnterpriseName());
}
/**
* 新增企业信息登记
*

26
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnterpriseInformationMapper.xml

@ -130,9 +130,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
ORDER BY ei.create_time DESC
<if test="params.pageNum != null and params.pageSize != null"><!-- 开始时间检索 -->
LIMIT #{params.pageNum}, #{params.pageSize}
</if>
<!-- <if test="pageNum != null and pageSize != null">&lt;!&ndash; 开始时间检索 &ndash;&gt;-->
<!-- LIMIT #{pageNum}, #{pageSize}-->
<!-- </if>-->
</select>
<select id="selectEnterpriseInformationAndQrInfoCount" resultType="int">
SELECT
count(1)
FROM
enterprise_information ei
<where>
and ei.is_delete = 0
<if test="searchValue != null and searchValue != ''">
AND (ei.enterprise_name like concat('%', #{searchValue}, '%')
or ei.enterprise_number like concat('%', #{searchValue}, '%'))
</if>
<if test="enterpriseName != null and enterpriseName != ''"> and ei.enterprise_name like concat('%', #{enterpriseName}, '%')</if>
</where>
ORDER BY ei.create_time DESC
<!-- <if test="pageNum != null and pageSize != null">&lt;!&ndash; 开始时间检索 &ndash;&gt;-->
<!-- LIMIT #{pageNum}, #{pageSize}-->
<!-- </if>-->
</select>
<select id="selectEnterpriseInformationById" parameterType="String" resultMap="EnterpriseInformationResult">

Loading…
Cancel
Save