|
|
@@ -975,14 +975,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
SELECT
|
|
|
e.unified_social_credit_code AS unifiedSocialCreditCode,
|
|
|
e.enterprise_name AS enterpriseName,-- 计算诉讼扣分
|
|
|
- - LEAST( COUNT( cli.unified_social_credit_code ), 2 ) * 5 AS 检察案件刑事诉讼扣分,-- 存在诉讼记录每条扣5分,最多扣10分
|
|
|
+ - LEAST( COUNT( cli.unified_social_credit_code ), 2 ) * 5 AS criminalCaseLitigationDeduction,-- 存在诉讼记录每条扣5分,最多扣10分
|
|
|
CASE
|
|
|
|
|
|
WHEN COUNT( cde.unified_social_credit_code ) > 3 THEN
|
|
|
-10 ELSE - LEAST( COUNT( cde.unified_social_credit_code ), 3 ) * 3
|
|
|
- END AS 司法涉诉被执行人扣分,
|
|
|
- - LEAST( COUNT( ja.unified_social_credit_code ), 5 ) * 1 AS 拍卖公告司法拍卖扣分,-- 合并扣分并限制最大扣分不超过10分
|
|
|
- - LEAST( COUNT( cppsa.unified_social_credit_code ), 2 ) * 1 AS 公安公告行政处罚扣分,
|
|
|
+ END AS judicialExecutionDeduction,
|
|
|
+ - LEAST( COUNT( ja.unified_social_credit_code ), 5 ) * 1 AS auctionNoticeAuctionDeduction,-- 合并扣分并限制最大扣分不超过10分
|
|
|
+ - LEAST( COUNT( cppsa.unified_social_credit_code ), 2 ) * 1 AS policeNoticePenaltyDeduction,
|
|
|
- LEAST( COUNT( cla.unified_social_credit_code ), 2 ) * 1 AS arbitrationInfoLaborArbitrationDeduction, -- 劳动仲裁使用裁决表
|
|
|
|
|
|
10 - (
|