2 changed files with 38 additions and 1 deletions
			
			
		@ -0,0 +1,24 @@ | 
				
			|||||
 | 
					alter table ic_enterprise MODIFY COLUMN `SCALE` varchar(128) NOT NULL DEFAULT'-1' COMMENT '已弃用该字段,字典value,场所规模【\r\n0:10人以下\r\n1:10-20人\r\n2:21-40人\r\n3:41-100人\r\n4:100人以上】'; | 
				
			||||
 | 
					alter table ic_enterprise ADD COLUMN `SCALE_TOTAL` int(11) NOT NULL COMMENT '规模,手输数字' AFTER SCALE; | 
				
			||||
 | 
					alter table ic_enterprise add COLUMN PLACE_CATEGORY varchar(32) NOT NULL DEFAULT '0' COMMENT '场所类别:0九小场所、1企事业单位' after PLACE_TYPE; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					update ic_enterprise e | 
				
			||||
 | 
					set e.SCALE_TOTAL=5 | 
				
			||||
 | 
					where e.SCALE=0; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					update ic_enterprise e | 
				
			||||
 | 
					set e.SCALE_TOTAL=15 | 
				
			||||
 | 
					where e.SCALE=1; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					update ic_enterprise e | 
				
			||||
 | 
					set e.SCALE_TOTAL=30 | 
				
			||||
 | 
					where e.SCALE=2; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					update ic_enterprise e | 
				
			||||
 | 
					set e.SCALE_TOTAL=70 | 
				
			||||
 | 
					where e.SCALE=3; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					update ic_enterprise e | 
				
			||||
 | 
					set e.SCALE_TOTAL=100 | 
				
			||||
 | 
					where e.SCALE=4; | 
				
			||||
					Loading…
					
					
				
		Reference in new issue