欣影管理平台新增拍照时间关联
parent
b7be61c7fd
commit
437328ce19
@ -0,0 +1,16 @@
|
|||||||
|
package com.shxy.xymanager_admin.controller;
|
||||||
|
|
||||||
|
import com.shxy.xymanager_common.base.BaseController;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
|
||||||
|
@Api(value = "关联任务规则接口", tags = "关联任务规则接口相关")
|
||||||
|
@RestController
|
||||||
|
@Slf4j
|
||||||
|
public class TerminalScheduleRuleMapperController extends BaseController {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
package com.shxy.xymanager_common.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备关联拍照时间任务规则
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(value = "关联任务规则编号对象", description = "关联任务规则编号对象描述")
|
||||||
|
public class RelateTerminalRuleIdVo {
|
||||||
|
|
||||||
|
@NotNull(message = "规则编号不能缺少")
|
||||||
|
@ApiModelProperty(value = "规则编号", example = "123455")
|
||||||
|
private Integer ruleid;
|
||||||
|
|
||||||
|
@NotNull(message = "通道编号列表不能缺少")
|
||||||
|
@ApiModelProperty(value = "通道编号列表", example = "123455")
|
||||||
|
private List<Integer> channelidlist;
|
||||||
|
|
||||||
|
@NotNull(message = "装置编号")
|
||||||
|
@ApiModelProperty(value = "装置编号", example = "123455")
|
||||||
|
private Integer termid;
|
||||||
|
}
|
@ -1,16 +1,24 @@
|
|||||||
package com.shxy.xymanager_dao.dao;
|
package com.shxy.xymanager_dao.dao;
|
||||||
|
|
||||||
import com.shxy.xymanager_common.entity.TerminalScheduleMapper;
|
import com.shxy.xymanager_common.entity.TerminalScheduleMapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface TerminalScheduleMapperDao {
|
public interface TerminalScheduleMapperDao {
|
||||||
int deleteByPrimaryKey(Integer id);
|
int deleteByChannelId(@Param("list") List<Integer> list, @Param("termid") Integer termid);
|
||||||
|
|
||||||
int insert(TerminalScheduleMapper record);
|
int insert(TerminalScheduleMapper record);
|
||||||
|
|
||||||
int insertSelective(TerminalScheduleMapper record);
|
int insertSelective(TerminalScheduleMapper record);
|
||||||
|
|
||||||
|
int insertList(@Param("list") List<TerminalScheduleMapper> record, @Param("createat") Date create, @Param("updateat") Date update);
|
||||||
|
|
||||||
TerminalScheduleMapper selectByPrimaryKey(Integer id);
|
TerminalScheduleMapper selectByPrimaryKey(Integer id);
|
||||||
|
|
||||||
|
List<TerminalScheduleMapper> selectByChannelId(@Param("list") List<Integer> list, @Param("termid") Integer termid);
|
||||||
|
|
||||||
int updateByPrimaryKeySelective(TerminalScheduleMapper record);
|
int updateByPrimaryKeySelective(TerminalScheduleMapper record);
|
||||||
|
|
||||||
int updateByPrimaryKey(TerminalScheduleMapper record);
|
int updateByPrimaryKey(TerminalScheduleMapper record);
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.shxy.xymanager_framework.config;
|
||||||
|
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
||||||
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class WebConfig implements WebMvcConfigurer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||||
|
registry.addResourceHandler("/download/**").addResourceLocations("file:/usr/local/home/manager/download/");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue