|
@@ -120,6 +120,7 @@ class VersionManagement(View):
|
|
|
|
|
|
try:
|
|
try:
|
|
with transaction.atomic():
|
|
with transaction.atomic():
|
|
|
|
+ nowTime = CommonService.timestamp_to_str(timestamp=int(time.time()))
|
|
channel = int(channel)
|
|
channel = int(channel)
|
|
resolutionRatio = int(resolutionRatio)
|
|
resolutionRatio = int(resolutionRatio)
|
|
status = int(status)
|
|
status = int(status)
|
|
@@ -148,7 +149,7 @@ class VersionManagement(View):
|
|
'resolutionRatio': resolutionRatio, 'Description': Description, 'status': status,
|
|
'resolutionRatio': resolutionRatio, 'Description': Description, 'status': status,
|
|
'version': version, 'softwareVersion': softwareVersion, 'code': code,
|
|
'version': version, 'softwareVersion': softwareVersion, 'code': code,
|
|
'chipModelList2Code': chipModelList2Code, 'type': type, 'companyCode': companyCode,
|
|
'chipModelList2Code': chipModelList2Code, 'type': type, 'companyCode': companyCode,
|
|
- 'fileSize': fileSize, 'filePath': filePath, 'fileMd5': fileMd5}
|
|
|
|
|
|
+ 'fileSize': fileSize, 'filePath': filePath, 'fileMd5': fileMd5, 'update_time': nowTime}
|
|
# Equipment_Version表创建或更新数据
|
|
# Equipment_Version表创建或更新数据
|
|
equipment_version_qs = Equipment_Version.objects.filter(code=code, lang=lang)
|
|
equipment_version_qs = Equipment_Version.objects.filter(code=code, lang=lang)
|
|
if not equipment_version_qs.exists():
|
|
if not equipment_version_qs.exists():
|