|
|
@ -88,6 +88,7 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
|
|
|
|
|
|
|
|
//服务器中的位置
|
|
|
|
//服务器中的位置
|
|
|
|
private static final String C_PATH = "/home/xymp/photos/";
|
|
|
|
private static final String C_PATH = "/home/xymp/photos/";
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 根据装置id和通道id获取图片
|
|
|
|
* 根据装置id和通道id获取图片
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -122,8 +123,8 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
criteria.andPhotoTimeBetween(BigInteger.valueOf(start).longValue(), BigInteger.valueOf(end).longValue());
|
|
|
|
criteria.andPhotoTimeBetween(BigInteger.valueOf(start).longValue(), BigInteger.valueOf(end).longValue());
|
|
|
|
list = terminalPhotoDao.selectByExample(example);
|
|
|
|
list = terminalPhotoDao.selectByExample(example);
|
|
|
|
List idlist = new ArrayList<>();
|
|
|
|
List idlist = new ArrayList<>();
|
|
|
|
for (TerminalPhoto tp:list) {
|
|
|
|
for (TerminalPhoto tp : list) {
|
|
|
|
if (tp.getOrginalId()!=null) {
|
|
|
|
if (tp.getOrginalId() != null) {
|
|
|
|
idlist.add(tp.getOrginalId());
|
|
|
|
idlist.add(tp.getOrginalId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -240,9 +241,6 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
int pageindex = vo.getPageindex();
|
|
|
|
int pageindex = vo.getPageindex();
|
|
|
|
int pagesize = vo.getPagesize();
|
|
|
|
int pagesize = vo.getPagesize();
|
|
|
|
String search = vo.getSearch();
|
|
|
|
String search = vo.getSearch();
|
|
|
|
if (StrUtil.isEmpty(search)) {
|
|
|
|
|
|
|
|
search = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Date starttime = vo.getStarttime();
|
|
|
|
Date starttime = vo.getStarttime();
|
|
|
|
Date endtime = vo.getEndtime();
|
|
|
|
Date endtime = vo.getEndtime();
|
|
|
|
long start = MyDateUtils.TimeMillSecond2Second(DateTime.of(starttime));
|
|
|
|
long start = MyDateUtils.TimeMillSecond2Second(DateTime.of(starttime));
|
|
|
@ -254,78 +252,73 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
ArrayList<Integer> channelidlist = new ArrayList<>();
|
|
|
|
ArrayList<Integer> channelidlist = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
List<DyAndLineAndTowerAndTermDto> dtos = new ArrayList<>();
|
|
|
|
List<DyAndLineAndTowerAndTermDto> dtos = new ArrayList<>();
|
|
|
|
if (dyid == null || dyid.intValue() == -1) {
|
|
|
|
|
|
|
|
if (StrUtil.isEmpty(search)) {
|
|
|
|
|
|
|
|
PageUtils.SetPage(pageindex, pagesize);
|
|
|
|
|
|
|
|
// TerminalPhotoExample example = new TerminalPhotoExample();
|
|
|
|
|
|
|
|
// example.createCriteria().andTermIdIn(termidlist).andChannelIdIn(channelidlist).andPhotoTimeBetween(start,end);
|
|
|
|
|
|
|
|
// terminalPhotoDao.selectByExample(example);
|
|
|
|
|
|
|
|
list = terminalPhotoDao.selectPhotoListByTermList(termidlist, channelidlist, BigInteger.valueOf(start), BigInteger.valueOf(end));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
List<Integer> dypList = new ArrayList<>();
|
|
|
|
// View_Dy_Line_Tower_TerminalsExample example = new View_Dy_Line_Tower_TerminalsExample();
|
|
|
|
List<Integer> linepList = new ArrayList<>();
|
|
|
|
// View_Dy_Line_Tower_TerminalsExample.Criteria criteria = example.createCriteria();
|
|
|
|
List<Integer> towerpList = new ArrayList<>();
|
|
|
|
// criteria.andDyNameLike(search);
|
|
|
|
List<Integer> termpList = new ArrayList<>();
|
|
|
|
// view_dy_line_tower_terminalsDao.selectByExample(example);
|
|
|
|
|
|
|
|
dtos = dyLevelDao.selectDyAndLineAndTowerAnTermList(null, null, null, null, search, CommonStatus.EFFECTIVE.value());
|
|
|
|
PermissionDetail permissionList = userService.getPermissionList();
|
|
|
|
|
|
|
|
if (CommonStatus.DELETE.value().equals(permissionList.getIsSuper())) {
|
|
|
|
if (CollectionUtil.isEmpty(dtos)) {
|
|
|
|
dypList = permissionList.getDypList();
|
|
|
|
list = new ArrayList<>();
|
|
|
|
linepList = permissionList.getLinepList();
|
|
|
|
} else {
|
|
|
|
towerpList = permissionList.getTowerpList();
|
|
|
|
for (DyAndLineAndTowerAndTermDto item1 : dtos) {
|
|
|
|
termpList = permissionList.getTermpList();
|
|
|
|
for (LineAndTowerAndTermDto item2 : item1.getList()) {
|
|
|
|
|
|
|
|
for (TowerAndTermDto item3 : item2.getList()) {
|
|
|
|
|
|
|
|
for (Terminals item4 : item3.getList()) {
|
|
|
|
|
|
|
|
termidlist.add(item4.getId());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
View_Dy_Line_Tower_TerminalsExample example = new View_Dy_Line_Tower_TerminalsExample();
|
|
|
|
|
|
|
|
View_Dy_Line_Tower_TerminalsExample.Criteria criteria = example.createCriteria();
|
|
|
|
|
|
|
|
if (CollectionUtil.isNotEmpty(dypList)) {
|
|
|
|
|
|
|
|
criteria.andDyIdIn(dypList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (CollectionUtil.isNotEmpty(linepList)) {
|
|
|
|
|
|
|
|
criteria.andLineIdIn(linepList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (CollectionUtil.isNotEmpty(towerpList)) {
|
|
|
|
|
|
|
|
criteria.andTowerIdIn(towerpList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
PageUtils.SetPage(pageindex, pagesize);
|
|
|
|
if (CollectionUtil.isNotEmpty(termpList)) {
|
|
|
|
list = terminalPhotoDao.selectPhotoListByTermList(termidlist, channelidlist, BigInteger.valueOf(start), BigInteger.valueOf(end));
|
|
|
|
criteria.andIdIn(termpList);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (StrUtil.isEmpty(search)) {
|
|
|
|
|
|
|
|
search = null;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (lineid == null || lineid.intValue() == -1) {
|
|
|
|
search = "%" + search + "%";
|
|
|
|
dtos = dyLevelDao.selectDyAndLineAndTowerAnTermList(dyid, null, null, null, search, CommonStatus.EFFECTIVE.value());
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (towerid == null || towerid.intValue() == -1) {
|
|
|
|
|
|
|
|
dtos = dyLevelDao.selectDyAndLineAndTowerAnTermList(dyid, lineid, null, null, search, CommonStatus.EFFECTIVE.value());
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (termid == null || termid.intValue() == -1) {
|
|
|
|
|
|
|
|
dtos = dyLevelDao.selectDyAndLineAndTowerAnTermList(dyid, lineid, towerid, null, search, CommonStatus.EFFECTIVE.value());
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
dtos = dyLevelDao.selectDyAndLineAndTowerAnTermList(dyid, lineid, towerid, termid, search, CommonStatus.EFFECTIVE.value());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (StrUtil.isNotBlank(search)) {
|
|
|
|
|
|
|
|
View_Dy_Line_Tower_TerminalsExample.Criteria or = example.or();
|
|
|
|
|
|
|
|
or.andLineNameLike(search);
|
|
|
|
|
|
|
|
or.andTowerNameLike(search);
|
|
|
|
|
|
|
|
or.andCmdidLike(search);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dyid != null && dyid.intValue() != -1) {
|
|
|
|
|
|
|
|
View_Dy_Line_Tower_TerminalsExample.Criteria or1 = example.or();
|
|
|
|
|
|
|
|
or1.andDyIdEqualTo(dyid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (CollectionUtil.isEmpty(dtos)) {
|
|
|
|
if (lineid != null && lineid.intValue() != -1) {
|
|
|
|
list = new ArrayList<>();
|
|
|
|
View_Dy_Line_Tower_TerminalsExample.Criteria or2 = example.or();
|
|
|
|
} else {
|
|
|
|
or2.andLineIdEqualTo(lineid);
|
|
|
|
for (DyAndLineAndTowerAndTermDto item1 : dtos) {
|
|
|
|
|
|
|
|
for (LineAndTowerAndTermDto item2 : item1.getList()) {
|
|
|
|
|
|
|
|
for (TowerAndTermDto item3 : item2.getList()) {
|
|
|
|
|
|
|
|
for (Terminals item4 : item3.getList()) {
|
|
|
|
|
|
|
|
termidlist.add(item4.getId());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (towerid != null && towerid.intValue() != -1) {
|
|
|
|
|
|
|
|
View_Dy_Line_Tower_TerminalsExample.Criteria or3 = example.or();
|
|
|
|
|
|
|
|
or3.andTowerIdEqualTo(towerid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (termid != null && termid.intValue() != -1) {
|
|
|
|
|
|
|
|
View_Dy_Line_Tower_TerminalsExample.Criteria or3 = example.or();
|
|
|
|
|
|
|
|
or3.andIdEqualTo(termid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
List<View_Dy_Line_Tower_Terminals> lists = view_dy_line_tower_terminalsDao.selectByPermission(example);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (View_Dy_Line_Tower_Terminals item : lists) {
|
|
|
|
|
|
|
|
termidlist.add(item.getId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (channelid == null || channelid.intValue() == -1) {
|
|
|
|
if (channelid == null || channelid.intValue() == -1) {
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
channelidlist.add(channelid);
|
|
|
|
channelidlist.add(channelid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (termidlist.size() == 0) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
PageUtils.SetPage(pageindex, pagesize);
|
|
|
|
PageUtils.SetPage(pageindex, pagesize);
|
|
|
|
list = terminalPhotoDao.selectPhotoListByTermList(termidlist, channelidlist, BigInteger.valueOf(start), BigInteger.valueOf(end));
|
|
|
|
list = terminalPhotoDao.selectPhotoListByTermList(termidlist, channelidlist, BigInteger.valueOf(start), BigInteger.valueOf(end));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
if (empty) {
|
|
|
|
if (empty) {
|
|
|
|
model.setList(new ArrayList<>());
|
|
|
|
model.setList(new ArrayList<>());
|
|
|
@ -338,8 +331,8 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
|
|
|
|
|
|
|
|
List<TerminalImgAlarmsDto> imgarlarmsList = new ArrayList<>();
|
|
|
|
List<TerminalImgAlarmsDto> imgarlarmsList = new ArrayList<>();
|
|
|
|
List idlist = new ArrayList<>();
|
|
|
|
List idlist = new ArrayList<>();
|
|
|
|
for (TerminalPhoto tp:list) {
|
|
|
|
for (TerminalPhoto tp : list) {
|
|
|
|
if (tp.getOrginalId()!=null) {
|
|
|
|
if (tp.getOrginalId() != null) {
|
|
|
|
idlist.add(tp.getOrginalId());
|
|
|
|
idlist.add(tp.getOrginalId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -351,7 +344,7 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
imgarlarmsList = terminalImgAlarmsDao.selectAlarmsByTermidAndPhotoId(list, labellist);
|
|
|
|
imgarlarmsList = terminalImgAlarmsDao.selectAlarmsByTermidAndPhotoId(list, labellist);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
beans = TerminalUtils.fdsa(requestIp, list, terminalMap, lineMap, towerMap, termchannelMap, termchannelMapMap,imgarlarmsList);
|
|
|
|
beans = TerminalUtils.fdsa(requestIp, list, terminalMap, lineMap, towerMap, termchannelMap, termchannelMapMap, imgarlarmsList);
|
|
|
|
model.setList(beans);
|
|
|
|
model.setList(beans);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -578,13 +571,13 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
int pageindex = vo.getPageindex();
|
|
|
|
int pageindex = vo.getPageindex();
|
|
|
|
int pagesize = vo.getPagesize();
|
|
|
|
int pagesize = vo.getPagesize();
|
|
|
|
PageUtils.SetPage(pageindex, pagesize);
|
|
|
|
PageUtils.SetPage(pageindex, pagesize);
|
|
|
|
List<TerminalChannelMapper> list = terminalChannelMapperDao.selectAllByPhotoTime(CommonStatus.EFFECTIVE.value(),termpList);
|
|
|
|
List<TerminalChannelMapper> list = terminalChannelMapperDao.selectAllByPhotoTime(CommonStatus.EFFECTIVE.value(), termpList);
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList<BigInteger> photolist = new ArrayList<>();
|
|
|
|
ArrayList<BigInteger> photolist = new ArrayList<>();
|
|
|
|
List<TerminalPhotosModel.PhotosBean> beans = new ArrayList<>();
|
|
|
|
List<TerminalPhotosModel.PhotosBean> beans = new ArrayList<>();
|
|
|
|
if (CollectionUtil.isNotEmpty(list)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(list)) {
|
|
|
|
for (TerminalChannelMapper item : list) {
|
|
|
|
for (TerminalChannelMapper item : list) {
|
|
|
|
if (item.getPhotoId() !=null) {
|
|
|
|
if (item.getPhotoId() != null) {
|
|
|
|
photolist.add(item.getPhotoId());
|
|
|
|
photolist.add(item.getPhotoId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -594,15 +587,15 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
Map<Integer, TerminalChannels> termchannelMap = cacheService.getTermChannelMap();
|
|
|
|
Map<Integer, TerminalChannels> termchannelMap = cacheService.getTermChannelMap();
|
|
|
|
Map<Integer, TowerDto> towerMap = cacheService.getTowerMap();
|
|
|
|
Map<Integer, TowerDto> towerMap = cacheService.getTowerMap();
|
|
|
|
List<TerminalPhoto> photoList = new ArrayList<>();
|
|
|
|
List<TerminalPhoto> photoList = new ArrayList<>();
|
|
|
|
if (photolist.size()>0) {
|
|
|
|
if (photolist.size() > 0) {
|
|
|
|
photoList = terminalPhotoDao.selectPhotosByIdList(photolist);
|
|
|
|
photoList = terminalPhotoDao.selectPhotosByIdList(photolist);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<TerminalImgAlarmsDto> imgarlarmsList = new ArrayList<>();
|
|
|
|
List<TerminalImgAlarmsDto> imgarlarmsList = new ArrayList<>();
|
|
|
|
if (photoList.size()>0) {
|
|
|
|
if (photoList.size() > 0) {
|
|
|
|
if (CollectionUtil.isNotEmpty(list)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(list)) {
|
|
|
|
List idlist = new ArrayList<>();
|
|
|
|
List idlist = new ArrayList<>();
|
|
|
|
for (TerminalPhoto tp:photoList) {
|
|
|
|
for (TerminalPhoto tp : photoList) {
|
|
|
|
if (tp.getOrginalId()!=null) {
|
|
|
|
if (tp.getOrginalId() != null) {
|
|
|
|
idlist.add(tp.getOrginalId());
|
|
|
|
idlist.add(tp.getOrginalId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -616,7 +609,7 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
beans = TerminalUtils.setPhotoList(requestIp, list, lineMap, termchannelMapMap, terminalMap, termchannelMap, towerMap, photoList,imgarlarmsList);
|
|
|
|
beans = TerminalUtils.setPhotoList(requestIp, list, lineMap, termchannelMapMap, terminalMap, termchannelMap, towerMap, photoList, imgarlarmsList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
model.setList(beans);
|
|
|
|
model.setList(beans);
|
|
|
|
PageInfo pageData = PageUtils.getPageData(list);
|
|
|
|
PageInfo pageData = PageUtils.getPageData(list);
|
|
|
@ -714,8 +707,8 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List idlist = new ArrayList<>();
|
|
|
|
List idlist = new ArrayList<>();
|
|
|
|
for (TerminalPhoto tp:list) {
|
|
|
|
for (TerminalPhoto tp : list) {
|
|
|
|
if (tp.getOrginalId()!=null) {
|
|
|
|
if (tp.getOrginalId() != null) {
|
|
|
|
idlist.add(tp.getOrginalId());
|
|
|
|
idlist.add(tp.getOrginalId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -756,34 +749,34 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ServiceBody<String> uploadPhoto(MultipartFile file, Integer termid, String cmdid, Integer channel, BigInteger phototime) throws IOException{
|
|
|
|
public ServiceBody<String> uploadPhoto(MultipartFile file, Integer termid, String cmdid, Integer channel, BigInteger phototime) throws IOException {
|
|
|
|
DateTime date = MyDateUtils.date(phototime.longValue());
|
|
|
|
DateTime date = MyDateUtils.date(phototime.longValue());
|
|
|
|
int year = date.year();
|
|
|
|
int year = date.year();
|
|
|
|
String mon = "";
|
|
|
|
String mon = "";
|
|
|
|
int month = date.monthBaseOne();
|
|
|
|
int month = date.monthBaseOne();
|
|
|
|
if (month<10) {
|
|
|
|
if (month < 10) {
|
|
|
|
mon = "0" + month;
|
|
|
|
mon = "0" + month;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String daystr = "";
|
|
|
|
String daystr = "";
|
|
|
|
int day = date.dayOfMonth();
|
|
|
|
int day = date.dayOfMonth();
|
|
|
|
if (day<10) {
|
|
|
|
if (day < 10) {
|
|
|
|
daystr = "0" + day;
|
|
|
|
daystr = "0" + day;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String sub = StrUtil.sub(cmdid, cmdid.length() - 2, cmdid.length());
|
|
|
|
String sub = StrUtil.sub(cmdid, cmdid.length() - 2, cmdid.length());
|
|
|
|
String location = C_PATH+year+"/"+ mon+"/"+daystr+"/"+sub;
|
|
|
|
String location = C_PATH + year + "/" + mon + "/" + daystr + "/" + sub;
|
|
|
|
File saveFile = new File(location);
|
|
|
|
File saveFile = new File(location);
|
|
|
|
if (!saveFile.exists()) {
|
|
|
|
if (!saveFile.exists()) {
|
|
|
|
boolean mkdirs = saveFile.mkdirs();
|
|
|
|
boolean mkdirs = saveFile.mkdirs();
|
|
|
|
System.out.println("日期文件夹" + (mkdirs ? "创建成功" : "创建失败"));
|
|
|
|
System.out.println("日期文件夹" + (mkdirs ? "创建成功" : "创建失败"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
File file1 = new File(saveFile.getAbsoluteFile()+"/"+file.getOriginalFilename());
|
|
|
|
File file1 = new File(saveFile.getAbsoluteFile() + "/" + file.getOriginalFilename());
|
|
|
|
file.transferTo(file1);
|
|
|
|
file.transferTo(file1);
|
|
|
|
TerminalPhoto record = new TerminalPhoto();
|
|
|
|
TerminalPhoto record = new TerminalPhoto();
|
|
|
|
record.setTermId(termid);
|
|
|
|
record.setTermId(termid);
|
|
|
|
record.setPhotoTime((BigInteger.valueOf(MyDateUtils.TimeMillSecond2Second(date))));
|
|
|
|
record.setPhotoTime((BigInteger.valueOf(MyDateUtils.TimeMillSecond2Second(date))));
|
|
|
|
record.setChannelId(channel);
|
|
|
|
record.setChannelId(channel);
|
|
|
|
record.setOrginalId(BigInteger.valueOf(RandomUtil.randomLong()));
|
|
|
|
record.setOrginalId(BigInteger.valueOf(RandomUtil.randomLong()));
|
|
|
|
record.setPath(year+"/"+ mon+"/"+daystr+"/"+sub+"/" + file.getOriginalFilename());
|
|
|
|
record.setPath(year + "/" + mon + "/" + daystr + "/" + sub + "/" + file.getOriginalFilename());
|
|
|
|
record.setRecvTime(BigInteger.valueOf(MyDateUtils.TimeMillSecond2Second(date)));
|
|
|
|
record.setRecvTime(BigInteger.valueOf(MyDateUtils.TimeMillSecond2Second(date)));
|
|
|
|
record.setCreateTime(new Date());
|
|
|
|
record.setCreateTime(new Date());
|
|
|
|
record.setChannelId(channel);
|
|
|
|
record.setChannelId(channel);
|
|
|
@ -798,6 +791,4 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|