Commit 3eb37781 by zhouhb

[+]时间处理

1 parent 66470e02
package cn.com.glsx.merchants.response; package cn.com.glsx.merchants.response;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.oreframework.util.json.JsonDateFormat;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -118,6 +120,7 @@ public class MerchantRopResponse { ...@@ -118,6 +120,7 @@ public class MerchantRopResponse {
* 营业开始时间 * 营业开始时间
*/ */
@ApiModelProperty(name = "bussinessBegintime", notes = "营业开始时间", dataType = "Date", required = true, example = "1") @ApiModelProperty(name = "bussinessBegintime", notes = "营业开始时间", dataType = "Date", required = true, example = "1")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date bussinessBegintime; private Date bussinessBegintime;
/** /**
......
package cn.com.glsx.merchants.response; package cn.com.glsx.merchants.response;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -47,6 +48,7 @@ public class StaffResponse implements Serializable { ...@@ -47,6 +48,7 @@ public class StaffResponse implements Serializable {
* 创建时间 * 创建时间
*/ */
@ApiModelProperty(name = "createdTime", notes = "创建时间", dataType = "Date") @ApiModelProperty(name = "createdTime", notes = "创建时间", dataType = "Date")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdTime; private Date createdTime;
/** /**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!