mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2025-01-04 01:52:21 +08:00
refactor(youlai.sql): create_time->gmt_create,update_time->gmt_modified
This commit is contained in:
parent
5d44744eca
commit
075de57329
@ -17,12 +17,12 @@
|
|||||||
<result column="end_time" jdbcType="TIMESTAMP" property="endTime"/>
|
<result column="end_time" jdbcType="TIMESTAMP" property="endTime"/>
|
||||||
<result column="valid_days" jdbcType="INTEGER" property="validDays"/>
|
<result column="valid_days" jdbcType="INTEGER" property="validDays"/>
|
||||||
<result column="status" jdbcType="INTEGER" property="status"/>
|
<result column="status" jdbcType="INTEGER" property="status"/>
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="gmtCreate"/>
|
<result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate"/>
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="gmtModified"/>
|
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, title, img, `type`, publish, condition_price, price, publish_count,limit_count, take_count,
|
id, title, img, `type`, publish, condition_price, price, publish_count,limit_count, take_count,
|
||||||
used_count, start_time, end_time, valid_days, `status`, create_time, update_time
|
used_count, start_time, end_time, valid_days, `status`, gmt_create, gmt_modified
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
select
|
select
|
||||||
@ -83,10 +83,10 @@
|
|||||||
`status`,
|
`status`,
|
||||||
</if>
|
</if>
|
||||||
<if test="gmtCreate != null">
|
<if test="gmtCreate != null">
|
||||||
create_time,
|
gmt_create,
|
||||||
</if>
|
</if>
|
||||||
<if test="gmtModified != null">
|
<if test="gmtModified != null">
|
||||||
update_time,
|
gmt_modified,
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
@ -186,10 +186,10 @@
|
|||||||
`status` = #{status,jdbcType=INTEGER},
|
`status` = #{status,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="gmtCreate != null">
|
<if test="gmtCreate != null">
|
||||||
create_time = #{gmtCreate,jdbcType=TIMESTAMP},
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||||
</if>
|
</if>
|
||||||
<if test="gmtModified != null">
|
<if test="gmtModified != null">
|
||||||
update_time = #{gmtModified,jdbcType=TIMESTAMP},
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
||||||
</if>
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
@ -210,8 +210,8 @@
|
|||||||
end_time = #{endTime,jdbcType=TIMESTAMP},
|
end_time = #{endTime,jdbcType=TIMESTAMP},
|
||||||
valid_days = #{validDays,jdbcType=INTEGER},
|
valid_days = #{validDays,jdbcType=INTEGER},
|
||||||
`status` = #{status,jdbcType=INTEGER},
|
`status` = #{status,jdbcType=INTEGER},
|
||||||
create_time = #{gmtCreate,jdbcType=TIMESTAMP},
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||||
update_time = #{gmtModified,jdbcType=TIMESTAMP}
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
|
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
|
||||||
<result column="order_id" jdbcType="BIGINT" property="orderId" />
|
<result column="order_id" jdbcType="BIGINT" property="orderId" />
|
||||||
<result column="status" jdbcType="INTEGER" property="status" />
|
<result column="status" jdbcType="INTEGER" property="status" />
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="gmtCreate" />
|
<result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" />
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="gmtModified" />
|
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, coupon_id, use_state, user_id, user_name, coupon_type, coupon_title,
|
id, coupon_id, use_state, user_id, user_name, coupon_type, coupon_title,
|
||||||
condition_price, price, start_time, end_time, order_id, `status`, create_time, update_time
|
condition_price, price, start_time, end_time, order_id, `status`, gmt_create, gmt_modified
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
select
|
select
|
||||||
@ -73,10 +73,10 @@
|
|||||||
`status`,
|
`status`,
|
||||||
</if>
|
</if>
|
||||||
<if test="gmtCreate != null">
|
<if test="gmtCreate != null">
|
||||||
create_time,
|
gmt_create,
|
||||||
</if>
|
</if>
|
||||||
<if test="gmtModified != null">
|
<if test="gmtModified != null">
|
||||||
update_time,
|
gmt_modified,
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
@ -165,10 +165,10 @@
|
|||||||
`status` = #{status,jdbcType=INTEGER},
|
`status` = #{status,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="gmtCreate != null">
|
<if test="gmtCreate != null">
|
||||||
create_time = #{gmtCreate,jdbcType=TIMESTAMP},
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||||
</if>
|
</if>
|
||||||
<if test="gmtModified != null">
|
<if test="gmtModified != null">
|
||||||
update_time = #{gmtModified,jdbcType=TIMESTAMP},
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
||||||
</if>
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
@ -187,8 +187,8 @@
|
|||||||
end_time = #{endTime,jdbcType=TIMESTAMP},
|
end_time = #{endTime,jdbcType=TIMESTAMP},
|
||||||
order_id = #{orderId,jdbcType=BIGINT},
|
order_id = #{orderId,jdbcType=BIGINT},
|
||||||
`status` = #{status,jdbcType=INTEGER},
|
`status` = #{status,jdbcType=INTEGER},
|
||||||
create_time = #{gmtCreate,jdbcType=TIMESTAMP},
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||||
update_time = #{gmtModified,jdbcType=TIMESTAMP}
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
|
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
|
||||||
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
|
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
|
||||||
<result column="status" jdbcType="BOOLEAN" property="status" />
|
<result column="status" jdbcType="BOOLEAN" property="status" />
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="gmtCreate" />
|
<result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" />
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="gmtModified" />
|
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, `name`, start_time, end_time, `status`, create_time, update_time
|
id, `name`, start_time, end_time, `status`, gmt_create, gmt_modified
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -9,12 +9,12 @@
|
|||||||
<result column="seckill_count" jdbcType="INTEGER" property="seckillCount" />
|
<result column="seckill_count" jdbcType="INTEGER" property="seckillCount" />
|
||||||
<result column="seckill_limit" jdbcType="INTEGER" property="seckillLimit" />
|
<result column="seckill_limit" jdbcType="INTEGER" property="seckillLimit" />
|
||||||
<result column="seckill_sort" jdbcType="INTEGER" property="seckillSort" />
|
<result column="seckill_sort" jdbcType="INTEGER" property="seckillSort" />
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="gmtCreate" />
|
<result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" />
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="gmtModified" />
|
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, session_id, sku_id, seckill_price, seckill_count, seckill_limit, seckill_sort,
|
id, session_id, sku_id, seckill_price, seckill_count, seckill_limit, seckill_sort,
|
||||||
create_time, update_time
|
gmt_create, gmt_modified
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -13,15 +13,15 @@
|
|||||||
<result property="status" column="status" jdbcType="BOOLEAN"/>
|
<result property="status" column="status" jdbcType="BOOLEAN"/>
|
||||||
<result property="defaulted" column="defaulted" jdbcType="BOOLEAN"/>
|
<result property="defaulted" column="defaulted" jdbcType="BOOLEAN"/>
|
||||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
|
||||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
<result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id,name,value,
|
id,name,value,
|
||||||
dict_code,sort,status,
|
dict_code,sort,status,
|
||||||
defaulted,remark,create_time,
|
defaulted,remark,gmt_create,
|
||||||
update_time
|
gmt_modified
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
<result property="icon" column="icon" jdbcType="VARCHAR"/>
|
<result property="icon" column="icon" jdbcType="VARCHAR"/>
|
||||||
<result property="sort" column="sort" jdbcType="INTEGER"/>
|
<result property="sort" column="sort" jdbcType="INTEGER"/>
|
||||||
<result property="visible" column="visible" jdbcType="BOOLEAN"/>
|
<result property="visible" column="visible" jdbcType="BOOLEAN"/>
|
||||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
|
||||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
<result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
|
||||||
<collection property="roles" ofType="string" javaType="list">
|
<collection property="roles" ofType="string" javaType="list">
|
||||||
<result column="code"/>
|
<result column="code"/>
|
||||||
</collection>
|
</collection>
|
||||||
@ -27,7 +27,7 @@
|
|||||||
,name,parent_id,
|
,name,parent_id,
|
||||||
path,component,redirect,
|
path,component,redirect,
|
||||||
icon,sort,visible,
|
icon,sort,visible,
|
||||||
create_time,update_time
|
gmt_create,gmt_modified
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="listRoute" resultMap="BaseResultMap">
|
<select id="listRoute" resultMap="BaseResultMap">
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
<result property="menuId" column="menu_id" jdbcType="BIGINT"/>
|
<result property="menuId" column="menu_id" jdbcType="BIGINT"/>
|
||||||
<result property="urlPerm" column="url_perm" jdbcType="VARCHAR"/>
|
<result property="urlPerm" column="url_perm" jdbcType="VARCHAR"/>
|
||||||
<result property="btnPerm" column="btn_perm" jdbcType="VARCHAR"/>
|
<result property="btnPerm" column="btn_perm" jdbcType="VARCHAR"/>
|
||||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
|
||||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
<result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
|
||||||
<collection property="roles" ofType="String" javaType="list">
|
<collection property="roles" ofType="String" javaType="list">
|
||||||
<result column="code"/>
|
<result column="code"/>
|
||||||
</collection>
|
</collection>
|
||||||
@ -20,8 +20,8 @@
|
|||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id
|
id
|
||||||
,name,menu_id,
|
,name,menu_id,
|
||||||
url_perm,btn_perm,create_time,
|
url_perm,btn_perm,gmt_create,
|
||||||
update_time
|
gmt_modified
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="listPermRoles" resultMap="BaseResultMap">
|
<select id="listPermRoles" resultMap="BaseResultMap">
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
<result property="mobile" column="mobile" jdbcType="VARCHAR"/>
|
<result property="mobile" column="mobile" jdbcType="VARCHAR"/>
|
||||||
<result property="status" column="status" jdbcType="BOOLEAN"/>
|
<result property="status" column="status" jdbcType="BOOLEAN"/>
|
||||||
<result property="email" column="email" jdbcType="VARCHAR"/>
|
<result property="email" column="email" jdbcType="VARCHAR"/>
|
||||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
|
||||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
<result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
|
||||||
<result property="deleted" column="deleted" jdbcType="BOOLEAN"/>
|
<result property="deleted" column="deleted" jdbcType="BOOLEAN"/>
|
||||||
<collection property="roles" ofType="string" javaType="list">
|
<collection property="roles" ofType="string" javaType="list">
|
||||||
<result column="roleCode"></result>
|
<result column="roleCode"></result>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
,username,nickname,
|
,username,nickname,
|
||||||
gender,password,dept_id,
|
gender,password,dept_id,
|
||||||
avatar,mobile,status,
|
avatar,mobile,status,
|
||||||
email,create_time,update_time,
|
email,gmt_create,gmt_modified,
|
||||||
deleted
|
deleted
|
||||||
</sql>
|
</sql>
|
||||||
<select id="getByUsername" resultMap="BaseResultMap">
|
<select id="getByUsername" resultMap="BaseResultMap">
|
||||||
|
Loading…
Reference in New Issue
Block a user