|
|
|
|
@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="manageDeptId" column="manage_dept_id" />
|
|
|
|
|
<result property="manageDeptName" column="manage_dept_name" />
|
|
|
|
|
<result property="warehouseAddress" column="warehouse_address" />
|
|
|
|
|
<result property="managerUserId" column="manager_user_id" />
|
|
|
|
|
<result property="managerName" column="manager_name" />
|
|
|
|
|
<result property="contactPhone" column="contact_phone" />
|
|
|
|
|
<result property="enabled" column="enabled" />
|
|
|
|
|
@ -23,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectAmsWarehouseVo">
|
|
|
|
|
select warehouse_id, warehouse_code, warehouse_name, manage_dept_id, manage_dept_name, warehouse_address, manager_name, contact_phone, enabled, create_by, create_time, update_by, update_time, remark, del_flag from ams_warehouse
|
|
|
|
|
select warehouse_id, warehouse_code, warehouse_name, manage_dept_id, manage_dept_name, warehouse_address, manager_user_id, manager_name, contact_phone, enabled, create_by, create_time, update_by, update_time, remark, del_flag from ams_warehouse
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectAmsWarehouseList" parameterType="AmsWarehouse" resultMap="AmsWarehouseResult">
|
|
|
|
|
@ -34,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
|
|
|
|
<if test="manageDeptId != null"> and manage_dept_id = #{manageDeptId}</if>
|
|
|
|
|
<if test="warehouseAddress != null and warehouseAddress != ''"> and warehouse_address = #{warehouseAddress}</if>
|
|
|
|
|
<if test="managerUserId != null"> and manager_user_id = #{managerUserId}</if>
|
|
|
|
|
<if test="managerName != null and managerName != ''"> and manager_name like concat('%', #{managerName}, '%')</if>
|
|
|
|
|
<if test="contactPhone != null and contactPhone != ''"> and contact_phone = #{contactPhone}</if>
|
|
|
|
|
<if test="enabled != null and enabled != ''"> and enabled = #{enabled}</if>
|
|
|
|
|
@ -73,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="manageDeptId != null">manage_dept_id,</if>
|
|
|
|
|
<if test="manageDeptName != null">manage_dept_name,</if>
|
|
|
|
|
<if test="warehouseAddress != null">warehouse_address,</if>
|
|
|
|
|
<if test="managerUserId != null">manager_user_id,</if>
|
|
|
|
|
<if test="managerName != null">manager_name,</if>
|
|
|
|
|
<if test="contactPhone != null">contact_phone,</if>
|
|
|
|
|
<if test="enabled != null and enabled != ''">enabled,</if>
|
|
|
|
|
@ -89,6 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="manageDeptId != null">#{manageDeptId},</if>
|
|
|
|
|
<if test="manageDeptName != null">#{manageDeptName},</if>
|
|
|
|
|
<if test="warehouseAddress != null">#{warehouseAddress},</if>
|
|
|
|
|
<if test="managerUserId != null">#{managerUserId},</if>
|
|
|
|
|
<if test="managerName != null">#{managerName},</if>
|
|
|
|
|
<if test="contactPhone != null">#{contactPhone},</if>
|
|
|
|
|
<if test="enabled != null and enabled != ''">#{enabled},</if>
|
|
|
|
|
@ -109,7 +113,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
manage_dept_id = #{manageDeptId},
|
|
|
|
|
manage_dept_name = #{manageDeptName},
|
|
|
|
|
<if test="warehouseAddress != null">warehouse_address = #{warehouseAddress},</if>
|
|
|
|
|
<if test="managerName != null">manager_name = #{managerName},</if>
|
|
|
|
|
manager_user_id = #{managerUserId},
|
|
|
|
|
manager_name = #{managerName},
|
|
|
|
|
<if test="contactPhone != null">contact_phone = #{contactPhone},</if>
|
|
|
|
|
<if test="enabled != null and enabled != ''">enabled = #{enabled},</if>
|
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
|
|