@ -6,7 +6,7 @@
<resultMap id= "BaseResultMap" type= "com.foreverwin.mesnac.anomaly.model.AbnormalPlan" >
<id column= "HANDLE" property= "handle" />
<result column= "SITE" property= "site" />
<result column= "ABNORMAL_ BILL_BO" property= "abnormalBillB o" />
<result column= "ABNORMAL_ NO" property= "abnormalN o" />
<result column= "STATUS" property= "status" />
<result column= "WORK_CENTER" property= "workCenter" />
<result column= "ABNORMAL_METHOD" property= "abnormalMethod" />
@ -15,7 +15,8 @@
<result column= "ITEM_BO" property= "itemBo" />
<result column= "QTY" property= "qty" />
<result column= "PROCESSOR" property= "processor" />
<result column= "PROCESS_DATE_TIME" property= "processDateTime" />
<result column= "SEND_USER_GROUP" property= "sendUserGroup" />
<result column= "SEND_DATE_TIME" property= "sendDateTime" />
<result column= "CLOSED_USER" property= "closedUser" />
<result column= "CLOSED_DATE_TIME" property= "closedDateTime" />
<result column= "CREATED_USER" property= "createdUser" />
@ -26,9 +27,15 @@
<!-- 通用查询结果列 -->
<sql id= "Base_Column_List" >
HANDLE, SITE, ABNORMAL_BILL_BO, STATUS, WORK_CENTER, ABNORMAL_METHOD, SHOP_ORDER, RESRCE, ITEM_BO, QTY, PROCESSOR, PROCESS _DATE_TIME, CLOSED_USER, CLOSED_DATE_TIME, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME
HANDLE, SITE, ABNORMAL_NO, STATUS, WORK_CENTER, ABNORMAL_METHOD, SHOP_ORDER, RESRCE, ITEM_BO, QTY, PROCESSOR, SEND_USER_GROUP, SEND _DATE_TIME, CLOSED_USER, CLOSED_DATE_TIME, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME
</sql>
<resultMap id= "abnormalPlanDto" type= "com.foreverwin.mesnac.anomaly.dto.AbnormalPlanDto" extends= "BaseResultMap" >
<result column= "ITEM_DESCRIPTION" property= "itemDescription" />
<result column= "FULL_NAME" property= "fullName" />
<result column= "RESRCE_DESCRIPTION" property= "resrceDescription" />
</resultMap>
<!-- BaseMapper标准查询/修改/删除 -->
<select id= "selectById" resultMap= "BaseResultMap" >
SELECT <include refid= "Base_Column_List" > </include> FROM Z_ABNORMAL_PLAN WHERE HANDLE=#{handle}
@ -62,7 +69,7 @@
HANDLE=#{ew.handle}
</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormal BillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillB o}</if>
<if test= "ew.entity.abnormal No!=null"> AND ABNORMAL_NO=#{ew.entity.abnormalN o}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.abnormalMethod!=null" > AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
@ -71,7 +78,8 @@
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.qty!=null" > AND QTY=#{ew.entity.qty}</if>
<if test= "ew.entity.processor!=null" > AND PROCESSOR=#{ew.entity.processor}</if>
<if test= "ew.entity.processDateTime!=null" > AND PROCESS_DATE_TIME=#{ew.entity.processDateTime}</if>
<if test= "ew.entity.sendUserGroup!=null" > AND SEND_USER_GROUP=#{ew.entity.sendUserGroup}</if>
<if test= "ew.entity.sendDateTime!=null" > AND SEND_DATE_TIME=#{ew.entity.sendDateTime}</if>
<if test= "ew.entity.closedUser!=null" > AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test= "ew.entity.closedDateTime!=null" > AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test= "ew.entity.createdUser!=null" > AND CREATED_USER=#{ew.entity.createdUser}</if>
@ -90,7 +98,7 @@
HANDLE=#{ew.entity.handle}
</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormal BillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillB o}</if>
<if test= "ew.entity.abnormal No!=null"> AND ABNORMAL_NO=#{ew.entity.abnormalN o}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.abnormalMethod!=null" > AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
@ -99,7 +107,8 @@
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.qty!=null" > AND QTY=#{ew.entity.qty}</if>
<if test= "ew.entity.processor!=null" > AND PROCESSOR=#{ew.entity.processor}</if>
<if test= "ew.entity.processDateTime!=null" > AND PROCESS_DATE_TIME=#{ew.entity.processDateTime}</if>
<if test= "ew.entity.sendUserGroup!=null" > AND SEND_USER_GROUP=#{ew.entity.sendUserGroup}</if>
<if test= "ew.entity.sendDateTime!=null" > AND SEND_DATE_TIME=#{ew.entity.sendDateTime}</if>
<if test= "ew.entity.closedUser!=null" > AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test= "ew.entity.closedDateTime!=null" > AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test= "ew.entity.createdUser!=null" > AND CREATED_USER=#{ew.entity.createdUser}</if>
@ -126,7 +135,7 @@
HANDLE=#{ew.entity.handle}
</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormal BillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillB o}</if>
<if test= "ew.entity.abnormal No!=null"> AND ABNORMAL_NO=#{ew.entity.abnormalN o}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.abnormalMethod!=null" > AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
@ -135,7 +144,8 @@
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.qty!=null" > AND QTY=#{ew.entity.qty}</if>
<if test= "ew.entity.processor!=null" > AND PROCESSOR=#{ew.entity.processor}</if>
<if test= "ew.entity.processDateTime!=null" > AND PROCESS_DATE_TIME=#{ew.entity.processDateTime}</if>
<if test= "ew.entity.sendUserGroup!=null" > AND SEND_USER_GROUP=#{ew.entity.sendUserGroup}</if>
<if test= "ew.entity.sendDateTime!=null" > AND SEND_DATE_TIME=#{ew.entity.sendDateTime}</if>
<if test= "ew.entity.closedUser!=null" > AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test= "ew.entity.closedDateTime!=null" > AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test= "ew.entity.createdUser!=null" > AND CREATED_USER=#{ew.entity.createdUser}</if>
@ -162,7 +172,7 @@
HANDLE=#{ew.entity.handle}
</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormal BillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillB o}</if>
<if test= "ew.entity.abnormal No!=null"> AND ABNORMAL_NO=#{ew.entity.abnormalN o}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.abnormalMethod!=null" > AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
@ -171,7 +181,8 @@
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.qty!=null" > AND QTY=#{ew.entity.qty}</if>
<if test= "ew.entity.processor!=null" > AND PROCESSOR=#{ew.entity.processor}</if>
<if test= "ew.entity.processDateTime!=null" > AND PROCESS_DATE_TIME=#{ew.entity.processDateTime}</if>
<if test= "ew.entity.sendUserGroup!=null" > AND SEND_USER_GROUP=#{ew.entity.sendUserGroup}</if>
<if test= "ew.entity.sendDateTime!=null" > AND SEND_DATE_TIME=#{ew.entity.sendDateTime}</if>
<if test= "ew.entity.closedUser!=null" > AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test= "ew.entity.closedDateTime!=null" > AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test= "ew.entity.createdUser!=null" > AND CREATED_USER=#{ew.entity.createdUser}</if>
@ -198,7 +209,7 @@
HANDLE=#{ew.entity.handle}
</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormal BillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillB o}</if>
<if test= "ew.entity.abnormal No!=null"> AND ABNORMAL_NO=#{ew.entity.abnormalN o}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.abnormalMethod!=null" > AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
@ -207,7 +218,8 @@
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.qty!=null" > AND QTY=#{ew.entity.qty}</if>
<if test= "ew.entity.processor!=null" > AND PROCESSOR=#{ew.entity.processor}</if>
<if test= "ew.entity.processDateTime!=null" > AND PROCESS_DATE_TIME=#{ew.entity.processDateTime}</if>
<if test= "ew.entity.sendUserGroup!=null" > AND SEND_USER_GROUP=#{ew.entity.sendUserGroup}</if>
<if test= "ew.entity.sendDateTime!=null" > AND SEND_DATE_TIME=#{ew.entity.sendDateTime}</if>
<if test= "ew.entity.closedUser!=null" > AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test= "ew.entity.closedDateTime!=null" > AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test= "ew.entity.createdUser!=null" > AND CREATED_USER=#{ew.entity.createdUser}</if>
@ -234,7 +246,7 @@
HANDLE=#{ew.entity.handle}
</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormal BillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillB o}</if>
<if test= "ew.entity.abnormal No!=null"> AND ABNORMAL_NO=#{ew.entity.abnormalN o}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.abnormalMethod!=null" > AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
@ -243,7 +255,8 @@
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.qty!=null" > AND QTY=#{ew.entity.qty}</if>
<if test= "ew.entity.processor!=null" > AND PROCESSOR=#{ew.entity.processor}</if>
<if test= "ew.entity.processDateTime!=null" > AND PROCESS_DATE_TIME=#{ew.entity.processDateTime}</if>
<if test= "ew.entity.sendUserGroup!=null" > AND SEND_USER_GROUP=#{ew.entity.sendUserGroup}</if>
<if test= "ew.entity.sendDateTime!=null" > AND SEND_DATE_TIME=#{ew.entity.sendDateTime}</if>
<if test= "ew.entity.closedUser!=null" > AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test= "ew.entity.closedDateTime!=null" > AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test= "ew.entity.createdUser!=null" > AND CREATED_USER=#{ew.entity.createdUser}</if>
@ -270,7 +283,7 @@
HANDLE=#{ew.entity.handle}
</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormal BillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillB o}</if>
<if test= "ew.entity.abnormal No!=null"> AND ABNORMAL_NO=#{ew.entity.abnormalN o}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.abnormalMethod!=null" > AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
@ -279,7 +292,8 @@
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.qty!=null" > AND QTY=#{ew.entity.qty}</if>
<if test= "ew.entity.processor!=null" > AND PROCESSOR=#{ew.entity.processor}</if>
<if test= "ew.entity.processDateTime!=null" > AND PROCESS_DATE_TIME=#{ew.entity.processDateTime}</if>
<if test= "ew.entity.sendUserGroup!=null" > AND SEND_USER_GROUP=#{ew.entity.sendUserGroup}</if>
<if test= "ew.entity.sendDateTime!=null" > AND SEND_DATE_TIME=#{ew.entity.sendDateTime}</if>
<if test= "ew.entity.closedUser!=null" > AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test= "ew.entity.closedDateTime!=null" > AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test= "ew.entity.createdUser!=null" > AND CREATED_USER=#{ew.entity.createdUser}</if>
@ -302,7 +316,7 @@
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
HANDLE,
<if test= "site!=null" > SITE,</if>
<if test= "abnormal BillBo!=null"> ABNORMAL_BILL_B O,</if>
<if test= "abnormal No!=null"> ABNORMAL_N O,</if>
<if test= "status!=null" > STATUS,</if>
<if test= "workCenter!=null" > WORK_CENTER,</if>
<if test= "abnormalMethod!=null" > ABNORMAL_METHOD,</if>
@ -311,7 +325,8 @@
<if test= "itemBo!=null" > ITEM_BO,</if>
<if test= "qty!=null" > QTY,</if>
<if test= "processor!=null" > PROCESSOR,</if>
<if test= "processDateTime!=null" > PROCESS_DATE_TIME,</if>
<if test= "sendUserGroup!=null" > SEND_USER_GROUP,</if>
<if test= "sendDateTime!=null" > SEND_DATE_TIME,</if>
<if test= "closedUser!=null" > CLOSED_USER,</if>
<if test= "closedDateTime!=null" > CLOSED_DATE_TIME,</if>
<if test= "createdUser!=null" > CREATED_USER,</if>
@ -322,7 +337,7 @@
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
#{handle},
<if test= "site!=null" > #{site},</if>
<if test= "abnormal BillBo!=null"> #{abnormalBillB o},</if>
<if test= "abnormal No!=null"> #{abnormalN o},</if>
<if test= "status!=null" > #{status},</if>
<if test= "workCenter!=null" > #{workCenter},</if>
<if test= "abnormalMethod!=null" > #{abnormalMethod},</if>
@ -331,7 +346,8 @@
<if test= "itemBo!=null" > #{itemBo},</if>
<if test= "qty!=null" > #{qty},</if>
<if test= "processor!=null" > #{processor},</if>
<if test= "processDateTime!=null" > #{processDateTime},</if>
<if test= "sendUserGroup!=null" > #{sendUserGroup},</if>
<if test= "sendDateTime!=null" > #{sendDateTime},</if>
<if test= "closedUser!=null" > #{closedUser},</if>
<if test= "closedDateTime!=null" > #{closedDateTime},</if>
<if test= "createdUser!=null" > #{createdUser},</if>
@ -349,7 +365,7 @@
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
#{handle},
#{site},
#{abnormalBillB o},
#{abnormalN o},
#{status},
#{workCenter},
#{abnormalMethod},
@ -358,7 +374,8 @@
#{itemBo},
#{qty},
#{processor},
#{processDateTime},
#{sendUserGroup},
#{sendDateTime},
#{closedUser},
#{closedDateTime},
#{createdUser},
@ -372,7 +389,7 @@
<update id= "updateById" >
UPDATE Z_ABNORMAL_PLAN <trim prefix= "SET" suffixOverrides= "," >
<if test= "et.site!=null" > SITE=#{et.site},</if>
<if test= "et.abnormal BillBo!=null"> ABNORMAL_BILL_BO=#{et.abnormalBillB o},</if>
<if test= "et.abnormal No!=null"> ABNORMAL_NO=#{et.abnormalN o},</if>
<if test= "et.status!=null" > STATUS=#{et.status},</if>
<if test= "et.workCenter!=null" > WORK_CENTER=#{et.workCenter},</if>
<if test= "et.abnormalMethod!=null" > ABNORMAL_METHOD=#{et.abnormalMethod},</if>
@ -381,7 +398,8 @@
<if test= "et.itemBo!=null" > ITEM_BO=#{et.itemBo},</if>
<if test= "et.qty!=null" > QTY=#{et.qty},</if>
<if test= "et.processor!=null" > PROCESSOR=#{et.processor},</if>
<if test= "et.processDateTime!=null" > PROCESS_DATE_TIME=#{et.processDateTime},</if>
<if test= "et.sendUserGroup!=null" > SEND_USER_GROUP=#{et.sendUserGroup},</if>
<if test= "et.sendDateTime!=null" > SEND_DATE_TIME=#{et.sendDateTime},</if>
<if test= "et.closedUser!=null" > CLOSED_USER=#{et.closedUser},</if>
<if test= "et.closedDateTime!=null" > CLOSED_DATE_TIME=#{et.closedDateTime},</if>
<if test= "et.createdUser!=null" > CREATED_USER=#{et.createdUser},</if>
@ -395,7 +413,7 @@
<update id= "updateAllColumnById" >
UPDATE Z_ABNORMAL_PLAN <trim prefix= "SET" suffixOverrides= "," >
SITE=#{et.site},
ABNORMAL_BILL_BO=#{et.abnormalBillB o},
ABNORMAL_NO=#{et.abnormalN o},
STATUS=#{et.status},
WORK_CENTER=#{et.workCenter},
ABNORMAL_METHOD=#{et.abnormalMethod},
@ -404,7 +422,8 @@
ITEM_BO=#{et.itemBo},
QTY=#{et.qty},
PROCESSOR=#{et.processor},
PROCESS_DATE_TIME=#{et.processDateTime},
SEND_USER_GROUP=#{et.sendUserGroup},
SEND_DATE_TIME=#{et.sendDateTime},
CLOSED_USER=#{et.closedUser},
CLOSED_DATE_TIME=#{et.closedDateTime},
CREATED_USER=#{et.createdUser},
@ -418,7 +437,7 @@
<update id= "update" >
UPDATE Z_ABNORMAL_PLAN <trim prefix= "SET" suffixOverrides= "," >
<if test= "et.site!=null" > SITE=#{et.site},</if>
<if test= "et.abnormal BillBo!=null"> ABNORMAL_BILL_BO=#{et.abnormalBillB o},</if>
<if test= "et.abnormal No!=null"> ABNORMAL_NO=#{et.abnormalN o},</if>
<if test= "et.status!=null" > STATUS=#{et.status},</if>
<if test= "et.workCenter!=null" > WORK_CENTER=#{et.workCenter},</if>
<if test= "et.abnormalMethod!=null" > ABNORMAL_METHOD=#{et.abnormalMethod},</if>
@ -427,7 +446,8 @@
<if test= "et.itemBo!=null" > ITEM_BO=#{et.itemBo},</if>
<if test= "et.qty!=null" > QTY=#{et.qty},</if>
<if test= "et.processor!=null" > PROCESSOR=#{et.processor},</if>
<if test= "et.processDateTime!=null" > PROCESS_DATE_TIME=#{et.processDateTime},</if>
<if test= "et.sendUserGroup!=null" > SEND_USER_GROUP=#{et.sendUserGroup},</if>
<if test= "et.sendDateTime!=null" > SEND_DATE_TIME=#{et.sendDateTime},</if>
<if test= "et.closedUser!=null" > CLOSED_USER=#{et.closedUser},</if>
<if test= "et.closedDateTime!=null" > CLOSED_DATE_TIME=#{et.closedDateTime},</if>
<if test= "et.createdUser!=null" > CREATED_USER=#{et.createdUser},</if>
@ -440,7 +460,7 @@
<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.abnormal BillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillB o}</if>
<if test= "ew.entity.abnormal No!=null"> AND ABNORMAL_NO=#{ew.entity.abnormalN o}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.abnormalMethod!=null" > AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
@ -449,7 +469,8 @@
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.qty!=null" > AND QTY=#{ew.entity.qty}</if>
<if test= "ew.entity.processor!=null" > AND PROCESSOR=#{ew.entity.processor}</if>
<if test= "ew.entity.processDateTime!=null" > AND PROCESS_DATE_TIME=#{ew.entity.processDateTime}</if>
<if test= "ew.entity.sendUserGroup!=null" > AND SEND_USER_GROUP=#{ew.entity.sendUserGroup}</if>
<if test= "ew.entity.sendDateTime!=null" > AND SEND_DATE_TIME=#{ew.entity.sendDateTime}</if>
<if test= "ew.entity.closedUser!=null" > AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test= "ew.entity.closedDateTime!=null" > AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test= "ew.entity.createdUser!=null" > AND CREATED_USER=#{ew.entity.createdUser}</if>
@ -493,7 +514,7 @@
HANDLE=#{ew.entity.handle}
</if>
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormal BillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillB o}</if>
<if test= "ew.entity.abnormal No!=null"> AND ABNORMAL_NO=#{ew.entity.abnormalN o}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.workCenter!=null" > AND WORK_CENTER=#{ew.entity.workCenter}</if>
<if test= "ew.entity.abnormalMethod!=null" > AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
@ -502,7 +523,8 @@
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.qty!=null" > AND QTY=#{ew.entity.qty}</if>
<if test= "ew.entity.processor!=null" > AND PROCESSOR=#{ew.entity.processor}</if>
<if test= "ew.entity.processDateTime!=null" > AND PROCESS_DATE_TIME=#{ew.entity.processDateTime}</if>
<if test= "ew.entity.sendUserGroup!=null" > AND SEND_USER_GROUP=#{ew.entity.sendUserGroup}</if>
<if test= "ew.entity.sendDateTime!=null" > AND SEND_DATE_TIME=#{ew.entity.sendDateTime}</if>
<if test= "ew.entity.closedUser!=null" > AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test= "ew.entity.closedDateTime!=null" > AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test= "ew.entity.createdUser!=null" > AND CREATED_USER=#{ew.entity.createdUser}</if>
@ -527,4 +549,42 @@
</delete>
<!-- BaseMapper标准查询/修改/删除 -->
<select id= "findAbnormalPlan" resultMap= "abnormalPlanDto" >
SELECT ZAP.ABNORMAL_NO ABNORMAL_NO ,ZAP.ABNORMAL_METHOD ABNORMAL_METHOD ,
ZAP.SHOP_ORDER SHOP_ORDER ,R.DESCRIPTION RESRCE_DESCRIPTION,ZAP.STATUS STATUS ,
IT.DESCRIPTION ITEM_DESCRIPTION,ZAP.QTY QTY ,ZNU.FULL_NAME FULL_NAME
FROM Z_ABNORMAL_PLAN ZAP
LEFT JOIN RESRCE R ON R.RESRCE = ZAP.RESRCE AND R.SITE = ZAP.SITE
LEFT JOIN ITEM_T IT ON IT.ITEM_BO = ZAP.ITEM_BO AND IT.LOCALE = #{locale}
LEFT JOIN Z_NWA_USER ZNU ON ZNU.USER_NAME = ZAP.PROCESSOR AND ZNU.SITE = ZAP.SITE
<where >
ZAP.SITE =#{abnormalPlanDto.site}
<if test= "abnormalPlanDto.workCenter != null and abnormalPlanDto.workCenter != ''" >
AND ZAP.WORK_CENTER = #{abnormalPlanDto.workCenter}
</if>
<if test= "abnormalPlanDto.resrce != null and abnormalPlanDto.resrce != ''" >
AND ZAP.RESRCE =#{abnormalPlanDto.resrce}
</if>
<if test= "abnormalPlanDto.shopOrder != null and abnormalPlanDto.shopOrder != ''" >
AND ZAP.SHOP_ORDER = #{abnormalPlanDto.shopOrder}
</if>
<if test= "abnormalPlanDto.abnormalNo != null and abnormalPlanDto.abnormalNo != '' " >
AND ZAP.ABNORMAL_NO = #{abnormalPlanDto.abnormalNo}
</if>
<if test= "abnormalPlanDto.status != null and abnormalPlanDto.status != ''" >
AND ZAP.STATUS = #{abnormalPlanDto.status}
</if>
<if test= "abnormalPlanDto.abnormalMethod != null and abnormalPlanDto.abnormalMethod != ''" >
AND ZAP.ABNORMAL_METHOD = #{abnormalPlanDto.abnormalMethod}
</if>
<if test= "abnormalPlanDto.startDateTime != null " >
AND ZAP.CLOSED_DATE_TIME > = #{abnormalPlanDto.startDateTime}
</if>
<if test= "abnormalPlanDto.endDateTime != null" >
AND ZAP.CLOSED_DATE_TIME < = #{abnormalPlanDto.endDateTime}
</if>
</where>
</select>
</mapper>