|
|
|
@ -262,22 +262,12 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getTransferNo" resultMap="BaseResultMap">
|
|
|
|
|
SELECT DISTINCT TRANSFER_NO FROM Z_WORK_SHOP_TRANSFER
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ew!=null">
|
|
|
|
|
<if test="ew.entity!=null">
|
|
|
|
|
<if test="ew.entity.sfcDispatchBo!=null"> AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}</if>
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.transferNo!=null"> AND TRANSFER_NO=#{ew.entity.transferNo}</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
|
|
|
AND ${ew.sqlSegment}
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
|
|
|
|
${ew.sqlSegment}
|
|
|
|
|
</if>
|
|
|
|
|
SELECT DISTINCT TRANSFER_NO,WCT.DESCRIPTION WORK_CENTER FROM Z_WORK_SHOP_TRANSFER ZWST
|
|
|
|
|
JOIN WORK_CENTER WC ON WC.WORK_CENTER = ZWST.WORK_CENTER AND WC.SITE = ZWST.SITE
|
|
|
|
|
LEFT JOIN WORK_CENTER_T WCT ON WCT.WORK_CENTER_BO = WC.HANDLE AND WCT.LOCALE = 'zh'
|
|
|
|
|
WHERE ZWST.site=#{ew.entity.site}
|
|
|
|
|
<if test="ew.entity.transferNo!=null"> AND ZWST.TRANSFER_NO=#{ew.entity.transferNo}</if>
|
|
|
|
|
<if test="ew.entity.workCenter!=null"> AND ZWST.WORK_CENTER=#{ew.entity.workCenter}</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectPage" resultMap="BaseResultMap">
|
|
|
|
|
SELECT DISTINCT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_WORK_SHOP_TRANSFER
|
|
|
|
@ -730,7 +720,9 @@
|
|
|
|
|
LEFT JOIN OPERATION PREOP ON PREOP.OPERATION = zsd.PREPOSITION_OPERATION AND PREOP.SITE = ZSD.SITE AND PREOP.CURRENT_REVISION = 'true'
|
|
|
|
|
LEFT JOIN OPERATION_T PREOT ON PREOT.OPERATION_BO = PREOP.HANDLE AND PREOT.LOCALE ='zh'
|
|
|
|
|
WHERE ZSD.SITE=#{site} AND (zsd.DISPATCH_STATUS='RELEASE' OR zsd.DISPATCH_STATUS='NEW')
|
|
|
|
|
<if test="workCenter!=null and workCenter!=''">
|
|
|
|
|
AND ZSD.WORK_CENTER=#{workCenter}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="transferNo!=null and transferNo!=''">
|
|
|
|
|
AND ZWST.TRANSFER_NO=#{transferNo}
|
|
|
|
|
</if>
|
|
|
|
|