| | |
| | | from enforce_order |
| | | where 1=1 |
| | | <if test="deptId != null "> |
| | | AND apply_dept_id = #{deptId} |
| | | AND check_dept_id = #{deptId} |
| | | </if> |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | AND apply_time >= #{beginTime} |
| | |
| | | from enforce_complaint_log |
| | | where 1=1 |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | AND apply_time >= #{beginTime} |
| | | AND complaint_time >= #{beginTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | AND apply_time <= #{endTime} |
| | | AND complaint_time <= #{endTime} |
| | | </if> |
| | | GROUP BY k |
| | | </select> |
| | | |
| | | <!-- 执法类型分布--> |
| | | <!-- 投诉类型分布--> |
| | | <select id="getComplaintTypeCount" |
| | | parameterType="com.project.report.domain.bo.query.ReportQueryBo" |
| | | resultType="com.project.common.vo.KeyVal"> |
| | |
| | | from enforce_complaint_log |
| | | where 1=1 |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | AND apply_time >= #{beginTime} |
| | | AND complaint_time >= #{beginTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | AND apply_time <= #{endTime} |
| | | AND complaint_time <= #{endTime} |
| | | </if> |
| | | <if test="doComplaint!=null "> |
| | | <if test="doComplaint != null "> |
| | | <if test="doComplaint == 0 "> |
| | | AND complaint_status = 0 |
| | | </if> |