Browse Source

xml

dev_kxc
zhuyulei 1 year ago
parent
commit
d6388da289
  1. 2
      jwtech-system/src/main/java/com/kms/enterprise/domain/dto/CreditDto.java
  2. 10
      jwtech-system/src/main/java/com/kms/enterprise/service/BsSgcYxjdEnterpriseInfoService.java
  3. 2
      jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdCertificateInfoMapper.xml
  4. 4
      jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdDynamicCreditMapper.xml
  5. 2
      jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdEngineerPerformanceRecordMapper.xml
  6. 2
      jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdMarketBehaviorMapper.xml
  7. 7
      jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdPersonnelInfoMapper.xml
  8. 21
      jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdQualificationsMapper.xml

2
jwtech-system/src/main/java/com/kms/enterprise/domain/dto/CreditDto.java

@ -17,4 +17,6 @@ public class CreditDto implements Serializable {
private String adcd;
private String legalRepresentative;
}

10
jwtech-system/src/main/java/com/kms/enterprise/service/BsSgcYxjdEnterpriseInfoService.java

@ -86,11 +86,17 @@ public class BsSgcYxjdEnterpriseInfoService extends BaseService<BsSgcYxjdEnterpr
dto.setAdcd("44");
List<CreditDto> page = bsSgcYxjdQualificationsMapper.listThree(dto.getPageNum(), dto.getPageSize(), dto.getQualificationCategory(),
dto.getEnterpriseName(), dto.getAdcd());
return AjaxResult.success(page);
Page<CreditDto> creditDtoPage = new Page<>();
creditDtoPage.setRecords(page);
creditDtoPage.setTotal(page.size());
return AjaxResult.success(creditDtoPage);
} else {
List<CreditDto> page = bsSgcYxjdQualificationsMapper.listTwo(dto.getPageNum(), dto.getPageSize(), dto.getQualificationCategory(),
dto.getEnterpriseName(), dto.getAdcd());
return AjaxResult.success(page);
Page<CreditDto> creditDtoPage = new Page<>();
creditDtoPage.setRecords(page);
creditDtoPage.setTotal(page.size());
return AjaxResult.success(creditDtoPage);
}
}

2
jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdCertificateInfoMapper.xml

@ -20,7 +20,7 @@
<if test="adcd!=null and adcd!='' and adcd != '省外'">
ei.adcd =#{adcd}
</if>
<if test="adcd!=null and adcd!='' and adcd = '省外'">
<if test="adcd!=null and adcd!='' and adcd == '省外'">
AND left(ei.adcd,2)&lt;> '44'
</if>
<if test="name!=null and name!=''">

4
jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdDynamicCreditMapper.xml

@ -106,7 +106,7 @@
<if test="adcd!=null and adcd!='' and adcd != '省外'">
adcd =#{adcd}
</if>
<if test="adcd!=null and adcd!='' and adcd = '省外'">
<if test="adcd!=null and adcd!='' and adcd == '省外'">
AND left(adcd,2)&lt;> '44'
</if>
<if test="enterpriseName!=null and enterpriseName!=''">
@ -115,7 +115,7 @@
<if test="qualificationCategory!=null and qualificationCategory!=''">
and dc.qualification_category=#{qualificationCategory}
</if>
and type="1" and status ="5"
and dc.type="1" and dc.status ="5"
</where>
order by dc.create_time desc limit #{pageNum},#{pageSize};
</select>

2
jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdEngineerPerformanceRecordMapper.xml

@ -25,7 +25,7 @@
<if test="adcd!=null and adcd!='' and adcd!='省外'">
and adcd =#{adcd}
</if>
<if test="adcd!=null and adcd!='' and adcd = '省外'">
<if test="adcd!=null and adcd!='' and adcd == '省外'">
AND left(adcd,2)&lt;> '44'
</if>
<if test="contractPrice!=null and contractPrice!=''">

2
jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdMarketBehaviorMapper.xml

