@ -31,11 +31,10 @@
<result property= "manualUpdateFlag" column= "manual_update_flag" />
<result property= "executionStatus" column= "execution_status" />
<result property= "startTime" column= "start_time" />
<result property= "finishTime" column= " finish _time"/>
<result property= "finishTime" column= " end _time"/>
<result property= "executionOperator" column= "execution_operator" />
<result property= "actualCompleteQty" column= "actual_complete_qty" />
<result property= "actualDefectQty" column= "actual_defect_qty" />
<result property= "deviceCode" column= "device_code" />
</resultMap>
<sql id= "selectBaseOrderInfoVo" >
@ -60,11 +59,10 @@
oi.manual_update_flag,
oi.execution_status,
oi.start_time,
oi.finish _time,
oi.end _time,
oi.execution_operator,
oi.actual_complete_qty,
oi.actual_defect_qty,
oi.device_code,
oi.created_by,
oi.created_time,
oi.updated_by,
@ -75,7 +73,9 @@
<select id= "selectBaseOrderInfoList" parameterType= "BaseOrderInfo" resultMap= "BaseOrderInfoResult" >
<include refid= "selectBaseOrderInfoVo" />
JOIN BASE_MATERIALINFO bm ON bm.MATERIAL_CODE = oi.material_code AND bm.DISPO IN ('100')
LEFT JOIN BASE_MATERIALINFO bm
ON bm.MATERIAL_CODE = oi.material_code
AND bm.DISPO IN ('100')
<where >
<if test= "orderCode != null and orderCode != ''" > and oi.order_code = #{orderCode}</if>
<if test= "saleOrderCode != null and saleOrderCode != ''" > and oi.saleorder_code = #{saleOrderCode}</if>
@ -94,7 +94,6 @@
<if test= "orderStatus != null and orderStatus != '' and orderStatus == 'RELCRTD'" > and (oi.order_status LIKE 'REL%' OR oi.order_status LIKE 'CRTD%')</if>
<if test= "manualUpdateFlag != null and manualUpdateFlag != ''" > and oi.manual_update_flag = #{manualUpdateFlag}</if>
<if test= "executionStatus != null and executionStatus != ''" > and oi.execution_status = #{executionStatus}</if>
<if test= "deviceCode != null and deviceCode != ''" > and oi.device_code = #{deviceCode}</if>
<if test= "beginDate != null " > and oi.begin_date = #{beginDate}</if>
<if test= "endDate != null " > and oi.end_date = #{endDate}</if>
<if test= "factoryCode != null and factoryCode != ''" > and oi.factory_code = #{factoryCode}</if>
@ -164,11 +163,10 @@
<if test= "manualUpdateFlag != null" > manual_update_flag,</if>
<if test= "executionStatus != null" > execution_status,</if>
<if test= "startTime != null" > start_time,</if>
<if test= "finishTime != null" > finish _time,</if>
<if test= "finishTime != null" > end _time,</if>
<if test= "executionOperator != null" > execution_operator,</if>
<if test= "actualCompleteQty != null" > actual_complete_qty,</if>
<if test= "actualDefectQty != null" > actual_defect_qty,</if>
<if test= "deviceCode != null" > device_code,</if>
</trim>
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<if test= "objId != null" > #{objId},</if>
@ -201,7 +199,6 @@
<if test= "executionOperator != null" > #{executionOperator},</if>
<if test= "actualCompleteQty != null" > #{actualCompleteQty},</if>
<if test= "actualDefectQty != null" > #{actualDefectQty},</if>
<if test= "deviceCode != null" > #{deviceCode},</if>
</trim>
</insert>
@ -233,11 +230,10 @@
<if test= "manualUpdateFlag != null" > manual_update_flag = #{manualUpdateFlag},</if>
<if test= "executionStatus != null" > execution_status = #{executionStatus},</if>
<if test= "startTime != null" > start_time = #{startTime},</if>
<if test= "finishTime != null" > finish _time = #{finishTime},</if>
<if test= "finishTime != null" > end _time = #{finishTime},</if>
<if test= "executionOperator != null" > execution_operator = #{executionOperator},</if>
<if test= "actualCompleteQty != null" > actual_complete_qty = #{actualCompleteQty},</if>
<if test= "actualDefectQty != null" > actual_defect_qty = #{actualDefectQty},</if>
<if test= "deviceCode != null" > device_code = #{deviceCode},</if>
</trim>
where obj_id = #{objId}
</update>