This commit is contained in:
wuweida 2022-06-13 18:08:22 +08:00
parent c8575c1dab
commit d0be7a6ffe
1 changed files with 10 additions and 20 deletions

View File

@ -227,8 +227,7 @@ public class MonitorService {
picture.setPicUrl(picUrl); picture.setPicUrl(picUrl);
/*picture.setInsertTime(new Date()); /*picture.setInsertTime(new Date());
channelPictureMapper.insert(picture);*/ channelPictureMapper.insert(picture);*/
ChannelPicture id = channelPictureMapper.selectById(channelCode); if (channelCode == null){
if (id == null){
channelPictureMapper.insert(picture); channelPictureMapper.insert(picture);
}else { }else {
QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>();
@ -270,8 +269,7 @@ public class MonitorService {
picture.setPicUrl(picUrl); picture.setPicUrl(picUrl);
/*picture.setInsertTime(new Date()); /*picture.setInsertTime(new Date());
channelPictureMapper.insert(picture);*/ channelPictureMapper.insert(picture);*/
ChannelPicture id = channelPictureMapper.selectById(channelCode); if (channelCode == null){
if (id == null){
channelPictureMapper.insert(picture); channelPictureMapper.insert(picture);
}else { }else {
QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>();
@ -313,8 +311,7 @@ public class MonitorService {
picture.setPicUrl(picUrl); picture.setPicUrl(picUrl);
/*picture.setInsertTime(new Date()); /*picture.setInsertTime(new Date());
channelPictureMapper.insert(picture);*/ channelPictureMapper.insert(picture);*/
ChannelPicture id = channelPictureMapper.selectById(channelCode); if (channelCode == null){
if (id == null){
channelPictureMapper.insert(picture); channelPictureMapper.insert(picture);
}else { }else {
QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>();
@ -356,8 +353,7 @@ public class MonitorService {
picture.setPicUrl(picUrl); picture.setPicUrl(picUrl);
/*picture.setInsertTime(new Date()); /*picture.setInsertTime(new Date());
channelPictureMapper.insert(picture);*/ channelPictureMapper.insert(picture);*/
ChannelPicture id = channelPictureMapper.selectById(channelCode); if (channelCode == null){
if (id == null){
channelPictureMapper.insert(picture); channelPictureMapper.insert(picture);
}else { }else {
QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>();
@ -399,8 +395,7 @@ public class MonitorService {
picture.setPicUrl(picUrl); picture.setPicUrl(picUrl);
/*picture.setInsertTime(new Date()); /*picture.setInsertTime(new Date());
channelPictureMapper.insert(picture);*/ channelPictureMapper.insert(picture);*/
ChannelPicture id = channelPictureMapper.selectById(channelCode); if (channelCode == null){
if (id == null){
channelPictureMapper.insert(picture); channelPictureMapper.insert(picture);
}else { }else {
QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>();
@ -442,8 +437,7 @@ public class MonitorService {
picture.setPicUrl(picUrl); picture.setPicUrl(picUrl);
/*picture.setInsertTime(new Date()); /*picture.setInsertTime(new Date());
channelPictureMapper.insert(picture);*/ channelPictureMapper.insert(picture);*/
ChannelPicture id = channelPictureMapper.selectById(channelCode); if (channelCode == null){
if (id == null){
channelPictureMapper.insert(picture); channelPictureMapper.insert(picture);
}else { }else {
QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>();
@ -485,8 +479,7 @@ public class MonitorService {
picture.setPicUrl(picUrl); picture.setPicUrl(picUrl);
/*picture.setInsertTime(new Date()); /*picture.setInsertTime(new Date());
channelPictureMapper.insert(picture);*/ channelPictureMapper.insert(picture);*/
ChannelPicture id = channelPictureMapper.selectById(channelCode); if (channelCode == null){
if (id == null){
channelPictureMapper.insert(picture); channelPictureMapper.insert(picture);
}else { }else {
QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>();
@ -528,8 +521,7 @@ public class MonitorService {
picture.setPicUrl(picUrl); picture.setPicUrl(picUrl);
/*picture.setInsertTime(new Date()); /*picture.setInsertTime(new Date());
channelPictureMapper.insert(picture);*/ channelPictureMapper.insert(picture);*/
ChannelPicture id = channelPictureMapper.selectById(channelCode); if (channelCode == null){
if (id == null){
channelPictureMapper.insert(picture); channelPictureMapper.insert(picture);
}else { }else {
QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>();
@ -570,8 +562,7 @@ public class MonitorService {
picture.setPicUrl(picUrl); picture.setPicUrl(picUrl);
/*picture.setInsertTime(new Date()); /*picture.setInsertTime(new Date());
channelPictureMapper.insert(picture);*/ channelPictureMapper.insert(picture);*/
ChannelPicture id = channelPictureMapper.selectById(channelCode); if (channelCode == null){
if (id == null){
channelPictureMapper.insert(picture); channelPictureMapper.insert(picture);
}else { }else {
QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>();
@ -613,8 +604,7 @@ public class MonitorService {
picture.setPicUrl(picUrl); picture.setPicUrl(picUrl);
/*picture.setInsertTime(new Date()); /*picture.setInsertTime(new Date());
channelPictureMapper.insert(picture);*/ channelPictureMapper.insert(picture);*/
ChannelPicture id = channelPictureMapper.selectById(channelCode); if (channelCode == null){
if (id == null){
channelPictureMapper.insert(picture); channelPictureMapper.insert(picture);
}else { }else {
QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChannelPicture> queryWrapper = new QueryWrapper<>();