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
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,township from t_complain_deal
where is_del = '0'
<iftest="startOfMonth != null and endOfMonth != null">
and create_time <![CDATA[>=]]> #{startOfMonth} and create_time <![CDATA[<=]]> #{endOfMonth}
...
...
@@ -97,6 +97,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<iftest="complaintCategory != null and complaintCategory != '' and complaintCategory != 0 ">
and complain_type = #{complaintCategory}
</if>
<iftest="township != null and township != '' and township != 0 ">
select sentiment_id as complainDealId,status as complainStatus ,start_time as createTime, update_time as updateTime,MONTH(start_time) as createTimeYear ,region as township from t_public_sentiment
where is_del = '0'
<iftest="startOfMonth != null and endOfMonth != null">
and start_time <![CDATA[>=]]> #{startOfMonth} and start_time <![CDATA[<=]]> #{endOfMonth}
</if>
<iftest="township != null and township != '' and township != 0 ">