编号规格为年份+月份+序列号 202101002
select SUBSTRING('202101002',1,6) 2021010
select POWER(10,3) 1000 int
select CAST(POWER(10,3) AS VARCHAR 1000 varchar
select RIGHT(CAST(POWER(10,3) AS VARCHAR)
SELECT @WTDHNew=SUBSTRING(@WTDH,1,6)+RIGHT(CAST(POWER(10,3) AS VARCHAR)+(CONVERT (INT ,SUBSTRING(@WTDH ,8,3))+1),3)