From 08ed4cb42d11c8e853a44560e17319f9c6219090 Mon Sep 17 00:00:00 2001 From: ky <592468495@qq.com> Date: Fri, 29 May 2020 11:42:44 +0800 Subject: [PATCH] p --- .../java/com/gszc/controller/PcCustomV2Controller.java | 8 ++++---- src/main/java/com/gszc/entity/Custom.java | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gszc/controller/PcCustomV2Controller.java b/src/main/java/com/gszc/controller/PcCustomV2Controller.java index a9a23f5..10a68d4 100644 --- a/src/main/java/com/gszc/controller/PcCustomV2Controller.java +++ b/src/main/java/com/gszc/controller/PcCustomV2Controller.java @@ -7,10 +7,7 @@ import com.gszc.entity.Custom; import com.gszc.entity.CustomSupport; import com.gszc.service.impl.CustomServiceImpl; import com.gszc.service.impl.PcUserServiceImpl; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import io.swagger.annotations.ApiParam; +import io.swagger.annotations.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -66,6 +63,9 @@ public class PcCustomV2Controller { @PostMapping("/updateCustom") @ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header") +// @ApiImplicitParams({ +// @ApiImplicitParam(name = "custom", value = "公司实体custom", required = true, dataType = "Custom") +// }) @ApiOperation(value = "公司编辑", notes = "公司编辑") @ResponseBody public Result updateCustom(@ModelAttribute @Valid Custom custom) { diff --git a/src/main/java/com/gszc/entity/Custom.java b/src/main/java/com/gszc/entity/Custom.java index 48004a6..c67d3ed 100644 --- a/src/main/java/com/gszc/entity/Custom.java +++ b/src/main/java/com/gszc/entity/Custom.java @@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.util.Date; @@ -111,6 +112,7 @@ logout 已注销 @ApiModelProperty(value = "营业执照") private String businessLicense; + @DateTimeFormat(pattern = "yyyy-MMg-dd HH:mm:ss") private Date serviceBeginDate; /** @@ -120,6 +122,7 @@ red yellow blue purple @ApiModelProperty(value = "批注的图标 red yellow blue purple") private String notice; + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date serviceEndDate; /** @@ -137,5 +140,6 @@ red yellow blue purple @ApiModelProperty(value = "园区") private String park; @ApiModelProperty(value = "成立日期") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date buildDate; }