七、ShopCategoryDao.xml





    
    
    
    
        INSERT INTO
        tb_shop_category(shop_category_name,shop_category_desc,shop_category_img,
        priority,create_time,last_edit_time,parent_id)
        VALUES
        (#{shopCategoryName},#{shopCategoryDesc},#{shopCategoryImg},
        #{priority},#{createTime},#{lastEditTime},#{parentId})
    
    
        update tb_shop_category
        
            shop_category_name=#{shopCategoryName},
            shop_category_desc=#{shopCategoryDesc},
            shop_category_img=#{shopCategoryImg},
            priority=#{priority},
            last_edit_time=#{lastEditTime},
            parent_id=#{parentId}
        
        where shop_category_id=#{shopCategoryId}
    
    
        DELETE FROM
        tb_shop_category
        WHERE
        shop_category_id =
        #{shopCategoryId}
    
    
        DELETE FROM
        tb_shop_category
        WHERE shop_category_id IN
        
            #{shopCategoryId}
        
    
    

你可能感兴趣的:(七、ShopCategoryDao.xml)