Commit 005fda73 by Java-李昕颖

城市下拉列表 工作台修改

parent 3321198b
......@@ -388,11 +388,12 @@
AND exchange_after_user = #{isAdmin}
</if>
<if test="startDate != null">
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
<if test="dbName == 'oracle'"> AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')</if>
<if test="dbName == 'mysql'"> AND DATE(create_date) >= #{startDate}</if>
</if>
<if test="endDate != null">
<if test="dbName == 'oracle'"> AND create_date &lt;= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd hh24:mi:ss')</if>
<if test="dbName == 'mysql'"> AND create_date &lt;= CONCAT(#{endDate},' 23:59:59')</if>
<if test="dbName == 'mysql'"> AND DATE(create_date) &lt;= #{endDate}</if>
</if>
GROUP BY report_status
</select>
......@@ -405,11 +406,12 @@
AND exchange_after_user = #{isAdmin}
</if>
<if test="startDate != null">
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
<if test="dbName == 'oracle'"> AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')</if>
<if test="dbName == 'mysql'"> AND DATE(create_date) >= #{startDate}</if>
</if>
<if test="endDate != null">
<if test="dbName == 'oracle'"> AND create_date &lt;= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd hh24:mi:ss')</if>
<if test="dbName == 'mysql'"> AND create_date &lt;= CONCAT(#{endDate},' 23:59:59')</if>
<if test="dbName == 'mysql'"> AND DATE(create_date) &lt;= #{endDate}</if>
</if>
GROUP BY deal_result
</select>
......@@ -422,11 +424,12 @@
AND exchange_after_user = #{isAdmin}
</if>
<if test="startDate != null">
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
<if test="dbName == 'oracle'"> AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')</if>
<if test="dbName == 'mysql'"> AND DATE(create_date) >= #{startDate}</if>
</if>
<if test="endDate != null">
<if test="dbName == 'oracle'"> AND create_date &lt;= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd hh24:mi:ss')</if>
<if test="dbName == 'mysql'"> AND create_date &lt;= CONCAT(#{endDate},' 23:59:59')</if>
<if test="dbName == 'mysql'"> AND DATE(create_date) &lt;= #{endDate}</if>
</if>
GROUP BY report_source
</select>
......@@ -439,11 +442,12 @@
AND exchange_after_user = #{isAdmin}
</if>
<if test="startDate != null">
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
<if test="dbName == 'oracle'"> AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')</if>
<if test="dbName == 'mysql'"> AND DATE(create_date) >= #{startDate}</if>
</if>
<if test="endDate != null">
<if test="dbName == 'oracle'"> AND create_date &lt;= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd hh24:mi:ss')</if>
<if test="dbName == 'mysql'"> AND create_date &lt;= CONCAT(#{endDate},' 23:59:59')</if>
<if test="dbName == 'mysql'"> AND DATE(create_date) &lt;= #{endDate}</if>
</if>
GROUP BY supplement_type
</select>
......@@ -483,11 +487,12 @@
AND r.exchange_after_user = #{isAdmin}
</if>
<if test="startDate != null">
AND r.create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
<if test="dbName == 'oracle'"> AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')</if>
<if test="dbName == 'mysql'"> AND DATE(create_date) >= #{startDate}</if>
</if>
<if test="endDate != null">
<if test="dbName == 'oracle'"> AND create_date &lt;= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd hh24:mi:ss')</if>
<if test="dbName == 'mysql'"> AND create_date &lt;= CONCAT(#{endDate},' 23:59:59')</if>
<if test="dbName == 'mysql'"> AND DATE(create_date) &lt;= #{endDate}</if>
</if>
<if test="dbName == 'oracle'"> AND rownum &lt;= 10</if>
order by r.create_date desc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment