|
|
@@ -414,6 +414,29 @@
|
|
|
group by DATE_FORMAT(t.create_time,'%Y-%m-%d')
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getCommunityItemInAnalysis" parameterType="Map" resultType="Map">
|
|
|
+ select DATE_FORMAT(t.create_time,'%Y-%m-%d') createTime,count(1) countValue
|
|
|
+ from purchase_apply t
|
|
|
+ where 1=1
|
|
|
+ and t.res_order_type = '10000'
|
|
|
+ and t.status_cd = '0'
|
|
|
+ and t.create_time > #{startTime}
|
|
|
+ and t.create_time < #{endTime}
|
|
|
+ and t.community_id = #{communityId}
|
|
|
+ group by DATE_FORMAT(t.create_time,'%Y-%m-%d')
|
|
|
+ </select>
|
|
|
+ <select id="getCommunityItemOutAnalysis" parameterType="Map" resultType="Map">
|
|
|
+ select DATE_FORMAT(t.create_time,'%Y-%m-%d') createTime,count(1) countValue
|
|
|
+ from purchase_apply t
|
|
|
+ where 1=1
|
|
|
+ and t.res_order_type = '20000'
|
|
|
+ and t.status_cd = '0'
|
|
|
+ and t.create_time > #{startTime}
|
|
|
+ and t.create_time < #{endTime}
|
|
|
+ and t.community_id = #{communityId}
|
|
|
+ group by DATE_FORMAT(t.create_time,'%Y-%m-%d')
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
|
|
|
|