进粉统计加上时间范围筛选
This commit is contained in:
		| @@ -63,4 +63,12 @@ public class SysWxFanStatistics extends BaseEntity | ||||
|  | ||||
|     //排序参数,null或者0:按照id倒序 1:按照组别ID、id顺序正序 | ||||
|     private Integer sortFlag; | ||||
|  | ||||
|     //进粉开始时间 | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd") | ||||
|     private Date fanStartTime; | ||||
|  | ||||
|     //进粉结束时间 | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd") | ||||
|     private Date fanEndTime; | ||||
| } | ||||
| @@ -42,7 +42,9 @@ | ||||
|  | ||||
|     <select id="selectSysWxFanStatisticsList" parameterType="SysWxFanStatistics" resultMap="SysWxFanStatisticsResult"> | ||||
|         <include refid="selectSysWxFanStatisticsVoExtended"/> where swfs.del_flag = 0 | ||||
|         <if test="fanTime != null ">and swfs.fan_time = #{fanTime}</if> | ||||
|         <if test="fanStartTime != null and fanEndTime != null"> | ||||
|             and swfs.fan_time >= #{fanStartTime} and #{fanEndTime} >= swfs.fan_time | ||||
|         </if> | ||||
|         <if test="userId != null">and su.user_id = #{userId}</if> | ||||
|         <if test="accountId != null">and swd.account_id = #{accountId}</if> | ||||
|         <if test="sortFlag == null or sortFlag == 0"> | ||||
| @@ -60,7 +62,9 @@ | ||||
|         left join sys_wx_distribution swd on swd.wechat_account = swfs.wx_id and swd.del_flag = 0 | ||||
|         left join sys_user su on su.user_id = swd.user_id and su.del_flag = 0 | ||||
|         where swfs.del_flag = 0 | ||||
|         <if test="fanTime != null ">and swfs.fan_time = #{fanTime}</if> | ||||
|         <if test="fanStartTime != null and fanEndTime != null"> | ||||
|             and swfs.fan_time >= #{fanStartTime} and #{fanEndTime} >= swfs.fan_time | ||||
|         </if> | ||||
|         <if test="userId != null">and su.user_id = #{userId}</if> | ||||
|         <if test="accountId != null">and swd.account_id = #{accountId}</if> | ||||
|     </select> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user