|
|
|
@ -7,13 +7,14 @@
|
|
|
|
|
<id column="HANDLE" property="handle" />
|
|
|
|
|
<result column="SITE" property="site" />
|
|
|
|
|
<result column="REPAIR_NO" property="repairNo" />
|
|
|
|
|
<result column="DESCRIPTION" property="description" />
|
|
|
|
|
<result column="STATUS" property="status" />
|
|
|
|
|
<result column="RESOURCE_BO" property="resourceBo" />
|
|
|
|
|
<result column="USER_NO" property="userNo" />
|
|
|
|
|
<result column="NC_CODE_BO" property="ncCodeBo" />
|
|
|
|
|
<result column="RESOURCE_NO" property="resourceNo" />
|
|
|
|
|
<result column="REPORT_USER" property="reportUser" />
|
|
|
|
|
<result column="NC_CODE_NO" property="ncCodeNo" />
|
|
|
|
|
<result column="REPAIR_TYPE" property="repairType" />
|
|
|
|
|
<result column="STOP_MACHINE" property="stopMachine" />
|
|
|
|
|
<result column="NC_DESCRIPTION" property="ncDescription" />
|
|
|
|
|
<result column="BREAK_DOWN_DESCRIPTION" property="breakDownDescription" />
|
|
|
|
|
<result column="FIND_LINK" property="findLink" />
|
|
|
|
|
<result column="REPORT_SOURCE" property="reportSource" />
|
|
|
|
|
<result column="OBJECT_BO" property="objectBo" />
|
|
|
|
@ -21,6 +22,21 @@
|
|
|
|
|
<result column="PLAN_COMPLETE_DATE" property="planCompleteDate" />
|
|
|
|
|
<result column="ACTUAL_START_DATE" property="actualStartDate" />
|
|
|
|
|
<result column="ACTUAL_COMPLETE_DATE" property="actualCompleteDate" />
|
|
|
|
|
<result column="REPAIR_USERS" property="repairUsers" />
|
|
|
|
|
<result column="CANCEL_CODE" property="cancelCode" />
|
|
|
|
|
<result column="CANCEL_DATE" property="cancelDate" />
|
|
|
|
|
<result column="CANCEL_DESCRIPTION" property="cancelDescription" />
|
|
|
|
|
<result column="CANCEL_USER" property="cancelUser" />
|
|
|
|
|
<result column="DEAL_WAY" property="dealWay" />
|
|
|
|
|
<result column="PRELIMINARY_REASON" property="preliminaryReason" />
|
|
|
|
|
<result column="DEAL_WAY_DESCRIPTION" property="dealWayDescription" />
|
|
|
|
|
<result column="WAIT_TIME" property="waitTime" />
|
|
|
|
|
<result column="WAIT_START_DATE" property="waitStartDate" />
|
|
|
|
|
<result column="WAIT_END_DATE" property="waitEndDate" />
|
|
|
|
|
<result column="WAIT_DESCRIPTION" property="waitDescription" />
|
|
|
|
|
<result column="PRIMARY_REASON" property="primaryReason" />
|
|
|
|
|
<result column="PRIMARY_REASON_DESCRIPTION" property="primaryReasonDescription" />
|
|
|
|
|
<result column="PRECAUTION_MEASURE_DESCRIPTION" property="precautionMeasureDescription" />
|
|
|
|
|
<result column="REMARK" property="remark" />
|
|
|
|
|
<result column="OTHER" property="other" />
|
|
|
|
|
<result column="ANOTHER" property="another" />
|
|
|
|
@ -32,7 +48,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
HANDLE, SITE, REPAIR_NO, STATUS, RESOURCE_BO, USER_NO, NC_CODE_BO, REPAIR_TYPE, STOP_MACHINE, NC_DESCRIPTION, FIND_LINK, REPORT_SOURCE, OBJECT_BO, PLAN_START_DATE, PLAN_COMPLETE_DATE, ACTUAL_START_DATE, ACTUAL_COMPLETE_DATE, REMARK, OTHER, ANOTHER, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME
|
|
|
|
|
HANDLE, SITE, REPAIR_NO, DESCRIPTION, STATUS, RESOURCE_NO, REPORT_USER, NC_CODE_NO, REPAIR_TYPE, STOP_MACHINE, BREAK_DOWN_DESCRIPTION, FIND_LINK, REPORT_SOURCE, OBJECT_BO, PLAN_START_DATE, PLAN_COMPLETE_DATE, ACTUAL_START_DATE, ACTUAL_COMPLETE_DATE, REPAIR_USERS, CANCEL_CODE, CANCEL_DATE, CANCEL_DESCRIPTION, CANCEL_USER, DEAL_WAY, PRELIMINARY_REASON, DEAL_WAY_DESCRIPTION, WAIT_TIME, WAIT_START_DATE, WAIT_END_DATE, WAIT_DESCRIPTION, PRIMARY_REASON, PRIMARY_REASON_DESCRIPTION, PRECAUTION_MEASURE_DESCRIPTION, REMARK, OTHER, ANOTHER, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<!-- BaseMapper标准查询/修改/删除 -->
|
|
|
|
@ -69,13 +85,14 @@
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.repairNo!=null"> AND REPAIR_NO=#{ew.entity.repairNo}</if>
|
|
|
|
|
<if test="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.resourceBo!=null"> AND RESOURCE_BO=#{ew.entity.resourceBo}</if>
|
|
|
|
|
<if test="ew.entity.userNo!=null"> AND USER_NO=#{ew.entity.userNo}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeBo!=null"> AND NC_CODE_BO=#{ew.entity.ncCodeBo}</if>
|
|
|
|
|
<if test="ew.entity.resourceNo!=null"> AND RESOURCE_NO=#{ew.entity.resourceNo}</if>
|
|
|
|
|
<if test="ew.entity.reportUser!=null"> AND REPORT_USER=#{ew.entity.reportUser}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeNo!=null"> AND NC_CODE_NO=#{ew.entity.ncCodeNo}</if>
|
|
|
|
|
<if test="ew.entity.repairType!=null"> AND REPAIR_TYPE=#{ew.entity.repairType}</if>
|
|
|
|
|
<if test="ew.entity.stopMachine!=null"> AND STOP_MACHINE=#{ew.entity.stopMachine}</if>
|
|
|
|
|
<if test="ew.entity.ncDescription!=null"> AND NC_DESCRIPTION=#{ew.entity.ncDescription}</if>
|
|
|
|
|
<if test="ew.entity.breakDownDescription!=null"> AND BREAK_DOWN_DESCRIPTION=#{ew.entity.breakDownDescription}</if>
|
|
|
|
|
<if test="ew.entity.findLink!=null"> AND FIND_LINK=#{ew.entity.findLink}</if>
|
|
|
|
|
<if test="ew.entity.reportSource!=null"> AND REPORT_SOURCE=#{ew.entity.reportSource}</if>
|
|
|
|
|
<if test="ew.entity.objectBo!=null"> AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
|
|
@ -83,6 +100,21 @@
|
|
|
|
|
<if test="ew.entity.planCompleteDate!=null"> AND PLAN_COMPLETE_DATE=#{ew.entity.planCompleteDate}</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.repairUsers!=null"> AND REPAIR_USERS=#{ew.entity.repairUsers}</if>
|
|
|
|
|
<if test="ew.entity.cancelCode!=null"> AND CANCEL_CODE=#{ew.entity.cancelCode}</if>
|
|
|
|
|
<if test="ew.entity.cancelDate!=null"> AND CANCEL_DATE=#{ew.entity.cancelDate}</if>
|
|
|
|
|
<if test="ew.entity.cancelDescription!=null"> AND CANCEL_DESCRIPTION=#{ew.entity.cancelDescription}</if>
|
|
|
|
|
<if test="ew.entity.cancelUser!=null"> AND CANCEL_USER=#{ew.entity.cancelUser}</if>
|
|
|
|
|
<if test="ew.entity.dealWay!=null"> AND DEAL_WAY=#{ew.entity.dealWay}</if>
|
|
|
|
|
<if test="ew.entity.preliminaryReason!=null"> AND PRELIMINARY_REASON=#{ew.entity.preliminaryReason}</if>
|
|
|
|
|
<if test="ew.entity.dealWayDescription!=null"> AND DEAL_WAY_DESCRIPTION=#{ew.entity.dealWayDescription}</if>
|
|
|
|
|
<if test="ew.entity.waitTime!=null"> AND WAIT_TIME=#{ew.entity.waitTime}</if>
|
|
|
|
|
<if test="ew.entity.waitStartDate!=null"> AND WAIT_START_DATE=#{ew.entity.waitStartDate}</if>
|
|
|
|
|
<if test="ew.entity.waitEndDate!=null"> AND WAIT_END_DATE=#{ew.entity.waitEndDate}</if>
|
|
|
|
|
<if test="ew.entity.waitDescription!=null"> AND WAIT_DESCRIPTION=#{ew.entity.waitDescription}</if>
|
|
|
|
|
<if test="ew.entity.primaryReason!=null"> AND PRIMARY_REASON=#{ew.entity.primaryReason}</if>
|
|
|
|
|
<if test="ew.entity.primaryReasonDescription!=null"> AND PRIMARY_REASON_DESCRIPTION=#{ew.entity.primaryReasonDescription}</if>
|
|
|
|
|
<if test="ew.entity.precautionMeasureDescription!=null"> AND PRECAUTION_MEASURE_DESCRIPTION=#{ew.entity.precautionMeasureDescription}</if>
|
|
|
|
|
<if test="ew.entity.remark!=null"> AND REMARK=#{ew.entity.remark}</if>
|
|
|
|
|
<if test="ew.entity.other!=null"> AND OTHER=#{ew.entity.other}</if>
|
|
|
|
|
<if test="ew.entity.another!=null"> AND ANOTHER=#{ew.entity.another}</if>
|
|
|
|
@ -103,13 +135,14 @@
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.repairNo!=null"> AND REPAIR_NO=#{ew.entity.repairNo}</if>
|
|
|
|
|
<if test="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.resourceBo!=null"> AND RESOURCE_BO=#{ew.entity.resourceBo}</if>
|
|
|
|
|
<if test="ew.entity.userNo!=null"> AND USER_NO=#{ew.entity.userNo}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeBo!=null"> AND NC_CODE_BO=#{ew.entity.ncCodeBo}</if>
|
|
|
|
|
<if test="ew.entity.resourceNo!=null"> AND RESOURCE_NO=#{ew.entity.resourceNo}</if>
|
|
|
|
|
<if test="ew.entity.reportUser!=null"> AND REPORT_USER=#{ew.entity.reportUser}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeNo!=null"> AND NC_CODE_NO=#{ew.entity.ncCodeNo}</if>
|
|
|
|
|
<if test="ew.entity.repairType!=null"> AND REPAIR_TYPE=#{ew.entity.repairType}</if>
|
|
|
|
|
<if test="ew.entity.stopMachine!=null"> AND STOP_MACHINE=#{ew.entity.stopMachine}</if>
|
|
|
|
|
<if test="ew.entity.ncDescription!=null"> AND NC_DESCRIPTION=#{ew.entity.ncDescription}</if>
|
|
|
|
|
<if test="ew.entity.breakDownDescription!=null"> AND BREAK_DOWN_DESCRIPTION=#{ew.entity.breakDownDescription}</if>
|
|
|
|
|
<if test="ew.entity.findLink!=null"> AND FIND_LINK=#{ew.entity.findLink}</if>
|
|
|
|
|
<if test="ew.entity.reportSource!=null"> AND REPORT_SOURCE=#{ew.entity.reportSource}</if>
|
|
|
|
|
<if test="ew.entity.objectBo!=null"> AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
|
|
@ -117,6 +150,21 @@
|
|
|
|
|
<if test="ew.entity.planCompleteDate!=null"> AND PLAN_COMPLETE_DATE=#{ew.entity.planCompleteDate}</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.repairUsers!=null"> AND REPAIR_USERS=#{ew.entity.repairUsers}</if>
|
|
|
|
|
<if test="ew.entity.cancelCode!=null"> AND CANCEL_CODE=#{ew.entity.cancelCode}</if>
|
|
|
|
|
<if test="ew.entity.cancelDate!=null"> AND CANCEL_DATE=#{ew.entity.cancelDate}</if>
|
|
|
|
|
<if test="ew.entity.cancelDescription!=null"> AND CANCEL_DESCRIPTION=#{ew.entity.cancelDescription}</if>
|
|
|
|
|
<if test="ew.entity.cancelUser!=null"> AND CANCEL_USER=#{ew.entity.cancelUser}</if>
|
|
|
|
|
<if test="ew.entity.dealWay!=null"> AND DEAL_WAY=#{ew.entity.dealWay}</if>
|
|
|
|
|
<if test="ew.entity.preliminaryReason!=null"> AND PRELIMINARY_REASON=#{ew.entity.preliminaryReason}</if>
|
|
|
|
|
<if test="ew.entity.dealWayDescription!=null"> AND DEAL_WAY_DESCRIPTION=#{ew.entity.dealWayDescription}</if>
|
|
|
|
|
<if test="ew.entity.waitTime!=null"> AND WAIT_TIME=#{ew.entity.waitTime}</if>
|
|
|
|
|
<if test="ew.entity.waitStartDate!=null"> AND WAIT_START_DATE=#{ew.entity.waitStartDate}</if>
|
|
|
|
|
<if test="ew.entity.waitEndDate!=null"> AND WAIT_END_DATE=#{ew.entity.waitEndDate}</if>
|
|
|
|
|
<if test="ew.entity.waitDescription!=null"> AND WAIT_DESCRIPTION=#{ew.entity.waitDescription}</if>
|
|
|
|
|
<if test="ew.entity.primaryReason!=null"> AND PRIMARY_REASON=#{ew.entity.primaryReason}</if>
|
|
|
|
|
<if test="ew.entity.primaryReasonDescription!=null"> AND PRIMARY_REASON_DESCRIPTION=#{ew.entity.primaryReasonDescription}</if>
|
|
|
|
|
<if test="ew.entity.precautionMeasureDescription!=null"> AND PRECAUTION_MEASURE_DESCRIPTION=#{ew.entity.precautionMeasureDescription}</if>
|
|
|
|
|
<if test="ew.entity.remark!=null"> AND REMARK=#{ew.entity.remark}</if>
|
|
|
|
|
<if test="ew.entity.other!=null"> AND OTHER=#{ew.entity.other}</if>
|
|
|
|
|
<if test="ew.entity.another!=null"> AND ANOTHER=#{ew.entity.another}</if>
|
|
|
|
@ -145,13 +193,14 @@
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.repairNo!=null"> AND REPAIR_NO=#{ew.entity.repairNo}</if>
|
|
|
|
|
<if test="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.resourceBo!=null"> AND RESOURCE_BO=#{ew.entity.resourceBo}</if>
|
|
|
|
|
<if test="ew.entity.userNo!=null"> AND USER_NO=#{ew.entity.userNo}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeBo!=null"> AND NC_CODE_BO=#{ew.entity.ncCodeBo}</if>
|
|
|
|
|
<if test="ew.entity.resourceNo!=null"> AND RESOURCE_NO=#{ew.entity.resourceNo}</if>
|
|
|
|
|
<if test="ew.entity.reportUser!=null"> AND REPORT_USER=#{ew.entity.reportUser}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeNo!=null"> AND NC_CODE_NO=#{ew.entity.ncCodeNo}</if>
|
|
|
|
|
<if test="ew.entity.repairType!=null"> AND REPAIR_TYPE=#{ew.entity.repairType}</if>
|
|
|
|
|
<if test="ew.entity.stopMachine!=null"> AND STOP_MACHINE=#{ew.entity.stopMachine}</if>
|
|
|
|
|
<if test="ew.entity.ncDescription!=null"> AND NC_DESCRIPTION=#{ew.entity.ncDescription}</if>
|
|
|
|
|
<if test="ew.entity.breakDownDescription!=null"> AND BREAK_DOWN_DESCRIPTION=#{ew.entity.breakDownDescription}</if>
|
|
|
|
|
<if test="ew.entity.findLink!=null"> AND FIND_LINK=#{ew.entity.findLink}</if>
|
|
|
|
|
<if test="ew.entity.reportSource!=null"> AND REPORT_SOURCE=#{ew.entity.reportSource}</if>
|
|
|
|
|
<if test="ew.entity.objectBo!=null"> AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
|
|
@ -159,6 +208,21 @@
|
|
|
|
|
<if test="ew.entity.planCompleteDate!=null"> AND PLAN_COMPLETE_DATE=#{ew.entity.planCompleteDate}</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.repairUsers!=null"> AND REPAIR_USERS=#{ew.entity.repairUsers}</if>
|
|
|
|
|
<if test="ew.entity.cancelCode!=null"> AND CANCEL_CODE=#{ew.entity.cancelCode}</if>
|
|
|
|
|
<if test="ew.entity.cancelDate!=null"> AND CANCEL_DATE=#{ew.entity.cancelDate}</if>
|
|
|
|
|
<if test="ew.entity.cancelDescription!=null"> AND CANCEL_DESCRIPTION=#{ew.entity.cancelDescription}</if>
|
|
|
|
|
<if test="ew.entity.cancelUser!=null"> AND CANCEL_USER=#{ew.entity.cancelUser}</if>
|
|
|
|
|
<if test="ew.entity.dealWay!=null"> AND DEAL_WAY=#{ew.entity.dealWay}</if>
|
|
|
|
|
<if test="ew.entity.preliminaryReason!=null"> AND PRELIMINARY_REASON=#{ew.entity.preliminaryReason}</if>
|
|
|
|
|
<if test="ew.entity.dealWayDescription!=null"> AND DEAL_WAY_DESCRIPTION=#{ew.entity.dealWayDescription}</if>
|
|
|
|
|
<if test="ew.entity.waitTime!=null"> AND WAIT_TIME=#{ew.entity.waitTime}</if>
|
|
|
|
|
<if test="ew.entity.waitStartDate!=null"> AND WAIT_START_DATE=#{ew.entity.waitStartDate}</if>
|
|
|
|
|
<if test="ew.entity.waitEndDate!=null"> AND WAIT_END_DATE=#{ew.entity.waitEndDate}</if>
|
|
|
|
|
<if test="ew.entity.waitDescription!=null"> AND WAIT_DESCRIPTION=#{ew.entity.waitDescription}</if>
|
|
|
|
|
<if test="ew.entity.primaryReason!=null"> AND PRIMARY_REASON=#{ew.entity.primaryReason}</if>
|
|
|
|
|
<if test="ew.entity.primaryReasonDescription!=null"> AND PRIMARY_REASON_DESCRIPTION=#{ew.entity.primaryReasonDescription}</if>
|
|
|
|
|
<if test="ew.entity.precautionMeasureDescription!=null"> AND PRECAUTION_MEASURE_DESCRIPTION=#{ew.entity.precautionMeasureDescription}</if>
|
|
|
|
|
<if test="ew.entity.remark!=null"> AND REMARK=#{ew.entity.remark}</if>
|
|
|
|
|
<if test="ew.entity.other!=null"> AND OTHER=#{ew.entity.other}</if>
|
|
|
|
|
<if test="ew.entity.another!=null"> AND ANOTHER=#{ew.entity.another}</if>
|
|
|
|
@ -187,13 +251,14 @@
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.repairNo!=null"> AND REPAIR_NO=#{ew.entity.repairNo}</if>
|
|
|
|
|
<if test="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.resourceBo!=null"> AND RESOURCE_BO=#{ew.entity.resourceBo}</if>
|
|
|
|
|
<if test="ew.entity.userNo!=null"> AND USER_NO=#{ew.entity.userNo}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeBo!=null"> AND NC_CODE_BO=#{ew.entity.ncCodeBo}</if>
|
|
|
|
|
<if test="ew.entity.resourceNo!=null"> AND RESOURCE_NO=#{ew.entity.resourceNo}</if>
|
|
|
|
|
<if test="ew.entity.reportUser!=null"> AND REPORT_USER=#{ew.entity.reportUser}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeNo!=null"> AND NC_CODE_NO=#{ew.entity.ncCodeNo}</if>
|
|
|
|
|
<if test="ew.entity.repairType!=null"> AND REPAIR_TYPE=#{ew.entity.repairType}</if>
|
|
|
|
|
<if test="ew.entity.stopMachine!=null"> AND STOP_MACHINE=#{ew.entity.stopMachine}</if>
|
|
|
|
|
<if test="ew.entity.ncDescription!=null"> AND NC_DESCRIPTION=#{ew.entity.ncDescription}</if>
|
|
|
|
|
<if test="ew.entity.breakDownDescription!=null"> AND BREAK_DOWN_DESCRIPTION=#{ew.entity.breakDownDescription}</if>
|
|
|
|
|
<if test="ew.entity.findLink!=null"> AND FIND_LINK=#{ew.entity.findLink}</if>
|
|
|
|
|
<if test="ew.entity.reportSource!=null"> AND REPORT_SOURCE=#{ew.entity.reportSource}</if>
|
|
|
|
|
<if test="ew.entity.objectBo!=null"> AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
|
|
@ -201,6 +266,21 @@
|
|
|
|
|
<if test="ew.entity.planCompleteDate!=null"> AND PLAN_COMPLETE_DATE=#{ew.entity.planCompleteDate}</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.repairUsers!=null"> AND REPAIR_USERS=#{ew.entity.repairUsers}</if>
|
|
|
|
|
<if test="ew.entity.cancelCode!=null"> AND CANCEL_CODE=#{ew.entity.cancelCode}</if>
|
|
|
|
|
<if test="ew.entity.cancelDate!=null"> AND CANCEL_DATE=#{ew.entity.cancelDate}</if>
|
|
|
|
|
<if test="ew.entity.cancelDescription!=null"> AND CANCEL_DESCRIPTION=#{ew.entity.cancelDescription}</if>
|
|
|
|
|
<if test="ew.entity.cancelUser!=null"> AND CANCEL_USER=#{ew.entity.cancelUser}</if>
|
|
|
|
|
<if test="ew.entity.dealWay!=null"> AND DEAL_WAY=#{ew.entity.dealWay}</if>
|
|
|
|
|
<if test="ew.entity.preliminaryReason!=null"> AND PRELIMINARY_REASON=#{ew.entity.preliminaryReason}</if>
|
|
|
|
|
<if test="ew.entity.dealWayDescription!=null"> AND DEAL_WAY_DESCRIPTION=#{ew.entity.dealWayDescription}</if>
|
|
|
|
|
<if test="ew.entity.waitTime!=null"> AND WAIT_TIME=#{ew.entity.waitTime}</if>
|
|
|
|
|
<if test="ew.entity.waitStartDate!=null"> AND WAIT_START_DATE=#{ew.entity.waitStartDate}</if>
|
|
|
|
|
<if test="ew.entity.waitEndDate!=null"> AND WAIT_END_DATE=#{ew.entity.waitEndDate}</if>
|
|
|
|
|
<if test="ew.entity.waitDescription!=null"> AND WAIT_DESCRIPTION=#{ew.entity.waitDescription}</if>
|
|
|
|
|
<if test="ew.entity.primaryReason!=null"> AND PRIMARY_REASON=#{ew.entity.primaryReason}</if>
|
|
|
|
|
<if test="ew.entity.primaryReasonDescription!=null"> AND PRIMARY_REASON_DESCRIPTION=#{ew.entity.primaryReasonDescription}</if>
|
|
|
|
|
<if test="ew.entity.precautionMeasureDescription!=null"> AND PRECAUTION_MEASURE_DESCRIPTION=#{ew.entity.precautionMeasureDescription}</if>
|
|
|
|
|
<if test="ew.entity.remark!=null"> AND REMARK=#{ew.entity.remark}</if>
|
|
|
|
|
<if test="ew.entity.other!=null"> AND OTHER=#{ew.entity.other}</if>
|
|
|
|
|
<if test="ew.entity.another!=null"> AND ANOTHER=#{ew.entity.another}</if>
|
|
|
|
@ -229,13 +309,14 @@
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.repairNo!=null"> AND REPAIR_NO=#{ew.entity.repairNo}</if>
|
|
|
|
|
<if test="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.resourceBo!=null"> AND RESOURCE_BO=#{ew.entity.resourceBo}</if>
|
|
|
|
|
<if test="ew.entity.userNo!=null"> AND USER_NO=#{ew.entity.userNo}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeBo!=null"> AND NC_CODE_BO=#{ew.entity.ncCodeBo}</if>
|
|
|
|
|
<if test="ew.entity.resourceNo!=null"> AND RESOURCE_NO=#{ew.entity.resourceNo}</if>
|
|
|
|
|
<if test="ew.entity.reportUser!=null"> AND REPORT_USER=#{ew.entity.reportUser}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeNo!=null"> AND NC_CODE_NO=#{ew.entity.ncCodeNo}</if>
|
|
|
|
|
<if test="ew.entity.repairType!=null"> AND REPAIR_TYPE=#{ew.entity.repairType}</if>
|
|
|
|
|
<if test="ew.entity.stopMachine!=null"> AND STOP_MACHINE=#{ew.entity.stopMachine}</if>
|
|
|
|
|
<if test="ew.entity.ncDescription!=null"> AND NC_DESCRIPTION=#{ew.entity.ncDescription}</if>
|
|
|
|
|
<if test="ew.entity.breakDownDescription!=null"> AND BREAK_DOWN_DESCRIPTION=#{ew.entity.breakDownDescription}</if>
|
|
|
|
|
<if test="ew.entity.findLink!=null"> AND FIND_LINK=#{ew.entity.findLink}</if>
|
|
|
|
|
<if test="ew.entity.reportSource!=null"> AND REPORT_SOURCE=#{ew.entity.reportSource}</if>
|
|
|
|
|
<if test="ew.entity.objectBo!=null"> AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
|
|
@ -243,6 +324,21 @@
|
|
|
|
|
<if test="ew.entity.planCompleteDate!=null"> AND PLAN_COMPLETE_DATE=#{ew.entity.planCompleteDate}</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.repairUsers!=null"> AND REPAIR_USERS=#{ew.entity.repairUsers}</if>
|
|
|
|
|
<if test="ew.entity.cancelCode!=null"> AND CANCEL_CODE=#{ew.entity.cancelCode}</if>
|
|
|
|
|
<if test="ew.entity.cancelDate!=null"> AND CANCEL_DATE=#{ew.entity.cancelDate}</if>
|
|
|
|
|
<if test="ew.entity.cancelDescription!=null"> AND CANCEL_DESCRIPTION=#{ew.entity.cancelDescription}</if>
|
|
|
|
|
<if test="ew.entity.cancelUser!=null"> AND CANCEL_USER=#{ew.entity.cancelUser}</if>
|
|
|
|
|
<if test="ew.entity.dealWay!=null"> AND DEAL_WAY=#{ew.entity.dealWay}</if>
|
|
|
|
|
<if test="ew.entity.preliminaryReason!=null"> AND PRELIMINARY_REASON=#{ew.entity.preliminaryReason}</if>
|
|
|
|
|
<if test="ew.entity.dealWayDescription!=null"> AND DEAL_WAY_DESCRIPTION=#{ew.entity.dealWayDescription}</if>
|
|
|
|
|
<if test="ew.entity.waitTime!=null"> AND WAIT_TIME=#{ew.entity.waitTime}</if>
|
|
|
|
|
<if test="ew.entity.waitStartDate!=null"> AND WAIT_START_DATE=#{ew.entity.waitStartDate}</if>
|
|
|
|
|
<if test="ew.entity.waitEndDate!=null"> AND WAIT_END_DATE=#{ew.entity.waitEndDate}</if>
|
|
|
|
|
<if test="ew.entity.waitDescription!=null"> AND WAIT_DESCRIPTION=#{ew.entity.waitDescription}</if>
|
|
|
|
|
<if test="ew.entity.primaryReason!=null"> AND PRIMARY_REASON=#{ew.entity.primaryReason}</if>
|
|
|
|
|
<if test="ew.entity.primaryReasonDescription!=null"> AND PRIMARY_REASON_DESCRIPTION=#{ew.entity.primaryReasonDescription}</if>
|
|
|
|
|
<if test="ew.entity.precautionMeasureDescription!=null"> AND PRECAUTION_MEASURE_DESCRIPTION=#{ew.entity.precautionMeasureDescription}</if>
|
|
|
|
|
<if test="ew.entity.remark!=null"> AND REMARK=#{ew.entity.remark}</if>
|
|
|
|
|
<if test="ew.entity.other!=null"> AND OTHER=#{ew.entity.other}</if>
|
|
|
|
|
<if test="ew.entity.another!=null"> AND ANOTHER=#{ew.entity.another}</if>
|
|
|
|
@ -271,13 +367,14 @@
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.repairNo!=null"> AND REPAIR_NO=#{ew.entity.repairNo}</if>
|
|
|
|
|
<if test="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.resourceBo!=null"> AND RESOURCE_BO=#{ew.entity.resourceBo}</if>
|
|
|
|
|
<if test="ew.entity.userNo!=null"> AND USER_NO=#{ew.entity.userNo}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeBo!=null"> AND NC_CODE_BO=#{ew.entity.ncCodeBo}</if>
|
|
|
|
|
<if test="ew.entity.resourceNo!=null"> AND RESOURCE_NO=#{ew.entity.resourceNo}</if>
|
|
|
|
|
<if test="ew.entity.reportUser!=null"> AND REPORT_USER=#{ew.entity.reportUser}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeNo!=null"> AND NC_CODE_NO=#{ew.entity.ncCodeNo}</if>
|
|
|
|
|
<if test="ew.entity.repairType!=null"> AND REPAIR_TYPE=#{ew.entity.repairType}</if>
|
|
|
|
|
<if test="ew.entity.stopMachine!=null"> AND STOP_MACHINE=#{ew.entity.stopMachine}</if>
|
|
|
|
|
<if test="ew.entity.ncDescription!=null"> AND NC_DESCRIPTION=#{ew.entity.ncDescription}</if>
|
|
|
|
|
<if test="ew.entity.breakDownDescription!=null"> AND BREAK_DOWN_DESCRIPTION=#{ew.entity.breakDownDescription}</if>
|
|
|
|
|
<if test="ew.entity.findLink!=null"> AND FIND_LINK=#{ew.entity.findLink}</if>
|
|
|
|
|
<if test="ew.entity.reportSource!=null"> AND REPORT_SOURCE=#{ew.entity.reportSource}</if>
|
|
|
|
|
<if test="ew.entity.objectBo!=null"> AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
|
|
@ -285,6 +382,21 @@
|
|
|
|
|
<if test="ew.entity.planCompleteDate!=null"> AND PLAN_COMPLETE_DATE=#{ew.entity.planCompleteDate}</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.repairUsers!=null"> AND REPAIR_USERS=#{ew.entity.repairUsers}</if>
|
|
|
|
|
<if test="ew.entity.cancelCode!=null"> AND CANCEL_CODE=#{ew.entity.cancelCode}</if>
|
|
|
|
|
<if test="ew.entity.cancelDate!=null"> AND CANCEL_DATE=#{ew.entity.cancelDate}</if>
|
|
|
|
|
<if test="ew.entity.cancelDescription!=null"> AND CANCEL_DESCRIPTION=#{ew.entity.cancelDescription}</if>
|
|
|
|
|
<if test="ew.entity.cancelUser!=null"> AND CANCEL_USER=#{ew.entity.cancelUser}</if>
|
|
|
|
|
<if test="ew.entity.dealWay!=null"> AND DEAL_WAY=#{ew.entity.dealWay}</if>
|
|
|
|
|
<if test="ew.entity.preliminaryReason!=null"> AND PRELIMINARY_REASON=#{ew.entity.preliminaryReason}</if>
|
|
|
|
|
<if test="ew.entity.dealWayDescription!=null"> AND DEAL_WAY_DESCRIPTION=#{ew.entity.dealWayDescription}</if>
|
|
|
|
|
<if test="ew.entity.waitTime!=null"> AND WAIT_TIME=#{ew.entity.waitTime}</if>
|
|
|
|
|
<if test="ew.entity.waitStartDate!=null"> AND WAIT_START_DATE=#{ew.entity.waitStartDate}</if>
|
|
|
|
|
<if test="ew.entity.waitEndDate!=null"> AND WAIT_END_DATE=#{ew.entity.waitEndDate}</if>
|
|
|
|
|
<if test="ew.entity.waitDescription!=null"> AND WAIT_DESCRIPTION=#{ew.entity.waitDescription}</if>
|
|
|
|
|
<if test="ew.entity.primaryReason!=null"> AND PRIMARY_REASON=#{ew.entity.primaryReason}</if>
|
|
|
|
|
<if test="ew.entity.primaryReasonDescription!=null"> AND PRIMARY_REASON_DESCRIPTION=#{ew.entity.primaryReasonDescription}</if>
|
|
|
|
|
<if test="ew.entity.precautionMeasureDescription!=null"> AND PRECAUTION_MEASURE_DESCRIPTION=#{ew.entity.precautionMeasureDescription}</if>
|
|
|
|
|
<if test="ew.entity.remark!=null"> AND REMARK=#{ew.entity.remark}</if>
|
|
|
|
|
<if test="ew.entity.other!=null"> AND OTHER=#{ew.entity.other}</if>
|
|
|
|
|
<if test="ew.entity.another!=null"> AND ANOTHER=#{ew.entity.another}</if>
|
|
|
|
@ -313,13 +425,14 @@
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.repairNo!=null"> AND REPAIR_NO=#{ew.entity.repairNo}</if>
|
|
|
|
|
<if test="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.resourceBo!=null"> AND RESOURCE_BO=#{ew.entity.resourceBo}</if>
|
|
|
|
|
<if test="ew.entity.userNo!=null"> AND USER_NO=#{ew.entity.userNo}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeBo!=null"> AND NC_CODE_BO=#{ew.entity.ncCodeBo}</if>
|
|
|
|
|
<if test="ew.entity.resourceNo!=null"> AND RESOURCE_NO=#{ew.entity.resourceNo}</if>
|
|
|
|
|
<if test="ew.entity.reportUser!=null"> AND REPORT_USER=#{ew.entity.reportUser}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeNo!=null"> AND NC_CODE_NO=#{ew.entity.ncCodeNo}</if>
|
|
|
|
|
<if test="ew.entity.repairType!=null"> AND REPAIR_TYPE=#{ew.entity.repairType}</if>
|
|
|
|
|
<if test="ew.entity.stopMachine!=null"> AND STOP_MACHINE=#{ew.entity.stopMachine}</if>
|
|
|
|
|
<if test="ew.entity.ncDescription!=null"> AND NC_DESCRIPTION=#{ew.entity.ncDescription}</if>
|
|
|
|
|
<if test="ew.entity.breakDownDescription!=null"> AND BREAK_DOWN_DESCRIPTION=#{ew.entity.breakDownDescription}</if>
|
|
|
|
|
<if test="ew.entity.findLink!=null"> AND FIND_LINK=#{ew.entity.findLink}</if>
|
|
|
|
|
<if test="ew.entity.reportSource!=null"> AND REPORT_SOURCE=#{ew.entity.reportSource}</if>
|
|
|
|
|
<if test="ew.entity.objectBo!=null"> AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
|
|
@ -327,6 +440,21 @@
|
|
|
|
|
<if test="ew.entity.planCompleteDate!=null"> AND PLAN_COMPLETE_DATE=#{ew.entity.planCompleteDate}</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.repairUsers!=null"> AND REPAIR_USERS=#{ew.entity.repairUsers}</if>
|
|
|
|
|
<if test="ew.entity.cancelCode!=null"> AND CANCEL_CODE=#{ew.entity.cancelCode}</if>
|
|
|
|
|
<if test="ew.entity.cancelDate!=null"> AND CANCEL_DATE=#{ew.entity.cancelDate}</if>
|
|
|
|
|
<if test="ew.entity.cancelDescription!=null"> AND CANCEL_DESCRIPTION=#{ew.entity.cancelDescription}</if>
|
|
|
|
|
<if test="ew.entity.cancelUser!=null"> AND CANCEL_USER=#{ew.entity.cancelUser}</if>
|
|
|
|
|
<if test="ew.entity.dealWay!=null"> AND DEAL_WAY=#{ew.entity.dealWay}</if>
|
|
|
|
|
<if test="ew.entity.preliminaryReason!=null"> AND PRELIMINARY_REASON=#{ew.entity.preliminaryReason}</if>
|
|
|
|
|
<if test="ew.entity.dealWayDescription!=null"> AND DEAL_WAY_DESCRIPTION=#{ew.entity.dealWayDescription}</if>
|
|
|
|
|
<if test="ew.entity.waitTime!=null"> AND WAIT_TIME=#{ew.entity.waitTime}</if>
|
|
|
|
|
<if test="ew.entity.waitStartDate!=null"> AND WAIT_START_DATE=#{ew.entity.waitStartDate}</if>
|
|
|
|
|
<if test="ew.entity.waitEndDate!=null"> AND WAIT_END_DATE=#{ew.entity.waitEndDate}</if>
|
|
|
|
|
<if test="ew.entity.waitDescription!=null"> AND WAIT_DESCRIPTION=#{ew.entity.waitDescription}</if>
|
|
|
|
|
<if test="ew.entity.primaryReason!=null"> AND PRIMARY_REASON=#{ew.entity.primaryReason}</if>
|
|
|
|
|
<if test="ew.entity.primaryReasonDescription!=null"> AND PRIMARY_REASON_DESCRIPTION=#{ew.entity.primaryReasonDescription}</if>
|
|
|
|
|
<if test="ew.entity.precautionMeasureDescription!=null"> AND PRECAUTION_MEASURE_DESCRIPTION=#{ew.entity.precautionMeasureDescription}</if>
|
|
|
|
|
<if test="ew.entity.remark!=null"> AND REMARK=#{ew.entity.remark}</if>
|
|
|
|
|
<if test="ew.entity.other!=null"> AND OTHER=#{ew.entity.other}</if>
|
|
|
|
|
<if test="ew.entity.another!=null"> AND ANOTHER=#{ew.entity.another}</if>
|
|
|
|
@ -351,13 +479,14 @@
|
|
|
|
|
HANDLE,
|
|
|
|
|
<if test="site!=null">SITE,</if>
|
|
|
|
|
<if test="repairNo!=null">REPAIR_NO,</if>
|
|
|
|
|
<if test="description!=null">DESCRIPTION,</if>
|
|
|
|
|
<if test="status!=null">STATUS,</if>
|
|
|
|
|
<if test="resourceBo!=null">RESOURCE_BO,</if>
|
|
|
|
|
<if test="userNo!=null">USER_NO,</if>
|
|
|
|
|
<if test="ncCodeBo!=null">NC_CODE_BO,</if>
|
|
|
|
|
<if test="resourceNo!=null">RESOURCE_NO,</if>
|
|
|
|
|
<if test="reportUser!=null">REPORT_USER,</if>
|
|
|
|
|
<if test="ncCodeNo!=null">NC_CODE_NO,</if>
|
|
|
|
|
<if test="repairType!=null">REPAIR_TYPE,</if>
|
|
|
|
|
<if test="stopMachine!=null">STOP_MACHINE,</if>
|
|
|
|
|
<if test="ncDescription!=null">NC_DESCRIPTION,</if>
|
|
|
|
|
<if test="breakDownDescription!=null">BREAK_DOWN_DESCRIPTION,</if>
|
|
|
|
|
<if test="findLink!=null">FIND_LINK,</if>
|
|
|
|
|
<if test="reportSource!=null">REPORT_SOURCE,</if>
|
|
|
|
|
<if test="objectBo!=null">OBJECT_BO,</if>
|
|
|
|
@ -365,6 +494,21 @@
|
|
|
|
|
<if test="planCompleteDate!=null">PLAN_COMPLETE_DATE,</if>
|
|
|
|
|
<if test="actualStartDate!=null">ACTUAL_START_DATE,</if>
|
|
|
|
|
<if test="actualCompleteDate!=null">ACTUAL_COMPLETE_DATE,</if>
|
|
|
|
|
<if test="repairUsers!=null">REPAIR_USERS,</if>
|
|
|
|
|
<if test="cancelCode!=null">CANCEL_CODE,</if>
|
|
|
|
|
<if test="cancelDate!=null">CANCEL_DATE,</if>
|
|
|
|
|
<if test="cancelDescription!=null">CANCEL_DESCRIPTION,</if>
|
|
|
|
|
<if test="cancelUser!=null">CANCEL_USER,</if>
|
|
|
|
|
<if test="dealWay!=null">DEAL_WAY,</if>
|
|
|
|
|
<if test="preliminaryReason!=null">PRELIMINARY_REASON,</if>
|
|
|
|
|
<if test="dealWayDescription!=null">DEAL_WAY_DESCRIPTION,</if>
|
|
|
|
|
<if test="waitTime!=null">WAIT_TIME,</if>
|
|
|
|
|
<if test="waitStartDate!=null">WAIT_START_DATE,</if>
|
|
|
|
|
<if test="waitEndDate!=null">WAIT_END_DATE,</if>
|
|
|
|
|
<if test="waitDescription!=null">WAIT_DESCRIPTION,</if>
|
|
|
|
|
<if test="primaryReason!=null">PRIMARY_REASON,</if>
|
|
|
|
|
<if test="primaryReasonDescription!=null">PRIMARY_REASON_DESCRIPTION,</if>
|
|
|
|
|
<if test="precautionMeasureDescription!=null">PRECAUTION_MEASURE_DESCRIPTION,</if>
|
|
|
|
|
<if test="remark!=null">REMARK,</if>
|
|
|
|
|
<if test="other!=null">OTHER,</if>
|
|
|
|
|
<if test="another!=null">ANOTHER,</if>
|
|
|
|
@ -377,13 +521,14 @@
|
|
|
|
|
#{handle},
|
|
|
|
|
<if test="site!=null">#{site},</if>
|
|
|
|
|
<if test="repairNo!=null">#{repairNo},</if>
|
|
|
|
|
<if test="description!=null">#{description},</if>
|
|
|
|
|
<if test="status!=null">#{status},</if>
|
|
|
|
|
<if test="resourceBo!=null">#{resourceBo},</if>
|
|
|
|
|
<if test="userNo!=null">#{userNo},</if>
|
|
|
|
|
<if test="ncCodeBo!=null">#{ncCodeBo},</if>
|
|
|
|
|
<if test="resourceNo!=null">#{resourceNo},</if>
|
|
|
|
|
<if test="reportUser!=null">#{reportUser},</if>
|
|
|
|
|
<if test="ncCodeNo!=null">#{ncCodeNo},</if>
|
|
|
|
|
<if test="repairType!=null">#{repairType},</if>
|
|
|
|
|
<if test="stopMachine!=null">#{stopMachine},</if>
|
|
|
|
|
<if test="ncDescription!=null">#{ncDescription},</if>
|
|
|
|
|
<if test="breakDownDescription!=null">#{breakDownDescription},</if>
|
|
|
|
|
<if test="findLink!=null">#{findLink},</if>
|
|
|
|
|
<if test="reportSource!=null">#{reportSource},</if>
|
|
|
|
|
<if test="objectBo!=null">#{objectBo},</if>
|
|
|
|
@ -391,6 +536,21 @@
|
|
|
|
|
<if test="planCompleteDate!=null">#{planCompleteDate},</if>
|
|
|
|
|
<if test="actualStartDate!=null">#{actualStartDate},</if>
|
|
|
|
|
<if test="actualCompleteDate!=null">#{actualCompleteDate},</if>
|
|
|
|
|
<if test="repairUsers!=null">#{repairUsers},</if>
|
|
|
|
|
<if test="cancelCode!=null">#{cancelCode},</if>
|
|
|
|
|
<if test="cancelDate!=null">#{cancelDate},</if>
|
|
|
|
|
<if test="cancelDescription!=null">#{cancelDescription},</if>
|
|
|
|
|
<if test="cancelUser!=null">#{cancelUser},</if>
|
|
|
|
|
<if test="dealWay!=null">#{dealWay},</if>
|
|
|
|
|
<if test="preliminaryReason!=null">#{preliminaryReason},</if>
|
|
|
|
|
<if test="dealWayDescription!=null">#{dealWayDescription},</if>
|
|
|
|
|
<if test="waitTime!=null">#{waitTime},</if>
|
|
|
|
|
<if test="waitStartDate!=null">#{waitStartDate},</if>
|
|
|
|
|
<if test="waitEndDate!=null">#{waitEndDate},</if>
|
|
|
|
|
<if test="waitDescription!=null">#{waitDescription},</if>
|
|
|
|
|
<if test="primaryReason!=null">#{primaryReason},</if>
|
|
|
|
|
<if test="primaryReasonDescription!=null">#{primaryReasonDescription},</if>
|
|
|
|
|
<if test="precautionMeasureDescription!=null">#{precautionMeasureDescription},</if>
|
|
|
|
|
<if test="remark!=null">#{remark},</if>
|
|
|
|
|
<if test="other!=null">#{other},</if>
|
|
|
|
|
<if test="another!=null">#{another},</if>
|
|
|
|
@ -410,13 +570,14 @@
|
|
|
|
|
#{handle},
|
|
|
|
|
#{site},
|
|
|
|
|
#{repairNo},
|
|
|
|
|
#{description},
|
|
|
|
|
#{status},
|
|
|
|
|
#{resourceBo},
|
|
|
|
|
#{userNo},
|
|
|
|
|
#{ncCodeBo},
|
|
|
|
|
#{resourceNo},
|
|
|
|
|
#{reportUser},
|
|
|
|
|
#{ncCodeNo},
|
|
|
|
|
#{repairType},
|
|
|
|
|
#{stopMachine},
|
|
|
|
|
#{ncDescription},
|
|
|
|
|
#{breakDownDescription},
|
|
|
|
|
#{findLink},
|
|
|
|
|
#{reportSource},
|
|
|
|
|
#{objectBo},
|
|
|
|
@ -424,6 +585,21 @@
|
|
|
|
|
#{planCompleteDate},
|
|
|
|
|
#{actualStartDate},
|
|
|
|
|
#{actualCompleteDate},
|
|
|
|
|
#{repairUsers},
|
|
|
|
|
#{cancelCode},
|
|
|
|
|
#{cancelDate},
|
|
|
|
|
#{cancelDescription},
|
|
|
|
|
#{cancelUser},
|
|
|
|
|
#{dealWay},
|
|
|
|
|
#{preliminaryReason},
|
|
|
|
|
#{dealWayDescription},
|
|
|
|
|
#{waitTime},
|
|
|
|
|
#{waitStartDate},
|
|
|
|
|
#{waitEndDate},
|
|
|
|
|
#{waitDescription},
|
|
|
|
|
#{primaryReason},
|
|
|
|
|
#{primaryReasonDescription},
|
|
|
|
|
#{precautionMeasureDescription},
|
|
|
|
|
#{remark},
|
|
|
|
|
#{other},
|
|
|
|
|
#{another},
|
|
|
|
@ -439,13 +615,14 @@
|
|
|
|
|
UPDATE Z_RESOURCE_REPAIR_TASK <trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="et.site!=null">SITE=#{et.site},</if>
|
|
|
|
|
<if test="et.repairNo!=null">REPAIR_NO=#{et.repairNo},</if>
|
|
|
|
|
<if test="et.description!=null">DESCRIPTION=#{et.description},</if>
|
|
|
|
|
<if test="et.status!=null">STATUS=#{et.status},</if>
|
|
|
|
|
<if test="et.resourceBo!=null">RESOURCE_BO=#{et.resourceBo},</if>
|
|
|
|
|
<if test="et.userNo!=null">USER_NO=#{et.userNo},</if>
|
|
|
|
|
<if test="et.ncCodeBo!=null">NC_CODE_BO=#{et.ncCodeBo},</if>
|
|
|
|
|
<if test="et.resourceNo!=null">RESOURCE_NO=#{et.resourceNo},</if>
|
|
|
|
|
<if test="et.reportUser!=null">REPORT_USER=#{et.reportUser},</if>
|
|
|
|
|
<if test="et.ncCodeNo!=null">NC_CODE_NO=#{et.ncCodeNo},</if>
|
|
|
|
|
<if test="et.repairType!=null">REPAIR_TYPE=#{et.repairType},</if>
|
|
|
|
|
<if test="et.stopMachine!=null">STOP_MACHINE=#{et.stopMachine},</if>
|
|
|
|
|
<if test="et.ncDescription!=null">NC_DESCRIPTION=#{et.ncDescription},</if>
|
|
|
|
|
<if test="et.breakDownDescription!=null">BREAK_DOWN_DESCRIPTION=#{et.breakDownDescription},</if>
|
|
|
|
|
<if test="et.findLink!=null">FIND_LINK=#{et.findLink},</if>
|
|
|
|
|
<if test="et.reportSource!=null">REPORT_SOURCE=#{et.reportSource},</if>
|
|
|
|
|
<if test="et.objectBo!=null">OBJECT_BO=#{et.objectBo},</if>
|
|
|
|
@ -453,6 +630,21 @@
|
|
|
|
|
<if test="et.planCompleteDate!=null">PLAN_COMPLETE_DATE=#{et.planCompleteDate},</if>
|
|
|
|
|
<if test="et.actualStartDate!=null">ACTUAL_START_DATE=#{et.actualStartDate},</if>
|
|
|
|
|
<if test="et.actualCompleteDate!=null">ACTUAL_COMPLETE_DATE=#{et.actualCompleteDate},</if>
|
|
|
|
|
<if test="et.repairUsers!=null">REPAIR_USERS=#{et.repairUsers},</if>
|
|
|
|
|
<if test="et.cancelCode!=null">CANCEL_CODE=#{et.cancelCode},</if>
|
|
|
|
|
<if test="et.cancelDate!=null">CANCEL_DATE=#{et.cancelDate},</if>
|
|
|
|
|
<if test="et.cancelDescription!=null">CANCEL_DESCRIPTION=#{et.cancelDescription},</if>
|
|
|
|
|
<if test="et.cancelUser!=null">CANCEL_USER=#{et.cancelUser},</if>
|
|
|
|
|
<if test="et.dealWay!=null">DEAL_WAY=#{et.dealWay},</if>
|
|
|
|
|
<if test="et.preliminaryReason!=null">PRELIMINARY_REASON=#{et.preliminaryReason},</if>
|
|
|
|
|
<if test="et.dealWayDescription!=null">DEAL_WAY_DESCRIPTION=#{et.dealWayDescription},</if>
|
|
|
|
|
<if test="et.waitTime!=null">WAIT_TIME=#{et.waitTime},</if>
|
|
|
|
|
<if test="et.waitStartDate!=null">WAIT_START_DATE=#{et.waitStartDate},</if>
|
|
|
|
|
<if test="et.waitEndDate!=null">WAIT_END_DATE=#{et.waitEndDate},</if>
|
|
|
|
|
<if test="et.waitDescription!=null">WAIT_DESCRIPTION=#{et.waitDescription},</if>
|
|
|
|
|
<if test="et.primaryReason!=null">PRIMARY_REASON=#{et.primaryReason},</if>
|
|
|
|
|
<if test="et.primaryReasonDescription!=null">PRIMARY_REASON_DESCRIPTION=#{et.primaryReasonDescription},</if>
|
|
|
|
|
<if test="et.precautionMeasureDescription!=null">PRECAUTION_MEASURE_DESCRIPTION=#{et.precautionMeasureDescription},</if>
|
|
|
|
|
<if test="et.remark!=null">REMARK=#{et.remark},</if>
|
|
|
|
|
<if test="et.other!=null">OTHER=#{et.other},</if>
|
|
|
|
|
<if test="et.another!=null">ANOTHER=#{et.another},</if>
|
|
|
|
@ -468,13 +660,14 @@
|
|
|
|
|
UPDATE Z_RESOURCE_REPAIR_TASK <trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
SITE=#{et.site},
|
|
|
|
|
REPAIR_NO=#{et.repairNo},
|
|
|
|
|
DESCRIPTION=#{et.description},
|
|
|
|
|
STATUS=#{et.status},
|
|
|
|
|
RESOURCE_BO=#{et.resourceBo},
|
|
|
|
|
USER_NO=#{et.userNo},
|
|
|
|
|
NC_CODE_BO=#{et.ncCodeBo},
|
|
|
|
|
RESOURCE_NO=#{et.resourceNo},
|
|
|
|
|
REPORT_USER=#{et.reportUser},
|
|
|
|
|
NC_CODE_NO=#{et.ncCodeNo},
|
|
|
|
|
REPAIR_TYPE=#{et.repairType},
|
|
|
|
|
STOP_MACHINE=#{et.stopMachine},
|
|
|
|
|
NC_DESCRIPTION=#{et.ncDescription},
|
|
|
|
|
BREAK_DOWN_DESCRIPTION=#{et.breakDownDescription},
|
|
|
|
|
FIND_LINK=#{et.findLink},
|
|
|
|
|
REPORT_SOURCE=#{et.reportSource},
|
|
|
|
|
OBJECT_BO=#{et.objectBo},
|
|
|
|
@ -482,6 +675,21 @@
|
|
|
|
|
PLAN_COMPLETE_DATE=#{et.planCompleteDate},
|
|
|
|
|
ACTUAL_START_DATE=#{et.actualStartDate},
|
|
|
|
|
ACTUAL_COMPLETE_DATE=#{et.actualCompleteDate},
|
|
|
|
|
REPAIR_USERS=#{et.repairUsers},
|
|
|
|
|
CANCEL_CODE=#{et.cancelCode},
|
|
|
|
|
CANCEL_DATE=#{et.cancelDate},
|
|
|
|
|
CANCEL_DESCRIPTION=#{et.cancelDescription},
|
|
|
|
|
CANCEL_USER=#{et.cancelUser},
|
|
|
|
|
DEAL_WAY=#{et.dealWay},
|
|
|
|
|
PRELIMINARY_REASON=#{et.preliminaryReason},
|
|
|
|
|
DEAL_WAY_DESCRIPTION=#{et.dealWayDescription},
|
|
|
|
|
WAIT_TIME=#{et.waitTime},
|
|
|
|
|
WAIT_START_DATE=#{et.waitStartDate},
|
|
|
|
|
WAIT_END_DATE=#{et.waitEndDate},
|
|
|
|
|
WAIT_DESCRIPTION=#{et.waitDescription},
|
|
|
|
|
PRIMARY_REASON=#{et.primaryReason},
|
|
|
|
|
PRIMARY_REASON_DESCRIPTION=#{et.primaryReasonDescription},
|
|
|
|
|
PRECAUTION_MEASURE_DESCRIPTION=#{et.precautionMeasureDescription},
|
|
|
|
|
REMARK=#{et.remark},
|
|
|
|
|
OTHER=#{et.other},
|
|
|
|
|
ANOTHER=#{et.another},
|
|
|
|
@ -497,13 +705,14 @@
|
|
|
|
|
UPDATE Z_RESOURCE_REPAIR_TASK <trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="et.site!=null">SITE=#{et.site},</if>
|
|
|
|
|
<if test="et.repairNo!=null">REPAIR_NO=#{et.repairNo},</if>
|
|
|
|
|
<if test="et.description!=null">DESCRIPTION=#{et.description},</if>
|
|
|
|
|
<if test="et.status!=null">STATUS=#{et.status},</if>
|
|
|
|
|
<if test="et.resourceBo!=null">RESOURCE_BO=#{et.resourceBo},</if>
|
|
|
|
|
<if test="et.userNo!=null">USER_NO=#{et.userNo},</if>
|
|
|
|
|
<if test="et.ncCodeBo!=null">NC_CODE_BO=#{et.ncCodeBo},</if>
|
|
|
|
|
<if test="et.resourceNo!=null">RESOURCE_NO=#{et.resourceNo},</if>
|
|
|
|
|
<if test="et.reportUser!=null">REPORT_USER=#{et.reportUser},</if>
|
|
|
|
|
<if test="et.ncCodeNo!=null">NC_CODE_NO=#{et.ncCodeNo},</if>
|
|
|
|
|
<if test="et.repairType!=null">REPAIR_TYPE=#{et.repairType},</if>
|
|
|
|
|
<if test="et.stopMachine!=null">STOP_MACHINE=#{et.stopMachine},</if>
|
|
|
|
|
<if test="et.ncDescription!=null">NC_DESCRIPTION=#{et.ncDescription},</if>
|
|
|
|
|
<if test="et.breakDownDescription!=null">BREAK_DOWN_DESCRIPTION=#{et.breakDownDescription},</if>
|
|
|
|
|
<if test="et.findLink!=null">FIND_LINK=#{et.findLink},</if>
|
|
|
|
|
<if test="et.reportSource!=null">REPORT_SOURCE=#{et.reportSource},</if>
|
|
|
|
|
<if test="et.objectBo!=null">OBJECT_BO=#{et.objectBo},</if>
|
|
|
|
@ -511,6 +720,21 @@
|
|
|
|
|
<if test="et.planCompleteDate!=null">PLAN_COMPLETE_DATE=#{et.planCompleteDate},</if>
|
|
|
|
|
<if test="et.actualStartDate!=null">ACTUAL_START_DATE=#{et.actualStartDate},</if>
|
|
|
|
|
<if test="et.actualCompleteDate!=null">ACTUAL_COMPLETE_DATE=#{et.actualCompleteDate},</if>
|
|
|
|
|
<if test="et.repairUsers!=null">REPAIR_USERS=#{et.repairUsers},</if>
|
|
|
|
|
<if test="et.cancelCode!=null">CANCEL_CODE=#{et.cancelCode},</if>
|
|
|
|
|
<if test="et.cancelDate!=null">CANCEL_DATE=#{et.cancelDate},</if>
|
|
|
|
|
<if test="et.cancelDescription!=null">CANCEL_DESCRIPTION=#{et.cancelDescription},</if>
|
|
|
|
|
<if test="et.cancelUser!=null">CANCEL_USER=#{et.cancelUser},</if>
|
|
|
|
|
<if test="et.dealWay!=null">DEAL_WAY=#{et.dealWay},</if>
|
|
|
|
|
<if test="et.preliminaryReason!=null">PRELIMINARY_REASON=#{et.preliminaryReason},</if>
|
|
|
|
|
<if test="et.dealWayDescription!=null">DEAL_WAY_DESCRIPTION=#{et.dealWayDescription},</if>
|
|
|
|
|
<if test="et.waitTime!=null">WAIT_TIME=#{et.waitTime},</if>
|
|
|
|
|
<if test="et.waitStartDate!=null">WAIT_START_DATE=#{et.waitStartDate},</if>
|
|
|
|
|
<if test="et.waitEndDate!=null">WAIT_END_DATE=#{et.waitEndDate},</if>
|
|
|
|
|
<if test="et.waitDescription!=null">WAIT_DESCRIPTION=#{et.waitDescription},</if>
|
|
|
|
|
<if test="et.primaryReason!=null">PRIMARY_REASON=#{et.primaryReason},</if>
|
|
|
|
|
<if test="et.primaryReasonDescription!=null">PRIMARY_REASON_DESCRIPTION=#{et.primaryReasonDescription},</if>
|
|
|
|
|
<if test="et.precautionMeasureDescription!=null">PRECAUTION_MEASURE_DESCRIPTION=#{et.precautionMeasureDescription},</if>
|
|
|
|
|
<if test="et.remark!=null">REMARK=#{et.remark},</if>
|
|
|
|
|
<if test="et.other!=null">OTHER=#{et.other},</if>
|
|
|
|
|
<if test="et.another!=null">ANOTHER=#{et.another},</if>
|
|
|
|
@ -525,13 +749,14 @@
|
|
|
|
|
HANDLE=#{ew.entity.handle}
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.repairNo!=null"> AND REPAIR_NO=#{ew.entity.repairNo}</if>
|
|
|
|
|
<if test="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.resourceBo!=null"> AND RESOURCE_BO=#{ew.entity.resourceBo}</if>
|
|
|
|
|
<if test="ew.entity.userNo!=null"> AND USER_NO=#{ew.entity.userNo}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeBo!=null"> AND NC_CODE_BO=#{ew.entity.ncCodeBo}</if>
|
|
|
|
|
<if test="ew.entity.resourceNo!=null"> AND RESOURCE_NO=#{ew.entity.resourceNo}</if>
|
|
|
|
|
<if test="ew.entity.reportUser!=null"> AND REPORT_USER=#{ew.entity.reportUser}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeNo!=null"> AND NC_CODE_NO=#{ew.entity.ncCodeNo}</if>
|
|
|
|
|
<if test="ew.entity.repairType!=null"> AND REPAIR_TYPE=#{ew.entity.repairType}</if>
|
|
|
|
|
<if test="ew.entity.stopMachine!=null"> AND STOP_MACHINE=#{ew.entity.stopMachine}</if>
|
|
|
|
|
<if test="ew.entity.ncDescription!=null"> AND NC_DESCRIPTION=#{ew.entity.ncDescription}</if>
|
|
|
|
|
<if test="ew.entity.breakDownDescription!=null"> AND BREAK_DOWN_DESCRIPTION=#{ew.entity.breakDownDescription}</if>
|
|
|
|
|
<if test="ew.entity.findLink!=null"> AND FIND_LINK=#{ew.entity.findLink}</if>
|
|
|
|
|
<if test="ew.entity.reportSource!=null"> AND REPORT_SOURCE=#{ew.entity.reportSource}</if>
|
|
|
|
|
<if test="ew.entity.objectBo!=null"> AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
|
|
@ -539,6 +764,21 @@
|
|
|
|
|
<if test="ew.entity.planCompleteDate!=null"> AND PLAN_COMPLETE_DATE=#{ew.entity.planCompleteDate}</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.repairUsers!=null"> AND REPAIR_USERS=#{ew.entity.repairUsers}</if>
|
|
|
|
|
<if test="ew.entity.cancelCode!=null"> AND CANCEL_CODE=#{ew.entity.cancelCode}</if>
|
|
|
|
|
<if test="ew.entity.cancelDate!=null"> AND CANCEL_DATE=#{ew.entity.cancelDate}</if>
|
|
|
|
|
<if test="ew.entity.cancelDescription!=null"> AND CANCEL_DESCRIPTION=#{ew.entity.cancelDescription}</if>
|
|
|
|
|
<if test="ew.entity.cancelUser!=null"> AND CANCEL_USER=#{ew.entity.cancelUser}</if>
|
|
|
|
|
<if test="ew.entity.dealWay!=null"> AND DEAL_WAY=#{ew.entity.dealWay}</if>
|
|
|
|
|
<if test="ew.entity.preliminaryReason!=null"> AND PRELIMINARY_REASON=#{ew.entity.preliminaryReason}</if>
|
|
|
|
|
<if test="ew.entity.dealWayDescription!=null"> AND DEAL_WAY_DESCRIPTION=#{ew.entity.dealWayDescription}</if>
|
|
|
|
|
<if test="ew.entity.waitTime!=null"> AND WAIT_TIME=#{ew.entity.waitTime}</if>
|
|
|
|
|
<if test="ew.entity.waitStartDate!=null"> AND WAIT_START_DATE=#{ew.entity.waitStartDate}</if>
|
|
|
|
|
<if test="ew.entity.waitEndDate!=null"> AND WAIT_END_DATE=#{ew.entity.waitEndDate}</if>
|
|
|
|
|
<if test="ew.entity.waitDescription!=null"> AND WAIT_DESCRIPTION=#{ew.entity.waitDescription}</if>
|
|
|
|
|
<if test="ew.entity.primaryReason!=null"> AND PRIMARY_REASON=#{ew.entity.primaryReason}</if>
|
|
|
|
|
<if test="ew.entity.primaryReasonDescription!=null"> AND PRIMARY_REASON_DESCRIPTION=#{ew.entity.primaryReasonDescription}</if>
|
|
|
|
|
<if test="ew.entity.precautionMeasureDescription!=null"> AND PRECAUTION_MEASURE_DESCRIPTION=#{ew.entity.precautionMeasureDescription}</if>
|
|
|
|
|
<if test="ew.entity.remark!=null"> AND REMARK=#{ew.entity.remark}</if>
|
|
|
|
|
<if test="ew.entity.other!=null"> AND OTHER=#{ew.entity.other}</if>
|
|
|
|
|
<if test="ew.entity.another!=null"> AND ANOTHER=#{ew.entity.another}</if>
|
|
|
|
@ -584,13 +824,14 @@
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.repairNo!=null"> AND REPAIR_NO=#{ew.entity.repairNo}</if>
|
|
|
|
|
<if test="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.resourceBo!=null"> AND RESOURCE_BO=#{ew.entity.resourceBo}</if>
|
|
|
|
|
<if test="ew.entity.userNo!=null"> AND USER_NO=#{ew.entity.userNo}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeBo!=null"> AND NC_CODE_BO=#{ew.entity.ncCodeBo}</if>
|
|
|
|
|
<if test="ew.entity.resourceNo!=null"> AND RESOURCE_NO=#{ew.entity.resourceNo}</if>
|
|
|
|
|
<if test="ew.entity.reportUser!=null"> AND REPORT_USER=#{ew.entity.reportUser}</if>
|
|
|
|
|
<if test="ew.entity.ncCodeNo!=null"> AND NC_CODE_NO=#{ew.entity.ncCodeNo}</if>
|
|
|
|
|
<if test="ew.entity.repairType!=null"> AND REPAIR_TYPE=#{ew.entity.repairType}</if>
|
|
|
|
|
<if test="ew.entity.stopMachine!=null"> AND STOP_MACHINE=#{ew.entity.stopMachine}</if>
|
|
|
|
|
<if test="ew.entity.ncDescription!=null"> AND NC_DESCRIPTION=#{ew.entity.ncDescription}</if>
|
|
|
|
|
<if test="ew.entity.breakDownDescription!=null"> AND BREAK_DOWN_DESCRIPTION=#{ew.entity.breakDownDescription}</if>
|
|
|
|
|
<if test="ew.entity.findLink!=null"> AND FIND_LINK=#{ew.entity.findLink}</if>
|
|
|
|
|
<if test="ew.entity.reportSource!=null"> AND REPORT_SOURCE=#{ew.entity.reportSource}</if>
|
|
|
|
|
<if test="ew.entity.objectBo!=null"> AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
|
|
@ -598,6 +839,21 @@
|
|
|
|
|
<if test="ew.entity.planCompleteDate!=null"> AND PLAN_COMPLETE_DATE=#{ew.entity.planCompleteDate}</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.repairUsers!=null"> AND REPAIR_USERS=#{ew.entity.repairUsers}</if>
|
|
|
|
|
<if test="ew.entity.cancelCode!=null"> AND CANCEL_CODE=#{ew.entity.cancelCode}</if>
|
|
|
|
|
<if test="ew.entity.cancelDate!=null"> AND CANCEL_DATE=#{ew.entity.cancelDate}</if>
|
|
|
|
|
<if test="ew.entity.cancelDescription!=null"> AND CANCEL_DESCRIPTION=#{ew.entity.cancelDescription}</if>
|
|
|
|
|
<if test="ew.entity.cancelUser!=null"> AND CANCEL_USER=#{ew.entity.cancelUser}</if>
|
|
|
|
|
<if test="ew.entity.dealWay!=null"> AND DEAL_WAY=#{ew.entity.dealWay}</if>
|
|
|
|
|
<if test="ew.entity.preliminaryReason!=null"> AND PRELIMINARY_REASON=#{ew.entity.preliminaryReason}</if>
|
|
|
|
|
<if test="ew.entity.dealWayDescription!=null"> AND DEAL_WAY_DESCRIPTION=#{ew.entity.dealWayDescription}</if>
|
|
|
|
|
<if test="ew.entity.waitTime!=null"> AND WAIT_TIME=#{ew.entity.waitTime}</if>
|
|
|
|
|
<if test="ew.entity.waitStartDate!=null"> AND WAIT_START_DATE=#{ew.entity.waitStartDate}</if>
|
|
|
|
|
<if test="ew.entity.waitEndDate!=null"> AND WAIT_END_DATE=#{ew.entity.waitEndDate}</if>
|
|
|
|
|
<if test="ew.entity.waitDescription!=null"> AND WAIT_DESCRIPTION=#{ew.entity.waitDescription}</if>
|
|
|
|
|
<if test="ew.entity.primaryReason!=null"> AND PRIMARY_REASON=#{ew.entity.primaryReason}</if>
|
|
|
|
|
<if test="ew.entity.primaryReasonDescription!=null"> AND PRIMARY_REASON_DESCRIPTION=#{ew.entity.primaryReasonDescription}</if>
|
|
|
|
|
<if test="ew.entity.precautionMeasureDescription!=null"> AND PRECAUTION_MEASURE_DESCRIPTION=#{ew.entity.precautionMeasureDescription}</if>
|
|
|
|
|
<if test="ew.entity.remark!=null"> AND REMARK=#{ew.entity.remark}</if>
|
|
|
|
|
<if test="ew.entity.other!=null"> AND OTHER=#{ew.entity.other}</if>
|
|
|
|
|
<if test="ew.entity.another!=null"> AND ANOTHER=#{ew.entity.another}</if>
|
|
|
|
@ -623,4 +879,65 @@
|
|
|
|
|
</delete>
|
|
|
|
|
<!-- BaseMapper标准查询/修改/删除 -->
|
|
|
|
|
|
|
|
|
|
<!--自定义sql-->
|
|
|
|
|
<!--批量获取维修任务-->
|
|
|
|
|
<select id="findResourceRepairTaskList" resultType="com.foreverwin.mesnac.equip.model.ResourceRepairTask">
|
|
|
|
|
SELECT RRT.*,R.DESCRIPTION AS RESOURCE_DESCRIPTION,R.RESRCE AS RESOURCE_NO,
|
|
|
|
|
NCT.DESCRIPTION AS NC_CODE_DESCRIPTION,WCT.DESCRIPTION AS WORK_CENTER_DESCRIPTION
|
|
|
|
|
FROM
|
|
|
|
|
WIP.Z_RESOURCE_REPAIR_TASK RRT
|
|
|
|
|
LEFT JOIN WIP.RESRCE R ON R.RESRCE = RRT.RESOURCE_NO
|
|
|
|
|
LEFT JOIN WIP.NC_CODE NC ON NC.NC_CODE = RRT.NC_CODE_NO
|
|
|
|
|
LEFT JOIN WIP.NC_CODE_T NCT ON NCT.NC_CODE_BO = NC.HANDLE
|
|
|
|
|
LEFT JOIN WIP.WORK_CENTER_MEMBER WCM ON WCM.WORK_CENTER_OR_RESOURCE_GBO = R.HANDLE
|
|
|
|
|
LEFT JOIN WIP.WORK_CENTER_T WCT ON WCT.WORK_CENTER_BO = WCM.WORK_CENTER_BO
|
|
|
|
|
INNER JOIN WIP.RESOURCE_TYPE_RESOURCE RTR ON RTR.RESOURCE_BO = R.HANDLE
|
|
|
|
|
WHERE RRT.SITE = #{site} AND R.SITE = #{site} AND NC.SITE = #{site}
|
|
|
|
|
<if test="resourceBo != null and resourceBo != ''">
|
|
|
|
|
AND RRT.RESOURCE_BO = #{resourceBo}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="resourceTypeBo != null and resourceTypeBo != ''">
|
|
|
|
|
AND RTR.RESOURCE_TYPE_BO = #{resourceTypeBo}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="repairNo != null and repairNo != ''">
|
|
|
|
|
AND RRT.REPAIR_NO = #{repairNo}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="status != null and status != ''">
|
|
|
|
|
AND RRT.STATUS = #{status}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="workCenterBo != null and workCenterBo != ''">
|
|
|
|
|
AND WCM.WORK_CENTER_BO = #{workCenterBo}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="resourceTypeBo != null and resourceTypeBo != ''">
|
|
|
|
|
AND RTR.RESOURCE_TYPE_BO = #{resourceTypeBo}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="reportSource != null and reportSource != ''">
|
|
|
|
|
AND RRT.REPORT_SOURCE = #{reportSource}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="compareStartTime != null and compareStartTime != ''">
|
|
|
|
|
AND RRT.PLAN_START_DATE > #{compareStartTime}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="compareEndTime != null and compareEndTime != ''">
|
|
|
|
|
AND RRT.PLAN_START_DATE < #{compareEndTime}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<!--根据维修任务HANDLE获取维修任务详细数据-->
|
|
|
|
|
<select id="findResourceRepairTaskByHandleAndSite" resultType="com.foreverwin.mesnac.equip.model.ResourceRepairTask">
|
|
|
|
|
SELECT RRT.*,R.DESCRIPTION AS RESOURCE_DESCRIPTION,R.RESRCE AS RESOURCE_NO,
|
|
|
|
|
NCT.DESCRIPTION AS NC_CODE_DESCRIPTION,WCT.DESCRIPTION AS WORK_CENTER_DESCRIPTION
|
|
|
|
|
FROM
|
|
|
|
|
WIP.Z_RESOURCE_REPAIR_TASK RRT
|
|
|
|
|
LEFT JOIN WIP.RESRCE R ON R.RESRCE = RRT.RESOURCE_NO
|
|
|
|
|
LEFT JOIN WIP.NC_CODE NC ON NC.NC_CODE = RRT.NC_CODE_NO
|
|
|
|
|
LEFT JOIN WIP.NC_CODE_T NCT ON NCT.NC_CODE_BO = NC.HANDLE
|
|
|
|
|
LEFT JOIN WIP.WORK_CENTER_MEMBER WCM ON WCM.WORK_CENTER_OR_RESOURCE_GBO = R.HANDLE
|
|
|
|
|
LEFT JOIN WIP.WORK_CENTER_T WCT ON WCT.WORK_CENTER_BO = WCM.WORK_CENTER_BO
|
|
|
|
|
INNER JOIN WIP.RESOURCE_TYPE_RESOURCE RTR ON RTR.RESOURCE_BO = R.HANDLE
|
|
|
|
|
WHERE RRT.SITE = #{site} AND RRT.HANDLE = #{handle}
|
|
|
|
|
AND R.SITE = #{site} AND NC.SITE = #{site}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!--自定义sql-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|