@ -4,76 +4,76 @@
<!-- 通用查询映射结果 -->
<resultMap id= "BaseResultMap" type= "com.foreverwin.mesnac.dispatch.model.SfcDispatch" >
<id column= "HANDLE" property= "handle" />
<result column= "SITE" property= "site" />
<result column= "SHOP_ORDER" property= "shopOrder" />
<result column= "SFC" property= "sfc" />
<result column= "BLANKING_SIZE" property= "blankingSize" />
<result column= "DISPATCH_SEQ" property= "dispatchSeq" />
<result column= "DISPATCH_NO" property= "dispatchNo" />
<result column= "DISPATCH_STATUS" property= "dispatchStatus" />
<result column= "DRAWINGS_NO" property= "drawingsNo" />
<result column= "DRAWINGS_REVISION" property= "drawingsRevision" />
<result column= "IS_LOCK" property= "isLock" />
<result column= "ROUTER_BO" property= "routerBo" />
<result column= "STEP_ID" property= "stepId" />
<result column= "OPERATION" property= "operation" />
<result column= "RESOURCE_TYPE" property= "resourceType" />
<result column= "WORK_CENTER" property= "workCenter" />
<result column= "RESRCE" property= "resrce" />
<result column= "EMPLOYEE" property= "employee" />
<result column= "EMPLOYEE_DESCRIPTION" property= "employeeDescription" />
<result column= "TURN_OPERATION" property= "turnOperation" />
<result column= "DISPATCH_QTY" property= "dispatchQty" />
<result column= "PROD_HOURS" property= "prodHours" />
<result column= "PLANNED_START_DATE" property= "plannedStartDate" />
<result column= "PLANNED_COMP_DATE" property= "plannedCompDate" />
<result column= "EARLIEST_START_DATE" property= "earliestStartDate" />
<result column= "LATEST_END_DATE" property= "latestEndDate" />
<result column= "SO_RELEASED_DATE" property= "soReleasedDate" />
<result column= "SFC_RELEASED_DATE" property= "sfcReleasedDate" />
<result column= "RELEASED_COMPLETE_DATE" property= "releasedCompleteDate" />
<result column= "ACTUAL_START_DATE" property= "actualStartDate" />
<result column= "ACTUAL_COMPLETE_DATE" property= "actualCompleteDate" />
<result column= "IS_UPDATE_ZJH_COMPLETE" property= "isUpdateZJHComplete" />
<result column= "IS_DISPATCH" property= "isDispatch" />
<result column= "IS_IMPORT" property= "isImport" />
<result column= "REMARK" property= "remark" />
<result column= "PREPOSITION_STEP_ID" property= "prepositionStepId" />
<result column= "PREPOSITION_OPERATION" property= "prepositionOperation" />
<result column= "IS_FIRST_OPERATION" property= "isFirstOperation" />
<result column= "CREATE_USER" property= "createUser" />
<result column= "CREATED_DATE_TIME" property= "createdDateTime" />
<result column= "MODIFY_USER" property= "modifyUser" />
<result column= "MODIFIED_DATE_TIME" property= "modifiedDateTime" />
<result column= "OTHER_1" property= "other1" />
<result column= "OTHER_2" property= "other2" />
<result column= "OTHER_3" property= "other3" />
<result column= "OTHER_4" property= "other4" />
<result column= "OTHER_5" property= "other5" />
<id column= "HANDLE" property= "handle" />
<result column= "SITE" property= "site" />
<result column= "SHOP_ORDER" property= "shopOrder" />
<result column= "SFC" property= "sfc" />
<result column= "BLANKING_SIZE" property= "blankingSize" />
<result column= "DISPATCH_SEQ" property= "dispatchSeq" />
<result column= "DISPATCH_NO" property= "dispatchNo" />
<result column= "DISPATCH_STATUS" property= "dispatchStatus" />
<result column= "DRAWINGS_NO" property= "drawingsNo" />
<result column= "DRAWINGS_REVISION" property= "drawingsRevision" />
<result column= "IS_LOCK" property= "isLock" />
<result column= "ROUTER_BO" property= "routerBo" />
<result column= "STEP_ID" property= "stepId" />
<result column= "OPERATION" property= "operation" />
<result column= "RESOURCE_TYPE" property= "resourceType" />
<result column= "WORK_CENTER" property= "workCenter" />
<result column= "RESRCE" property= "resrce" />
<result column= "EMPLOYEE" property= "employee" />
<result column= "EMPLOYEE_DESCRIPTION" property= "employeeDescription" />
<result column= "TURN_OPERATION" property= "turnOperation" />
<result column= "DISPATCH_QTY" property= "dispatchQty" />
<result column= "PROD_HOURS" property= "prodHours" />
<result column= "PLANNED_START_DATE" property= "plannedStartDate" />
<result column= "PLANNED_COMP_DATE" property= "plannedCompDate" />
<result column= "EARLIEST_START_DATE" property= "earliestStartDate" />
<result column= "LATEST_END_DATE" property= "latestEndDate" />
<result column= "SO_RELEASED_DATE" property= "soReleasedDate" />
<result column= "SFC_RELEASED_DATE" property= "sfcReleasedDate" />
<result column= "RELEASED_COMPLETE_DATE" property= "releasedCompleteDate" />
<result column= "ACTUAL_START_DATE" property= "actualStartDate" />
<result column= "ACTUAL_COMPLETE_DATE" property= "actualCompleteDate" />
<result column= "IS_UPDATE_ZJH_COMPLETE" property= "isUpdateZJHComplete" />
<result column= "IS_DISPATCH" property= "isDispatch" />
<result column= "IS_IMPORT" property= "isImport" />
<result column= "REMARK" property= "remark" />
<result column= "PREPOSITION_STEP_ID" property= "prepositionStepId" />
<result column= "PREPOSITION_OPERATION" property= "prepositionOperation" />
<result column= "IS_FIRST_OPERATION" property= "isFirstOperation" />
<result column= "CREATE_USER" property= "createUser" />
<result column= "CREATED_DATE_TIME" property= "createdDateTime" />
<result column= "MODIFY_USER" property= "modifyUser" />
<result column= "MODIFIED_DATE_TIME" property= "modifiedDateTime" />
<result column= "OTHER_1" property= "other1" />
<result column= "OTHER_2" property= "other2" />
<result column= "OTHER_3" property= "other3" />
<result column= "OTHER_4" property= "other4" />
<result column= "OTHER_5" property= "other5" />
</resultMap>
<resultMap id= "FullResultMap" type= "com.foreverwin.mesnac.common.dto.SfcDispatchDto" >
<result column= "USER" property= "user" />
<result column= "ROLE" property= "role" />
<result column= "IS_COMPLETED" property= "isCompleted" />
<result column= "ITEM_BO" property= "itemBo" />
<result column= "ITEM" property= "item" />
<result column= "STATUS_NAME" property= "statusName" />
<result column= "IS_MAJOR" property= "isMajor" />
<result column= "COMMENTS" property= "comments" />
<result column= "WORK_ORDER" property= "workOrder" />
<result column= "SHOP_ORDER_TYPE" property= "shopOrderType" />
<result column= "ITEM_DESCRIPTION" property= "itemDescription" />
<result column= "COMPONENT" property= "component" />
<result column= "COMPONENT_DESCRIPTION" property= "componentDescription" />
<result column= "TEXTURE" property= "texture" />
<result column= "MAT_SPEC" property= "matSpec" />
<result column= "COMPLETED_QTY" property= "completedQty" />
<result column= "RESOURCE_DESCRIPTION" property= "resourceDescription" />
<result column= "COMPONENT_DESCRIPTION" property= "componentDescription" />
<result column= "OPERATION_DESCRIPTION" property= "operationDescription" />
<result column= "RESOURCE_WORK_CENTER" property= "resourceWorkCenter" />
<result column= "USER" property= "user" />
<result column= "ROLE" property= "role" />
<result column= "IS_COMPLETED" property= "isCompleted" />
<result column= "ITEM_BO" property= "itemBo" />
<result column= "ITEM" property= "item" />
<result column= "STATUS_NAME" property= "statusName" />
<result column= "IS_MAJOR" property= "isMajor" />
<result column= "COMMENTS" property= "comments" />
<result column= "WORK_ORDER" property= "workOrder" />
<result column= "SHOP_ORDER_TYPE" property= "shopOrderType" />
<result column= "ITEM_DESCRIPTION" property= "itemDescription" />
<result column= "COMPONENT" property= "component" />
<result column= "COMPONENT_DESCRIPTION" property= "componentDescription" />
<result column= "TEXTURE" property= "texture" />
<result column= "MAT_SPEC" property= "matSpec" />
<result column= "COMPLETED_QTY" property= "completedQty" />
<result column= "RESOURCE_DESCRIPTION" property= "resourceDescription" />
<result column= "COMPONENT_DESCRIPTION" property= "componentDescription" />
<result column= "OPERATION_DESCRIPTION" property= "operationDescription" />
<result column= "RESOURCE_WORK_CENTER" property= "resourceWorkCenter" />
</resultMap>
@ -88,50 +88,69 @@
</select>
<select id= "selectList" resultMap= "BaseResultMap" >
SELECT <choose > <when test= "ew != null and ew.sqlSelect != null" > ${ew.sqlSelect}</when> <otherwise > <include refid= "Base_Column_List" > </include> </otherwise> </choose> FROM Z_SFC_DISPATCH
SELECT
<choose >
<when test= "ew != null and ew.sqlSelect != null" > ${ew.sqlSelect}</when>
<otherwise >
<include refid= "Base_Column_List" > </include>
</otherwise>
</choose>
FROM Z_SFC_DISPATCH
<where >
<if test= "ew!=null" >
<if test= "ew.entity!=null" >
<if test= "ew.entity.handle!=null" >
HANDLE=#{ew.entity.handle}
</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.shopOrder!=null" > AND SHOP_ORDER=#{ew.entity.shopOrder}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
<if test= "ew.entity.blankingSize!=null" > AND BLANKING_SIZE=#{ew.entity.blankingSize}</if>
<if test= "ew.entity.dispatchSeq!=null" > AND DISPATCH_SEQ=#{ew.entity.dispatchSeq}</if>
<if test= "ew.entity.dispatchNo!=null" > AND DISPATCH_NO=#{ew.entity.dispatchNo}</if>
<if test= "ew.entity.dispatchStatus!=null" > AND DISPATCH_STATUS=#{ew.entity.dispatchStatus}</if>
<if test= "ew.entity.drawingsNo!=null" > AND DRAWINGS_NO=#{ew.entity.drawingsNo}</if>
<if test= "ew.entity.drawingsRevision!=null" > AND DRAWINGS_REVISION=#{ew.entity.drawingsRevision}</if>
<if test= "ew.entity.isLock!=null" > AND IS_LOCK=#{ew.entity.isLock}</if>
<if test= "ew.entity.routerBo!=null" > AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
<if test= "ew.entity.operation!=null" > AND OPERATION=#{ew.entity.operation}</if>
<if test= "ew.entity.resourceType!=null" > AND RESOURCE_TYPE=#{ew.entity.resourceType}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.resrce!=null" > AND RESRCE=#{ew.entity.resrce}</if>
<if test= "ew.entity.employee!=null" > AND EMPLOYEE=#{ew.entity.employee}</if>
<if test= "ew.entity.turnOperation!=null" > AND TURN_OPERATION=#{ew.entity.turnOperation}</if>
<if test= "ew.entity.dispatchQty!=null" > AND DISPATCH_QTY=#{ew.entity.dispatchQty}</if>
<if test= "ew.entity.prodHours!=null" > AND PROD_HOURS=#{ew.entity.prodHours}</if>
<if test= "ew.entity.plannedStartDate!=null" > AND PLANNED_START_DATE=#{ew.entity.plannedStartDate}</if>
<if test= "ew.entity.plannedCompDate!=null" > AND PLANNED_COMP_DATE=#{ew.entity.plannedCompDate}</if>
<if test= "ew.entity.earliestStartDate!=null" > AND EARLIEST_START_DATE=#{ew.entity.earliestStartDate}</if>
<if test= "ew.entity.latestEndDate!=null" > AND LATEST_END_DATE=#{ew.entity.latestEndDate}</if>
<if test= "ew.entity.soReleasedDate!=null" > AND SO_RELEASED_DATE=#{ew.entity.soReleasedDate}</if>
<if test= "ew.entity.sfcReleasedDate!=null" > AND SFC_RELEASED_DATE=#{ew.entity.sfcReleasedDate}</if>
<if test= "ew.entity.releasedCompleteDate!=null" > AND RELEASED_COMPLETE_DATE=#{ew.entity.releasedCompleteDate}</if>
<if test= "ew.entity.actualStartDate!=null" > AND ACTUAL_START_DATE=#{ew.entity.actualStartDate}</if>
<if test= "ew.entity.actualCompleteDate!=null" > AND ACTUAL_COMPLETE_DATE=#{ew.entity.actualCompleteDate}</if>
<if test= "ew.entity.isDispatch!=null" > AND IS_DISPATCH=#{ew.entity.isDispatch}</if>
<if test= "ew.entity.isImport!=null" > AND IS_IMPORT=#{ew.entity.isImport}</if>
<if test= "ew.entity.remark!=null" > AND REMARK=#{ew.entity.remark}</if>
<if test= "ew.entity.prepositionStepId!=null" > AND PREPOSITION_STEP_ID=#{ew.entity.prepositionStepId}</if>
<if test= "ew.entity.prepositionOperation!=null" > AND PREPOSITION_OPERATION=#{ew.entity.prepositionOperation}</if>
<if test= "ew.entity.isFirstOperation!=null" > AND IS_FIRST_OPERATION=#{ew.entity.isFirstOperation}</if>
<if test= "ew.entity.createUser!=null" > AND CREATE_USER=#{ew.entity.createUser}</if>
<if test= "ew.entity.createdDateTime!=null" > AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.shopOrder!=null" > AND SHOP_ORDER=#{ew.entity.shopOrder}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
<if test= "ew.entity.blankingSize!=null" > AND BLANKING_SIZE=#{ew.entity.blankingSize}</if>
<if test= "ew.entity.dispatchSeq!=null" > AND DISPATCH_SEQ=#{ew.entity.dispatchSeq}</if>
<if test= "ew.entity.dispatchNo!=null" > AND DISPATCH_NO=#{ew.entity.dispatchNo}</if>
<if test= "ew.entity.dispatchStatus!=null" > AND DISPATCH_STATUS=#{ew.entity.dispatchStatus}</if>
<if test= "ew.entity.drawingsNo!=null" > AND DRAWINGS_NO=#{ew.entity.drawingsNo}</if>
<if test= "ew.entity.drawingsRevision!=null" > AND DRAWINGS_REVISION=#{ew.entity.drawingsRevision}</if>
<if test= "ew.entity.isLock!=null" > AND IS_LOCK=#{ew.entity.isLock}</if>
<if test= "ew.entity.routerBo!=null" > AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
<if test= "ew.entity.operation!=null" > AND OPERATION=#{ew.entity.operation}</if>
<if test= "ew.entity.resourceType!=null" > AND RESOURCE_TYPE=#{ew.entity.resourceType}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.resrce!=null" > AND RESRCE=#{ew.entity.resrce}</if>
<if test= "ew.entity.employee!=null" > AND EMPLOYEE=#{ew.entity.employee}</if>
<if test= "ew.entity.turnOperation!=null" > AND TURN_OPERATION=#{ew.entity.turnOperation}</if>
<if test= "ew.entity.dispatchQty!=null" > AND DISPATCH_QTY=#{ew.entity.dispatchQty}</if>
<if test= "ew.entity.prodHours!=null" > AND PROD_HOURS=#{ew.entity.prodHours}</if>
<if test= "ew.entity.plannedStartDate!=null" > AND PLANNED_START_DATE=#{ew.entity.plannedStartDate}
</if>
<if test= "ew.entity.plannedCompDate!=null" > AND PLANNED_COMP_DATE=#{ew.entity.plannedCompDate}</if>
<if test= "ew.entity.earliestStartDate!=null" > AND
EARLIEST_START_DATE=#{ew.entity.earliestStartDate}
</if>
<if test= "ew.entity.latestEndDate!=null" > AND LATEST_END_DATE=#{ew.entity.latestEndDate}</if>
<if test= "ew.entity.soReleasedDate!=null" > AND SO_RELEASED_DATE=#{ew.entity.soReleasedDate}</if>
<if test= "ew.entity.sfcReleasedDate!=null" > AND SFC_RELEASED_DATE=#{ew.entity.sfcReleasedDate}</if>
<if test= "ew.entity.releasedCompleteDate!=null" > AND
RELEASED_COMPLETE_DATE=#{ew.entity.releasedCompleteDate}
</if>
<if test= "ew.entity.actualStartDate!=null" > AND ACTUAL_START_DATE=#{ew.entity.actualStartDate}</if>
<if test= "ew.entity.actualCompleteDate!=null" > AND
ACTUAL_COMPLETE_DATE=#{ew.entity.actualCompleteDate}
</if>
<if test= "ew.entity.isDispatch!=null" > AND IS_DISPATCH=#{ew.entity.isDispatch}</if>
<if test= "ew.entity.isImport!=null" > AND IS_IMPORT=#{ew.entity.isImport}</if>
<if test= "ew.entity.remark!=null" > AND REMARK=#{ew.entity.remark}</if>
<if test= "ew.entity.prepositionStepId!=null" > AND
PREPOSITION_STEP_ID=#{ew.entity.prepositionStepId}
</if>
<if test= "ew.entity.prepositionOperation!=null" > AND
PREPOSITION_OPERATION=#{ew.entity.prepositionOperation}
</if>
<if test= "ew.entity.isFirstOperation!=null" > AND IS_FIRST_OPERATION=#{ew.entity.isFirstOperation}
</if>
<if test= "ew.entity.createUser!=null" > AND CREATE_USER=#{ew.entity.createUser}</if>
<if test= "ew.entity.createdDateTime!=null" > AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
AND ${ew.sqlSegment}
@ -144,57 +163,77 @@
</select>
<select id= "selectPage" resultMap= "BaseResultMap" >
SELECT <choose > <when test= "ew != null and ew.sqlSelect != null" > ${ew.sqlSelect}</when> <otherwise > <include refid= "Base_Column_List" > </include> </otherwise> </choose> FROM Z_SFC_DISPATCH
SELECT
<choose >
<when test= "ew != null and ew.sqlSelect != null" > ${ew.sqlSelect}</when>
<otherwise >
<include refid= "Base_Column_List" > </include>
</otherwise>
</choose>
FROM Z_SFC_DISPATCH
<where >
<if test= "ew!=null" >
<if test= "ew.entity!=null" >
<if test= "ew.entity.handle!=null" >
HANDLE=#{ew.entity.handle}
</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.shopOrder!=null" > AND SHOP_ORDER=#{ew.entity.shopOrder}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
<if test= "ew.entity.blankingSize!=null" > AND BLANKING_SIZE=#{ew.entity.blankingSize}</if>
<if test= "ew.entity.dispatchSeq!=null" > AND DISPATCH_SEQ=#{ew.entity.dispatchSeq}</if>
<if test= "ew.entity.dispatchNo!=null" > AND DISPATCH_NO=#{ew.entity.dispatchNo}</if>
<if test= "ew.entity.dispatchStatus!=null" > AND DISPATCH_STATUS=#{ew.entity.dispatchStatus}</if>
<if test= "ew.entity.drawingsNo!=null" > AND DRAWINGS_NO=#{ew.entity.drawingsNo}</if>
<if test= "ew.entity.drawingsRevision!=null" > AND DRAWINGS_REVISION=#{ew.entity.drawingsRevision}</if>
<if test= "ew.entity.isLock!=null" > AND IS_LOCK=#{ew.entity.isLock}</if>
<if test= "ew.entity.routerBo!=null" > AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
<if test= "ew.entity.operation!=null" > AND OPERATION=#{ew.entity.operation}</if>
<if test= "ew.entity.resourceType!=null" > AND RESOURCE_TYPE=#{ew.entity.resourceType}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.resrce!=null" > AND RESRCE=#{ew.entity.resrce}</if>
<if test= "ew.entity.employee!=null" > AND EMPLOYEE=#{ew.entity.employee}</if>
<if test= "ew.entity.turnOperation!=null" > AND TURN_OPERATION=#{ew.entity.turnOperation}</if>
<if test= "ew.entity.dispatchQty!=null" > AND DISPATCH_QTY=#{ew.entity.dispatchQty}</if>
<if test= "ew.entity.prodHours!=null" > AND PROD_HOURS=#{ew.entity.prodHours}</if>
<if test= "ew.entity.plannedStartDate!=null" > AND PLANNED_START_DATE=#{ew.entity.plannedStartDate}</if>
<if test= "ew.entity.plannedCompDate!=null" > AND PLANNED_COMP_DATE=#{ew.entity.plannedCompDate}</if>
<if test= "ew.entity.earliestStartDate!=null" > AND EARLIEST_START_DATE=#{ew.entity.earliestStartDate}</if>
<if test= "ew.entity.latestEndDate!=null" > AND LATEST_END_DATE=#{ew.entity.latestEndDate}</if>
<if test= "ew.entity.soReleasedDate!=null" > AND SO_RELEASED_DATE=#{ew.entity.soReleasedDate}</if>
<if test= "ew.entity.sfcReleasedDate!=null" > AND SFC_RELEASED_DATE=#{ew.entity.sfcReleasedDate}</if>
<if test= "ew.entity.releasedCompleteDate!=null" > AND RELEASED_COMPLETE_DATE=#{ew.entity.releasedCompleteDate}</if>
<if test= "ew.entity.actualStartDate!=null" > AND ACTUAL_START_DATE=#{ew.entity.actualStartDate}</if>
<if test= "ew.entity.actualCompleteDate!=null" > AND ACTUAL_COMPLETE_DATE=#{ew.entity.actualCompleteDate}</if>
<if test= "ew.entity.isDispatch!=null" > AND IS_DISPATCH=#{ew.entity.isDispatch}</if>
<if test= "ew.entity.isImport!=null" > AND IS_IMPORT=#{ew.entity.isImport}</if>
<if test= "ew.entity.remark!=null" > AND REMARK=#{ew.entity.remark}</if>
<if test= "ew.entity.prepositionStepId!=null" > AND PREPOSITION_STEP_ID=#{ew.entity.prepositionStepId}</if>
<if test= "ew.entity.prepositionOperation!=null" > AND PREPOSITION_OPERATION=#{ew.entity.prepositionOperation}</if>
<if test= "ew.entity.isFirstOperation!=null" > AND IS_FIRST_OPERATION=#{ew.entity.isFirstOperation}</if>
<if test= "ew.entity.createUser!=null" > AND CREATE_USER=#{ew.entity.createUser}</if>
<if test= "ew.entity.createdDateTime!=null" > AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<if test= "ew.entity.modifyUser!=null" > AND MODIFY_USER=#{ew.entity.modifyUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.other1!=null" > AND OTHER_1=#{ew.entity.other1}</if>
<if test= "ew.entity.other2!=null" > AND OTHER_2=#{ew.entity.other2}</if>
<if test= "ew.entity.other3!=null" > AND OTHER_3=#{ew.entity.other3}</if>
<if test= "ew.entity.other4!=null" > AND OTHER_4=#{ew.entity.other4}</if>
<if test= "ew.entity.other5!=null" > AND OTHER_5=#{ew.entity.other5}</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.shopOrder!=null" > AND SHOP_ORDER=#{ew.entity.shopOrder}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
<if test= "ew.entity.blankingSize!=null" > AND BLANKING_SIZE=#{ew.entity.blankingSize}</if>
<if test= "ew.entity.dispatchSeq!=null" > AND DISPATCH_SEQ=#{ew.entity.dispatchSeq}</if>
<if test= "ew.entity.dispatchNo!=null" > AND DISPATCH_NO=#{ew.entity.dispatchNo}</if>
<if test= "ew.entity.dispatchStatus!=null" > AND DISPATCH_STATUS=#{ew.entity.dispatchStatus}</if>
<if test= "ew.entity.drawingsNo!=null" > AND DRAWINGS_NO=#{ew.entity.drawingsNo}</if>
<if test= "ew.entity.drawingsRevision!=null" > AND DRAWINGS_REVISION=#{ew.entity.drawingsRevision}</if>
<if test= "ew.entity.isLock!=null" > AND IS_LOCK=#{ew.entity.isLock}</if>
<if test= "ew.entity.routerBo!=null" > AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
<if test= "ew.entity.operation!=null" > AND OPERATION=#{ew.entity.operation}</if>
<if test= "ew.entity.resourceType!=null" > AND RESOURCE_TYPE=#{ew.entity.resourceType}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.resrce!=null" > AND RESRCE=#{ew.entity.resrce}</if>
<if test= "ew.entity.employee!=null" > AND EMPLOYEE=#{ew.entity.employee}</if>
<if test= "ew.entity.turnOperation!=null" > AND TURN_OPERATION=#{ew.entity.turnOperation}</if>
<if test= "ew.entity.dispatchQty!=null" > AND DISPATCH_QTY=#{ew.entity.dispatchQty}</if>
<if test= "ew.entity.prodHours!=null" > AND PROD_HOURS=#{ew.entity.prodHours}</if>
<if test= "ew.entity.plannedStartDate!=null" > AND PLANNED_START_DATE=#{ew.entity.plannedStartDate}
</if>
<if test= "ew.entity.plannedCompDate!=null" > AND PLANNED_COMP_DATE=#{ew.entity.plannedCompDate}</if>
<if test= "ew.entity.earliestStartDate!=null" > AND
EARLIEST_START_DATE=#{ew.entity.earliestStartDate}
</if>
<if test= "ew.entity.latestEndDate!=null" > AND LATEST_END_DATE=#{ew.entity.latestEndDate}</if>
<if test= "ew.entity.soReleasedDate!=null" > AND SO_RELEASED_DATE=#{ew.entity.soReleasedDate}</if>
<if test= "ew.entity.sfcReleasedDate!=null" > AND SFC_RELEASED_DATE=#{ew.entity.sfcReleasedDate}</if>
<if test= "ew.entity.releasedCompleteDate!=null" > AND
RELEASED_COMPLETE_DATE=#{ew.entity.releasedCompleteDate}
</if>
<if test= "ew.entity.actualStartDate!=null" > AND ACTUAL_START_DATE=#{ew.entity.actualStartDate}</if>
<if test= "ew.entity.actualCompleteDate!=null" > AND
ACTUAL_COMPLETE_DATE=#{ew.entity.actualCompleteDate}
</if>
<if test= "ew.entity.isDispatch!=null" > AND IS_DISPATCH=#{ew.entity.isDispatch}</if>
<if test= "ew.entity.isImport!=null" > AND IS_IMPORT=#{ew.entity.isImport}</if>
<if test= "ew.entity.remark!=null" > AND REMARK=#{ew.entity.remark}</if>
<if test= "ew.entity.prepositionStepId!=null" > AND
PREPOSITION_STEP_ID=#{ew.entity.prepositionStepId}
</if>
<if test= "ew.entity.prepositionOperation!=null" > AND
PREPOSITION_OPERATION=#{ew.entity.prepositionOperation}
</if>
<if test= "ew.entity.isFirstOperation!=null" > AND IS_FIRST_OPERATION=#{ew.entity.isFirstOperation}
</if>
<if test= "ew.entity.createUser!=null" > AND CREATE_USER=#{ew.entity.createUser}</if>
<if test= "ew.entity.createdDateTime!=null" > AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<if test= "ew.entity.modifyUser!=null" > AND MODIFY_USER=#{ew.entity.modifyUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
</if>
<if test= "ew.entity.other1!=null" > AND OTHER_1=#{ew.entity.other1}</if>
<if test= "ew.entity.other2!=null" > AND OTHER_2=#{ew.entity.other2}</if>
<if test= "ew.entity.other3!=null" > AND OTHER_3=#{ew.entity.other3}</if>
<if test= "ew.entity.other4!=null" > AND OTHER_4=#{ew.entity.other4}</if>
<if test= "ew.entity.other5!=null" > AND OTHER_5=#{ew.entity.other5}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
and ${ew.sqlSegment}
@ -256,7 +295,8 @@
<if test= "other3!=null" > OTHER_3,</if>
<if test= "other4!=null" > OTHER_4,</if>
<if test= "other5!=null" > OTHER_5,</if>
</trim> VALUES
</trim>
VALUES
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
#{handle},
<if test= "site!=null" > #{site},</if>
@ -312,7 +352,8 @@
INSERT INTO Z_SFC_DISPATCH
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
<include refid= "Base_Column_List" > </include>
</trim> VALUES
</trim>
VALUES
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
#{handle},
#{site},
@ -366,7 +407,8 @@
<update id= "updateById" >
UPDATE Z_SFC_DISPATCH <trim prefix= "SET" suffixOverrides= "," >
UPDATE Z_SFC_DISPATCH
<trim prefix= "SET" suffixOverrides= "," >
<if test= "et.site!=null" > SITE=#{et.site},</if>
<if test= "et.shopOrder!=null" > SHOP_ORDER=#{et.shopOrder},</if>
<if test= "et.sfc!=null" > SFC=#{et.sfc},</if>
@ -413,7 +455,13 @@
<if test= "et.other3!=null" > OTHER_3=#{et.other3},</if>
<if test= "et.other4!=null" > OTHER_4=#{et.other4},</if>
<if test= "et.other5!=null" > OTHER_5=#{et.other5},</if>
</trim> WHERE HANDLE=#{et.handle} <if test= "et instanceof java.util.Map" > <if test= "et.MP_OPTLOCK_VERSION_ORIGINAL!=null" > and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}</if> </if>
</trim>
WHERE HANDLE=#{et.handle}
<if test= "et instanceof java.util.Map" >
<if test= "et.MP_OPTLOCK_VERSION_ORIGINAL!=null" > and
${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
</if>
</if>
</update>
@ -465,12 +513,18 @@
OTHER_3=#{et.other3},
OTHER_4=#{et.other4},
OTHER_5=#{et.other5},
</trim> WHERE HANDLE=#{et.handle} <if test= "et instanceof java.util.Map" > <if test= "et.MP_OPTLOCK_VERSION_ORIGINAL!=null" > and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}</if> </if>
</trim> WHERE HANDLE=#{et.handle}
<if test= "et instanceof java.util.Map" >
<if test= "et.MP_OPTLOCK_VERSION_ORIGINAL!=null" > and
${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
</if>
</if>
</update>
<update id= "update" >
UPDATE Z_SFC_DISPATCH <trim prefix= "SET" suffixOverrides= "," >
UPDATE Z_SFC_DISPATCH
<trim prefix= "SET" suffixOverrides= "," >
<if test= "et.site!=null" > SITE=#{et.site},</if>
<if test= "et.shopOrder!=null" > SHOP_ORDER=#{et.shopOrder},</if>
<if test= "et.sfc!=null" > SFC=#{et.sfc},</if>
@ -522,52 +576,67 @@
<if test= "ew!=null" >
<if test= "ew.entity!=null" >
HANDLE=#{ew.entity.handle}
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.shopOrder!=null" > AND SHOP_ORDER=#{ew.entity.shopOrder}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
<if test= "ew.entity.blankingSize!=null" > AND BLANKING_SIZE=#{ew.entity.blankingSize}</if>
<if test= "ew.entity.dispatchSeq!=null" > AND DISPATCH_SEQ=#{ew.entity.dispatchSeq}</if>
<if test= "ew.entity.dispatchNo!=null" > AND DISPATCH_NO=#{ew.entity.dispatchNo}</if>
<if test= "ew.entity.dispatchStatus!=null" > AND DISPATCH_STATUS=#{ew.entity.dispatchStatus}</if>
<if test= "ew.entity.drawingsNo!=null" > AND DRAWINGS_NO=#{ew.entity.drawingsNo}</if>
<if test= "ew.entity.drawingsRevision!=null" > AND DRAWINGS_REVISION=#{ew.entity.drawingsRevision}</if>
<if test= "ew.entity.isLock!=null" > AND IS_LOCK=#{ew.entity.isLock}</if>
<if test= "ew.entity.routerBo!=null" > AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
<if test= "ew.entity.operation!=null" > AND OPERATION=#{ew.entity.operation}</if>
<if test= "ew.entity.resourceType!=null" > AND RESOURCE_TYPE=#{ew.entity.resourceType}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.resrce!=null" > AND RESRCE=#{ew.entity.resrce}</if>
<if test= "ew.entity.employee!=null" > AND EMPLOYEE=#{ew.entity.employee}</if>
<if test= "et.entity.employeeDescription!=null" > EMPLOYEE_DESCRIPTION=#{et.entity.employeeDescription},</if>
<if test= "ew.entity.turnOperation!=null" > AND TURN_OPERATION=#{ew.entity.turnOperation}</if>
<if test= "ew.entity.dispatchQty!=null" > AND DISPATCH_QTY=#{ew.entity.dispatchQty}</if>
<if test= "ew.entity.prodHours!=null" > AND PROD_HOURS=#{ew.entity.prodHours}</if>
<if test= "ew.entity.plannedStartDate!=null" > AND PLANNED_START_DATE=#{ew.entity.plannedStartDate}</if>
<if test= "ew.entity.plannedCompDate!=null" > AND PLANNED_COMP_DATE=#{ew.entity.plannedCompDate}</if>
<if test= "ew.entity.earliestStartDate!=null" > AND EARLIEST_START_DATE=#{ew.entity.earliestStartDate}</if>
<if test= "ew.entity.latestEndDate!=null" > AND LATEST_END_DATE=#{ew.entity.latestEndDate}</if>
<if test= "ew.entity.soReleasedDate!=null" > AND SO_RELEASED_DATE=#{ew.entity.soReleasedDate}</if>
<if test= "ew.entity.sfcReleasedDate!=null" > AND SFC_RELEASED_DATE=#{ew.entity.sfcReleasedDate}</if>
<if test= "ew.entity.releasedCompleteDate!=null" > AND RELEASED_COMPLETE_DATE=#{ew.entity.releasedCompleteDate}</if>
<if test= "ew.entity.actualStartDate!=null" > AND ACTUAL_START_DATE=#{ew.entity.actualStartDate}</if>
<if test= "ew.entity.actualCompleteDate!=null" > AND ACTUAL_COMPLETE_DATE=#{ew.entity.actualCompleteDate}</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.shopOrder!=null" > AND SHOP_ORDER=#{ew.entity.shopOrder}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
<if test= "ew.entity.blankingSize!=null" > AND BLANKING_SIZE=#{ew.entity.blankingSize}</if>
<if test= "ew.entity.dispatchSeq!=null" > AND DISPATCH_SEQ=#{ew.entity.dispatchSeq}</if>
<if test= "ew.entity.dispatchNo!=null" > AND DISPATCH_NO=#{ew.entity.dispatchNo}</if>
<if test= "ew.entity.dispatchStatus!=null" > AND DISPATCH_STATUS=#{ew.entity.dispatchStatus}</if>
<if test= "ew.entity.drawingsNo!=null" > AND DRAWINGS_NO=#{ew.entity.drawingsNo}</if>
<if test= "ew.entity.drawingsRevision!=null" > AND DRAWINGS_REVISION=#{ew.entity.drawingsRevision}</if>
<if test= "ew.entity.isLock!=null" > AND IS_LOCK=#{ew.entity.isLock}</if>
<if test= "ew.entity.routerBo!=null" > AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
<if test= "ew.entity.operation!=null" > AND OPERATION=#{ew.entity.operation}</if>
<if test= "ew.entity.resourceType!=null" > AND RESOURCE_TYPE=#{ew.entity.resourceType}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.resrce!=null" > AND RESRCE=#{ew.entity.resrce}</if>
<if test= "ew.entity.employee!=null" > AND EMPLOYEE=#{ew.entity.employee}</if>
<if test= "et.entity.employeeDescription!=null" >
EMPLOYEE_DESCRIPTION=#{et.entity.employeeDescription},
</if>
<if test= "ew.entity.turnOperation!=null" > AND TURN_OPERATION=#{ew.entity.turnOperation}</if>
<if test= "ew.entity.dispatchQty!=null" > AND DISPATCH_QTY=#{ew.entity.dispatchQty}</if>
<if test= "ew.entity.prodHours!=null" > AND PROD_HOURS=#{ew.entity.prodHours}</if>
<if test= "ew.entity.plannedStartDate!=null" > AND PLANNED_START_DATE=#{ew.entity.plannedStartDate}
</if>
<if test= "ew.entity.plannedCompDate!=null" > AND PLANNED_COMP_DATE=#{ew.entity.plannedCompDate}</if>
<if test= "ew.entity.earliestStartDate!=null" > AND
EARLIEST_START_DATE=#{ew.entity.earliestStartDate}
</if>
<if test= "ew.entity.latestEndDate!=null" > AND LATEST_END_DATE=#{ew.entity.latestEndDate}</if>
<if test= "ew.entity.soReleasedDate!=null" > AND SO_RELEASED_DATE=#{ew.entity.soReleasedDate}</if>
<if test= "ew.entity.sfcReleasedDate!=null" > AND SFC_RELEASED_DATE=#{ew.entity.sfcReleasedDate}</if>
<if test= "ew.entity.releasedCompleteDate!=null" > AND
RELEASED_COMPLETE_DATE=#{ew.entity.releasedCompleteDate}
</if>
<if test= "ew.entity.actualStartDate!=null" > AND ACTUAL_START_DATE=#{ew.entity.actualStartDate}</if>
<if test= "ew.entity.actualCompleteDate!=null" > AND
ACTUAL_COMPLETE_DATE=#{ew.entity.actualCompleteDate}
</if>
<if test= "ew.isUpdateZJHComplete!=null" > AND IS_UPDATE_ZJH_COMPLETE=#{ew.isUpdateZJHComplete},</if>
<if test= "ew.entity.isDispatch!=null" > AND IS_DISPATCH=#{ew.entity.isDispatch}</if>
<if test= "ew.entity.isImport!=null" > AND IS_IMPORT=#{ew.entity.isImport}</if>
<if test= "ew.entity.remark!=null" > AND REMARK=#{ew.entity.remark}</if>
<if test= "ew.entity.prepositionStepId!=null" > AND PREPOSITION_STEP_ID=#{ew.entity.prepositionStepId}</if>
<if test= "ew.entity.prepositionOperation!=null" > AND PREPOSITION_OPERATION=#{ew.entity.prepositionOperation}</if>
<if test= "ew.entity.isFirstOperation!=null" > AND IS_FIRST_OPERATION=#{ew.entity.isFirstOperation}</if>
<if test= "ew.entity.createUser!=null" > AND CREATE_USER=#{ew.entity.createUser}</if>
<if test= "ew.entity.createdDateTime!=null" > AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<if test= "ew.entity.modifyUser!=null" > AND MODIFY_USER=#{ew.entity.modifyUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.other1!=null" > AND OTHER_1=#{ew.entity.other1}</if>
<if test= "ew.entity.other2!=null" > AND OTHER_2=#{ew.entity.other2}</if>
<if test= "ew.entity.other3!=null" > AND OTHER_3=#{ew.entity.other3}</if>
<if test= "ew.entity.other4!=null" > AND OTHER_4=#{ew.entity.other4}</if>
<if test= "ew.entity.other5!=null" > AND OTHER_5=#{ew.entity.other5}</if>
<if test= "ew.entity.isDispatch!=null" > AND IS_DISPATCH=#{ew.entity.isDispatch}</if>
<if test= "ew.entity.isImport!=null" > AND IS_IMPORT=#{ew.entity.isImport}</if>
<if test= "ew.entity.remark!=null" > AND REMARK=#{ew.entity.remark}</if>
<if test= "ew.entity.prepositionStepId!=null" > AND
PREPOSITION_STEP_ID=#{ew.entity.prepositionStepId}
</if>
<if test= "ew.entity.prepositionOperation!=null" > AND
PREPOSITION_OPERATION=#{ew.entity.prepositionOperation}
</if>
<if test= "ew.entity.isFirstOperation!=null" > AND IS_FIRST_OPERATION=#{ew.entity.isFirstOperation}
</if>
<if test= "ew.entity.createUser!=null" > AND CREATE_USER=#{ew.entity.createUser}</if>
<if test= "ew.entity.createdDateTime!=null" > AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<if test= "ew.entity.modifyUser!=null" > AND MODIFY_USER=#{ew.entity.modifyUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
</if>
<if test= "ew.entity.other1!=null" > AND OTHER_1=#{ew.entity.other1}</if>
<if test= "ew.entity.other2!=null" > AND OTHER_2=#{ew.entity.other2}</if>
<if test= "ew.entity.other3!=null" > AND OTHER_3=#{ew.entity.other3}</if>
<if test= "ew.entity.other4!=null" > AND OTHER_4=#{ew.entity.other4}</if>
<if test= "ew.entity.other5!=null" > AND OTHER_5=#{ew.entity.other5}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
${ew.sqlSegment}
@ -604,51 +673,66 @@
<if test= "ew.entity.handle!=null" >
HANDLE=#{ew.entity.handle}
</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.shopOrder!=null" > AND SHOP_ORDER=#{ew.entity.shopOrder}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
<if test= "ew.entity.blankingSize!=null" > AND BLANKING_SIZE=#{ew.entity.blankingSize}</if>
<if test= "ew.entity.dispatchSeq!=null" > AND DISPATCH_SEQ=#{ew.entity.dispatchSeq}</if>
<if test= "ew.entity.dispatchNo!=null" > AND DISPATCH_NO=#{ew.entity.dispatchNo}</if>
<if test= "ew.entity.dispatchStatus!=null" > AND DISPATCH_STATUS=#{ew.entity.dispatchStatus}</if>
<if test= "ew.entity.drawingsNo!=null" > AND DRAWINGS_NO=#{ew.entity.drawingsNo}</if>
<if test= "ew.entity.drawingsRevision!=null" > AND DRAWINGS_REVISION=#{ew.entity.drawingsRevision}</if>
<if test= "ew.entity.isLock!=null" > AND IS_LOCK=#{ew.entity.isLock}</if>
<if test= "ew.entity.routerBo!=null" > AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
<if test= "ew.entity.operation!=null" > AND OPERATION=#{ew.entity.operation}</if>
<if test= "ew.entity.resourceType!=null" > AND RESOURCE_TYPE=#{ew.entity.resourceType}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.resrce!=null" > AND RESRCE=#{ew.entity.resrce}</if>
<if test= "ew.entity.employee!=null" > AND EMPLOYEE=#{ew.entity.employee}</if>
<if test= "ew.entity.employeeDescription!=null" > EMPLOYEE_DESCRIPTION=#{et.entity.employeeDescription},</if>
<if test= "ew.entity.turnOperation!=null" > AND TURN_OPERATION=#{ew.entity.turnOperation}</if>
<if test= "ew.entity.dispatchQty!=null" > AND DISPATCH_QTY=#{ew.entity.dispatchQty}</if>
<if test= "ew.entity.prodHours!=null" > AND PROD_HOURS=#{ew.entity.prodHours}</if>
<if test= "ew.entity.plannedStartDate!=null" > AND PLANNED_START_DATE=#{ew.entity.plannedStartDate}</if>
<if test= "ew.entity.plannedCompDate!=null" > AND PLANNED_COMP_DATE=#{ew.entity.plannedCompDate}</if>
<if test= "ew.entity.earliestStartDate!=null" > AND EARLIEST_START_DATE=#{ew.entity.earliestStartDate}</if>
<if test= "ew.entity.latestEndDate!=null" > AND LATEST_END_DATE=#{ew.entity.latestEndDate}</if>
<if test= "ew.entity.soReleasedDate!=null" > AND SO_RELEASED_DATE=#{ew.entity.soReleasedDate}</if>
<if test= "ew.entity.sfcReleasedDate!=null" > AND SFC_RELEASED_DATE=#{ew.entity.sfcReleasedDate}</if>
<if test= "ew.entity.releasedCompleteDate!=null" > AND RELEASED_COMPLETE_DATE=#{ew.entity.releasedCompleteDate}</if>
<if test= "ew.entity.actualStartDate!=null" > AND ACTUAL_START_DATE=#{ew.entity.actualStartDate}</if>
<if test= "ew.entity.actualCompleteDate!=null" > AND ACTUAL_COMPLETE_DATE=#{ew.entity.actualCompleteDate}</if>
<if test= "ew.entity.isDispatch!=null" > AND IS_DISPATCH=#{ew.entity.isDispatch}</if>
<if test= "ew.entity.isImport!=null" > AND IS_IMPORT=#{ew.entity.isImport}</if>
<if test= "ew.entity.remark!=null" > AND REMARK=#{ew.entity.remark}</if>
<if test= "ew.entity.prepositionStepId!=null" > AND PREPOSITION_STEP_ID=#{ew.entity.prepositionStepId}</if>
<if test= "ew.entity.prepositionOperation!=null" > AND PREPOSITION_OPERATION=#{ew.entity.prepositionOperation}</if>
<if test= "ew.entity.isFirstOperation!=null" > AND IS_FIRST_OPERATION=#{ew.entity.isFirstOperation}</if>
<if test= "ew.entity.createUser!=null" > AND CREATE_USER=#{ew.entity.createUser}</if>
<if test= "ew.entity.createdDateTime!=null" > AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<if test= "ew.entity.modifyUser!=null" > AND MODIFY_USER=#{ew.entity.modifyUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.other1!=null" > AND OTHER_1=#{ew.entity.other1}</if>
<if test= "ew.entity.other2!=null" > AND OTHER_2=#{ew.entity.other2}</if>
<if test= "ew.entity.other3!=null" > AND OTHER_3=#{ew.entity.other3}</if>
<if test= "ew.entity.other4!=null" > AND OTHER_4=#{ew.entity.other4}</if>
<if test= "ew.entity.other5!=null" > AND OTHER_5=#{ew.entity.other5}</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.shopOrder!=null" > AND SHOP_ORDER=#{ew.entity.shopOrder}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
<if test= "ew.entity.blankingSize!=null" > AND BLANKING_SIZE=#{ew.entity.blankingSize}</if>
<if test= "ew.entity.dispatchSeq!=null" > AND DISPATCH_SEQ=#{ew.entity.dispatchSeq}</if>
<if test= "ew.entity.dispatchNo!=null" > AND DISPATCH_NO=#{ew.entity.dispatchNo}</if>
<if test= "ew.entity.dispatchStatus!=null" > AND DISPATCH_STATUS=#{ew.entity.dispatchStatus}</if>
<if test= "ew.entity.drawingsNo!=null" > AND DRAWINGS_NO=#{ew.entity.drawingsNo}</if>
<if test= "ew.entity.drawingsRevision!=null" > AND DRAWINGS_REVISION=#{ew.entity.drawingsRevision}</if>
<if test= "ew.entity.isLock!=null" > AND IS_LOCK=#{ew.entity.isLock}</if>
<if test= "ew.entity.routerBo!=null" > AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
<if test= "ew.entity.operation!=null" > AND OPERATION=#{ew.entity.operation}</if>
<if test= "ew.entity.resourceType!=null" > AND RESOURCE_TYPE=#{ew.entity.resourceType}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.resrce!=null" > AND RESRCE=#{ew.entity.resrce}</if>
<if test= "ew.entity.employee!=null" > AND EMPLOYEE=#{ew.entity.employee}</if>
<if test= "ew.entity.employeeDescription!=null" >
EMPLOYEE_DESCRIPTION=#{et.entity.employeeDescription},
</if>
<if test= "ew.entity.turnOperation!=null" > AND TURN_OPERATION=#{ew.entity.turnOperation}</if>
<if test= "ew.entity.dispatchQty!=null" > AND DISPATCH_QTY=#{ew.entity.dispatchQty}</if>
<if test= "ew.entity.prodHours!=null" > AND PROD_HOURS=#{ew.entity.prodHours}</if>
<if test= "ew.entity.plannedStartDate!=null" > AND PLANNED_START_DATE=#{ew.entity.plannedStartDate}
</if>
<if test= "ew.entity.plannedCompDate!=null" > AND PLANNED_COMP_DATE=#{ew.entity.plannedCompDate}</if>
<if test= "ew.entity.earliestStartDate!=null" > AND
EARLIEST_START_DATE=#{ew.entity.earliestStartDate}
</if>
<if test= "ew.entity.latestEndDate!=null" > AND LATEST_END_DATE=#{ew.entity.latestEndDate}</if>
<if test= "ew.entity.soReleasedDate!=null" > AND SO_RELEASED_DATE=#{ew.entity.soReleasedDate}</if>
<if test= "ew.entity.sfcReleasedDate!=null" > AND SFC_RELEASED_DATE=#{ew.entity.sfcReleasedDate}</if>
<if test= "ew.entity.releasedCompleteDate!=null" > AND
RELEASED_COMPLETE_DATE=#{ew.entity.releasedCompleteDate}
</if>
<if test= "ew.entity.actualStartDate!=null" > AND ACTUAL_START_DATE=#{ew.entity.actualStartDate}</if>
<if test= "ew.entity.actualCompleteDate!=null" > AND
ACTUAL_COMPLETE_DATE=#{ew.entity.actualCompleteDate}
</if>
<if test= "ew.entity.isDispatch!=null" > AND IS_DISPATCH=#{ew.entity.isDispatch}</if>
<if test= "ew.entity.isImport!=null" > AND IS_IMPORT=#{ew.entity.isImport}</if>
<if test= "ew.entity.remark!=null" > AND REMARK=#{ew.entity.remark}</if>
<if test= "ew.entity.prepositionStepId!=null" > AND
PREPOSITION_STEP_ID=#{ew.entity.prepositionStepId}
</if>
<if test= "ew.entity.prepositionOperation!=null" > AND
PREPOSITION_OPERATION=#{ew.entity.prepositionOperation}
</if>
<if test= "ew.entity.isFirstOperation!=null" > AND IS_FIRST_OPERATION=#{ew.entity.isFirstOperation}
</if>
<if test= "ew.entity.createUser!=null" > AND CREATE_USER=#{ew.entity.createUser}</if>
<if test= "ew.entity.createdDateTime!=null" > AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<if test= "ew.entity.modifyUser!=null" > AND MODIFY_USER=#{ew.entity.modifyUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
</if>
<if test= "ew.entity.other1!=null" > AND OTHER_1=#{ew.entity.other1}</if>
<if test= "ew.entity.other2!=null" > AND OTHER_2=#{ew.entity.other2}</if>
<if test= "ew.entity.other3!=null" > AND OTHER_3=#{ew.entity.other3}</if>
<if test= "ew.entity.other4!=null" > AND OTHER_4=#{ew.entity.other4}</if>
<if test= "ew.entity.other5!=null" > AND OTHER_5=#{ew.entity.other5}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
${ew.sqlSegment}
@ -665,9 +749,14 @@
<foreach item= "item" index= "index" collection= "coll" separator= "," > #{item}
</foreach> )
</delete>
<resultMap id= "findSfcDispatchResult" type= "SfcDispatch" >
<id column= "HANDLE" property= "handle" />
</resultMap>
<!-- BaseMapper标准查询/修改/删除 -->
<select id= "findSfcDispatch" resultMap= "BaseResultMap" >
SELECT <include refid= "Base_Column_List" />
<select id= "findSfcDispatch" resultMap= "findSfcDispatchResult" >
SELECT
<include refid= "Base_Column_List" />
FROM Z_SFC_DISPATCH
WHERE SITE = #{site} AND SFC = #{sfc}
<if test= "operation != null and operation != ''" >
@ -687,12 +776,19 @@
WHEN WIP.DISPATCH_STATUS = 'PAUSE' THEN N'暂停' WHEN WIP.DISPATCH_STATUS = 'RELEASE' THEN N'发布'
END AS STATUS_NAME, 'ADMINISTRATOR' AS ROLE
FROM (
SELECT SD.HANDLE, SD.SITE, SD.SHOP_ORDER, SD.DISPATCH_NO, SD.ROUTER_BO, C2.VALUE ITEM_NUMBER, C1.VALUE WORK_ORDER, IM.HANDLE ITEM_BO, IM.ITEM, IT.DESCRIPTION ITEM_DESCRIPTION, SD.SFC, SD.DISPATCH_STATUS,SD.DRAWINGS_REVISION,
SD.STEP_ID, SD.OPERATION, OT.DESCRIPTION OPERATION_DESCRIPTION, SD.RESOURCE_TYPE, SD.RESRCE, SD.EMPLOYEE, SD.EMPLOYEE USER_NAME, SD.DISPATCH_QTY, SD.PROD_HOURS, RS.DESCRIPTION RESOURCE_DESCRIPTION,
CASE WHEN SD.DISPATCH_STATUS = 'COMPLETE' THEN SD.DISPATCH_QTY ELSE 0 END COMPLETED_QTY, SD.PLANNED_START_DATE, SD.PLANNED_COMP_DATE, SD.WORK_CENTER, SD.IS_DISPATCH, SD.EMPLOYEE_DESCRIPTION,
SD.ACTUAL_START_DATE, SD.ACTUAL_COMPLETE_DATE, SD.REMARK, SD.DISPATCH_SEQ, SD.DISPATCH_SEQ-1 BEFORE_SEQ, SD.DISPATCH_SEQ+1 AFTER_SEQ, SD.EARLIEST_START_DATE, SD.LATEST_END_DATE,
CASE WHEN CC.VALUE = '9' THEN N'是' ELSE N'否' END IS_MAJOR, CASE WHEN SD.TURN_OPERATION = 'true' THEN N'是' ELSE N'否' END TURN_OPERATION, SD.IS_UPDATE_ZJH_COMPLETE, SD.BLANKING_SIZE, MAX(BC.COMPONENT_GBO) COMPONENT_BO,
WR.WORK_CENTER RESOURCE_WORK_CENTER, MAX(CP.ITEM) COMPONENT, MAX(CT.DESCRIPTION) COMPONENT_DESCRIPTION, MAX(C3.VALUE) TEXTURE, MAX(C4.VALUE) MAT_SPEC ,SD.OTHER_2
SELECT SD.HANDLE, SD.SITE, SD.SHOP_ORDER, SD.DISPATCH_NO, SD.ROUTER_BO, C2.VALUE ITEM_NUMBER, C1.VALUE
WORK_ORDER, IM.HANDLE ITEM_BO, IM.ITEM, IT.DESCRIPTION ITEM_DESCRIPTION, SD.SFC,
SD.DISPATCH_STATUS,SD.DRAWINGS_REVISION,
SD.STEP_ID, SD.OPERATION, OT.DESCRIPTION OPERATION_DESCRIPTION, SD.RESOURCE_TYPE, SD.RESRCE, SD.EMPLOYEE,
SD.EMPLOYEE USER_NAME, SD.DISPATCH_QTY, SD.PROD_HOURS, RS.DESCRIPTION RESOURCE_DESCRIPTION,
CASE WHEN SD.DISPATCH_STATUS = 'COMPLETE' THEN SD.DISPATCH_QTY ELSE 0 END COMPLETED_QTY, SD.PLANNED_START_DATE,
SD.PLANNED_COMP_DATE, SD.WORK_CENTER, SD.IS_DISPATCH, SD.EMPLOYEE_DESCRIPTION,
SD.ACTUAL_START_DATE, SD.ACTUAL_COMPLETE_DATE, SD.REMARK, SD.DISPATCH_SEQ, SD.DISPATCH_SEQ-1 BEFORE_SEQ,
SD.DISPATCH_SEQ+1 AFTER_SEQ, SD.EARLIEST_START_DATE, SD.LATEST_END_DATE,
CASE WHEN CC.VALUE = '9' THEN N'是' ELSE N'否' END IS_MAJOR, CASE WHEN SD.TURN_OPERATION = 'true' THEN N'是' ELSE
N'否' END TURN_OPERATION, SD.IS_UPDATE_ZJH_COMPLETE, SD.BLANKING_SIZE, MAX(BC.COMPONENT_GBO) COMPONENT_BO,
WR.WORK_CENTER RESOURCE_WORK_CENTER, MAX(CP.ITEM) COMPONENT, MAX(CT.DESCRIPTION) COMPONENT_DESCRIPTION,
MAX(C3.VALUE) TEXTURE, MAX(C4.VALUE) MAT_SPEC ,SD.OTHER_2
FROM Z_SFC_DISPATCH SD
INNER JOIN SFC SC ON SC.SITE = SD.SITE AND SC.SFC = SD.SFC
LEFT JOIN RESRCE RS ON SD.SITE = RS.SITE AND SD.RESRCE = RS.RESRCE
@ -710,7 +806,8 @@
LEFT JOIN ITEM_T CT ON CT.ITEM_BO = CP.HANDLE AND CT.LOCALE = 'zh'
LEFT JOIN CUSTOM_FIELDS C3 ON C3.HANDLE = CP.HANDLE AND C3.ATTRIBUTE = 'TEXTTURE'
LEFT JOIN CUSTOM_FIELDS C4 ON C4.HANDLE = CP.HANDLE AND C4.ATTRIBUTE = 'MAT_SPEC'
LEFT JOIN WORK_CENTER_MEMBER WCM ON WCM.WORK_CENTER_OR_RESOURCE_GBO = 'ResourceBO:' || SD.SITE || ',' || SD.RESRCE
LEFT JOIN WORK_CENTER_MEMBER WCM ON WCM.WORK_CENTER_OR_RESOURCE_GBO = 'ResourceBO:' || SD.SITE || ',' ||
SD.RESRCE
LEFT JOIN WORK_CENTER WR ON WR.HANDLE = WCM.WORK_CENTER_BO
WHERE SD.SITE = #{site}
<if test= "workCenter != null and workCenter != ''" >
@ -722,6 +819,9 @@
<if test= "status != null and status != ''" >
AND SD.DISPATCH_STATUS IN ${status}
</if>
<if test= "userName != null and userName != ''" >
AND SD.EMPLOYEE_DESCRIPTION = #{userName}
</if>
<if test= "item != null and item != ''" >
AND IM.ITEM = #{item}
</if>
@ -761,6 +861,9 @@
<if test= "blankingSize != null and blankingSize != ''" >
AND SD.BLANKING_SIZE LIKE '%'||#{blankingSize}||'%'
</if>
<if test= "step != null and step != ''" >
AND SD.STEP_ID = #{step}
</if>
<if test= "component != null and component != ''" >
AND CP.ITEM = #{component}
</if>
@ -785,14 +888,20 @@
<if test= "completeToDate != null" >
AND SD.PLANNED_COMP_DATE < = TO_DATE(#{completeToDate}|| '23:59:59', 'YYYY-MM-DD HH24:MI:SS')
</if>
GROUP BY SD.HANDLE, SD.SITE, SD.SHOP_ORDER, SD.DISPATCH_NO, SD.ROUTER_BO, C2.VALUE, C1.VALUE, IM.HANDLE, IM.ITEM, IT.DESCRIPTION, SD.SFC, SD.DISPATCH_STATUS,SD.DRAWINGS_REVISION,
SD.STEP_ID, SD.OPERATION, OT.DESCRIPTION, SD.RESOURCE_TYPE, SD.RESRCE, SD.EMPLOYEE, SD.EMPLOYEE, SD.DISPATCH_QTY, SD.PROD_HOURS, RS.DESCRIPTION,
SD.DISPATCH_STATUS, SD.DISPATCH_QTY, SD.PLANNED_START_DATE, SD.PLANNED_COMP_DATE, SD.WORK_CENTER, SD.IS_DISPATCH, SD.EMPLOYEE_DESCRIPTION,
SD.ACTUAL_START_DATE, SD.ACTUAL_COMPLETE_DATE, SD.REMARK, SD.DISPATCH_SEQ, SD.EARLIEST_START_DATE, SD.LATEST_END_DATE,
GROUP BY SD.HANDLE, SD.SITE, SD.SHOP_ORDER, SD.DISPATCH_NO, SD.ROUTER_BO, C2.VALUE, C1.VALUE, IM.HANDLE,
IM.ITEM, IT.DESCRIPTION, SD.SFC, SD.DISPATCH_STATUS,SD.DRAWINGS_REVISION,
SD.STEP_ID, SD.OPERATION, OT.DESCRIPTION, SD.RESOURCE_TYPE, SD.RESRCE, SD.EMPLOYEE, SD.EMPLOYEE,
SD.DISPATCH_QTY, SD.PROD_HOURS, RS.DESCRIPTION,
SD.DISPATCH_STATUS, SD.DISPATCH_QTY, SD.PLANNED_START_DATE, SD.PLANNED_COMP_DATE, SD.WORK_CENTER,
SD.IS_DISPATCH, SD.EMPLOYEE_DESCRIPTION,
SD.ACTUAL_START_DATE, SD.ACTUAL_COMPLETE_DATE, SD.REMARK, SD.DISPATCH_SEQ, SD.EARLIEST_START_DATE,
SD.LATEST_END_DATE,
CC.VALUE, SD.TURN_OPERATION,SD.IS_UPDATE_ZJH_COMPLETE, SD.BLANKING_SIZE, WR.WORK_CENTER ,SD.OTHER_2
) WIP
LEFT JOIN Z_SFC_DISPATCH V1 ON V1.SITE = WIP.SITE AND V1.SFC = WIP.SFC AND V1.ROUTER_BO = WIP.ROUTER_BO AND V1.DISPATCH_SEQ = WIP.BEFORE_SEQ
LEFT JOIN Z_SFC_DISPATCH V2 ON V2.SITE = WIP.SITE AND V2.SFC = WIP.SFC AND V2.ROUTER_BO = WIP.ROUTER_BO AND V2.DISPATCH_SEQ = WIP.AFTER_SEQ
LEFT JOIN Z_SFC_DISPATCH V1 ON V1.SITE = WIP.SITE AND V1.SFC = WIP.SFC AND V1.ROUTER_BO = WIP.ROUTER_BO AND
V1.DISPATCH_SEQ = WIP.BEFORE_SEQ
LEFT JOIN Z_SFC_DISPATCH V2 ON V2.SITE = WIP.SITE AND V2.SFC = WIP.SFC AND V2.ROUTER_BO = WIP.ROUTER_BO AND
V2.DISPATCH_SEQ = WIP.AFTER_SEQ
) WIP
<if test= "isCompleted != null and isCompleted != ''" >
WHERE WIP.IS_COMPLETED = #{isCompleted}
@ -800,8 +909,9 @@
ORDER BY WIP.SHOP_ORDER,WIP.SFC,WIP.STEP_ID,TO_NUMBER(WIP.DISPATCH_SEQ)
</select>
<update id= "updateSfcDispatchStatus" >
UPDATE Z_SFC_DISPATCH SET DISPATCH_STATUS = #{dispatchStatus}, MODIFY_USER = #{modifyUser}, MODIFIED_DATE_TIME = #{modifiedDateTime}
<update id= "updateSfcDispatchStatus" >
UPDATE Z_SFC_DISPATCH SET DISPATCH_STATUS = #{dispatchStatus}, MODIFY_USER = #{modifyUser}, MODIFIED_DATE_TIME =
#{modifiedDateTime}
<if test= "dispatchStatus== 'COMPLETE'" >
, ACTUAL_COMPLETE_DATE = #{modifiedDateTime} , ACTUAL_PROD_HOURS = #{workHour}
</if>
@ -825,22 +935,37 @@
<select id= "findSfcDispatchBySfc" resultType= "com.foreverwin.mesnac.common.dto.SfcDispatchDto" >
SELECT *
FROM Z_SFC_DISPATCH zsd where site=#{site}
<if test= "dto.sfc!=null" > AND SFC=#{dto.sfc}</if>
<if test= "dto.stepId!=null" > AND STEP_ID=#{dto.stepId}</if>
<if test= "dto.operation!=null" > AND OPERATION=#{dto.operation}</if>
<if test= "dto.resrce!=null" > AND RESRCE=#{dto.resrce}</if>
<if test= "dto.handle!=null" > AND HANDLE=#{dto.handle}</if>
<if test= "dto.sfc!=null" > AND SFC=#{dto.sfc}</if>
<if test= "dto.stepId!=null" > AND STEP_ID=#{dto.stepId}</if>
<if test= "dto.operation!=null" > AND OPERATION=#{dto.operation}</if>
<if test= "dto.resrce!=null" > AND RESRCE=#{dto.resrce}</if>
<if test= "dto.handle!=null" > AND HANDLE=#{dto.handle}</if>
</select>
<select id= "findSplitSfcDispatch" resultMap= "BaseResultMap" >
SELECT <include refid= "Base_Column_List" > </include>
SELECT
<include refid= "Base_Column_List" > </include>
FROM Z_SFC_DISPATCH
WHERE SITE = #{site} AND SFC = #{sfc} AND TO_NUMBER(STEP_ID) >= #{stepId}
</select>
<select id= "findsfcComplete" resultType= "com.foreverwin.mesnac.dispatch.model.SfcDispatch" >
SELECT
<include refid= "Base_Column_List" />
FROM Z_SFC_DISPATCH
WHERE SITE = #{site}
<if test= "shopOrder != null and shopOrder != ''" >
AND SHOP_ORDER = #{shopOrder}
</if>
<if test= "stepId != null and stepId != ''" >
AND STEP_ID = #{stepId}
</if>
AND ACTUAL_COMPLETE_DATE IS NOT NULL
AND ROWNUM=1 ORDER BY ACTUAL_COMPLETE_DATE DESC
</select>
<update id= "updateSfcDispatchQty" >
<update id= "updateSfcDispatchQty" >
UPDATE Z_SFC_DISPATCH SET DISPATCH_QTY = DISPATCH_QTY - #{splitQty}
WHERE SITE = #{site} AND SFC = #{sfc} AND DISPATCH_SEQ >= #{currentSeq}
</update>