存储位置增加车间和产线维护移动到wms模块
This commit is contained in:
parent
27fcfc3b63
commit
7873dbcccf
@ -9,4 +9,6 @@ public class StorageLocationDto extends StorageLocation {
|
||||
private String storageLocationType;
|
||||
private String storageLocationTypeDesc;
|
||||
private String warehouse;
|
||||
private String workCenter;
|
||||
private String fabNo;
|
||||
}
|
||||
|
||||
@ -22,19 +22,21 @@
|
||||
|
||||
<resultMap id="wmsStorageLocationDtoMap" type="com.foreverwin.mom.wms.dto.StorageLocationDto">
|
||||
<id property="handle" column="HANDLE"/>
|
||||
<result property="site" column="SITE"/>
|
||||
<result property="storageLocation" column="STORAGE_LOCATION"/>
|
||||
<result property="description" column="DESCRIPTION"/>
|
||||
<result property="storageLocationTypeBo" column="STORAGE_LOCATION_TYPE_BO"/>
|
||||
<result property="warehouseBo" column="WAREHOUSE_BO"/>
|
||||
<result property="createTime" column="CREATE_TIME"/>
|
||||
<result property="updateTime" column="UPDATE_TIME"/>
|
||||
<result property="creator" column="CREATOR"/>
|
||||
<result property="updater" column="UPDATER"/>
|
||||
<result property="status" column="STATUS"/>
|
||||
<result property="storageLocationType" column="STORAGE_LOCATION_TYPE"/>
|
||||
<result property="storageLocationTypeDesc" column="STORAGE_LOCATION_TYPE_DESC"/>
|
||||
<result property="warehouse" column="WAREHOUSE"/>
|
||||
<result property="site" column="SITE"/>
|
||||
<result property="storageLocation" column="STORAGE_LOCATION"/>
|
||||
<result property="description" column="DESCRIPTION"/>
|
||||
<result property="storageLocationTypeBo" column="STORAGE_LOCATION_TYPE_BO"/>
|
||||
<result property="warehouseBo" column="WAREHOUSE_BO"/>
|
||||
<result property="createTime" column="CREATE_TIME"/>
|
||||
<result property="updateTime" column="UPDATE_TIME"/>
|
||||
<result property="creator" column="CREATOR"/>
|
||||
<result property="updater" column="UPDATER"/>
|
||||
<result property="status" column="STATUS"/>
|
||||
<result property="storageLocationType" column="STORAGE_LOCATION_TYPE"/>
|
||||
<result property="storageLocationTypeDesc" column="STORAGE_LOCATION_TYPE_DESC"/>
|
||||
<result property="warehouse" column="WAREHOUSE"/>
|
||||
<result property="workCenter" column="WORK_CENTER"/>
|
||||
<result property="fabNo" column="FAB_NO"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="getStorageLocationData" resultType="com.foreverwin.mom.wms.dto.ShelfManagementDto">
|
||||
@ -142,33 +144,36 @@
|
||||
|
||||
<select id="getStorageLocationPage" resultMap="wmsStorageLocationDtoMap">
|
||||
select
|
||||
wsl.HANDLE,
|
||||
wsl.SITE,
|
||||
wsl.STORAGE_LOCATION,
|
||||
wsl.DESCRIPTION,
|
||||
wsl.ERP_STORAGE_LOCATION,
|
||||
wsl.IS_DEFAULT,
|
||||
wsl.STATUS,
|
||||
wslt.STORAGE_LOCATION_TYPE,
|
||||
wslt.DESCRIPTION AS STORAGE_LOCATION_TYPE_DESC,
|
||||
ww.WAREHOUSE
|
||||
from
|
||||
wms_storage_location wsl
|
||||
left join wms_storage_location_type wslt on wsl.STORAGE_LOCATION_TYPE_BO = wslt.HANDLE
|
||||
left join wms_warehouse ww on wsl.WAREHOUSE_BO = ww.HANDLE
|
||||
where wsl.SITE = #{dto.site}
|
||||
<if test="dto.storageLocationType != null and dto.storageLocationType != ''">
|
||||
AND wslt.STORAGE_LOCATION_TYPE like '%${dto.storageLocationType}%'
|
||||
</if>
|
||||
<if test="dto.storageLocation != null and dto.storageLocation != ''">
|
||||
AND wsl.STORAGE_LOCATION like '%${dto.storageLocation}%'
|
||||
</if>
|
||||
<if test="dto.erpStorageLocation != null and dto.erpStorageLocation != ''">
|
||||
AND wsl.ERP_STORAGE_LOCATION like '%${dto.erpStorageLocation}%'
|
||||
</if>
|
||||
<if test="dto.status != null and dto.status != ''">
|
||||
AND wsl.STATUS = '${dto.status}'
|
||||
</if>
|
||||
wsl.HANDLE,
|
||||
wsl.SITE,
|
||||
wsl.STORAGE_LOCATION,
|
||||
wsl.DESCRIPTION,
|
||||
wsl.ERP_STORAGE_LOCATION,
|
||||
wsl.IS_DEFAULT,
|
||||
wsl.STATUS,
|
||||
wslt.STORAGE_LOCATION_TYPE,
|
||||
wslt.DESCRIPTION AS STORAGE_LOCATION_TYPE_DESC,
|
||||
ww.WAREHOUSE,
|
||||
wc.WORK_CENTER,
|
||||
fb.FAB_NO
|
||||
from wms_storage_location wsl
|
||||
left join wms_storage_location_type wslt on wsl.STORAGE_LOCATION_TYPE_BO = wslt.HANDLE
|
||||
left join wms_warehouse ww on wsl.WAREHOUSE_BO = ww.HANDLE
|
||||
left join wip.work_center wc on wc.HANDLE = wsl.WORK_CENTER_BO
|
||||
left join wip.fab_basis fb on fb.HANDLE = wsl.FAB_NO_BO
|
||||
where wsl.SITE = #{dto.site}
|
||||
<if test="dto.storageLocationType != null and dto.storageLocationType != ''">
|
||||
AND wslt.STORAGE_LOCATION_TYPE like '%${dto.storageLocationType}%'
|
||||
</if>
|
||||
<if test="dto.storageLocation != null and dto.storageLocation != ''">
|
||||
AND wsl.STORAGE_LOCATION like '%${dto.storageLocation}%'
|
||||
</if>
|
||||
<if test="dto.erpStorageLocation != null and dto.erpStorageLocation != ''">
|
||||
AND wsl.ERP_STORAGE_LOCATION like '%${dto.erpStorageLocation}%'
|
||||
</if>
|
||||
<if test="dto.status != null and dto.status != ''">
|
||||
AND wsl.STATUS = '${dto.status}'
|
||||
</if>
|
||||
</select>
|
||||
<select id="findStorageLocationList" resultMap="wmsStorageLocationMap">
|
||||
select SL.STORAGE_LOCATION ,sl.DESCRIPTION
|
||||
|
||||
Loading…
Reference in New Issue
Block a user