查询报错
This commit is contained in:
@@ -128,6 +128,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="pushTimeTo != null">
|
||||
and a.PUSH_TIME <![CDATA[<=]]> #{pushTimeTo}
|
||||
</if>
|
||||
<if test="createTimeFrom != null and createTimeFrom != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') >= #{createTimeFrom}
|
||||
</if>
|
||||
<if test="createTimeTo != null and createTimeTo != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') <= #{createTimeTo}
|
||||
</if>
|
||||
<if test="pushStatus != null">
|
||||
and a.PUSH_STATUS = #{pushStatus}
|
||||
</if>
|
||||
|
||||
@@ -419,10 +419,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and date_format(a.create_time,'%Y-%m-%d') <= #{createTimeEnd}
|
||||
</if>
|
||||
<if test="pushTimeFrom != null">
|
||||
and PUSH_TIME <![CDATA[>=]]> #{pushTimeFrom}
|
||||
and a.PUSH_TIME <![CDATA[>=]]> #{pushTimeFrom}
|
||||
</if>
|
||||
<if test="pushTimeTo != null">
|
||||
and PUSH_TIME <![CDATA[<=]]> #{pushTimeTo}
|
||||
and a.PUSH_TIME <![CDATA[<=]]> #{pushTimeTo}
|
||||
</if>
|
||||
<if test="createTimeFrom != null and createTimeFrom != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') >= #{createTimeFrom}
|
||||
</if>
|
||||
<if test="createTimeTo != null and createTimeTo != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') <= #{createTimeTo}
|
||||
</if>
|
||||
<if test="pushStatus != null">
|
||||
and a.PUSH_STATUS = #{pushStatus}
|
||||
|
||||
@@ -312,11 +312,17 @@
|
||||
<if test="auditTimeEnd != null and auditTimeEnd != ''">
|
||||
and date_format(a.audit_time,'%Y-%m-%d') <= #{auditTimeEnd}
|
||||
</if>
|
||||
<if test="createTimeFrom != null and createTimeFrom != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') >= #{createTimeFrom}
|
||||
</if>
|
||||
<if test="createTimeTo != null and createTimeTo != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') <= #{createTimeTo}
|
||||
</if>
|
||||
<if test="pushTimeFrom != null">
|
||||
and PUSH_TIME <![CDATA[>=]]> #{pushTimeFrom}
|
||||
and a.PUSH_TIME <![CDATA[>=]]> #{pushTimeFrom}
|
||||
</if>
|
||||
<if test="pushTimeTo != null">
|
||||
and PUSH_TIME <![CDATA[<=]]> #{pushTimeTo}
|
||||
and a.PUSH_TIME <![CDATA[<=]]> #{pushTimeTo}
|
||||
</if>
|
||||
<if test="pushStatus != null">
|
||||
and a.PUSH_STATUS = #{pushStatus}
|
||||
|
||||
@@ -110,6 +110,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="createTimeEnd != null and createTimeEnd != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') <= #{createTimeEnd}
|
||||
</if>
|
||||
<if test="createTimeFrom != null and createTimeFrom != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') >= #{createTimeFrom}
|
||||
</if>
|
||||
<if test="createTimeTo != null and createTimeTo != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') <= #{createTimeTo}
|
||||
</if>
|
||||
<if test="pushTimeFrom != null">
|
||||
and a.PUSH_TIME <![CDATA[>=]]> #{pushTimeFrom}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user