|
@@ -20,6 +20,11 @@
|
|
<result property="merchantName" column="merchant_name"/>
|
|
<result property="merchantName" column="merchant_name"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
+ <resultMap type="QkJczlRecruitVO" id="QkJczlRecruitVOResult">
|
|
|
|
+ <result property="cm" column="cm"/>
|
|
|
|
+ <result property="mc" column="mc"/>
|
|
|
|
+ </resultMap>
|
|
|
|
+
|
|
|
|
|
|
<sql id="selectQkJczlDiscountVo">
|
|
<sql id="selectQkJczlDiscountVo">
|
|
select id, activity_type, product_type, activity_title, business, details, address, create_by, create_time, update_by, update_time, merchant_id
|
|
select id, activity_type, product_type, activity_title, business, details, address, create_by, create_time, update_by, update_time, merchant_id
|
|
@@ -138,39 +143,39 @@
|
|
<update id="updateQkJczlDiscount" parameterType="QkJczlDiscount">
|
|
<update id="updateQkJczlDiscount" parameterType="QkJczlDiscount">
|
|
update qk_jczl_discount
|
|
update qk_jczl_discount
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
- <if test="activityType != null">activity_type =
|
|
|
|
- #{activityType},
|
|
|
|
- </if>
|
|
|
|
- <if test="productType != null">product_type =
|
|
|
|
- #{productType},
|
|
|
|
- </if>
|
|
|
|
- <if test="activityTitle != null">activity_title =
|
|
|
|
- #{activityTitle},
|
|
|
|
- </if>
|
|
|
|
- <if test="business != null">business =
|
|
|
|
- #{business},
|
|
|
|
- </if>
|
|
|
|
- <if test="details != null">details =
|
|
|
|
- #{details},
|
|
|
|
- </if>
|
|
|
|
- <if test="address != null">address =
|
|
|
|
- #{address},
|
|
|
|
- </if>
|
|
|
|
- <if test="createBy != null">create_by =
|
|
|
|
- #{createBy},
|
|
|
|
- </if>
|
|
|
|
- <if test="createTime != null">create_time =
|
|
|
|
- #{createTime},
|
|
|
|
- </if>
|
|
|
|
- <if test="updateBy != null">update_by =
|
|
|
|
- #{updateBy},
|
|
|
|
- </if>
|
|
|
|
- <if test="updateTime != null">update_time =
|
|
|
|
- #{updateTime},
|
|
|
|
- </if>
|
|
|
|
- <if test="merchantId != null">merchant_id =
|
|
|
|
- #{merchantId},
|
|
|
|
- </if>
|
|
|
|
|
|
+ <if test="activityType != null">activity_type =
|
|
|
|
+ #{activityType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="productType != null">product_type =
|
|
|
|
+ #{productType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="activityTitle != null">activity_title =
|
|
|
|
+ #{activityTitle},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="business != null">business =
|
|
|
|
+ #{business},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="details != null">details =
|
|
|
|
+ #{details},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="address != null">address =
|
|
|
|
+ #{address},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createBy != null">create_by =
|
|
|
|
+ #{createBy},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTime != null">create_time =
|
|
|
|
+ #{createTime},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateBy != null">update_by =
|
|
|
|
+ #{updateBy},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">update_time =
|
|
|
|
+ #{updateTime},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="merchantId != null">merchant_id =
|
|
|
|
+ #{merchantId},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -186,4 +191,18 @@
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
|
|
+
|
|
|
|
+ <select id="discountList" parameterType="QkJczlRecruitVO" resultMap="QkJczlRecruitVOResult">
|
|
|
|
+ SELECT SUM(1) as cm,
|
|
|
|
+ MONTH (
|
|
|
|
+ create_time) as mc
|
|
|
|
+ FROM
|
|
|
|
+ qk_jczl_discount
|
|
|
|
+ WHERE
|
|
|
|
+ YEAR ( create_time ) = YEAR (
|
|
|
|
+ CURDATE())
|
|
|
|
+ GROUP BY
|
|
|
|
+ MONTH (
|
|
|
|
+ create_time)
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|