|
@@ -712,7 +712,7 @@
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
WHERE o.order_sn = og.order_sn
|
|
WHERE o.order_sn = og.order_sn
|
|
- AND INSTR(CONCAT(cet.education_name,cpt.project_name,cb.business_name),#{businessName}) ) > 0
|
|
|
|
|
|
+ AND INSTR(CONCAT(cet.education_name,cb.business_name,cpt.project_name),#{businessName}) ) > 0
|
|
</if>
|
|
</if>
|
|
<if test="tenantId != null and tenantId != ''">
|
|
<if test="tenantId != null and tenantId != ''">
|
|
AND o.tenant_id = #{tenantId}
|
|
AND o.tenant_id = #{tenantId}
|
|
@@ -844,7 +844,7 @@
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
WHERE o.order_sn = og.order_sn
|
|
WHERE o.order_sn = og.order_sn
|
|
- AND INSTR(CONCAT(cet.education_name,cpt.project_name,cb.business_name),#{businessName}) ) > 0
|
|
|
|
|
|
+ AND INSTR(CONCAT(cet.education_name,cb.business_name,cpt.project_name),#{businessName}) ) > 0
|
|
</if>
|
|
</if>
|
|
<if test="tenantId != null and tenantId != ''">
|
|
<if test="tenantId != null and tenantId != ''">
|
|
AND o.tenant_id = #{tenantId}
|
|
AND o.tenant_id = #{tenantId}
|
|
@@ -959,7 +959,7 @@
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
WHERE o.order_sn = og.order_sn
|
|
WHERE o.order_sn = og.order_sn
|
|
- AND INSTR(CONCAT(cet.education_name,cpt.project_name,cb.business_name),#{businessName}) ) > 0
|
|
|
|
|
|
+ AND INSTR(CONCAT(cet.education_name,cb.business_name,cpt.project_name),#{businessName}) ) > 0
|
|
</if>
|
|
</if>
|
|
<if test="tenantId != null and tenantId != ''">
|
|
<if test="tenantId != null and tenantId != ''">
|
|
AND o.tenant_id = #{tenantId}
|
|
AND o.tenant_id = #{tenantId}
|
|
@@ -1025,7 +1025,7 @@
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
WHERE o.order_sn = og.order_sn
|
|
WHERE o.order_sn = og.order_sn
|
|
- AND INSTR(CONCAT(cet.education_name,cpt.project_name,cb.business_name),#{businessName}) ) > 0
|
|
|
|
|
|
+ AND INSTR(CONCAT(cet.education_name,cb.business_name,cpt.project_name),#{businessName}) ) > 0
|
|
</if>
|
|
</if>
|
|
<if test="tenantId != null and tenantId != ''">
|
|
<if test="tenantId != null and tenantId != ''">
|
|
AND o.tenant_id = #{tenantId}
|
|
AND o.tenant_id = #{tenantId}
|
|
@@ -1184,7 +1184,7 @@
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
WHERE o.order_sn = og.order_sn
|
|
WHERE o.order_sn = og.order_sn
|
|
- AND INSTR(CONCAT(cet.education_name,cpt.project_name,cb.business_name),#{businessName}) ) > 0
|
|
|
|
|
|
+ AND INSTR(CONCAT(cet.education_name,cb.business_name,cpt.project_name),#{businessName}) ) > 0
|
|
</if>
|
|
</if>
|
|
<if test="tenantId != null and tenantId != ''">
|
|
<if test="tenantId != null and tenantId != ''">
|
|
AND o.tenant_id = #{tenantId}
|
|
AND o.tenant_id = #{tenantId}
|
|
@@ -1289,7 +1289,7 @@
|
|
|
|
|
|
|
|
|
|
<select id="getSingleTenantStatistics" parameterType="com.zhongzheng.modules.top.order.bo.TopOrderStatisticsBo"
|
|
<select id="getSingleTenantStatistics" parameterType="com.zhongzheng.modules.top.order.bo.TopOrderStatisticsBo"
|
|
- resultType="BigDecimal">
|
|
|
|
|
|
+ resultType="java.math.BigDecimal">
|
|
SELECT
|
|
SELECT
|
|
(IFNULL(SUM( vo.order_received - vo.order_refunded ),0)+(
|
|
(IFNULL(SUM( vo.order_received - vo.order_refunded ),0)+(
|
|
SELECT
|
|
SELECT
|
|
@@ -2091,7 +2091,7 @@
|
|
SUM( allu.money ) DESC
|
|
SUM( allu.money ) DESC
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getOrderTenant" parameterType="java.lang.Long" resultType="java.lang.Long">
|
|
|
|
|
|
+ <select id="getOrderTenant" parameterType="java.lang.String" resultType="java.lang.String">
|
|
SELECT tenant_id FROM top_old_order WHERE old_customer_id = #{customerId} LIMIT 1
|
|
SELECT tenant_id FROM top_old_order WHERE old_customer_id = #{customerId} LIMIT 1
|
|
</select>
|
|
</select>
|
|
|
|
|