|
|
@ -25,15 +25,17 @@
|
|
|
|
<result column="CREATED_DATE_TIME" property="createdDateTime" />
|
|
|
|
<result column="CREATED_DATE_TIME" property="createdDateTime" />
|
|
|
|
<result column="MODIFY_USER" property="modifyUser" />
|
|
|
|
<result column="MODIFY_USER" property="modifyUser" />
|
|
|
|
<result column="MODIFIED_DATE_TIME" property="modifiedDateTime" />
|
|
|
|
<result column="MODIFIED_DATE_TIME" property="modifiedDateTime" />
|
|
|
|
|
|
|
|
<result column="FULL_NAME" property="fullName"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="findInspectionTask" resultMap="BaseResultMap">
|
|
|
|
<select id="findInspectionTask" resultMap="BaseResultMap">
|
|
|
|
SELECT B.HANDLE, B.SITE, B.CATEGORY, B.TASK_NO, B.DESCRIPTION, B.STATUS, B.INSPECTION_ITEM_BO, B.WORK_CENTER, B.SHOP_ORDER, B.SFC, B.OPERATION, B.STEP_ID, B.RESRCE, B.RESULT, B.COMMENTS, B.CREATE_USER, B.CREATED_DATE_TIME, B.MODIFY_USER, B.MODIFIED_DATE_TIME,
|
|
|
|
SELECT B.HANDLE, B.SITE, B.CATEGORY, B.TASK_NO, B.DESCRIPTION, B.STATUS, B.INSPECTION_ITEM_BO, B.WORK_CENTER, B.SHOP_ORDER, B.SFC, B.OPERATION, B.STEP_ID, B.RESRCE, B.RESULT, B.COMMENTS, B.CREATE_USER, B.CREATED_DATE_TIME, B.MODIFY_USER, B.MODIFIED_DATE_TIME,
|
|
|
|
M.ITEM, Z.DESCRIPTION ITEM_DESCRIPTION
|
|
|
|
M.ITEM, Z.DESCRIPTION ITEM_DESCRIPTION,ZNU.FULL_NAME FULL_NAME
|
|
|
|
FROM Z_INSPECTION_TASK B
|
|
|
|
FROM Z_INSPECTION_TASK B
|
|
|
|
INNER JOIN SFC S ON S.SITE = B.SITE AND S.SFC = B.SFC
|
|
|
|
INNER JOIN SFC S ON S.SITE = B.SITE AND S.SFC = B.SFC
|
|
|
|
INNER JOIN SHOP_ORDER P ON P.HANDLE = S.SHOP_ORDER_BO
|
|
|
|
INNER JOIN SHOP_ORDER P ON P.HANDLE = S.SHOP_ORDER_BO
|
|
|
|
INNER JOIN ITEM M ON M.HANDLE = P.ITEM_BO
|
|
|
|
INNER JOIN ITEM M ON M.HANDLE = P.ITEM_BO
|
|
|
|
|
|
|
|
LEFT JOIN Z_NWA_USER ZNU ON ZNU.USER_NAME = B.CREATE_USER
|
|
|
|
LEFT JOIN ITEM_T Z ON Z.ITEM_BO = M.HANDLE AND Z.LOCALE = 'zh'
|
|
|
|
LEFT JOIN ITEM_T Z ON Z.ITEM_BO = M.HANDLE AND Z.LOCALE = 'zh'
|
|
|
|
WHERE B.SITE = #{site}
|
|
|
|
WHERE B.SITE = #{site}
|
|
|
|
<if test="workCenter != null and workCenter != ''">
|
|
|
|
<if test="workCenter != null and workCenter != ''">
|
|
|
|