|
|
|
@@ -52,6 +52,10 @@ |
|
|
|
<if test=" null != sortColumns">order by ${sortColumns}</if> |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectById" parameterType="java.util.HashMap" resultMap="BaseResultMap"> |
|
|
|
select <include refid="allColumns"/> from wx_order_group where id = #{id} and tenant_id = #{tenantId} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryRemainOne" parameterType="com.iformall.domain.po.WxOrderGroup" resultType="hashmap"> |
|
|
|
|
|
|
|
select o.press_end_date expiredDate,o.order_group_id orderGroupId,c.nick_name nickName, |
|
|
|
@@ -141,7 +145,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryOrderGroupSuccessCountAndTime" parameterType="hashmap" resultType="hashmap"> |
|
|
|
select count(*) total,DATE_FORMAT(create_date,'%Y-%m-%d') time from wx_coupon_order |
|
|
|
select count(1) total,DATE_FORMAT(create_date,'%Y-%m-%d') time from wx_coupon_order |
|
|
|
where coupon_type=9 |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
@@ -159,7 +163,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryOrderGroupVerifyCountAndTime" parameterType="hashmap" resultType="hashmap"> |
|
|
|
select count(*) total,DATE_FORMAT(create_date,'%Y-%m-%d') time |
|
|
|
select count(1) total,DATE_FORMAT(create_date,'%Y-%m-%d') time |
|
|
|
from wx_coupon_order where coupon_type=9 and coupon_order_status=1 |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
@@ -177,7 +181,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryOrderGroupCount" parameterType="hashmap" resultType="long"> |
|
|
|
select count(*) total from wx_order_group |
|
|
|
select count(1) total from wx_order_group |
|
|
|
<where> |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
@@ -209,7 +213,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryOrderGroupSuccessCount" parameterType="hashmap" resultType="long"> |
|
|
|
select count(*) total from wx_order_group where status=11 |
|
|
|
select count(1) total from wx_order_group where status=11 |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
@@ -222,7 +226,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryOrderGroupPeopleCount" parameterType="hashmap" resultType="long"> |
|
|
|
select count(*) from (select id from wx_order where order_group_id!=0 |
|
|
|
select count(1) from (select id from wx_order where order_group_id!=0 |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
@@ -236,7 +240,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryOrderGroupVerifyCount" parameterType="hashmap" resultType="long"> |
|
|
|
select count(*) total from wx_coupon_order where coupon_type=9 and coupon_order_status=1 |
|
|
|
select count(1) total from wx_coupon_order where coupon_type=9 and coupon_order_status=1 |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
@@ -252,7 +256,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryOrderGroupSuccessPeopleCount" parameterType="hashmap" resultType="long"> |
|
|
|
select count(*) from wx_order where order_status=11 |
|
|
|
select count(1) from wx_order where order_status=11 |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
|