parent
9a77ef6e77
commit
997f024cdb
|
@ -595,9 +595,9 @@ public class XaImageTask implements ITask {
|
|||
|
||||
String enJson = XaUtils.encryptStr(json.trim(), appSecret);
|
||||
|
||||
List<XaTCCTCSBZPXX> syncRecordsUpdates = jsonData.getDatas();
|
||||
for(XaTCCTCSBZPXX xx: syncRecordsUpdates){
|
||||
xx.setLV_ZPZP("");
|
||||
List<XaRYRKPHOTO> syncRecordsUpdates = jsonData.getDatas();
|
||||
for(XaRYRKPHOTO xx: syncRecordsUpdates){
|
||||
xx.setLV_ZP("");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -385,6 +385,7 @@ public class DeviceApiServiceImpl implements DeviceApiService {
|
|||
|
||||
//保存人脸个数
|
||||
deviceEntity.setFaceCount(faceCount);
|
||||
deviceEntity.setLastUpdateTime(new Date());
|
||||
tenDeviceService.evictupdateById(deviceEntity);
|
||||
|
||||
TenCellEntity cellEntity = tenCellService.getById(deviceEntity.getCellId());
|
||||
|
|
|
@ -108,26 +108,26 @@ public class VideoOpenApi {
|
|||
}
|
||||
}
|
||||
|
||||
if(backgroundPicture!=null && !backgroundPicture.isEmpty()){
|
||||
try {
|
||||
byte[] b = Base64.getDecoder().decode(backgroundPicture.replace("\n", ""));
|
||||
InputStream inputStream = new ByteArrayInputStream(b);
|
||||
String userFileUrl = "video/" +
|
||||
recordEntity.getCellId().toString() + "/" +
|
||||
DateUtils.format(new Date(),DateUtils.DATE_YEAR_MONTH) + "/";
|
||||
String fileName = userFileUrl + UUIDUtil.uuid() + ".jpg";
|
||||
// String fileName = "t_"+UUIDUtil.uuid()+ "." +extension;
|
||||
PutObjectOptions putObjectOptions = new PutObjectOptions(b.length, -1);
|
||||
putObjectOptions.setContentType("image/jpeg");
|
||||
minioClient.putObject(
|
||||
minioConfig.getBucketName(), fileName, inputStream, putObjectOptions);
|
||||
inputStream.close();
|
||||
recordEntity.setBackgroudPicture(fileName);
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
// if(backgroundPicture!=null && !backgroundPicture.isEmpty()){
|
||||
// try {
|
||||
// byte[] b = Base64.getDecoder().decode(backgroundPicture.replace("\n", ""));
|
||||
// InputStream inputStream = new ByteArrayInputStream(b);
|
||||
// String userFileUrl = "video/" +
|
||||
// recordEntity.getCellId().toString() + "/" +
|
||||
// DateUtils.format(new Date(),DateUtils.DATE_YEAR_MONTH) + "/";
|
||||
// String fileName = userFileUrl + UUIDUtil.uuid() + ".jpg";
|
||||
//// String fileName = "t_"+UUIDUtil.uuid()+ "." +extension;
|
||||
// PutObjectOptions putObjectOptions = new PutObjectOptions(b.length, -1);
|
||||
// putObjectOptions.setContentType("image/jpeg");
|
||||
// minioClient.putObject(
|
||||
// minioConfig.getBucketName(), fileName, inputStream, putObjectOptions);
|
||||
// inputStream.close();
|
||||
// recordEntity.setBackgroudPicture(fileName);
|
||||
//
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// }
|
||||
|
||||
tenVideoRecordService.save(recordEntity);
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public class XaTCCTCSBZPXXEXIT {
|
|||
@JSONField(name="LV_ZPSJ")
|
||||
private String LV_ZPSJ;
|
||||
|
||||
@JSONField(name="LV_JKBM")
|
||||
@JSONField(name="LV_CKBM")
|
||||
private String LV_CKBM;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue