|
|
@ -3,10 +3,13 @@ |
|
|
|
<mapper namespace="com.ccsens.health.persist.mapper.SiteClockInMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.SiteClockIn"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="qrcode_id" jdbcType="BIGINT" property="qrcodeId" /> |
|
|
|
<result column="site_id" jdbcType="BIGINT" property="siteId" /> |
|
|
|
<result column="time" jdbcType="BIGINT" property="time" /> |
|
|
|
<result column="location_longitude" jdbcType="DECIMAL" property="locationLongitude" /> |
|
|
|
<result column="location_latitude" jdbcType="DECIMAL" property="locationLatitude" /> |
|
|
|
<result column="out_time" jdbcType="BIGINT" property="outTime" /> |
|
|
|
<result column="out_location_longitude" jdbcType="DECIMAL" property="outLocationLongitude" /> |
|
|
|
<result column="out_location_latitude" jdbcType="DECIMAL" property="outLocationLatitude" /> |
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
@ -71,8 +74,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, qrcode_id, time, location_longitude, location_latitude, user_id, created_at, |
|
|
|
updated_at, rec_status |
|
|
|
id, site_id, time, location_longitude, location_latitude, out_time, out_location_longitude, |
|
|
|
out_location_latitude, user_id, created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.SiteClockInExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -105,14 +108,16 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.health.bean.po.SiteClockIn"> |
|
|
|
insert into t_site_clock_in (id, qrcode_id, time, |
|
|
|
location_longitude, location_latitude, user_id, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{qrcodeId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT}, |
|
|
|
#{locationLongitude,jdbcType=DECIMAL}, #{locationLatitude,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
insert into t_site_clock_in (id, site_id, time, |
|
|
|
location_longitude, location_latitude, out_time, |
|
|
|
out_location_longitude, out_location_latitude, |
|
|
|
user_id, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{siteId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT}, |
|
|
|
#{locationLongitude,jdbcType=DECIMAL}, #{locationLatitude,jdbcType=DECIMAL}, #{outTime,jdbcType=BIGINT}, |
|
|
|
#{outLocationLongitude,jdbcType=DECIMAL}, #{outLocationLatitude,jdbcType=DECIMAL}, |
|
|
|
#{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.health.bean.po.SiteClockIn"> |
|
|
|
insert into t_site_clock_in |
|
|
@ -120,8 +125,8 @@ |
|
|
|
<if test="id != null"> |
|
|
|
id, |
|
|
|
</if> |
|
|
|
<if test="qrcodeId != null"> |
|
|
|
qrcode_id, |
|
|
|
<if test="siteId != null"> |
|
|
|
site_id, |
|
|
|
</if> |
|
|
|
<if test="time != null"> |
|
|
|
time, |
|
|
@ -132,6 +137,15 @@ |
|
|
|
<if test="locationLatitude != null"> |
|
|
|
location_latitude, |
|
|
|
</if> |
|
|
|
<if test="outTime != null"> |
|
|
|
out_time, |
|
|
|
</if> |
|
|
|
<if test="outLocationLongitude != null"> |
|
|
|
out_location_longitude, |
|
|
|
</if> |
|
|
|
<if test="outLocationLatitude != null"> |
|
|
|
out_location_latitude, |
|
|
|
</if> |
|
|
|
<if test="userId != null"> |
|
|
|
user_id, |
|
|
|
</if> |
|
|
@ -149,8 +163,8 @@ |
|
|
|
<if test="id != null"> |
|
|
|
#{id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="qrcodeId != null"> |
|
|
|
#{qrcodeId,jdbcType=BIGINT}, |
|
|
|
<if test="siteId != null"> |
|
|
|
#{siteId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="time != null"> |
|
|
|
#{time,jdbcType=BIGINT}, |
|
|
@ -161,6 +175,15 @@ |
|
|
|
<if test="locationLatitude != null"> |
|
|
|
#{locationLatitude,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="outTime != null"> |
|
|
|
#{outTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="outLocationLongitude != null"> |
|
|
|
#{outLocationLongitude,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="outLocationLatitude != null"> |
|
|
|
#{outLocationLatitude,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="userId != null"> |
|
|
|
#{userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -187,8 +210,8 @@ |
|
|
|
<if test="record.id != null"> |
|
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.qrcodeId != null"> |
|
|
|
qrcode_id = #{record.qrcodeId,jdbcType=BIGINT}, |
|
|
|
<if test="record.siteId != null"> |
|
|
|
site_id = #{record.siteId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.time != null"> |
|
|
|
time = #{record.time,jdbcType=BIGINT}, |
|
|
@ -199,6 +222,15 @@ |
|
|
|
<if test="record.locationLatitude != null"> |
|
|
|
location_latitude = #{record.locationLatitude,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="record.outTime != null"> |
|
|
|
out_time = #{record.outTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.outLocationLongitude != null"> |
|
|
|
out_location_longitude = #{record.outLocationLongitude,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="record.outLocationLatitude != null"> |
|
|
|
out_location_latitude = #{record.outLocationLatitude,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="record.userId != null"> |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -219,10 +251,13 @@ |
|
|
|
<update id="updateByExample" parameterType="map"> |
|
|
|
update t_site_clock_in |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
qrcode_id = #{record.qrcodeId,jdbcType=BIGINT}, |
|
|
|
site_id = #{record.siteId,jdbcType=BIGINT}, |
|
|
|
time = #{record.time,jdbcType=BIGINT}, |
|
|
|
location_longitude = #{record.locationLongitude,jdbcType=DECIMAL}, |
|
|
|
location_latitude = #{record.locationLatitude,jdbcType=DECIMAL}, |
|
|
|
out_time = #{record.outTime,jdbcType=BIGINT}, |
|
|
|
out_location_longitude = #{record.outLocationLongitude,jdbcType=DECIMAL}, |
|
|
|
out_location_latitude = #{record.outLocationLatitude,jdbcType=DECIMAL}, |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
@ -234,8 +269,8 @@ |
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.SiteClockIn"> |
|
|
|
update t_site_clock_in |
|
|
|
<set> |
|
|
|
<if test="qrcodeId != null"> |
|
|
|
qrcode_id = #{qrcodeId,jdbcType=BIGINT}, |
|
|
|
<if test="siteId != null"> |
|
|
|
site_id = #{siteId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="time != null"> |
|
|
|
time = #{time,jdbcType=BIGINT}, |
|
|
@ -246,6 +281,15 @@ |
|
|
|
<if test="locationLatitude != null"> |
|
|
|
location_latitude = #{locationLatitude,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="outTime != null"> |
|
|
|
out_time = #{outTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="outLocationLongitude != null"> |
|
|
|
out_location_longitude = #{outLocationLongitude,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="outLocationLatitude != null"> |
|
|
|
out_location_latitude = #{outLocationLatitude,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="userId != null"> |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -263,10 +307,13 @@ |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.SiteClockIn"> |
|
|
|
update t_site_clock_in |
|
|
|
set qrcode_id = #{qrcodeId,jdbcType=BIGINT}, |
|
|
|
set site_id = #{siteId,jdbcType=BIGINT}, |
|
|
|
time = #{time,jdbcType=BIGINT}, |
|
|
|
location_longitude = #{locationLongitude,jdbcType=DECIMAL}, |
|
|
|
location_latitude = #{locationLatitude,jdbcType=DECIMAL}, |
|
|
|
out_time = #{outTime,jdbcType=BIGINT}, |
|
|
|
out_location_longitude = #{outLocationLongitude,jdbcType=DECIMAL}, |
|
|
|
out_location_latitude = #{outLocationLatitude,jdbcType=DECIMAL}, |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|