|
@@ -7,7 +7,6 @@
|
|
|
</insert>
|
|
|
|
|
|
<select id="getOperationLog" resultType="com.lantone.common.dto.OperationLogDTO">
|
|
|
-
|
|
|
SELECT
|
|
|
a.operation_id AS operationId,
|
|
|
a.operation_name AS operationName,
|
|
@@ -26,8 +25,9 @@
|
|
|
<if test="operationName != null and operationName != ''">
|
|
|
AND a.operation_name like CONCAT('%',#{operationName},'%')
|
|
|
</if>
|
|
|
- <if test="operationDate != null and operationDate != '' ">
|
|
|
- <![CDATA[ and DATE_FORMAT(a.operation_date,'%Y-%m-%d') = #{operationDate}]]>
|
|
|
+ <if test="startDate != null and endDate != null">
|
|
|
+ <![CDATA[ AND a.operation_date >= #{startDate}]]>
|
|
|
+ <![CDATA[ AND a.operation_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</select>
|
|
|
</mapper>
|