diff --git a/src/main/java/com/kwan/springbootkwan/controller/AdsDimFinancialYearWeekInfoController.java b/src/main/java/com/kwan/springbootkwan/controller/AdsDimFinancialYearWeekInfoController.java index 355c8a78f2367122e0c5d3fe4ebd37c56392e7b7..f680dd5f6799f02ba6b2fb5782eae32eb5e94ad5 100644 --- a/src/main/java/com/kwan/springbootkwan/controller/AdsDimFinancialYearWeekInfoController.java +++ b/src/main/java/com/kwan/springbootkwan/controller/AdsDimFinancialYearWeekInfoController.java @@ -32,8 +32,8 @@ public class AdsDimFinancialYearWeekInfoController { @GetMapping("/{financialYear}/{financialYearWeek}") public List selectOne(@PathVariable Integer financialYear, @PathVariable Integer financialYearWeek) { return this.adsDimFinancialYearWeekInfoService.list(new QueryWrapper() - .ne("financial_year", financialYear) - .ne("financial_year_week", financialYearWeek) + .eq("financial_year", financialYear) + .eq("financial_year_week", financialYearWeek) ); } } \ No newline at end of file diff --git a/src/main/java/com/kwan/springbootkwan/entity/AdsDimFinancialYearWeekInfo.java b/src/main/java/com/kwan/springbootkwan/entity/AdsDimFinancialYearWeekInfo.java index a7d0be22f18efdb83ac97eb85b2ba192a0f63698..e5f507428b85ec82116278036405f2d1b19af917 100644 --- a/src/main/java/com/kwan/springbootkwan/entity/AdsDimFinancialYearWeekInfo.java +++ b/src/main/java/com/kwan/springbootkwan/entity/AdsDimFinancialYearWeekInfo.java @@ -3,6 +3,7 @@ package com.kwan.springbootkwan.entity; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.extension.activerecord.Model; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import lombok.Builder; import lombok.Data; @@ -19,12 +20,16 @@ public class AdsDimFinancialYearWeekInfo extends Model