4670101279
2 years ago
8 changed files with 193 additions and 14 deletions
@ -0,0 +1,44 @@
@@ -0,0 +1,44 @@
|
||||
package com.ruoyi.code.camera.domain; |
||||
|
||||
import java.util.Date; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import java.io.Serializable; |
||||
import lombok.Data; |
||||
|
||||
|
||||
/** |
||||
* 图片上传预警对象 sc_image_upload_alarm |
||||
* |
||||
* @author ruoyi |
||||
* @date 2022-07-11 |
||||
*/ |
||||
@Data |
||||
@TableName("sc_image_upload_alarm") |
||||
public class ScImageUploadAlarm implements Serializable |
||||
{ |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** $column.columnComment */ |
||||
@TableId(type = IdType.INPUT) |
||||
private Long id; |
||||
|
||||
/** 摄像头序列好号 */ |
||||
private String cameraSn; |
||||
|
||||
/** 图片最新上传时间 */ |
||||
private Date latestUploadTime; |
||||
|
||||
/** 预警标识,0正常,1预警 */ |
||||
private String flag; |
||||
|
||||
/** 入库时间 */ |
||||
private Date insertTime; |
||||
|
||||
|
||||
} |
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
package com.ruoyi.code.camera.mapper; |
||||
|
||||
import java.util.List; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
import com.ruoyi.code.camera.domain.ScImageUploadAlarm; |
||||
|
||||
/** |
||||
* Mapper接口 |
||||
* |
||||
* @author ruoyi |
||||
* @date 2022-07-11 |
||||
*/ |
||||
@Mapper |
||||
public interface ScImageUploadAlarmMapper extends BaseMapper<ScImageUploadAlarm> |
||||
{ |
||||
|
||||
} |
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
package com.ruoyi.code.camera.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.ruoyi.common.core.page.R; |
||||
import java.util.Map; |
||||
import com.ruoyi.code.camera.domain.ScImageUploadAlarm; |
||||
|
||||
/** |
||||
* Service接口 |
||||
* |
||||
* @author ruoyi |
||||
* @date 2022-07-11 |
||||
*/ |
||||
public interface IScImageUploadAlarmService extends IService<ScImageUploadAlarm> |
||||
{ |
||||
/** |
||||
* 查询 |
||||
*/ |
||||
R queryPage(Map<String, Object> params); |
||||
|
||||
} |
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
package com.ruoyi.code.camera.service.impl; |
||||
|
||||
import java.util.Map; |
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.ruoyi.common.core.page.R; |
||||
import com.ruoyi.common.utils.Query; |
||||
import org.springframework.stereotype.Service; |
||||
import com.ruoyi.code.camera.mapper.ScImageUploadAlarmMapper; |
||||
import com.ruoyi.code.camera.domain.ScImageUploadAlarm; |
||||
import com.ruoyi.code.camera.service.IScImageUploadAlarmService; |
||||
|
||||
/** |
||||
* Service业务层处理 |
||||
* |
||||
* @author ruoyi |
||||
* @date 2022-07-11 |
||||
*/ |
||||
@Service("scImageUploadAlarmService") |
||||
public class ScImageUploadAlarmServiceImpl extends ServiceImpl<ScImageUploadAlarmMapper, ScImageUploadAlarm> implements IScImageUploadAlarmService |
||||
{ |
||||
@Override |
||||
public R queryPage(Map<String, Object> params) { |
||||
IPage<ScImageUploadAlarm> page = this.page( |
||||
new Query<ScImageUploadAlarm>().getPage(params), |
||||
new QueryWrapper<ScImageUploadAlarm>() |
||||
); |
||||
|
||||
return R.ok().put("count", page.getTotal()).put("data", page.getRecords()); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue