|
|
@ -0,0 +1,58 @@ |
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
|
|
|
<mapper namespace="com.gaotao.modules.base.mapper.PalletTypeMapper"> |
|
|
|
|
|
|
|
|
|
|
|
<!-- AI制作 - 查询托盘类型列表(带关联信息) --> |
|
|
|
|
|
<select id="selectPalletTypeList" resultType="PalletTypeData"> |
|
|
|
|
|
SELECT |
|
|
|
|
|
pt.site, |
|
|
|
|
|
pt.pallet_type, |
|
|
|
|
|
pt.type_desc, |
|
|
|
|
|
pt.active, |
|
|
|
|
|
pt.remark, |
|
|
|
|
|
pt.pallet_family, |
|
|
|
|
|
pt.wcs_pallet_type, |
|
|
|
|
|
pt.wcs_base_pallet_type, |
|
|
|
|
|
pt.wcs_auto_sort, |
|
|
|
|
|
pt.wcs_sore_type, |
|
|
|
|
|
pt.max_layer, |
|
|
|
|
|
pf.pallet_family_desc |
|
|
|
|
|
FROM pallet_type pt |
|
|
|
|
|
LEFT JOIN pallet_family pf ON pt.site = pf.site AND pt.pallet_family = pf.pallet_family |
|
|
|
|
|
WHERE 1=1 |
|
|
|
|
|
<if test="site != null and site != ''"> |
|
|
|
|
|
AND pt.site = #{site} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="palletFamily != null and palletFamily != ''"> |
|
|
|
|
|
AND pt.pallet_family = #{palletFamily} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="palletType != null and palletType != ''"> |
|
|
|
|
|
AND pt.pallet_type = #{palletType} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="active != null and active != ''"> |
|
|
|
|
|
AND pt.active = #{active} |
|
|
|
|
|
</if> |
|
|
|
|
|
ORDER BY pt.pallet_type |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<!-- AI制作 - 根据托盘类型编码查询详情 --> |
|
|
|
|
|
<select id="selectByPalletType" resultType="PalletTypeData"> |
|
|
|
|
|
SELECT |
|
|
|
|
|
pt.site, |
|
|
|
|
|
pt.pallet_type, |
|
|
|
|
|
pt.type_desc, |
|
|
|
|
|
pt.active, |
|
|
|
|
|
pt.remark, |
|
|
|
|
|
pt.pallet_family, |
|
|
|
|
|
pt.wcs_pallet_type, |
|
|
|
|
|
pt.wcs_base_pallet_type, |
|
|
|
|
|
pt.wcs_auto_sort, |
|
|
|
|
|
pt.wcs_sore_type, |
|
|
|
|
|
pt.max_layer, |
|
|
|
|
|
pf.pallet_family_desc |
|
|
|
|
|
FROM pallet_type pt |
|
|
|
|
|
LEFT JOIN pallet_family pf ON pt.site = pf.site AND pt.pallet_family = pf.pallet_family |
|
|
|
|
|
WHERE pt.site = #{site} AND pt.pallet_type = #{palletType} |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
</mapper> |