You've already forked FrameTour-BE
修改
This commit is contained in:
@ -48,6 +48,14 @@
|
||||
update_at = now()
|
||||
where id = #{id}
|
||||
</update>
|
||||
<update id="updateOnlineStatus">
|
||||
update device
|
||||
set online = #{online},
|
||||
<if test="ipAddr != null">ip_addr = #{ipAddr},</if>
|
||||
keepalive_at = #{keepaliveAt},
|
||||
update_at = now()
|
||||
where id = #{id}
|
||||
</update>
|
||||
<delete id="deleteById">
|
||||
delete from device where id = #{id}
|
||||
</delete>
|
||||
@ -114,4 +122,10 @@
|
||||
from device
|
||||
where status = 1
|
||||
</select>
|
||||
<select id="getByDeviceNo2" resultType="com.ycwl.basic.model.pc.device.entity.DeviceEntity">
|
||||
select *
|
||||
from device
|
||||
where no_2 = #{deviceNo}
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
@ -86,7 +86,8 @@
|
||||
book_routine=#{bookRoutine},
|
||||
sample_store_day=#{sampleStoreDay},
|
||||
video_store_day=#{videoStoreDay},
|
||||
max_journey_hour=#{maxJourneyHour},
|
||||
template_new_video_type=#{templateNewVideoType},
|
||||
anti_screen_record_type=#{antiScreenRecordType},
|
||||
disable_source_video=#{disableSourceVideo},
|
||||
disable_source_image=#{disableSourceImage}
|
||||
</set>
|
||||
|
@ -109,4 +109,18 @@
|
||||
from task
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="listEntity" resultType="com.ycwl.basic.model.pc.task.entity.TaskEntity">
|
||||
select *
|
||||
from task
|
||||
<where>
|
||||
<if test="workerId!= null">and worker_id = #{workerId} </if>
|
||||
<if test="memberId!= null">and member_id = #{memberId} </if>
|
||||
<if test="faceId!= null">and face_id = #{faceId} </if>
|
||||
<if test="templateId!= null">and template_id = #{templateId} </if>
|
||||
<if test="scenicId!= null">and scenic_id = #{scenicId} </if>
|
||||
<if test="status!= null">and `status` = #{status} </if>
|
||||
<if test="startTime!= null">and create_time >= #{startTime} </if>
|
||||
<if test="endTime!= null">and create_time <= #{endTime} </if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
|
@ -44,7 +44,8 @@
|
||||
update template_config
|
||||
<set>
|
||||
<if test="isDefault!= null">is_default = #{isDefault}, </if>
|
||||
<if test="minimalPlaceholderFill!= null">minimal_placeholder_fill = #{minimalPlaceholderFill}, </if>
|
||||
minimal_placeholder_fill = #{minimalPlaceholderFill},
|
||||
automatic_placeholder_fill = #{automaticPlaceholderFill}
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
Reference in New Issue
Block a user