set @Year = Year(getdate())
    set @Month = Month(getdate())
    set @Day = Day(getdate())
    set @NewBatchCode =Cast(  @Year * 10000 + @Month * 100 + @Day as varchar(16))批号管理