From fcccbde28b3ad8597abec1b2015ac13b269f8820 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期一, 08 七月 2024 16:36:20 +0800 Subject: [PATCH] 修改时间范围日期格式 --- src/main/resources/mybatis/system/SysConfigMapper.xml | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/resources/mybatis/system/SysConfigMapper.xml b/src/main/resources/mybatis/system/SysConfigMapper.xml index daf736a..c6cefd5 100644 --- a/src/main/resources/mybatis/system/SysConfigMapper.xml +++ b/src/main/resources/mybatis/system/SysConfigMapper.xml @@ -50,18 +50,23 @@ <if test="configKey != null and configKey != ''"> AND config_key like concat('%', #{configKey}, '%') </if> - <if test="beginTime != null and beginTime != ''"><!-- 寮�濮嬫椂闂存绱� --> - and date_format(create_time,'%y%m%d') >= date_format(#{beginTime},'%y%m%d') + <if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� --> + and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d') </if> - <if test="endTime != null and endTime != ''"><!-- 缁撴潫鏃堕棿妫�绱� --> - and date_format(create_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') + <if test="params.endTime != null and params.endTime != ''"><!-- 缁撴潫鏃堕棿妫�绱� --> + and date_format(create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d') </if> </where> </select> + <select id="selectConfigById" parameterType="Long" resultMap="SysConfigResult"> + <include refid="selectConfigVo"/> + where config_id = #{configId} + </select> + <select id="checkConfigKeyUnique" parameterType="String" resultMap="SysConfigResult"> <include refid="selectConfigVo"/> - where config_key = #{configKey} + where config_key = #{configKey} limit 1 </select> <insert id="insertConfig" parameterType="SysConfig"> -- Gitblit v1.9.3