<?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.jeeplus.test.materialManagement.wareHouse.mapper.WareHouseSummaryMapper">
    <delete id="deleteByDetailedId">
        update material_management_warehouse_summary set del_flag = 1
    </delete>
    <select id="getInfoByTradeName"
            resultType="com.jeeplus.test.materialManagement.wareHouse.domain.WareHouseSummary">
        select * from material_management_warehouse_summary
        where ware_house_type = #{wareHouseType} and trade_name = #{tradeName} and del_flag = 0
    </select>
    <select id="getInfoByBasicId"
            resultType="com.jeeplus.test.materialManagement.wareHouse.domain.WareHouseSummary">
        select * from material_management_warehouse_summary where basic_id = #{id}
    </select>
</mapper>
