2 changed files with 86 additions and 0 deletions
-
28src/main/resources/mapper/base/PalletTypeAreaMapper.xml
-
58src/main/resources/mapper/base/PalletTypeMapper.xml
@ -0,0 +1,28 @@ |
|||
<?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.PalletTypeAreaMapper"> |
|||
|
|||
<!-- AI制作 - 查询托盘区域列表 --> |
|||
<select id="selectPalletTypeAreaList" resultType="PalletTypeAreaData"> |
|||
SELECT |
|||
pta.site, |
|||
pta.pallet_type, |
|||
pta.position, |
|||
pta.position_desc, |
|||
pt.type_desc, |
|||
pt.pallet_family, |
|||
pf.pallet_family_desc |
|||
FROM pallet_type_area pta |
|||
LEFT JOIN pallet_type pt ON pta.site = pt.site AND pta.pallet_type = pt.pallet_type |
|||
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 pta.site = #{site} |
|||
</if> |
|||
<if test="palletType != null and palletType != ''"> |
|||
AND pta.pallet_type = #{palletType} |
|||
</if> |
|||
ORDER BY pta.position |
|||
</select> |
|||
|
|||
</mapper> |
|||
@ -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> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue