@ -62,11 +62,13 @@
<result column= "CREATED_DATA_TIME" property= "createdDataTime" />
<result column= "MODIFIED_USER" property= "modifiedUser" />
<result column= "MODIFIED_DATE_TIME" property= "modifiedDateTime" />
<result column= "PRODUCT_CATEGORY" property= "productCategory" />
<result column= "STEP_ID" property= "stepId" />
</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, NC_CODE_GROUP, 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, DUTY_USER, DUTY_DATE_TIME, DUTY_DEPART, PRINCIPAL_USER, DUTY_CAUSE_DESCRIPTION, DUTY_CAUSE_TYPE, DUTY_TYPE, DUTY_SEND_USER_GROUP, RESOLVE_USER, RESOLVE_DATE_TIME, ABNORMAL_METHOD, ROUTER_BO, RESOLVE_SHOP_ORDER, RESOLVE_REMARK, RESOLVE_SEND_USER_GROUP, CLOSED_USER, CLOSED_DATE_TIME, ABNORMAL_REASON, BEFORE_MEASURE, REPORT_SEND_USER_GROUP, CANCEL_SEND_USER_GROUP, CREATED_USER, CREATED_DATA_TIME, MODIFIED_USER, MODIFIED_DATE_TIME
HANDLE, SITE, ABNORMAL_NO, STATUS, TYPE, ITEM_BO, SFC, OPERATION, WORK_CENTER, SHOP_ORDER, MESSAGE_TYPE, RESRCE, NC_CODE, NC_CODE_GROUP, 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, DUTY_USER, DUTY_DATE_TIME, DUTY_DEPART, PRINCIPAL_USER, DUTY_CAUSE_DESCRIPTION, DUTY_CAUSE_TYPE, DUTY_TYPE, DUTY_SEND_USER_GROUP, RESOLVE_USER, RESOLVE_DATE_TIME, ABNORMAL_METHOD, ROUTER_BO, RESOLVE_SHOP_ORDER, RESOLVE_REMARK, RESOLVE_SEND_USER_GROUP, CLOSED_USER, CLOSED_DATE_TIME, ABNORMAL_REASON, BEFORE_MEASURE, REPORT_SEND_USER_GROUP, CANCEL_SEND_USER_GROUP, CREATED_USER, CREATED_DATA_TIME, MODIFIED_USER, MODIFIED_DATE_TIME, PRODUCT_CATEGORY, STEP_ID
</sql>
<!-- BaseMapper标准查询/修改/删除 -->
@ -158,6 +160,8 @@
<if test= "ew.entity.createdDataTime!=null" > AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test= "ew.entity.modifiedUser!=null" > AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.productCategory!=null" > AND PRODUCT_CATEGORY=#{ew.entity.productCategory}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
</where>
</select>
@ -226,6 +230,8 @@
<if test= "ew.entity.createdDataTime!=null" > AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test= "ew.entity.modifiedUser!=null" > AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.productCategory!=null" > AND PRODUCT_CATEGORY=#{ew.entity.productCategory}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
${ew.sqlSegment}
@ -302,6 +308,8 @@
<if test= "ew.entity.createdDataTime!=null" > AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test= "ew.entity.modifiedUser!=null" > AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.productCategory!=null" > AND PRODUCT_CATEGORY=#{ew.entity.productCategory}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
${ew.sqlSegment}
@ -378,6 +386,8 @@
<if test= "ew.entity.createdDataTime!=null" > AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test= "ew.entity.modifiedUser!=null" > AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.productCategory!=null" > AND PRODUCT_CATEGORY=#{ew.entity.productCategory}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
${ew.sqlSegment}
@ -454,6 +464,8 @@
<if test= "ew.entity.createdDataTime!=null" > AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test= "ew.entity.modifiedUser!=null" > AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.productCategory!=null" > AND PRODUCT_CATEGORY=#{ew.entity.productCategory}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
${ew.sqlSegment}
@ -530,6 +542,8 @@
<if test= "ew.entity.createdDataTime!=null" > AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test= "ew.entity.modifiedUser!=null" > AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.productCategory!=null" > AND PRODUCT_CATEGORY=#{ew.entity.productCategory}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
${ew.sqlSegment}
@ -606,6 +620,8 @@
<if test= "ew.entity.createdDataTime!=null" > AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test= "ew.entity.modifiedUser!=null" > AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.productCategory!=null" > AND PRODUCT_CATEGORY=#{ew.entity.productCategory}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
${ew.sqlSegment}
@ -678,6 +694,8 @@
<if test= "createdDataTime!=null" > CREATED_DATA_TIME,</if>
<if test= "modifiedUser!=null" > MODIFIED_USER,</if>
<if test= "modifiedDateTime!=null" > MODIFIED_DATE_TIME,</if>
<if test= "productCategory!=null" > PRODUCT_CATEGORY,</if>
<if test= "stepId!=null" > STEP_ID,</if>
</trim> VALUES
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
#{handle},
@ -738,6 +756,8 @@
<if test= "createdDataTime!=null" > #{createdDataTime},</if>
<if test= "modifiedUser!=null" > #{modifiedUser},</if>
<if test= "modifiedDateTime!=null" > #{modifiedDateTime},</if>
<if test= "productCategory!=null" > #{productCategory},</if>
<if test= "stepId!=null" > #{stepId},</if>
</trim>
</insert>
@ -805,6 +825,8 @@
#{createdDataTime},
#{modifiedUser},
#{modifiedDateTime},
#{productCategory},
#{stepId},
</trim>
</insert>
@ -868,6 +890,8 @@
<if test= "et.createdDataTime!=null" > CREATED_DATA_TIME=#{et.createdDataTime},</if>
<if test= "et.modifiedUser!=null" > MODIFIED_USER=#{et.modifiedUser},</if>
<if test= "et.modifiedDateTime!=null" > MODIFIED_DATE_TIME=#{et.modifiedDateTime},</if>
<if test= "et.productCategory!=null" > PRODUCT_CATEGORY=#{et.productCategory},</if>
<if test= "et.stepId!=null" > STEP_ID=#{et.stepId},</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>
@ -931,6 +955,8 @@
CREATED_DATA_TIME=#{et.createdDataTime},
MODIFIED_USER=#{et.modifiedUser},
MODIFIED_DATE_TIME=#{et.modifiedDateTime},
PRODUCT_CATEGORY=#{et.productCategory},
STEP_ID=#{et.stepId},
</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>
@ -994,6 +1020,8 @@
<if test= "et.createdDataTime!=null" > CREATED_DATA_TIME=#{et.createdDataTime},</if>
<if test= "et.modifiedUser!=null" > MODIFIED_USER=#{et.modifiedUser},</if>
<if test= "et.modifiedDateTime!=null" > MODIFIED_DATE_TIME=#{et.modifiedDateTime},</if>
<if test= "et.productCategory!=null" > PRODUCT_CATEGORY=#{et.productCategory},</if>
<if test= "et.stepId!=null" > STEP_ID=#{et.stepId},</if>
</trim>
<where >
<if test= "ew!=null" >
@ -1056,6 +1084,8 @@
<if test= "ew.entity.createdDataTime!=null" > AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test= "ew.entity.modifiedUser!=null" > AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.productCategory!=null" > AND PRODUCT_CATEGORY=#{ew.entity.productCategory}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
${ew.sqlSegment}
@ -1149,6 +1179,8 @@
<if test= "ew.entity.createdDataTime!=null" > AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test= "ew.entity.modifiedUser!=null" > AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test= "ew.entity.modifiedDateTime!=null" > AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
<if test= "ew.entity.productCategory!=null" > AND PRODUCT_CATEGORY=#{ew.entity.productCategory}</if>
<if test= "ew.entity.stepId!=null" > AND STEP_ID=#{ew.entity.stepId}</if>
</if>
<if test= "ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere" >
${ew.sqlSegment}
@ -1183,7 +1215,7 @@
zabd.ROUTER_BO ROUTER_BO,zabd.RESOLVE_SHOP_ORDER RESOLVE_SHOP_ORDER,zabd.RESOLVE_REMARK RESOLVE_REMARK,
zabd.RESOLVE_SEND_USER_GROUP RESOLVE_SEND_USER_GROUP,zabd.CLOSED_USER CLOSED_USER,zabd.CLOSED_DATE_TIME CLOSED_DATE_TIME,
zabd.ABNORMAL_REASON ABNORMAL_REASON,zabd.BEFORE_MEASURE BEFORE_MEASURE,zab.REPORT_SEND_USER_GROUP REPORT_SEND_USER_GROUP,
zab.CANCEL_SEND_USER_GROUP CANCEL_SEND_USER_GROUP
zab.CANCEL_SEND_USER_GROUP CANCEL_SEND_USER_GROUP,zab.PRODUCT_CATEGORY PRODUCT_CATEGORY,zab.STEP_ID STEP_ID
FROM Z_ABNORMAL_BILL zab
INNER JOIN Z_ABNORMAL_BILL_DISPOSE zabd ON zab.HANDLE = zabd.ABNORMAL_BILL_BO
<where >
@ -1197,5 +1229,4 @@
</if>
</where>
</select>
</mapper>