瀏覽代碼

时间查询参数

buzhanyi 2 年之前
父節點
當前提交
c0500e337a

+ 1 - 1
purchase-system/src/main/java/com/ozs/plan/doman/vo/requestVo/ProvisionalPlanVo.java

@@ -16,7 +16,7 @@ import java.util.List;
 @Data
 public class ProvisionalPlanVo extends PageVo {
 
-    private Date startTime;
+    private Date beginTime;
     private Date endTime;
     /**
      * 上传附件

+ 1 - 0
purchase-system/src/main/java/com/ozs/plan/service/impl/PlanYearsServiceImpl.java

@@ -1353,6 +1353,7 @@ public class PlanYearsServiceImpl extends ServiceImpl<PlanYearsMapper, PlanYears
     }
 
     //字段赋值对应的名称
+    @Override
     public List<PlanYearsResponseVo> changeTo(List<PlanYears> planYears) {
         //获取年度计划提报时间的阈值
         List<SysDictData> supTime = dictTypeService.selectDictDataByType("sys_annual_plan");

+ 6 - 6
purchase-system/src/main/resources/mapper/plan/ProvisionalPlanMapper.xml

@@ -142,8 +142,8 @@
             <if test="projectStatus != null and projectStatus != ''">
                 and project_status = #{projectStatus}
             </if>
-            <if test="startTime != null  "><!-- 开始时间检索 -->
-                and date_format(plan_demand_sub_time,'%y%m%d') &gt;= date_format(#{startTime},'%y%m%d')
+            <if test="beginTime != null  "><!-- 开始时间检索 -->
+                and date_format(plan_demand_sub_time,'%y%m%d') &gt;= date_format(#{beginTime},'%y%m%d')
             </if>
             <if test="endTime != null  "><!-- 结束时间检索 -->
                 and date_format(plan_demand_sub_time,'%y%m%d') &lt;= date_format(#{endTime},'%y%m%d')
@@ -172,8 +172,8 @@
             <if test="projectStatus != null and projectStatus != ''">
                 and project_status = #{projectStatus}
             </if>
-            <if test="startTime != null  "><!-- 开始时间检索 -->
-                and date_format(plan_demand_sub_time,'%y%m%d') &gt;= date_format(#{startTime},'%y%m%d')
+            <if test="beginTime != null  "><!-- 开始时间检索 -->
+                and date_format(plan_demand_sub_time,'%y%m%d') &gt;= date_format(#{beginTime},'%y%m%d')
             </if>
             <if test="endTime != null  "><!-- 结束时间检索 -->
                 and date_format(plan_demand_sub_time,'%y%m%d') &lt;= date_format(#{endTime},'%y%m%d')
@@ -226,8 +226,8 @@
             <if test="projectStatus != null and projectStatus != ''">
                 AND p.project_status = #{projectStatus}
             </if>
-            <if test="startTime != null "><!-- 开始时间检索 -->
-                and date_format(p.plan_demand_sub_time,'%y%m%d') &gt;= date_format(#{startTime},'%y%m%d')
+            <if test="beginTime != null "><!-- 开始时间检索 -->
+                and date_format(p.plan_demand_sub_time,'%y%m%d') &gt;= date_format(#{beginTime},'%y%m%d')
             </if>
             <if test="endTime != null "><!-- 结束时间检索 -->
                 and date_format(p.plan_demand_sub_time,'%y%m%d') &lt;= date_format(#{endTime},'%y%m%d')