From 93681ca68a83ec3e071b2f85f7ed6449509a1dfb Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 21 十一月 2024 20:09:39 +0800 Subject: [PATCH] 初始化 --- system/src/main/resources/mapper/system/SysDictTypeMapper.xml | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/system/src/main/resources/mapper/system/SysDictTypeMapper.xml b/system/src/main/resources/mapper/system/SysDictTypeMapper.xml index 78c4ff2..11eb6e3 100644 --- a/system/src/main/resources/mapper/system/SysDictTypeMapper.xml +++ b/system/src/main/resources/mapper/system/SysDictTypeMapper.xml @@ -2,9 +2,9 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.hnct.system.mapper.SysDictTypeMapper"> +<mapper namespace="com.ycl.system.mapper.SysDictTypeMapper"> - <resultMap type="com.hnct.system.domain.SysDictType" id="SysDictTypeResult"> + <resultMap type="SysDictType" id="SysDictTypeResult"> <id property="dictId" column="dict_id" /> <result property="dictName" column="dict_name" /> <result property="dictType" column="dict_type" /> @@ -20,7 +20,7 @@ from sys_dict_type </sql> - <select id="selectDictTypeList" parameterType="com.hnct.system.domain.SysDictType" resultMap="SysDictTypeResult"> + <select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult"> <include refid="selectDictTypeVo"/> <where> <if test="dictName != null and dictName != ''"> @@ -33,13 +33,12 @@ AND dict_type like concat('%', #{dictType}, '%') </if> <if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� --> - and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d') + and date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') </if> <if test="params.endTime != null and params.endTime != ''"><!-- 缁撴潫鏃堕棿妫�绱� --> - and date_format(create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d') + and date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') </if> </where> - ORDER BY create_time DESC </select> <select id="selectDictTypeAll" resultMap="SysDictTypeResult"> @@ -72,7 +71,7 @@ </foreach> </delete> - <update id="updateDictType" parameterType="com.hnct.system.domain.SysDictType"> + <update id="updateDictType" parameterType="SysDictType"> update sys_dict_type <set> <if test="dictName != null and dictName != ''">dict_name = #{dictName},</if> @@ -85,7 +84,7 @@ where dict_id = #{dictId} </update> - <insert id="insertDictType" parameterType="com.hnct.system.domain.SysDictType"> + <insert id="insertDictType" parameterType="SysDictType"> insert into sys_dict_type( <if test="dictName != null and dictName != ''">dict_name,</if> <if test="dictType != null and dictType != ''">dict_type,</if> -- Gitblit v1.8.0