select complain_deal_id as complainDealId,complain_status as complainStatus ,create_time as createTime, update_time as updateTime,MONTH(create_time) as createTimeYear ,complain_type as complainType from t_complain_deal
where is_del = '0'
<iftest="startOfMonth != null and endOfMonth != null">
and create_time <![CDATA[>=]]> #{startOfMonth} and create_time <![CDATA[<=]]> #{endOfMonth}
</if>
<iftest="complaintCategory != null and complaintCategory != '' and complaintCategory != 0 ">