|
|
@ -6,7 +6,7 @@ |
|
|
<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" jdbcType="VARCHAR" property="location" /> |
|
|
<result column="employee_id" jdbcType="BIGINT" property="employeeId" /> |
|
|
<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" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
@ -70,7 +70,7 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, qrcode_id, time, location, employee_id, created_at, updated_at, rec_status |
|
|
id, qrcode_id, time, location, 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,10 +104,10 @@ |
|
|
</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, employee_id, created_at, |
|
|
location, user_id, created_at, |
|
|
updated_at, rec_status) |
|
|
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}, #{employeeId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{location,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
#{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"> |
|
|
@ -125,8 +125,8 @@ |
|
|
<if test="location != null"> |
|
|
<if test="location != null"> |
|
|
location, |
|
|
location, |
|
|
</if> |
|
|
</if> |
|
|
<if test="employeeId != null"> |
|
|
<if test="userId != null"> |
|
|
employee_id, |
|
|
user_id, |
|
|
</if> |
|
|
</if> |
|
|
<if test="createdAt != null"> |
|
|
<if test="createdAt != null"> |
|
|
created_at, |
|
|
created_at, |
|
|
@ -151,8 +151,8 @@ |
|
|
<if test="location != null"> |
|
|
<if test="location != null"> |
|
|
#{location,jdbcType=VARCHAR}, |
|
|
#{location,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="employeeId != null"> |
|
|
<if test="userId != null"> |
|
|
#{employeeId,jdbcType=BIGINT}, |
|
|
#{userId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="createdAt != null"> |
|
|
<if test="createdAt != null"> |
|
|
#{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{createdAt,jdbcType=TIMESTAMP}, |
|
|
@ -186,8 +186,8 @@ |
|
|
<if test="record.location != null"> |
|
|
<if test="record.location != null"> |
|
|
location = #{record.location,jdbcType=VARCHAR}, |
|
|
location = #{record.location,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.employeeId != null"> |
|
|
<if test="record.userId != null"> |
|
|
employee_id = #{record.employeeId,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.createdAt != null"> |
|
|
<if test="record.createdAt != null"> |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
@ -209,7 +209,7 @@ |
|
|
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 = #{record.location,jdbcType=VARCHAR}, |
|
|
employee_id = #{record.employeeId,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}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
@ -229,8 +229,8 @@ |
|
|
<if test="location != null"> |
|
|
<if test="location != null"> |
|
|
location = #{location,jdbcType=VARCHAR}, |
|
|
location = #{location,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="employeeId != null"> |
|
|
<if test="userId != null"> |
|
|
employee_id = #{employeeId,jdbcType=BIGINT}, |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="createdAt != null"> |
|
|
<if test="createdAt != null"> |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
@ -249,7 +249,7 @@ |
|
|
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 = #{location,jdbcType=VARCHAR}, |
|
|
employee_id = #{employeeId,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}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
|