This commit is contained in:
2025-01-22 14:23:00 +08:00
parent f670fb2f91
commit 38c4b553bc
17 changed files with 178 additions and 131 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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 &gt;= #{startTime} </if>
<if test="endTime!= null">and create_time &lt;= #{endTime} </if>
</where>
</select>
</mapper>

View File

@ -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>