Merge remote-tracking branch 'origin/tsg' into tsg

master
wany 2024-09-27 17:37:45 +08:00
commit 5a59239d75
2 changed files with 17 additions and 0 deletions

View File

@ -14,6 +14,7 @@ import com.gunshi.project.xyt.validate.markers.Update;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@ -50,6 +51,9 @@ public class SzRegulatoryFrameworkController extends AbstractCommonFileControlle
dto.setCreateTime(new Date());
dto.setId(IdWorker.getId());
if (CollectionUtils.isNotEmpty(dto.getFiles())){
dto.setUploadDate(new Date());
}
boolean result = service.save(dto);
@ -72,6 +76,9 @@ public class SzRegulatoryFrameworkController extends AbstractCommonFileControlle
throw new IllegalArgumentException("当前名称已存在");
}
if (CollectionUtils.isNotEmpty(dto.getFiles())){
dto.setUploadDate(new Date());
}
dto.setCreateBy(null);
dto.setCreateName(null);
dto.setUpdateTime(new Date());

View File

@ -81,6 +81,16 @@ public class SzRegulatoryFramework extends CommUpdate implements Serializable {
private Integer type;
/**
*
*/
@Schema(description="上传时间 格式:" + DateFormatString.YYYY_MM_DD_HH_MM_SS)
@TableField(value="upload_date")
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
private Date uploadDate;
// /**
// * 创建人Id
// */