|
@@ -39,6 +39,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by z.userdefine2
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectBaseLocationZoneList1" parameterType="BaseLocationZone" resultMap="BaseLocationZoneResult">
|
|
|
+ select z.zone_id, z.zone_name,w.warehouse_name, z.warehouse_id, z.status, z.userdefine1, z.userdefine2, z.userdefine3, z.userdefine4, z.userdefine5, z.create_by, z.create_time, z.update_by, z.update_time, z.remark
|
|
|
+ from base_location_zone z
|
|
|
+ left join base_warehouse w on z.warehouse_id = w.warehouse_id
|
|
|
+ <where>
|
|
|
+ <if test="zoneId != null and zoneId != ''"> and z.zone_id = #{zoneId}</if>
|
|
|
+ <if test="zoneName != null and zoneName != ''"> and z.zone_name like concat('%', #{zoneName}, '%')</if>
|
|
|
+ <if test="warehouseId != null "> and z.warehouse_id = #{warehouseId}</if>
|
|
|
+ <if test="status != null and status != ''"> and z.status = #{status}</if>
|
|
|
+ </where>
|
|
|
+ where z.zone_id in (4,5)
|
|
|
+ order by z.userdefine2
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectBaseLocationZoneByZoneId" parameterType="Long" resultMap="BaseLocationZoneResult">
|
|
|
<include refid="selectBaseLocationZoneVo"/>
|
|
|
where zone_id = #{zoneId}
|