关于elementui的时间组件与后端时间和oracle数据库时间的对应格式
前端:
<el-date-picker v-model="formInline.startTime" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"> </el-date-picker>
后端:
private String startTime; private String endTime;
oracle数据库:
<select id="selectAll" resultType="com.yinlong.model.ReduceCost"> select * from reduce_cost where 1=1 <if test="startTime!=null and startTime!='' and endTime!=null and endTime!=''"> and updatetime between to_date(#{startTime},'YYYY-MM-DD') and to_date(#{endTime},'YYYY-MM-DD') </if> <if test="park!=null and park!=''"> and park = #{park} </if> <if test="projectClassify!=null and projectClassify!=''"> and projectClassify = #{projectClassify} </if> <if test="projectNumber!=null and projectNumber!=''"> and projectNumber like '%'||#{projectNumber}||'%' </if> </select>