ky 5 years ago
parent 144fa74148
commit 08ed4cb42d

@ -7,10 +7,7 @@ import com.gszc.entity.Custom;
import com.gszc.entity.CustomSupport; import com.gszc.entity.CustomSupport;
import com.gszc.service.impl.CustomServiceImpl; import com.gszc.service.impl.CustomServiceImpl;
import com.gszc.service.impl.PcUserServiceImpl; import com.gszc.service.impl.PcUserServiceImpl;
import io.swagger.annotations.Api; import io.swagger.annotations.*;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -66,6 +63,9 @@ public class PcCustomV2Controller {
@PostMapping("/updateCustom") @PostMapping("/updateCustom")
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header") @ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
// @ApiImplicitParams({
// @ApiImplicitParam(name = "custom", value = "公司实体custom", required = true, dataType = "Custom")
// })
@ApiOperation(value = "公司编辑", notes = "公司编辑") @ApiOperation(value = "公司编辑", notes = "公司编辑")
@ResponseBody @ResponseBody
public Result updateCustom(@ModelAttribute @Valid Custom custom) { public Result updateCustom(@ModelAttribute @Valid Custom custom) {

@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
@ -111,6 +112,7 @@ logout 已注销
@ApiModelProperty(value = "营业执照") @ApiModelProperty(value = "营业执照")
private String businessLicense; private String businessLicense;
@DateTimeFormat(pattern = "yyyy-MMg-dd HH:mm:ss")
private Date serviceBeginDate; private Date serviceBeginDate;
/** /**
@ -120,6 +122,7 @@ red yellow blue purple
@ApiModelProperty(value = "批注的图标 red yellow blue purple") @ApiModelProperty(value = "批注的图标 red yellow blue purple")
private String notice; private String notice;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date serviceEndDate; private Date serviceEndDate;
/** /**
@ -137,5 +140,6 @@ red yellow blue purple
@ApiModelProperty(value = "园区") @ApiModelProperty(value = "园区")
private String park; private String park;
@ApiModelProperty(value = "成立日期") @ApiModelProperty(value = "成立日期")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date buildDate; private Date buildDate;
} }

Loading…
Cancel
Save