@ -19,7 +19,7 @@
<if test="adcd!=null and adcd!='' and adcd!='省外'">
and adcd =#{adcd}
</if>
<if test="adcd!=null and adcd!='' and adcd = '省外'">
<if test="adcd!=null and adcd!='' and adcd == '省外'">
AND left(adcd,2)&lt;> '44'
</if>
<if test="name!=null and name!=''">

7
jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdPersonnelInfoMapper.xml

@ -15,18 +15,23 @@
from bs_sgc_yxjd_personnel_info pi
left join bs_sgc_yxjd_enterprise_info ei on pi.enterprise_id = ei.id
<where>
<if test="adcd!=null and adcd!='' and adcd != '省外'">
adcd =#{adcd}
</if>
<if test="adcd!=null and adcd!='' and adcd = '省外'">
<if test="adcd!=null and adcd!='' and adcd == '省外'">
AND left(adcd,2)&lt;> '44'
</if>
<if test="enterpriseName!=null and enterpriseName!=''">
and enterprise_name like concat('%',#{enterpriseName},'%')
</if>
<if test="name!=null and name!=''">
and `name` like concat('%',#{name},'%')
</if>
</where>
order by pi.create_time desc limit #{pageNum},#{pageSize};
</select>

21
jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdQualificationsMapper.xml

@ -9,6 +9,7 @@
<result property="enterpriseName" column="enterprise_name" />
<result property="qualificationCategory" column="qualification_category" />
<result property="dynamicCreditScore" column="dynamic_credit_score" />
<result property="legalRepresentative" column="legal_representative"/>
</resultMap>
<resultMap id="BsSgcYxjdQualificationsDto" type="BsSgcYxjdQualificationsDto">
@ -24,7 +25,8 @@
enterprise_id,
enterprise_name,
qualification_category,
dynamic_credit_score
dynamic_credit_score,
legal_representative
FROM
bs_sgc_yxjd_qualifications q
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id
@ -40,7 +42,7 @@
SET @num := 0, @type := '';
SELECT enterprise_id,enterprise_name,ADCD,dynamic_credit_score,
qualification_category
qualification_category,legal_representative
FROM bs_sgc_yxjd_enterprise_info fo LEFT JOIN (SELECT qualification_category, dynamic_credit_score,enterprise_id
FROM (
SELECT qualification_category, dynamic_credit_score,enterprise_id,
@ -57,7 +59,7 @@
enterprise_name,
ADCD,
dynamic_credit_score,
qualification_category
qualification_category,legal_representative
FROM
bs_sgc_yxjd_qualifications q
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id
@ -69,8 +71,11 @@
<if test="adcd!=null and adcd !=''">
AND adcd =#{adcd}
</if>
<if test="qualificationCategory!=null and qualificationCategory!=''">
AND q.qualification_category = #{qualificationCategory}
</if>
</where>
AND q.qualification_category = #{qualificationCategory}
ORDER BY
CAST( dynamic_credit_score AS UNSIGNED ) DESC LIMIT #{pageNum},#{pageSize};
</select>
@ -81,7 +86,7 @@
enterprise_name,
ADCD,
dynamic_credit_score,
qualification_category
qualification_category,legal_representative
FROM
bs_sgc_yxjd_qualifications q
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id
@ -93,8 +98,10 @@
<if test="adcd!=null and adcd !=''">
AND left(i.adcd,2)&lt;> #{adcd}
</if>
<if test="qualificationCategory!=null and qualificationCategory!=''">
AND q.qualification_category = #{qualificationCategory}
</if>
</where>
AND q.qualification_category = #{qualificationCategory}
ORDER BY
CAST( dynamic_credit_score AS UNSIGNED ) DESC LIMIT #{pageNum},#{pageSize};
</select>
@ -114,7 +121,7 @@
<if test="adcd!=null and adcd!='' and adcd!='省外'">
and adcd =#{adcd}
</if>
<if test="adcd!=null and adcd!='' and adcd = '省外'">
<if test="adcd!=null and adcd!='' and adcd == '省外'">
AND left(adcd,2)&lt;> '44'
</if>
<if test="level !=null and level!=''">

Loading…
Cancel
Save