guoyujie
2025-09-04 48bd9e20aa649145c9bf643e375c0cd86f7bb800
north-glass-erp/src/main/resources/mapper/mm/BasicWarehouseType.xml
@@ -5,11 +5,43 @@
<mapper namespace="com.example.erp.mapper.mm.BasicWarehouseTypeMapper">
    <select id="getBasicWarehouseTypeTakeOut" >
        select * from mm.basic_warehouse_type where operate_type='领出';
        select * from mm.basic_warehouse_type where type='领出';
    </select>
    <select id="getBasicWarehouseTypeRework" >
        select * from mm.basic_warehouse_type where operate_type='返工';
        select * from mm.basic_warehouse_type where type='返工';
    </select>
    <select id="getBasicWarehouseType" >
        select * from mm.basic_warehouse_type where type regexp #{type} group by operate_type_name;
    </select>
    <select id="getBasicWarehouse" >
        select operate_type from mm.basic_warehouse_type where type regexp #{type};
    </select>
    <select id="getBasicWarehouseTypeAll" >
        select * from mm.basic_warehouse_type where type!=#{originalFilm} and type!=#{accessories}  order by id desc;
    </select>
    <insert id="insertBasicWarehouse"  useGeneratedKeys="true"  >
        insert into mm.basic_warehouse_type (operate_type_name, operate_type, type, create_time
        )
        values (
                   #{operateTypeName} ,#{operateType},#{type},now()
               )
    </insert>
    <delete id="deleteBasicWarehouse"  >
        delete from mm.basic_warehouse_type where id=#{id}
    </delete>
    <update id="updateBasicWarehouse"  >
        update mm.basic_warehouse_type set operate_type_name=#{operateTypeName},create_time=now() where id=#{id}
    </update>
    <select id="getBasicWarehouseUser" >
        select user_name from erp_user_info.user u where u.address regexp #{type};
    </select>