提交 ee4bd7b4 编写于 作者: Q qinyingjie

fix:时间格式化

上级 4f94774e
...@@ -32,8 +32,8 @@ public class AdsDimFinancialYearWeekInfoController { ...@@ -32,8 +32,8 @@ public class AdsDimFinancialYearWeekInfoController {
@GetMapping("/{financialYear}/{financialYearWeek}") @GetMapping("/{financialYear}/{financialYearWeek}")
public List<AdsDimFinancialYearWeekInfo> selectOne(@PathVariable Integer financialYear, @PathVariable Integer financialYearWeek) { public List<AdsDimFinancialYearWeekInfo> selectOne(@PathVariable Integer financialYear, @PathVariable Integer financialYearWeek) {
return this.adsDimFinancialYearWeekInfoService.list(new QueryWrapper<AdsDimFinancialYearWeekInfo>() return this.adsDimFinancialYearWeekInfoService.list(new QueryWrapper<AdsDimFinancialYearWeekInfo>()
.ne("financial_year", financialYear) .eq("financial_year", financialYear)
.ne("financial_year_week", financialYearWeek) .eq("financial_year_week", financialYearWeek)
); );
} }
} }
\ No newline at end of file
...@@ -3,6 +3,7 @@ package com.kwan.springbootkwan.entity; ...@@ -3,6 +3,7 @@ package com.kwan.springbootkwan.entity;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model; import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
...@@ -19,12 +20,16 @@ public class AdsDimFinancialYearWeekInfo extends Model<AdsDimFinancialYearWeekIn ...@@ -19,12 +20,16 @@ public class AdsDimFinancialYearWeekInfo extends Model<AdsDimFinancialYearWeekIn
//第n财年周 //第n财年周
private Integer financialYearWeek; private Integer financialYearWeek;
//财年开始日期 //财年开始日期
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date financialYearStart; private Date financialYearStart;
//财年结束日期 //财年结束日期
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date financialYearEnd; private Date financialYearEnd;
//周开始 //周开始
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date weekStartDay; private Date weekStartDay;
//周结束 //周结束
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date weekEndDay; private Date weekEndDay;
//财年周所在季节区间,0:跨9月1号,1:3月到8月,2:9月到2月 //财年周所在季节区间,0:跨9月1号,1:3月到8月,2:9月到2月
private Integer weekInSeason; private Integer weekInSeason;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册