|
@@ -109,6 +109,7 @@
|
|
|
</if>
|
|
|
AND NOT c.`status` IN ( 0, 70, 88 )
|
|
|
AND c.del_flag = 0
|
|
|
+ And c.create_user = su.user_id
|
|
|
) AS newCustomerContractCount,
|
|
|
(
|
|
|
SELECT
|
|
@@ -128,6 +129,7 @@
|
|
|
</if>
|
|
|
AND NOT c.`status` IN ( 0, 70, 88 )
|
|
|
AND c.del_flag = 0
|
|
|
+ And c.create_user = su.user_id
|
|
|
) AS newCustomerContractCnyAmount,
|
|
|
(
|
|
|
SELECT
|
|
@@ -147,6 +149,7 @@
|
|
|
</if>
|
|
|
AND NOT c.`status` IN ( 0, 70, 88 )
|
|
|
AND c.del_flag = 0
|
|
|
+ And c.create_user = su.user_id
|
|
|
) AS oldCustomerContractCount,
|
|
|
(
|
|
|
SELECT
|
|
@@ -166,6 +169,7 @@
|
|
|
</if>
|
|
|
AND NOT c.`status` IN ( 0, 70, 88 )
|
|
|
AND c.del_flag = 0
|
|
|
+ And c.create_user = su.user_id
|
|
|
) AS oldCustomerContractCnyAmount,
|
|
|
(
|
|
|
SELECT
|
|
@@ -181,6 +185,7 @@
|
|
|
</if>
|
|
|
AND NOT c.`status` IN ( 0, 70, 88 )
|
|
|
AND c.del_flag = 0
|
|
|
+ And c.create_user = su.user_id
|
|
|
) AS contractCount
|
|
|
FROM
|
|
|
sys_user su
|