|
@ -1,39 +1,20 @@ |
|
|
<?xml version="1.0" encoding="UTF-8" ?> |
|
|
<?xml version="1.0" encoding="UTF-8" ?> |
|
|
<!DOCTYPE mapper |
|
|
<!DOCTYPE mapper |
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
<mapper namespace="com.ruoyi.warehouse.mapper.WarehouseInventoryInquiryDetailMapper"> |
|
|
<mapper namespace="com.ruoyi.warehouse.mapper.WarehouseInventoryInquiryDetailMapper"> |
|
|
|
|
|
|
|
|
<resultMap type="WarehouseInventoryInquiryDetail" id="WarehouseInventoryInquiryDetailResult"> |
|
|
<resultMap type="WarehouseInventoryInquiryDetail" id="WarehouseInventoryInquiryDetailResult"> |
|
|
<result property="inventoryInquiryDetailId" column="inventory_inquiry_detail_id" /> |
|
|
<result property="inventoryInquiryDetailId" column="inventory_inquiry_detail_id" /> |
|
|
<result property="materialNo" column="material_no" /> |
|
|
<result property="materialNo" column="material_no" /> |
|
|
<result property="materialName" column="material_name" /> |
|
|
<result property="correlationCode" column="correlation_code" /> |
|
|
<result property="materialType" column="material_type" /> |
|
|
<result property="inquiryBusinessType" column="inquiry_business_type" /> |
|
|
<result property="materialPhotourl" column="material_photoUrl" /> |
|
|
<result property="inquiryOrderType" column="inquiry_order_type" /> |
|
|
<result property="materialBrand" column="material_brand" /> |
|
|
<result property="inquiryWarehouseType" column="inquiry_warehouse_type" /> |
|
|
<result property="materialUnit" column="material_unit" /> |
|
|
<result property="shippingDeviceId" column="shipping_device_id" /> |
|
|
<result property="materialDescribe" column="material_describe" /> |
|
|
|
|
|
<result property="materialProcessMethod" column="material_process_method" /> |
|
|
|
|
|
<result property="materialModel" column="material_model" /> |
|
|
|
|
|
<result property="materialSpecification" column="material_specification" /> |
|
|
|
|
|
<result property="historicalTotal" column="historical_total" /> |
|
|
|
|
|
<result property="availableStockNum" column="available_stock_num" /> |
|
|
|
|
|
<result property="attributionAvailableStockNum" column="attribution_available_stock_num" /> |
|
|
|
|
|
<result property="noattributionAvailableStockNum" column="noattribution_available_stock_num" /> |
|
|
|
|
|
<result property="useNum" column="use_num" /> |
|
|
|
|
|
<result property="reportDamageNum" column="report_damage_num" /> |
|
|
|
|
|
<result property="materialUseStatus" column="material_use_status" /> |
|
|
|
|
|
<result property="inventoryAttributionCode" column="inventory_attribution_code" /> |
|
|
|
|
|
<result property="inventoryUseCode" column="inventory_use_code" /> |
|
|
|
|
|
<result property="inventoryHistoricalTime" column="inventory_historical_time" /> |
|
|
<result property="inventoryHistoricalTime" column="inventory_historical_time" /> |
|
|
<result property="inventoryHistoricalType" column="inventory_historical_type" /> |
|
|
|
|
|
<result property="inventoryIncreaseDecrease" column="inventory_increase_decrease" /> |
|
|
<result property="inventoryIncreaseDecrease" column="inventory_increase_decrease" /> |
|
|
<result property="inventoryHistoricalNum" column="inventory_historical_num" /> |
|
|
<result property="increaseDecreaseNum" column="increase_decrease_num" /> |
|
|
<result property="purchasePriceExcludingTax" column="purchase_price_excluding_tax" /> |
|
|
|
|
|
<result property="purchasePriceIncludesTax" column="purchase_price_includes_tax" /> |
|
|
|
|
|
<result property="purchaseOrderCode" column="purchase_order_code" /> |
|
|
|
|
|
<result property="supplierCode" column="supplier_code" /> |
|
|
|
|
|
<result property="supplierName" column="supplier_name" /> |
|
|
|
|
|
<result property="remark" column="remark" /> |
|
|
<result property="remark" column="remark" /> |
|
|
<result property="createTime" column="create_time" /> |
|
|
<result property="createTime" column="create_time" /> |
|
|
<result property="createBy" column="create_by" /> |
|
|
<result property="createBy" column="create_by" /> |
|
@ -42,131 +23,68 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectWarehouseInventoryInquiryDetailVo"> |
|
|
<sql id="selectWarehouseInventoryInquiryDetailVo"> |
|
|
select inventory_inquiry_detail_id, material_no, material_name, material_type, material_photoUrl, material_brand, material_unit, material_describe, material_process_method, material_model, material_specification, historical_total, available_stock_num, attribution_available_stock_num, noattribution_available_stock_num, use_num, report_damage_num, material_use_status, inventory_attribution_code, inventory_use_code, inventory_historical_time, inventory_historical_type, inventory_increase_decrease, inventory_historical_num, purchase_price_excluding_tax, purchase_price_includes_tax, purchase_order_code, supplier_code, supplier_name, remark, create_time, create_by, update_by, update_time from warehouse_inventory_inquiry_detail |
|
|
select inventory_inquiry_detail_id, material_no, correlation_code, inquiry_business_type, inquiry_order_type, inquiry_warehouse_type, shipping_device_id, inventory_historical_time, inventory_increase_decrease, increase_decrease_num, remark, create_time, create_by, update_by, update_time from warehouse_inventory_inquiry_detail |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectWarehouseInventoryInquiryDetailList" parameterType="WarehouseInventoryInquiryDetail" resultMap="WarehouseInventoryInquiryDetailResult"> |
|
|
<select id="selectWarehouseInventoryInquiryDetailList" parameterType="WarehouseInventoryInquiryDetail" resultMap="WarehouseInventoryInquiryDetailResult"> |
|
|
<include refid="selectWarehouseInventoryInquiryDetailVo"/> |
|
|
<include refid="selectWarehouseInventoryInquiryDetailVo"/> |
|
|
<where> |
|
|
<where> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectWarehouseInventoryInquiryDetailById" parameterType="Long" resultMap="WarehouseInventoryInquiryDetailResult"> |
|
|
<select id="selectWarehouseInventoryInquiryDetailById" parameterType="Long" resultMap="WarehouseInventoryInquiryDetailResult"> |
|
|
<include refid="selectWarehouseInventoryInquiryDetailVo"/> |
|
|
<include refid="selectWarehouseInventoryInquiryDetailVo"/> |
|
|
where inventory_inquiry_detail_id = #{inventoryInquiryDetailId} |
|
|
where inventory_inquiry_detail_id = #{inventoryInquiryDetailId} |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectWarehouseInventoryInquiryDetailByMaterialNo" parameterType="String" resultMap="WarehouseInventoryInquiryDetailResult"> |
|
|
|
|
|
<include refid="selectWarehouseInventoryInquiryDetailVo"/> |
|
|
|
|
|
where material_no = #{materialNo} |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertWarehouseInventoryInquiryDetail" parameterType="WarehouseInventoryInquiryDetail" useGeneratedKeys="true" keyProperty="inventoryInquiryDetailId"> |
|
|
<insert id="insertWarehouseInventoryInquiryDetail" parameterType="WarehouseInventoryInquiryDetail" useGeneratedKeys="true" keyProperty="inventoryInquiryDetailId"> |
|
|
insert into warehouse_inventory_inquiry_detail |
|
|
insert into warehouse_inventory_inquiry_detail |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<if test="materialNo != null">material_no,</if> |
|
|
<if test="materialNo != null">material_no,</if> |
|
|
<if test="materialName != null">material_name,</if> |
|
|
<if test="correlationCode != null">correlation_code,</if> |
|
|
<if test="materialType != null">material_type,</if> |
|
|
<if test="inquiryBusinessType != null">inquiry_business_type,</if> |
|
|
<if test="materialPhotourl != null">material_photoUrl,</if> |
|
|
<if test="inquiryOrderType != null">inquiry_order_type,</if> |
|
|
<if test="materialBrand != null">material_brand,</if> |
|
|
<if test="inquiryWarehouseType != null">inquiry_warehouse_type,</if> |
|
|
<if test="materialUnit != null">material_unit,</if> |
|
|
<if test="shippingDeviceId != null">shipping_device_id,</if> |
|
|
<if test="materialDescribe != null">material_describe,</if> |
|
|
|
|
|
<if test="materialProcessMethod != null">material_process_method,</if> |
|
|
|
|
|
<if test="materialModel != null">material_model,</if> |
|
|
|
|
|
<if test="materialSpecification != null">material_specification,</if> |
|
|
|
|
|
<if test="historicalTotal != null">historical_total,</if> |
|
|
|
|
|
<if test="availableStockNum != null">available_stock_num,</if> |
|
|
|
|
|
<if test="attributionAvailableStockNum != null">attribution_available_stock_num,</if> |
|
|
|
|
|
<if test="noattributionAvailableStockNum != null">noattribution_available_stock_num,</if> |
|
|
|
|
|
<if test="useNum != null">use_num,</if> |
|
|
|
|
|
<if test="reportDamageNum != null">report_damage_num,</if> |
|
|
|
|
|
<if test="materialUseStatus != null">material_use_status,</if> |
|
|
|
|
|
<if test="inventoryAttributionCode != null">inventory_attribution_code,</if> |
|
|
|
|
|
<if test="inventoryUseCode != null">inventory_use_code,</if> |
|
|
|
|
|
<if test="inventoryHistoricalTime != null">inventory_historical_time,</if> |
|
|
<if test="inventoryHistoricalTime != null">inventory_historical_time,</if> |
|
|
<if test="inventoryHistoricalType != null">inventory_historical_type,</if> |
|
|
|
|
|
<if test="inventoryIncreaseDecrease != null">inventory_increase_decrease,</if> |
|
|
<if test="inventoryIncreaseDecrease != null">inventory_increase_decrease,</if> |
|
|
<if test="inventoryHistoricalNum != null">inventory_historical_num,</if> |
|
|
<if test="increaseDecreaseNum != null">increase_decrease_num,</if> |
|
|
<if test="purchasePriceExcludingTax != null">purchase_price_excluding_tax,</if> |
|
|
|
|
|
<if test="purchasePriceIncludesTax != null">purchase_price_includes_tax,</if> |
|
|
|
|
|
<if test="purchaseOrderCode != null">purchase_order_code,</if> |
|
|
|
|
|
<if test="supplierCode != null">supplier_code,</if> |
|
|
|
|
|
<if test="supplierName != null">supplier_name,</if> |
|
|
|
|
|
<if test="remark != null">remark,</if> |
|
|
<if test="remark != null">remark,</if> |
|
|
<if test="createTime != null">create_time,</if> |
|
|
<if test="createTime != null">create_time,</if> |
|
|
<if test="createBy != null">create_by,</if> |
|
|
<if test="createBy != null">create_by,</if> |
|
|
<if test="updateBy != null">update_by,</if> |
|
|
<if test="updateBy != null">update_by,</if> |
|
|
<if test="updateTime != null">update_time,</if> |
|
|
<if test="updateTime != null">update_time,</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="materialNo != null">#{materialNo},</if> |
|
|
<if test="materialNo != null">#{materialNo},</if> |
|
|
<if test="materialName != null">#{materialName},</if> |
|
|
<if test="correlationCode != null">#{correlationCode},</if> |
|
|
<if test="materialType != null">#{materialType},</if> |
|
|
<if test="inquiryBusinessType != null">#{inquiryBusinessType},</if> |
|
|
<if test="materialPhotourl != null">#{materialPhotourl},</if> |
|
|
<if test="inquiryOrderType != null">#{inquiryOrderType},</if> |
|
|
<if test="materialBrand != null">#{materialBrand},</if> |
|
|
<if test="inquiryWarehouseType != null">#{inquiryWarehouseType},</if> |
|
|
<if test="materialUnit != null">#{materialUnit},</if> |
|
|
<if test="shippingDeviceId != null">#{shippingDeviceId},</if> |
|
|
<if test="materialDescribe != null">#{materialDescribe},</if> |
|
|
|
|
|
<if test="materialProcessMethod != null">#{materialProcessMethod},</if> |
|
|
|
|
|
<if test="materialModel != null">#{materialModel},</if> |
|
|
|
|
|
<if test="materialSpecification != null">#{materialSpecification},</if> |
|
|
|
|
|
<if test="historicalTotal != null">#{historicalTotal},</if> |
|
|
|
|
|
<if test="availableStockNum != null">#{availableStockNum},</if> |
|
|
|
|
|
<if test="attributionAvailableStockNum != null">#{attributionAvailableStockNum},</if> |
|
|
|
|
|
<if test="noattributionAvailableStockNum != null">#{noattributionAvailableStockNum},</if> |
|
|
|
|
|
<if test="useNum != null">#{useNum},</if> |
|
|
|
|
|
<if test="reportDamageNum != null">#{reportDamageNum},</if> |
|
|
|
|
|
<if test="materialUseStatus != null">#{materialUseStatus},</if> |
|
|
|
|
|
<if test="inventoryAttributionCode != null">#{inventoryAttributionCode},</if> |
|
|
|
|
|
<if test="inventoryUseCode != null">#{inventoryUseCode},</if> |
|
|
|
|
|
<if test="inventoryHistoricalTime != null">#{inventoryHistoricalTime},</if> |
|
|
<if test="inventoryHistoricalTime != null">#{inventoryHistoricalTime},</if> |
|
|
<if test="inventoryHistoricalType != null">#{inventoryHistoricalType},</if> |
|
|
|
|
|
<if test="inventoryIncreaseDecrease != null">#{inventoryIncreaseDecrease},</if> |
|
|
<if test="inventoryIncreaseDecrease != null">#{inventoryIncreaseDecrease},</if> |
|
|
<if test="inventoryHistoricalNum != null">#{inventoryHistoricalNum},</if> |
|
|
<if test="increaseDecreaseNum != null">#{increaseDecreaseNum},</if> |
|
|
<if test="purchasePriceExcludingTax != null">#{purchasePriceExcludingTax},</if> |
|
|
|
|
|
<if test="purchasePriceIncludesTax != null">#{purchasePriceIncludesTax},</if> |
|
|
|
|
|
<if test="purchaseOrderCode != null">#{purchaseOrderCode},</if> |
|
|
|
|
|
<if test="supplierCode != null">#{supplierCode},</if> |
|
|
|
|
|
<if test="supplierName != null">#{supplierName},</if> |
|
|
|
|
|
<if test="remark != null">#{remark},</if> |
|
|
<if test="remark != null">#{remark},</if> |
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
<if test="updateBy != null">#{updateBy},</if> |
|
|
<if test="updateBy != null">#{updateBy},</if> |
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
<update id="updateWarehouseInventoryInquiryDetail" parameterType="WarehouseInventoryInquiryDetail"> |
|
|
<update id="updateWarehouseInventoryInquiryDetail" parameterType="WarehouseInventoryInquiryDetail"> |
|
|
update warehouse_inventory_inquiry_detail |
|
|
update warehouse_inventory_inquiry_detail |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
<if test="materialNo != null">material_no = #{materialNo},</if> |
|
|
<if test="materialNo != null">material_no = #{materialNo},</if> |
|
|
<if test="materialName != null">material_name = #{materialName},</if> |
|
|
<if test="correlationCode != null">correlation_code = #{correlationCode},</if> |
|
|
<if test="materialType != null">material_type = #{materialType},</if> |
|
|
<if test="inquiryBusinessType != null">inquiry_business_type = #{inquiryBusinessType},</if> |
|
|
<if test="materialPhotourl != null">material_photoUrl = #{materialPhotourl},</if> |
|
|
<if test="inquiryOrderType != null">inquiry_order_type = #{inquiryOrderType},</if> |
|
|
<if test="materialBrand != null">material_brand = #{materialBrand},</if> |
|
|
<if test="inquiryWarehouseType != null">inquiry_warehouse_type = #{inquiryWarehouseType},</if> |
|
|
<if test="materialUnit != null">material_unit = #{materialUnit},</if> |
|
|
<if test="shippingDeviceId != null">shipping_device_id = #{shippingDeviceId},</if> |
|
|
<if test="materialDescribe != null">material_describe = #{materialDescribe},</if> |
|
|
|
|
|
<if test="materialProcessMethod != null">material_process_method = #{materialProcessMethod},</if> |
|
|
|
|
|
<if test="materialModel != null">material_model = #{materialModel},</if> |
|
|
|
|
|
<if test="materialSpecification != null">material_specification = #{materialSpecification},</if> |
|
|
|
|
|
<if test="historicalTotal != null">historical_total = #{historicalTotal},</if> |
|
|
|
|
|
<if test="availableStockNum != null">available_stock_num = #{availableStockNum},</if> |
|
|
|
|
|
<if test="attributionAvailableStockNum != null">attribution_available_stock_num = #{attributionAvailableStockNum},</if> |
|
|
|
|
|
<if test="noattributionAvailableStockNum != null">noattribution_available_stock_num = #{noattributionAvailableStockNum},</if> |
|
|
|
|
|
<if test="useNum != null">use_num = #{useNum},</if> |
|
|
|
|
|
<if test="reportDamageNum != null">report_damage_num = #{reportDamageNum},</if> |
|
|
|
|
|
<if test="materialUseStatus != null">material_use_status = #{materialUseStatus},</if> |
|
|
|
|
|
<if test="inventoryAttributionCode != null">inventory_attribution_code = #{inventoryAttributionCode},</if> |
|
|
|
|
|
<if test="inventoryUseCode != null">inventory_use_code = #{inventoryUseCode},</if> |
|
|
|
|
|
<if test="inventoryHistoricalTime != null">inventory_historical_time = #{inventoryHistoricalTime},</if> |
|
|
<if test="inventoryHistoricalTime != null">inventory_historical_time = #{inventoryHistoricalTime},</if> |
|
|
<if test="inventoryHistoricalType != null">inventory_historical_type = #{inventoryHistoricalType},</if> |
|
|
|
|
|
<if test="inventoryIncreaseDecrease != null">inventory_increase_decrease = #{inventoryIncreaseDecrease},</if> |
|
|
<if test="inventoryIncreaseDecrease != null">inventory_increase_decrease = #{inventoryIncreaseDecrease},</if> |
|
|
<if test="inventoryHistoricalNum != null">inventory_historical_num = #{inventoryHistoricalNum},</if> |
|
|
<if test="increaseDecreaseNum != null">increase_decrease_num = #{increaseDecreaseNum},</if> |
|
|
<if test="purchasePriceExcludingTax != null">purchase_price_excluding_tax = #{purchasePriceExcludingTax},</if> |
|
|
|
|
|
<if test="purchasePriceIncludesTax != null">purchase_price_includes_tax = #{purchasePriceIncludesTax},</if> |
|
|
|
|
|
<if test="purchaseOrderCode != null">purchase_order_code = #{purchaseOrderCode},</if> |
|
|
|
|
|
<if test="supplierCode != null">supplier_code = #{supplierCode},</if> |
|
|
|
|
|
<if test="supplierName != null">supplier_name = #{supplierName},</if> |
|
|
|
|
|
<if test="remark != null">remark = #{remark},</if> |
|
|
<if test="remark != null">remark = #{remark},</if> |
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
@ -181,7 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</delete> |
|
|
</delete> |
|
|
|
|
|
|
|
|
<delete id="deleteWarehouseInventoryInquiryDetailByIds" parameterType="String"> |
|
|
<delete id="deleteWarehouseInventoryInquiryDetailByIds" parameterType="String"> |
|
|
delete from warehouse_inventory_inquiry_detail where inventory_inquiry_detail_id in |
|
|
delete from warehouse_inventory_inquiry_detail where inventory_inquiry_detail_id in |
|
|
<foreach item="inventoryInquiryDetailId" collection="array" open="(" separator="," close=")"> |
|
|
<foreach item="inventoryInquiryDetailId" collection="array" open="(" separator="," close=")"> |
|
|
#{inventoryInquiryDetailId} |
|
|
#{inventoryInquiryDetailId} |
|
|
</foreach> |
|
|
</foreach> |
|
|