提交 d1f049f9 authored 作者: liuhaiquan's avatar liuhaiquan

修改列表时间格式的问题

上级 db71a2d0
......@@ -4,8 +4,6 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
/**
* @ClassName CustomerComplaintTypeVO
* @Description
......@@ -23,8 +21,8 @@ public class CustomerComplaintTypeVO {
@ApiModelProperty("投诉类型名称")
private String name; //投诉类型名称
@ApiModelProperty("创建时间")
private LocalDateTime createTime; //创建时间
private String createTime; //创建时间
@ApiModelProperty("最后编辑时间")
private LocalDateTime modifiedTime; //修改时间
private String modifiedTime; //修改时间
}
package com.clx.performance.service.customer.impl;
import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clx.performance.dao.customer.CustomerComplaintTypeDao;
import com.clx.performance.enums.PerformanceResultEnum;
......@@ -53,7 +54,14 @@ public class CustomerComplaintTypeServiceImpl implements CustomerComplaintTypeSe
@Override
public Page<CustomerComplaintTypeVO> pageCustomerComplaintType(PageCustomerComplaintTypeParam param) {
Page<CustomerComplaintType> page = customerComplaintTypeDao.pageCustomerComplaintType(param);
return customerComplaintTypeStruct.convertPage(page);
Page<CustomerComplaintTypeVO> result = new Page<>();
if(CollectionUtil.isNotEmpty(page.getRecords())){
result.setRecords(customerComplaintTypeStruct.convertList(page.getRecords()));
result.setTotal(page.getTotal());
result.setPages(page.getPages());
}
return result;
}
@Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论