Commit a04ee476 authored by hanbing's avatar hanbing

修改日期格式

parent 95b8300b
...@@ -19,6 +19,8 @@ import org.springframework.web.bind.annotation.RequestBody; ...@@ -19,6 +19,8 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/** /**
* 系统管理-厂商管理 * 系统管理-厂商管理
* *
...@@ -41,9 +43,15 @@ public class ManufacturerController { ...@@ -41,9 +43,15 @@ public class ManufacturerController {
@ApiResponse(code = 200, message = "OK", response = ManufacturerInfoPO.class), @ApiResponse(code = 200, message = "OK", response = ManufacturerInfoPO.class),
}) })
public JsonViewObject list(@RequestBody ManufacturerListDTO manufacturerListDTO) { public JsonViewObject list(@RequestBody ManufacturerListDTO manufacturerListDTO) {
Integer pageSize = manufacturerListDTO.getPageSize();
Integer pageNum = manufacturerListDTO.getPageNum();
if (pageSize == 0 && pageNum == 0) {
// 不分页
manufacturerListDTO.setPageNum(1);
manufacturerListDTO.setPageSize(9999);
}
PageInfo<ManufacturerInfoPO> manufacturerInfoPOPageInfo = manufacturerService.list(manufacturerListDTO); PageInfo<ManufacturerInfoPO> manufacturerInfoPOPageInfo = manufacturerService.list(manufacturerListDTO);
JsonViewObject jsonViewObject = JsonViewObject.newInstance(); JsonViewObject jsonViewObject = JsonViewObject.newInstance();
return jsonViewObject.success(manufacturerInfoPOPageInfo); return jsonViewObject.success(manufacturerInfoPOPageInfo);
} }
......
package net.wanji.utc.vo.systemadmin; package net.wanji.utc.vo.systemadmin;
import com.fasterxml.jackson.annotation.JsonFormat;
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;
...@@ -41,6 +42,7 @@ public class CrossInfoListVO { ...@@ -41,6 +42,7 @@ public class CrossInfoListVO {
private String model ; private String model ;
/** 安装时间 */ /** 安装时间 */
@ApiModelProperty(value = "安装时间",notes = "") @ApiModelProperty(value = "安装时间",notes = "")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
private Date installTime ; private Date installTime ;
/** 创建时间 */ /** 创建时间 */
@ApiModelProperty(value = "创建时间",notes = "") @ApiModelProperty(value = "创建时间",notes = "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment