@ -31,6 +31,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property= "warehouseCode" column= "warehouse_code" />
<result property= "warehouseName" column= "warehouse_name" />
<result property= "warehouseDetailAddress" column= "warehouse_detail_address" />
<result property= "supplierCode" column= "supplier_code" />
<result property= "supplierName" column= "supplier_name" />
<result property= "supplierAddress" column= "supplier_address" />
<result property= "customerContact" column= "customer_contact" />
<result property= "contactNumber" column= "contact_number" />
<result property= "createTime" column= "create_time" />
<result property= "createBy" column= "create_by" />
<result property= "updateBy" column= "update_by" />
@ -43,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
notify_arrived_num, actual_arrived_num, temporary_qualified_num, temporary_unqualified_num,
quality_qualified_num, quality_unqualified_num ,storage_num, arrived_time, temporary_time,
delivery_inspection_time, quality_time, storage_time, warehouse_employee, warehouse_code,
warehouse_name, warehouse_detail_address ,create_time, create_by, update_by, update_time,
warehouse_name, warehouse_detail_address, supplier_code , supplier_name, supplier_address, customer_contact, contact_number, create_time, create_by, update_by, update_time,
make_in_total_price, quality_order_code
from warehouse_storage_order
</sql>
@ -66,21 +71,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id= "selectPurchaseStorageList" parameterType= "WarehouseStorageOrder" resultMap= "WarehouseStorageOrderResult" >
<include refid= "selectWarehouseStorageOrderVo" />
<where >
<if test= "warehouseStorageCode != null and warehouseStorageCode != ''" > and warehouse_storage_code = #{warehouseStorageCode}</if>
<if test= "relatedOrderCode != null and relatedOrderCode != ''" > and related_order_code = #{relatedOrderCode}</if>
<if test= "warehouseStorageStatus != null and warehouseStorageStatus != ''" > and warehouse_storage_status = #{warehouseStorageStatus}</if>
<if test= "warehouseQualityStatus != null and warehouseQualityStatus != ''" > and warehouse_quality_status = #{warehouseQualityStatus}</if>
<if test= "warehouseDeptType != null and warehouseDeptType != ''" > and warehouse_dept_type = #{warehouseDeptType}</if>
<if test= "warehouseEmployee != null and warehouseEmployee != ''" > and warehouse_employee = #{warehouseEmployee}</if>
<if test= "params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''" > and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
and warehouse_order_type = '0'
</where>
order by create_time desc
</select>
<select id= "selectWarehouseStorageOrderById" parameterType= "Long" resultMap= "WarehouseStorageOrderResult" >
<include refid= "selectWarehouseStorageOrderVo" />
where warehouse_storage_id = #{warehouseStorageId}
@ -114,6 +104,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "warehouseCode != null" > warehouse_code,</if>
<if test= "warehouseName != null" > warehouse_name,</if>
<if test= "warehouseDetailAddress != null" > warehouse_detail_address,</if>
<if test= "supplierCode != null" > supplier_code,</if>
<if test= "supplierName != null" > supplier_name,</if>
<if test= "supplierAddress != null" > supplier_address,</if>
<if test= "customerContact != null" > customer_contact,</if>
<if test= "contactNumber != null" > contact_number,</if>
<if test= "createTime != null" > create_time,</if>
<if test= "createBy != null" > create_by,</if>
<if test= "updateBy != null" > update_by,</if>
@ -145,6 +140,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "warehouseCode != null" > #{warehouseCode},</if>
<if test= "warehouseName != null" > #{warehouseName},</if>
<if test= "warehouseDetailAddress != null" > #{warehouseDetailAddress},</if>
<if test= "supplierCode != null" > #{supplierCode},</if>
<if test= "supplierName != null" > #{supplierName},</if>
<if test= "supplierAddress != null" > #{supplierAddress},</if>
<if test= "customerContact != null" > #{customerContact},</if>
<if test= "contactNumber != null" > #{contactNumber},</if>
<if test= "createTime != null" > #{createTime},</if>
<if test= "createBy != null" > #{createBy},</if>
<if test= "updateBy != null" > #{updateBy},</if>
@ -180,6 +180,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "warehouseCode != null" > warehouse_code = #{warehouseCode},</if>
<if test= "warehouseName != null" > warehouse_name = #{warehouseName},</if>
<if test= "warehouseDetailAddress != null" > warehouse_detail_address = #{warehouseDetailAddress},</if>
<if test= "supplierCode != null" > supplier_code = #{supplierCode},</if>
<if test= "supplierName != null" > supplier_name = #{supplierName},</if>
<if test= "supplierAddress != null" > supplier_address = #{supplierAddress},</if>
<if test= "customerContact != null" > customer_contact = #{customerContact},</if>
<if test= "contactNumber != null" > contact_number = #{contactNumber},</if>
<if test= "createTime != null" > create_time = #{createTime},</if>
<if test= "createBy != null" > create_by = #{createBy},</if>
<if test= "updateBy != null" > update_by = #{updateBy},</if>
@ -217,6 +222,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "warehouseCode != null" > warehouse_code = #{warehouseCode},</if>
<if test= "warehouseName != null" > warehouse_name = #{warehouseName},</if>
<if test= "warehouseDetailAddress != null" > warehouse_detail_address = #{warehouseDetailAddress},</if>
<if test= "supplierCode != null" > supplier_code = #{supplierCode},</if>
<if test= "supplierName != null" > supplier_name = #{supplierName},</if>
<if test= "supplierAddress != null" > supplier_address = #{supplierAddress},</if>
<if test= "customerContact != null" > customer_contact = #{customerContact},</if>
<if test= "contactNumber != null" > contact_number = #{contactNumber},</if>
<if test= "createTime != null" > create_time = #{createTime},</if>
<if test= "createBy != null" > create_by = #{createBy},</if>
<if test= "updateBy != null" > update_by = #{updateBy},</if>