|
|
|
|
@ -96,6 +96,9 @@
|
|
|
|
|
<if test="executionStatus != null and executionStatus != ''">and oi.execution_status = #{executionStatus}</if>
|
|
|
|
|
<if test="beginDate != null ">and oi.begin_date = #{beginDate}</if>
|
|
|
|
|
<if test="endDate != null ">and oi.end_date = #{endDate}</if>
|
|
|
|
|
<if test="beginTime != null and endTime != null">
|
|
|
|
|
and oi.begin_date between to_date(#{beginTime}, 'yyyy-mm-dd') and to_date(#{endTime}, 'yyyy-mm-dd')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="factoryCode != null and factoryCode != ''">and oi.factory_code = #{factoryCode}</if>
|
|
|
|
|
<if test="isFlag != null ">and is_flag = #{isFlag}</if>
|
|
|
|
|
<if test="createdBy != null and createdBy != ''">and oi.created_by = #{createdBy}</if>
|
|
|
|
|
@ -105,6 +108,9 @@
|
|
|
|
|
<if test="completeDate != null ">and oi.complete_date = #{completeDate}</if>
|
|
|
|
|
<if test="isRelease != null ">and oi.is_release = #{isRelease}</if>
|
|
|
|
|
<if test="workCenterCode != null ">and oi.work_center_code = #{workCenterCode}</if>
|
|
|
|
|
<if test="params != null and params.beginTime != null and params.endTime != null">
|
|
|
|
|
and oi.begin_date between to_date(#{params.beginTime}, 'yyyy-mm-dd') and to_date(#{params.endTime}, 'yyyy-mm-dd')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="params.beginEndTime != null and params.beginEndTime != '' and params.endEndTime != null and params.endEndTime != ''">
|
|
|
|
|
and oi.begin_date between to_date(#{params.beginEndTime}, 'yyyy-mm-dd') and
|
|
|
|
|
to_date(#{params.endEndTime}, 'yyyy-mm-dd')
|
|
|
|
|
|