|
@@ -67,10 +67,10 @@
|
|
<if test="projectStatus != null and projectStatus != ''">
|
|
<if test="projectStatus != null and projectStatus != ''">
|
|
AND project_status = #{projectStatus}
|
|
AND project_status = #{projectStatus}
|
|
</if>
|
|
</if>
|
|
- <if test="params.beginTime != null "><!-- 开始时间检索 -->
|
|
|
|
|
|
+ <if test="params!= null and params.beginTime!= null "><!-- 开始时间检索 -->
|
|
and date_format(p.plan_demand_sub_time,'%y%m') >= date_format(#{params.beginTime},'%y%m')
|
|
and date_format(p.plan_demand_sub_time,'%y%m') >= date_format(#{params.beginTime},'%y%m')
|
|
</if>
|
|
</if>
|
|
- <if test="params.endTime != null "><!-- 结束时间检索 -->
|
|
|
|
|
|
+ <if test="params!= null and params.endTime!= null "><!-- 结束时间检索 -->
|
|
and date_format(p.plan_demand_sub_time,'%y%m') <= date_format(#{params.endTime},'%y%m')
|
|
and date_format(p.plan_demand_sub_time,'%y%m') <= date_format(#{params.endTime},'%y%m')
|
|
</if>
|
|
</if>
|
|
and plan_type=0
|
|
and plan_type=0
|
|
@@ -98,10 +98,10 @@
|
|
<if test="projectStatus != null and projectStatus != ''">
|
|
<if test="projectStatus != null and projectStatus != ''">
|
|
AND project_status = #{projectStatus}
|
|
AND project_status = #{projectStatus}
|
|
</if>
|
|
</if>
|
|
- <if test="params.beginTime != null "><!-- 开始时间检索 -->
|
|
|
|
|
|
+ <if test="params!= null and params.beginTime!= null "><!-- 开始时间检索 -->
|
|
and date_format(plan_demand_sub_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
and date_format(plan_demand_sub_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
</if>
|
|
</if>
|
|
- <if test="params.endTime != null "><!-- 结束时间检索 -->
|
|
|
|
|
|
+ <if test="params!= null and params.endTime!= null "><!-- 结束时间检索 -->
|
|
and date_format(plan_demand_sub_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
and date_format(plan_demand_sub_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
</if>
|
|
</if>
|
|
and plan_type=0
|
|
and plan_type=0
|
|
@@ -160,10 +160,10 @@
|
|
<if test="projectStatus != null and projectStatus != ''">
|
|
<if test="projectStatus != null and projectStatus != ''">
|
|
AND p.project_status = #{projectStatus}
|
|
AND p.project_status = #{projectStatus}
|
|
</if>
|
|
</if>
|
|
- <if test="params.beginTime != null "><!-- 开始时间检索 -->
|
|
|
|
|
|
+ <if test="params!= null and params.beginTime!= null "><!-- 开始时间检索 -->
|
|
and date_format(p.plan_demand_sub_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
and date_format(p.plan_demand_sub_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
</if>
|
|
</if>
|
|
- <if test="params.endTime != null "><!-- 结束时间检索 -->
|
|
|
|
|
|
+ <if test="params!= null and params.endTime!= null "><!-- 结束时间检索 -->
|
|
and date_format(p.plan_demand_sub_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
and date_format(p.plan_demand_sub_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
</if>
|
|
</if>
|
|
and p.del_flay=0
|
|
and p.del_flay=0
|