|
|
@ -5,7 +5,8 @@ |
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
<result column="qrcode_id" jdbcType="BIGINT" property="qrcodeId" /> |
|
|
<result column="qrcode_id" jdbcType="BIGINT" property="qrcodeId" /> |
|
|
<result column="time" jdbcType="BIGINT" property="time" /> |
|
|
<result column="time" jdbcType="BIGINT" property="time" /> |
|
|
<result column="location" jdbcType="VARCHAR" property="location" /> |
|
|
<result column="location_longitude" jdbcType="DECIMAL" property="locationLongitude" /> |
|
|
|
|
|
<result column="location_latitude" jdbcType="DECIMAL" property="locationLatitude" /> |
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
@ -70,7 +71,8 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, qrcode_id, time, location, user_id, created_at, updated_at, rec_status |
|
|
id, qrcode_id, time, location_longitude, location_latitude, user_id, created_at, |
|
|
|
|
|
updated_at, rec_status |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.SiteClockInExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.SiteClockInExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
@ -104,11 +106,13 @@ |
|
|
</delete> |
|
|
</delete> |
|
|
<insert id="insert" parameterType="com.ccsens.health.bean.po.SiteClockIn"> |
|
|
<insert id="insert" parameterType="com.ccsens.health.bean.po.SiteClockIn"> |
|
|
insert into t_site_clock_in (id, qrcode_id, time, |
|
|
insert into t_site_clock_in (id, qrcode_id, time, |
|
|
location, user_id, created_at, |
|
|
location_longitude, location_latitude, user_id, |
|
|
updated_at, rec_status) |
|
|
created_at, updated_at, rec_status |
|
|
|
|
|
) |
|
|
values (#{id,jdbcType=BIGINT}, #{qrcodeId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT}, |
|
|
values (#{id,jdbcType=BIGINT}, #{qrcodeId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT}, |
|
|
#{location,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{locationLongitude,jdbcType=DECIMAL}, #{locationLatitude,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, |
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.health.bean.po.SiteClockIn"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.health.bean.po.SiteClockIn"> |
|
|
insert into t_site_clock_in |
|
|
insert into t_site_clock_in |
|
|
@ -122,8 +126,11 @@ |
|
|
<if test="time != null"> |
|
|
<if test="time != null"> |
|
|
time, |
|
|
time, |
|
|
</if> |
|
|
</if> |
|
|
<if test="location != null"> |
|
|
<if test="locationLongitude != null"> |
|
|
location, |
|
|
location_longitude, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="locationLatitude != null"> |
|
|
|
|
|
location_latitude, |
|
|
</if> |
|
|
</if> |
|
|
<if test="userId != null"> |
|
|
<if test="userId != null"> |
|
|
user_id, |
|
|
user_id, |
|
|
@ -148,8 +155,11 @@ |
|
|
<if test="time != null"> |
|
|
<if test="time != null"> |
|
|
#{time,jdbcType=BIGINT}, |
|
|
#{time,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="location != null"> |
|
|
<if test="locationLongitude != null"> |
|
|
#{location,jdbcType=VARCHAR}, |
|
|
#{locationLongitude,jdbcType=DECIMAL}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="locationLatitude != null"> |
|
|
|
|
|
#{locationLatitude,jdbcType=DECIMAL}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="userId != null"> |
|
|
<if test="userId != null"> |
|
|
#{userId,jdbcType=BIGINT}, |
|
|
#{userId,jdbcType=BIGINT}, |
|
|
@ -183,8 +193,11 @@ |
|
|
<if test="record.time != null"> |
|
|
<if test="record.time != null"> |
|
|
time = #{record.time,jdbcType=BIGINT}, |
|
|
time = #{record.time,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.location != null"> |
|
|
<if test="record.locationLongitude != null"> |
|
|
location = #{record.location,jdbcType=VARCHAR}, |
|
|
location_longitude = #{record.locationLongitude,jdbcType=DECIMAL}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.locationLatitude != null"> |
|
|
|
|
|
location_latitude = #{record.locationLatitude,jdbcType=DECIMAL}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.userId != null"> |
|
|
<if test="record.userId != null"> |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
@ -208,7 +221,8 @@ |
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
qrcode_id = #{record.qrcodeId,jdbcType=BIGINT}, |
|
|
qrcode_id = #{record.qrcodeId,jdbcType=BIGINT}, |
|
|
time = #{record.time,jdbcType=BIGINT}, |
|
|
time = #{record.time,jdbcType=BIGINT}, |
|
|
location = #{record.location,jdbcType=VARCHAR}, |
|
|
location_longitude = #{record.locationLongitude,jdbcType=DECIMAL}, |
|
|
|
|
|
location_latitude = #{record.locationLatitude,jdbcType=DECIMAL}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
@ -226,8 +240,11 @@ |
|
|
<if test="time != null"> |
|
|
<if test="time != null"> |
|
|
time = #{time,jdbcType=BIGINT}, |
|
|
time = #{time,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="location != null"> |
|
|
<if test="locationLongitude != null"> |
|
|
location = #{location,jdbcType=VARCHAR}, |
|
|
location_longitude = #{locationLongitude,jdbcType=DECIMAL}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="locationLatitude != null"> |
|
|
|
|
|
location_latitude = #{locationLatitude,jdbcType=DECIMAL}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="userId != null"> |
|
|
<if test="userId != null"> |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
@ -248,7 +265,8 @@ |
|
|
update t_site_clock_in |
|
|
update t_site_clock_in |
|
|
set qrcode_id = #{qrcodeId,jdbcType=BIGINT}, |
|
|
set qrcode_id = #{qrcodeId,jdbcType=BIGINT}, |
|
|
time = #{time,jdbcType=BIGINT}, |
|
|
time = #{time,jdbcType=BIGINT}, |
|
|
location = #{location,jdbcType=VARCHAR}, |
|
|
location_longitude = #{locationLongitude,jdbcType=DECIMAL}, |
|
|
|
|
|
location_latitude = #{locationLatitude,jdbcType=DECIMAL}, |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|