模板、设备排序

This commit is contained in:
2025-02-20 18:37:23 +08:00
parent 7b40ae85d0
commit 240706c11c
19 changed files with 177 additions and 1 deletions

View File

@ -45,4 +45,8 @@ public interface DeviceMapper {
int updateOnlineStatus(Long id, String ipAddr, int online, Date keepaliveAt);
DeviceEntity getByDeviceNo2(String deviceNo);
List<Long> listAllByScenicId(Long scenicId);
int updateSort(Long id, Integer sort);
}

View File

@ -36,6 +36,8 @@ public interface TaskMapper {
int countByMemberIdStauFinish(String userId);
List<TaskRespVO> selectNotRunning();
List<TaskEntity> selectAllNotRunning();
List<TaskEntity> selectAllRunning();
void assignToWorker(@Param("taskId") Long taskId, @Param("workerId") Long workerId);
void deassign(@Param("taskId") Long taskId);

View File

@ -35,5 +35,9 @@ public interface TemplateMapper {
List<TemplateEntity> listEnabledByScenicId(Long scenicId);
List<TemplateEntity> listEnabled();
List<Long> listEnabledTemplateIdByScenicId(Long scenicId);
List<Long> listAllTemplateIdByScenicId(Long scenicId);
List<ContentPageVO> listFor(@Param("scenicId") Long scenicId);
int updateSort(Long templateId, Integer sort);
}