@ -8,6 +8,8 @@
<result column= "SITE" property= "site" />
<result column= "ABNORMAL_NO" property= "abnormalNo" />
<result column= "STATUS" property= "status" />
<result column= "CORRECTION" property= "correction" />
<result column= "PROGRAM" property= "program" />
<result column= "TYPE" property= "type" />
<result column= "ITEM_BO" property= "itemBo" />
<result column= "SFC" property= "sfc" />
@ -44,6 +46,8 @@
<result column= "MODIFIED_DATE_TIME" property= "modifiedDateTime" />
</resultMap>
<resultMap id= "abnormalBillDto" type= "com.foreverwin.mesnac.anomaly.dto.AbnormalBillDto" extends= "BaseResultMap" >
<result column= "SEQ" property= "seq" />
<result column= "ITEM_DESCRIPTION" property= "itemDescription" />
@ -72,9 +76,10 @@
<result column= "TYPE" property= "type" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id= "Base_Column_List" >
HANDLE, SITE, ABNORMAL_NO, STATUS, TYPE, ITEM_BO, SFC, OPERATION, WORK_CENTER, SHOP_ORDER, MESSAGE_TYPE, RESRCE, NC_CODE, SHUT_DOWN, RESPONSE_USER, RESPONSE_DATE_TIME, PB_DESCRIPTION, NC_QTY, PB_GRADE, PB_USER, PB_QTY, REPAIR_DATE_TIME, DISCOVER, INSPECTOR, ENTITY_LOCATION, REPORT_FROM, OBJECT_BO, PB_PHOTOSHOP, CANCEL_CODE, CANCEL_REASON, CANCEL_DATE_TIME, CANCEL_USER, REPORT_SEND_USER_GROUP, CANCEL_SEND_USER_GROUP, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME
HANDLE, SITE, ABNORMAL_NO, STATUS, CORRECTION, PROGRAM, TYPE, ITEM_BO, SFC, OPERATION, WORK_CENTER, SHOP_ORDER, MESSAGE_TYPE, RESRCE, NC_CODE, SHUT_DOWN, RESPONSE_USER, RESPONSE_DATE_TIME, PB_DESCRIPTION, NC_QTY, PB_GRADE, PB_USER, PB_QTY, REPAIR_DATE_TIME, DISCOVER, INSPECTOR, ENTITY_LOCATION, REPORT_FROM, OBJECT_BO, PB_PHOTOSHOP, CANCEL_CODE, CANCEL_REASON, CANCEL_DATE_TIME, CANCEL_USER, REPORT_SEND_USER_GROUP, CANCEL_SEND_USER_GROUP, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME
</sql>
<!-- BaseMapper标准查询/修改/删除 -->
@ -112,6 +117,8 @@
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormalNo!=null" > AND ABNORMAL_NO=#{ew.entity.abnormalNo}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.correction!=null" > AND CORRECTION=#{ew.entity.correction}</if>
<if test= "ew.entity.program!=null" > AND PROGRAM=#{ew.entity.program}</if>
<if test= "ew.entity.type!=null" > AND TYPE=#{ew.entity.type}</if>
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
@ -160,6 +167,8 @@
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormalNo!=null" > AND ABNORMAL_NO=#{ew.entity.abnormalNo}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.correction!=null" > AND CORRECTION=#{ew.entity.correction}</if>
<if test= "ew.entity.program!=null" > AND PROGRAM=#{ew.entity.program}</if>
<if test= "ew.entity.type!=null" > AND TYPE=#{ew.entity.type}</if>
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
@ -216,6 +225,8 @@
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormalNo!=null" > AND ABNORMAL_NO=#{ew.entity.abnormalNo}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.correction!=null" > AND CORRECTION=#{ew.entity.correction}</if>
<if test= "ew.entity.program!=null" > AND PROGRAM=#{ew.entity.program}</if>
<if test= "ew.entity.type!=null" > AND TYPE=#{ew.entity.type}</if>
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
@ -272,6 +283,8 @@
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormalNo!=null" > AND ABNORMAL_NO=#{ew.entity.abnormalNo}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.correction!=null" > AND CORRECTION=#{ew.entity.correction}</if>
<if test= "ew.entity.program!=null" > AND PROGRAM=#{ew.entity.program}</if>
<if test= "ew.entity.type!=null" > AND TYPE=#{ew.entity.type}</if>
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
@ -328,6 +341,8 @@
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormalNo!=null" > AND ABNORMAL_NO=#{ew.entity.abnormalNo}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.correction!=null" > AND CORRECTION=#{ew.entity.correction}</if>
<if test= "ew.entity.program!=null" > AND PROGRAM=#{ew.entity.program}</if>
<if test= "ew.entity.type!=null" > AND TYPE=#{ew.entity.type}</if>
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
@ -384,6 +399,8 @@
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormalNo!=null" > AND ABNORMAL_NO=#{ew.entity.abnormalNo}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.correction!=null" > AND CORRECTION=#{ew.entity.correction}</if>
<if test= "ew.entity.program!=null" > AND PROGRAM=#{ew.entity.program}</if>
<if test= "ew.entity.type!=null" > AND TYPE=#{ew.entity.type}</if>
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
@ -420,12 +437,12 @@
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
AND ${ew.sqlSegment}
${ew.sqlSegment}
</if>
</if>
</where>
<if test= "ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere" >
AND ${ew.sqlSegment}
${ew.sqlSegment}
</if>
</select>
@ -440,6 +457,8 @@
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormalNo!=null" > AND ABNORMAL_NO=#{ew.entity.abnormalNo}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.correction!=null" > AND CORRECTION=#{ew.entity.correction}</if>
<if test= "ew.entity.program!=null" > AND PROGRAM=#{ew.entity.program}</if>
<if test= "ew.entity.type!=null" > AND TYPE=#{ew.entity.type}</if>
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
@ -492,6 +511,8 @@
<if test= "site!=null" > SITE,</if>
<if test= "abnormalNo!=null" > ABNORMAL_NO,</if>
<if test= "status!=null" > STATUS,</if>
<if test= "correction!=null" > CORRECTION,</if>
<if test= "program!=null" > PROGRAM,</if>
<if test= "type!=null" > TYPE,</if>
<if test= "itemBo!=null" > ITEM_BO,</if>
<if test= "sfc!=null" > SFC,</if>
@ -532,6 +553,8 @@
<if test= "site!=null" > #{site},</if>
<if test= "abnormalNo!=null" > #{abnormalNo},</if>
<if test= "status!=null" > #{status},</if>
<if test= "correction!=null" > #{correction},</if>
<if test= "program!=null" > #{program},</if>
<if test= "type!=null" > #{type},</if>
<if test= "itemBo!=null" > #{itemBo},</if>
<if test= "sfc!=null" > #{sfc},</if>
@ -579,6 +602,8 @@
#{site},
#{abnormalNo},
#{status},
#{correction},
#{program},
#{type},
#{itemBo},
#{sfc},
@ -622,6 +647,8 @@
<if test= "et.site!=null" > SITE=#{et.site},</if>
<if test= "et.abnormalNo!=null" > ABNORMAL_NO=#{et.abnormalNo},</if>
<if test= "et.status!=null" > STATUS=#{et.status},</if>
<if test= "et.correction!=null" > CORRECTION=#{et.correction},</if>
<if test= "et.program!=null" > PROGRAM=#{et.program},</if>
<if test= "et.type!=null" > TYPE=#{et.type},</if>
<if test= "et.itemBo!=null" > ITEM_BO=#{et.itemBo},</if>
<if test= "et.sfc!=null" > SFC=#{et.sfc},</if>
@ -665,6 +692,8 @@
SITE=#{et.site},
ABNORMAL_NO=#{et.abnormalNo},
STATUS=#{et.status},
CORRECTION=#{et.correction},
PROGRAM=#{et.program},
TYPE=#{et.type},
ITEM_BO=#{et.itemBo},
SFC=#{et.sfc},
@ -708,6 +737,8 @@
<if test= "et.site!=null" > SITE=#{et.site},</if>
<if test= "et.abnormalNo!=null" > ABNORMAL_NO=#{et.abnormalNo},</if>
<if test= "et.status!=null" > STATUS=#{et.status},</if>
<if test= "et.correction!=null" > CORRECTION=#{et.correction},</if>
<if test= "et.program!=null" > PROGRAM=#{et.program},</if>
<if test= "et.type!=null" > TYPE=#{et.type},</if>
<if test= "et.itemBo!=null" > ITEM_BO=#{et.itemBo},</if>
<if test= "et.sfc!=null" > SFC=#{et.sfc},</if>
@ -750,6 +781,8 @@
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormalNo!=null" > AND ABNORMAL_NO=#{ew.entity.abnormalNo}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.correction!=null" > AND CORRECTION=#{ew.entity.correction}</if>
<if test= "ew.entity.program!=null" > AND PROGRAM=#{ew.entity.program}</if>
<if test= "ew.entity.type!=null" > AND TYPE=#{ew.entity.type}</if>
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
@ -823,6 +856,8 @@
<if test= "ew.entity.site!=null" > AND SITE=#{ew.entity.site}</if>
<if test= "ew.entity.abnormalNo!=null" > AND ABNORMAL_NO=#{ew.entity.abnormalNo}</if>
<if test= "ew.entity.status!=null" > AND STATUS=#{ew.entity.status}</if>
<if test= "ew.entity.correction!=null" > AND CORRECTION=#{ew.entity.correction}</if>
<if test= "ew.entity.program!=null" > AND PROGRAM=#{ew.entity.program}</if>
<if test= "ew.entity.type!=null" > AND TYPE=#{ew.entity.type}</if>
<if test= "ew.entity.itemBo!=null" > AND ITEM_BO=#{ew.entity.itemBo}</if>
<if test= "ew.entity.sfc!=null" > AND SFC=#{ew.entity.sfc}</if>
@ -1024,4 +1059,5 @@
JOIN Z_ABNORMAL_BILL_DISPOSE ZABD ON ZABD.ABNORMAL_BILL_BO= ZAB.HANDLE
WHERE zab.SITE=#{site} AND zab.STATUS='G' AND zab."TYPE"='Z' AND s.QTY>1 AND (ZABD.ABNORMAL_METHOD='F' OR ZABD.ABNORMAL_METHOD='C') ORDER BY ZABD.CLOSED_DATE_TIME DESC
</select>
</mapper>