# Sys_DicDetail

NAME: 耕地
CODE: 01
OWNERDIC: 2
paixu: 2
REMARK:
指种植农作物的土地，包括熟地，新开发、复垦、整理地，休闲地（含轮歇地、休耕地）；以种植农作物（含蔬菜）为主，间有零星果树、桑树或其他树木的土地；平均每年能保证收获一季的已垦滩地和海涂。耕地中包括南方宽度＜1.0 米，北方宽度＜2.0米固定的沟、渠、路和地坎(埂)；临时种植药材、草皮、花卉、苗木等的耕地，临时种植果树、茶树和林木且耕作层未破坏的耕地，以及其他临时改变用途的耕地。


PID: 44
NAME: 科教文卫用地
CODE: 08H2
OWNERDIC: 2
paixu: 48
REMARK:
指用于各类教育，独立的科研、勘察、研发、设计、检验检测、技术推广、环境评估与监测、科普等科研事业单位，医疗、保健、卫生、防疫、康复和急救设施，为社会提供福利和慈善服务的设施，图书、展览等公共文化活动设施，体育场馆和体育训练基地等用地及其附属设施用地。


PID: 374
NAME: 设施农用地
CODE: 1202
OWNERDIC: 2
paixu: 81
REMARK:
指直接用于经营性畜禽养殖生产设施及附属设施用地；直接用于作物栽培或水产养殖等农产品生产的设施及附属设施用地；直接用于设施农业项目辅助生产的设施用地；晾晒场、粮食果品烘干设施、粮食和农资临时存放场所、大型农机具临时存放场所等规模化粮食生产所必需的配套设施用地。


# CheckingRule_copy

RuleCode: 32054428000001
LayerName: 拆除未尽区更新层
RuleType: 值域规范性
RuleName: 拆除未尽区更新层要素代码（YSDM）为2099090100
Requirement: 拆除未尽区更新层要素代码（YSDM）为2099090100，且不能为空值
ZLLayerName: CCWJQGX_拆除未尽区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层要素代码（YSDM）为2099090100，且不能为空值' ErrorName from {0}  WHERE YSDM IS NULL or YSDM!='2099090100'  or YSDM='' or YSDM =' '


RuleCode: 32054428000002
LayerName: 拆除未尽区更新层
RuleType: 值域规范性
RuleName: 拆除未尽区更新层占地面积（ZDMJ）大于0
Requirement: 拆除未尽区更新层占地面积（ZDMJ）大于0，且不能为空值
ZLLayerName: CCWJQGX_拆除未尽区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层占地面积（ZDMJ）大于0，且不能为空值' ErrorName from {0} WHERE ZDMJ ISNULL OR ZDMJ<=0 or ZDMJ='' or ZDMJ=' '


RuleCode: 32054428000004
LayerName: 拆除未尽区更新层
RuleType: 值域规范性
RuleName: 拆除未尽区更新层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2991，11-18位不重复
Requirement: 拆除未尽区更新层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2991，11-18位不重复，BSM不允许有空值
ZLLayerName: CCWJQGX_拆除未尽区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2991，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from  {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2991' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054428000005
LayerName: 拆除未尽区更新层
RuleType: 值域规范性
RuleName: 拆除未尽区更新层GXSJ字段取值符合规范要求
Requirement: 拆除未尽区更新层GXSJ字段取值符合规范要求，且不能为空值，年份为2021
ZLLayerName: CCWJQGX_拆除未尽区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份为2021' ErrorName,'{3}' RuleType from {0} WHERE  STRFTIME('%Y',GXSJ)!='2021' or GXSJ ISNULL or GXSJ='' or GXSJ =' ' 


RuleCode: 32054308000001
LayerName: 城镇村等用地更新层
RuleType: 值域规范性
RuleName: 城镇村等用地更新层YSDM字段取值为2099030100
Requirement: 城镇村等用地更新层YSDM字段取值为2099030100，且不能为空值
ZLLayerName: CZCDYDGX_城镇村等用地更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值为2099030100，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE YSDM IS NULL or YSDM!='2099030100' or YSDM='' or YSDM =' '


RuleCode: 32054308000002
LayerName: 城镇村等用地更新层
RuleType: 值域规范性
RuleName: 城镇村等用地更新层CZCMJ字段取值大于0
Requirement: 城镇村等用地更新层CZCMJ字段取值大于0，且不能为空值
ZLLayerName: CZCDYDGX_城镇村等用地更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层CZCMJ字段取值大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE CZCMJ ISNULL OR CZCMJ<=0 OR CZCMJ='' OR CZCMJ=' '


RuleCode: 32054308000003
LayerName: 城镇村等用地更新层
RuleType: 值域规范性
RuleName: 城镇村等用地更新层CZCLX字段取值在201、201A、202、202A、203、203A、204、205范围内
Requirement: 城镇村等用地更新层CZCLX字段取值在201、201A、202、202A、203、203A、204、205范围内
ZLLayerName: CZCDYDGX_城镇村等用地更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层CZCLX字段取值在201、201A、202、202A、203、203A、204、205范围内' ErrorName,'{3}' RuleType from {0}  WHERE CZCLX not in ('201','201A','202','202A','203','203A','204','205') or CZCLX ISNULL 


RuleCode: 32054308000004
LayerName: 城镇村等用地更新层
RuleType: 值域规范性
RuleName: 城镇村等用地更新层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为2931，11-18位不重复
Requirement: 城镇村等用地更新层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为2931，11-18位不重复，BSM不允许有空值
ZLLayerName: CZCDYDGX_城镇村等用地更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为2931，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2931' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1) 


RuleCode: 32054308000006
LayerName: 城镇村等用地更新层
RuleType: 值域规范性
RuleName: 城镇村等用地更新层CZCDM与CZCMC必填检查
Requirement: 城镇村等用地更新层CZCDM与CZCMC字段取值不能为空
ZLLayerName: CZCDYDGX_城镇村等用地更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层CZCDM与CZCMC字段取值不能为空' ErrorName,'{3}' RuleType  from {0} WHERE CZCDM ISNULL or CZCMC ISNULL or CZCDM='' or CZCMC='' or CZCDM=' ' or CZCMC=' ' or CZCDM='	' or CZCMC='	' 


RuleCode: 32054308000007
LayerName: 城镇村等用地更新层
RuleType: 值域规范性
RuleName: 城镇村等用地更新层GXSJ字段取值符合规范要求
Requirement: 城镇村等用地更新层GXSJ字段取值符合规范要求，且不能为空值，年份为2021
ZLLayerName: CZCDYDGX_城镇村等用地更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份为2021' ErrorName,'{3}' RuleType from {0} WHERE  STRFTIME('%Y',GXSJ)!='2021' or GXSJ ISNULL or GXSJ='' or GXSJ =' '


RuleCode: 32054508000001
LayerName: 城镇村等用地更新过程层
RuleType: 值域规范性
RuleName: 城镇村等用地更新过程层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2932，11-18位不重复
Requirement: 城镇村等用地更新过程层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2932，11-18位不重复
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2932，11-18位不重复' ErrorName,'{3}' RuleType from {0} WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2932' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054508000002
LayerName: 城镇村等用地更新过程层
RuleType: 值域规范性
RuleName: 城镇村等用地更新过程层BGMJ取值大于0
Requirement: 城镇村等用地更新过程层BGMJ取值大于0
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BGMJ取值大于0' ErrorName,'{3}' RuleType from {0} WHERE BGMJ ISNULL OR BGMJ<=0


RuleCode: 32054508000003
LayerName: 城镇村等用地更新过程层
RuleType: 值域规范性
RuleName: 城镇村等用地更新过程层变更行为取值为0（灭失）、1（属性变更）、2（图形变更）、3（新增）
Requirement: 城镇村等用地更新过程层变更行为取值为0（灭失）、1（属性变更）、2（图形变更）、3（新增）
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为取值为0（灭失）、1（属性变更）、2（图形变更）、3（新增）' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW not in ('0','1','2','3')


RuleCode: 32054508000004
LayerName: 城镇村等用地更新过程层
RuleType: 值域规范性
RuleName: 城镇村等用地更新过程层GXSJ字段取值符合规范要求
Requirement: 城镇村等用地更新过程层GXSJ字段取值符合规范要求,不允许存在空值，年份为2021
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求,不允许存在空值，年份为2021' ErrorName,'{3}' RuleType  from {0} WHERE  STRFTIME('%Y',GXSJ)!='2021' or GXSJ ISNULL or GXSJ='' or GXSJ =' '


RuleCode: 33014508000001
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层变更前后同一区县的属性变更单元，变更前标识码与变更后标识码一致
Requirement: 城镇村等用地更新过程层变更前后同一区县的属性变更单元不允许修改标识码，变更前标识码与变更后标识码应一致
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更前后同一区县的属性变更单元不允许修改标识码，变更前标识码与变更后标识码应一致' ErrorName,'{3}' RuleType from {0} WHERE BGQCZCDM=BGHCZCDM and BGXW='1' and BGQBSM!=BGHBSM


RuleCode: 33014508000002
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层属性变更，变更前后对应属性项至少存在一项不一致
Requirement: 城镇村等用地更新过程层属性变更，变更前后对应属性项至少存在一项不一致
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层属性变更，变更前后对应属性项至少存在一项不一致' ErrorName,'{3}' RuleType  from {0} WHERE  BGXW='1' and BGQCZCLX=BGHCZCLX  and BGQCZCDM=BGHCZCDM and BGQCZCMC=BGHCZCMC and BGQBZ=BGHBZ


RuleCode: 33014508000003
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层属性变更，更新过程层内变更前标识码唯一且变更后标识码唯一
Requirement: 城镇村等用地更新过程层属性变更，更新过程层内变更前标识码唯一且变更后标识码唯一，不存在合并或拆分等图形变化情况
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层属性变更，更新过程层内变更前标识码唯一且变更后标识码唯一，不存在合并或拆分等图形变化情况' ErrorName,'{3}' RuleType  from {0} WHERE  BGXW='1' and BGQBSM in 
 (
 select  BGQBSM from {0} WHERE  BGXW='1' GROUP BY BGQBSM HAVING count(BGQBSM)>1
 ) 
 and BGHBSM in 
 (
 select  BGHBSM from {0} WHERE  BGXW='1' GROUP BY BGHBSM HAVING count(BGHBSM)>1
 ) 


RuleCode: 33014508000004
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层图形变更（不含调入），更新过程层内变更前标识码不唯一或变更后标识码不唯一
Requirement: 城镇村等用地更新过程层图形变更（不含调入），更新过程层内变更前标识码不唯一或变更后标识码不唯一，存在合并或拆分
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层图形变更（不含调入），更新过程层内变更前标识码不唯一或变更后标识码不唯一，存在合并或拆分' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='2' and (BGQBSM in 
 (
 select  BGQBSM from {0} WHERE  BGXW='2' GROUP BY BGQBSM HAVING count(BGQBSM)=1
 ) 
  or  BGHBSM in 
 (
 select  BGHBSM from {0} WHERE  BGXW='2' GROUP BY BGHBSM HAVING count(BGHBSM)=1
 ) )


RuleCode: 33014508000005
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层变更行为是新增3时，变更前属性均为空
Requirement: 城镇村等用地更新过程层变更行为是新增3时，变更前属性均为空
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是新增3时，变更前属性均为空' ErrorName,'{3}' RuleType from {0} WHERE  BGXW='3'  and (BGQBSM NOTNULL or BGQCZCLX NOTNULL or BGQCZCDM NOTNULL or BGQCZCMC NOTNULL)


RuleCode: 33014508000006
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层变更行为是灭失0时，变更后属性均为空
Requirement: 城镇村等用地更新过程层变更行为是灭失0时，变更后属性均为空
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是灭失0时，变更后属性均为空' ErrorName,'{3}' RuleType from {0} WHERE  BGXW='0'  and (BGHBSM NOTNULL or BGHCZCLX NOTNULL or BGHCZCDM NOTNULL or BGHCZCMC NOTNULL)


RuleCode: 32054310000001
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层YSDM字段取值为1000600400
Requirement: 村级调查区更新层YSDM字段取值为1000600400
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值为1000600400' ErrorName,'{3}' RuleType from {0} WHERE YSDM IS NULL or YSDM!='1000600400'


RuleCode: 32054310000002
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层计算面积（JSMJ）大于0
Requirement: 村级调查区更新层计算面积（JSMJ）大于0，且不能为空值
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层计算面积（JSMJ）大于0，且不能为空值' ErrorName,'{3}' RuleType  from {0} WHERE JSMJ ISNULL OR JSMJ<=0 or JSMJ='' or JSMJ=' '


RuleCode: 32054310000004
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层调查面积（DCMJ）大于0
Requirement: 村级调查区更新层调查面积（DCMJ）大于0，且不能为空值
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层调查面积（DCMJ）大于0，且不能为空值' ErrorName,'{3}' RuleType  from {0}  WHERE DCMJ ISNULL OR DCMJ<=0 or DCMJ='' or DCMJ=' '


RuleCode: 32054310000005
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为1240，11-18位不重复
Requirement: 村级调查区更新层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为1240，11-18位不重复
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为1240，11-18位不重复' ErrorName,'{3}' RuleType  from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1240' or SUBSTR(BSM,11,8) in (select SUBSTR(BSM,11,8) from {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054310000006
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层ZLDWDM不能为空，长度为19位，后7位为0000000
Requirement: 村级调查区更新层ZLDWDM不能为空，长度为19位，后7位为0000000
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZLDWDM不能为空，长度为19位，后7位为0000000' ErrorName,'{3}' RuleType  from {0}  WHERE LENGTH(ZLDWDM)!=19 or SUBSTR(ZLDWDM,13,7)!='0000000'


RuleCode: 32054310000007
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层GXSJ字段取值符合规范要求
Requirement: 村级调查区更新层GXSJ字段取值符合规范要求,不允许存在空值，年份为2021
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求,不允许存在空值，年份为2021' ErrorName,'{3}' RuleType  from {0} WHERE  STRFTIME('%Y',GXSJ)!='2021' or GXSJ ISNULL


RuleCode: 32054310000011
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层MSSM字段取值为'00'或'01'
Requirement: 村级调查区更新层MSSM字段取值为'00'或'01'
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层MSSM字段取值为00或01' ErrorName,'{3}' RuleType  from {0}  WHERE  MSSM not in ('00','01')


RuleCode: 32054310000012
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层ZLDWMC不能为空
Requirement: 村级调查区更新层ZLDWMC不能为空
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZLDWMC不能为空' ErrorName,'{3}' RuleType  from {0}  WHERE  ZLDWMC ISNULL or ZLDWMC='' or ZLDWMC=' '


RuleCode: 32054510000001
LayerName: 村级调查区更新过程层
RuleType: 值域规范性
RuleName: 村级调查区更新过程层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为1241，11-18位不重复
Requirement: 村级调查区更新过程层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为1241，11-18位不重复
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为1241，11-18位不重复' ErrorName,'{3}' RuleType from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1241' or SUBSTR(BSM,11,8) in (select SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054510000002
LayerName: 村级调查区更新过程层
RuleType: 值域规范性
RuleName: 村级调查区更新过程层BGMJ取值大于0
Requirement: 村级调查区更新过程层BGMJ取值大于0，不为空值
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BGMJ取值大于0，不为空值' ErrorName,'{3}' RuleType from {0}  WHERE BGMJ ISNULL OR BGMJ<=0 or BGMJ='' or BGMJ=' '


RuleCode: 32054510000003
LayerName: 村级调查区更新过程层
RuleType: 值域规范性
RuleName: 村级调查区更新过程层变更行为取值为0（灭失）、1（属性变更）、2（图形变更）、3（新增）
Requirement: 村级调查区只允许存在属性变更、图形变更、新增、灭失四种变更行为
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}只允许存在属性变更、图形变更、新增、灭失四种变更行为' ErrorName,'{3}' RuleType from {0}  WHERE BGXW not in ('0','1','2','3')


RuleCode: 32054510000004
LayerName: 村级调查区更新过程层
RuleType: 值域规范性
RuleName: 村级调查区更新过程层GXSJ字段取值符合规范要求
Requirement: 村级调查区更新更新过程层GXSJ字段取值符合规范要求,不允许存在空值，年份为2021
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求,不允许存在空值，年份为2021' ErrorName,'{3}' RuleType from {0}  WHERE  STRFTIME('%Y',GXSJ)!='2021' or GXSJ ISNULL


RuleCode: 33014510000007
LayerName: 村级调查区更新过程层
RuleType: 逻辑一致性
RuleName: 村级调查区更新过程层变更前后同一区县的属性变更单元，变更前标识码与变更后标识码一致
Requirement: 村级调查区更新过程层变更行为是属性变更且变更前后属于同一区县，变更前标识码与变更后标识码一致
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更且变更前后属于同一区县，变更前标识码与变更后标识码一致' ErrorName,'{3}' RuleType from {0} WHERE BGXW ='1' AND BGQZLDWDM != BGHZLDWDM AND BGQBSM != BGHBSM


RuleCode: 33014510000008
LayerName: 村级调查区更新过程层
RuleType: 逻辑一致性
RuleName: 村级调查区更新过程层变更行为是属性变更，变更前后对应属性项至少存在一项不一致
Requirement: 村级调查区更新过程层变更行为是属性变更，变更前后对应属性项（XZQDM、XZQMC、DCMJ、MSSM、HDMC、BZ）至少存在一项不一致
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更，变更前后对应属性项（XZQDM、XZQMC、DCMJ、MSSM、HDMC、BZ）至少存在一项不一致' ErrorName,'{3}' RuleType  from {0}  WHERE  BGXW='1' and BGQZLDWDM=BGHZLDWDM  and BGQZLDWMC=BGHZLDWMC and BGQMSSM=BGHMSSM and BGQHDMC= BGHHDMC and BGQBZ=BGHBZ


RuleCode: 33014510000009
LayerName: 村级调查区更新过程层
RuleType: 逻辑一致性
RuleName: 村级调查区更新过程层属性变更，更新过程层内变更前标识码唯一且变更后标识码唯一
Requirement: 村级调查区更新过程层属性变更，图形不能发生变化，更新过程层内变更前标识码唯一且变更后标识码唯一
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层属性变更，图形不能发生变化，更新过程层内变更前标识码唯一且变更后标识码唯一' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='1'  
 and BGQBSM in 
 (
 select  BGQBSM from {0} WHERE  BGXW='1' GROUP BY BGQBSM HAVING count(BGQBSM)>1
 ) 
 or  BGHBSM in 
 (
 select  BGHBSM from {0} WHERE  BGXW='1' GROUP BY BGHBSM HAVING count(BGHBSM)>1
 ) 


RuleCode: 33014510000011
LayerName: 村级调查区更新过程层
RuleType: 逻辑一致性
RuleName: 村级调查区更新过程层变更行为是新增3时，变更前属性均为空
Requirement: 村级调查区更新过程层变更行为是新增3时，变更前属性均为空
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是新增3时，变更前属性均为空' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='3'  and (BGQBSM NOTNULL or BGQZLDWDM NOTNULL or BGQZLDWMC NOTNULL or BGQDCMJ NOTNULL or BGQMSSM NOTNULL or BGQHDMC NOTNULL or BGQBZ NOTNULL)


RuleCode: 33014510000012
LayerName: 村级调查区更新过程层
RuleType: 逻辑一致性
RuleName: 村级调查区更新过程层变更行为是灭失0时，变更后属性均为空
Requirement: 村级调查区更新过程层变更行为是灭失0时，变更后属性均为空
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是灭失0时，变更后属性均为空' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='0'  and (BGHBSM NOTNULL or BGHZLDWDM NOTNULL or BGHZLDWMC NOTNULL or BGHDCMJ NOTNULL or BGHMSSM NOTNULL or BGHHDMC NOTNULL or BGHBZ NOTNULL)


RuleCode: 32054425000001
LayerName: 村级调查区界线更新层
RuleType: 值域规范性
RuleName: 村级调查区界线更新层YSDM字段取值为1000600500
Requirement: 村级调查区界线更新层YSDM字段取值为1000600500
ZLLayerName: CJDCQJXGX_村级调查区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值为1000600500' ErrorName,'{3}' RuleType from {0}  WHERE YSDM IS NULL or YSDM!='1000600500'


RuleCode: 32054425000004
LayerName: 村级调查区界线更新层
RuleType: 值域规范性
RuleName: 村级调查区界线更新层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为1250，11-18位不重复
Requirement: 村级调查区界线更新层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为1250，11-18位不重复（只检查无变化和新增部分）
ZLLayerName: CJDCQJXGX_村级调查区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为1250，11-18位不重复（只检查无变化和新增部分）' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW in ('3','4') and (
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1250' or SUBSTR(BSM,11,8) in (select SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)	)


RuleCode: 32054425000005
LayerName: 村级调查区界线更新层
RuleType: 值域规范性
RuleName: 村级调查区界线更新层GXSJ字段取值符合规范要求
Requirement: 村级调查区界线更新层GXSJ字段取值符合规范要求，且不能为空值，年份为2021
ZLLayerName: CJDCQJXGX_村级调查区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份为2021' ErrorName,'{3}' RuleType from {0}  WHERE  STRFTIME('%Y',GXSJ)!='2021' or GXSJ ISNULL


RuleCode: 32054425000006
LayerName: 村级调查区界线更新层
RuleType: 值域规范性
RuleName: 村级调查区界线更新层变更行为取值为0（灭失）、3（新增）、4（无变化）
Requirement: 村级调查区界线更新层变更行为取值为0（灭失）、3（新增）、4（无变化）
ZLLayerName: CJDCQJXGX_村级调查区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为取值为0（灭失）、3（新增）、4（无变化）' ErrorName,'{3}' RuleType from {0}  WHERE BGXW not in ('0','3','4')


RuleCode: 33054303430401
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: 地类图斑更新层耕地图斑GDPDJB字段取值与对应坡度图层PDJB字段取值一致
Requirement:
耕地要素耕地坡度级别与该范围内面积占优的坡度级保持一致（属性变更但耕地坡度级别未变更的耕地图斑、按照国家规定耕地坡度级别变更要求中要求地方将坡度级别由1修改为4/5的耕地图斑不报错，如果没有坡度图更新层才会执行该项规则）


RuleCode: 32054304000002
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层要素代码（YSDM）为2001010100
Requirement: 地类图斑更新层YSDM字段取值为2001010100，且不能为空值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
 select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值为2001010100，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE YSDM ISNULL or YSDM!='2001010100' 


RuleCode: 32054304000003
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层TBMJ字段取值大于0
Requirement: 地类图斑更新层TBMJ字段取值大于0，且不能为空值
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBMJ字段取值大于0，且不能为空值' ErrorName from {0} WHERE TBMJ ISNULL OR TBMJ<=0 OR TBMJ='' OR TBMJ=' '


RuleCode: 32054304000004
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层TBDLMJ字段取值大于0
Requirement: 地类图斑更新层TBDLMJ字段取值大于0，且不能为空值
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBDLMJ字段取值大于0，且不能为空值' ErrorName from {0} WHERE  TBDLMJ ISNULL OR TBDLMJ<=0 or TBDLMJ='' or TBDLMJ=' '


RuleCode: 32054304000005
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层DLBM和DLMC在第三次全国土地调查工作分类表（最末级分类）中有对应项且匹配
Requirement: 地类图斑更新层DLBM和DLMC在第三次全国土地调查工作分类表（最末级分类）中有对应项且匹配
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM和DLMC在第三次全国土地调查工作分类表（最末级分类）中有对应项且匹配' ErrorName,'{3}' RuleType from {0} WHERE 
DLBM not in (select CODE from Sys_DicDetail WHERE OWNERDIC='2') or 
DLMC not in (select NAME from Sys_DicDetail WHERE OWNERDIC='2')


RuleCode: 32054304000006
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层KCDLBM取值在1203、空范围内
Requirement: 地类图斑更新层KCDLBM取值在1203、空范围内
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层KCDLBM取值在1203、空范围内' ErrorName,'{3}' RuleType from {0} WHERE KCDLBM != '1203' and KCDLBM notNULL and KCDLBM != '' and KCDLBM != ' '


RuleCode: 32054304000007
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为2110，11-18位不重复
Requirement: 地类图斑更新层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为2110，11-18位不重复，BSM不允许有空值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为2110，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from {0} WHERE BSM ISNULL or BSM='' or BSM =' ' or SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2110' or SUBSTR(BSM,11,8) in (select SUBSTR(BSM,11,8) from {0} group by SUBSTR(BSM,11,8) having count(SUBSTR(BSM,11,8)) > 1)


RuleCode: 32054304000008
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层QSDWDM不能为空，长度为19位
Requirement: 地类图斑更新层QSDWDM不能为空，长度为19位，必须为纯数值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层QSDWDM不能为空，长度为19位，必须为纯数值' ErrorName,'{3}' RuleType from {0} WHERE LENGTH(QSDWDM)!=19 or  QSDWDM ISNULL or  LENGTH(CAST(QSDWDM as INTEGER))!=19


RuleCode: 32054304000009
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层FRDBS字段取值规范性
Requirement: 地类图斑更新层FRDBS字段取值规范性
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层FRDBS字段取值规范性' ErrorName,'{3}' RuleType from {0} WHERE  FRDBS not in ('0','1') or FRDBS ISNULL


RuleCode: 32054304000010
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层QSXZ字段取值规范性
Requirement: 地类图斑更新层QSXZ字段取值规范性，且不能为空值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层QSXZ不能为空' ErrorName from {0} WHERE QSXZ ISNULL or QSXZ='' or QSXZ=' '


RuleCode: 32054304000012
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层MSSM字段取值为'00'或'01'
Requirement: 地类图斑更新层MSSM字段取值为'00'或'01'
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层MSSM字段取值为00或01' ErrorName from {0} WHERE  MSSM not in ('00','01')


RuleCode: 32054304000013
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层QSDWMC不能为空
Requirement: 地类图斑更新层QSDWMC不能为空
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层QSDWMC不能为空' ErrorName from {0} WHERE  QSDWMC ISNULL or QSDWMC='' or QSDWMC=' '


RuleCode: 32054304000014
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层ZLDWDM不能为空，长度为19位
Requirement: 地类图斑更新层ZLDWDM不能为空，长度为19位，必须为纯数值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZLDWDM不能为空，长度为19位，必须为纯数值' ErrorName,'{3}' RuleType from {0} WHERE LENGTH(ZLDWDM)!=19 or  ZLDWDM ISNULL or  LENGTH(CAST(ZLDWDM as INTEGER))!=19


RuleCode: 32054304000015
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层ZLDWMC不能为空
Requirement: 地类图斑更新层ZLDWMC不能为空
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZLDWMC不能为空' ErrorName,'{3}' RuleType from {0} WHERE  ZLDWMC ISNULL or ZLDWMC='' or ZLDWMC=' ' or ZLDWMC='	'


RuleCode: 32054304000017
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层ZLDWDM前6位为县级行政区代码
Requirement: 地类图斑更新层ZLDWDM前6位为县级行政区代码
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZLDWDM前6位为县级行政区代码' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(ZLDWDM,0,7)!='{4}'


RuleCode: 32054304000018
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层BZ字段为空
Requirement: 地类图斑更新层BZ字段不允许填写字段值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BZ字段不允许填写字段值' ErrorName,'{3}' RuleType from {0} WHERE BZ NOTNULL and  BZ!='' and BZ!=' ' and BZ!='	'


RuleCode: 32054304410819
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: 地类图斑更新层GXSJ字段取值符合规范要求
Requirement: 地类图斑更新层GXSJ字段取值符合规范要求，且不能为空值，年份为2021
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求' ErrorName'{3}' RuleType from {0}  WHERE  STRFTIME('%Y',GXSJ)!='2021' or GXSJ ISNULL


RuleCode: 32054304410820
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层面积类字段小数位数检查
Requirement: 地类图斑更新层TBMJ、TBDLMJ、KCMJ字段保留2位小数
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBMJ、TBDLMJ、KCMJ字段保留2位小数' ErrorName,'{3}' RuleType from {0} WHERE (LENGTH(TBMJ)-instr(TBMJ,'.')!=2 and TBMJ!=0) or (LENGTH(TBDLMJ)-instr(TBDLMJ,'.')!=2 and TBDLMJ!=0) or	LENGTH(KCMJ)-instr(KCMJ,'.')!=2


RuleCode: 32054304410821
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层线状地物宽度字段小数位数检查
Requirement: 地类图斑更新层XZDWKD字段保留1位小数
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层XZDWKD字段保留1位小数' ErrorName,'{3}' RuleType from {0}  WHERE  LENGTH(XZDWKD)-instr(XZDWKD,'.')!=1


RuleCode: 33014304000002
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0602、1001、1003时，TBXHDM字段为FQ或空值
Requirement: 地类图斑更新层DLBM为0602、1001、1003时，TBXHDM字段为FQ或空值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM为0602、1001、1003时，TBXHDM字段为FQ或空值' ErrorName,'{3}' RuleType from {0} WHERE DLBM in('0602','1001','1003') and TBXHDM NOTNULL and TBXHDM!='FQ' and TBXHDM!='' and TBXHDM!=' '


RuleCode: 33014304000003
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01且GDPDJB为1时，KCXS等于0
Requirement: 地类图斑更新层DLBM前2位为01且GDPDJB为1时，KCXS等于0
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位为01且GDPDJB为1时，KCXS等于0' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' AND GDPDJB='1' AND KCXS!=0


RuleCode: 33014304000004
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01且GDPDJB为2、3、4、5，KCXS取值在[0,1)之间
Requirement: 地类图斑更新层DLBM前2位为01且GDPDJB为2、3、4、5，KCXS取值在[0,1)之间
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位为01且GDPDJB为2、3、4、5，KCXS取值在[0,1)之间' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' AND GDPDJB in('2','3','4','5')  and (KCXS<0 or KCXS>1)


RuleCode: 33014304000005
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位非01时，KCXS等于0
Requirement: 地类图斑更新层DLBM前2位非01时，KCXS等于0
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位非01时，KCXS等于0' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)!='01' and KCXS!=0


RuleCode: 33014304000007
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: 地类图斑更新层KCMJ=TBMJ*KCXS
Requirement: 地类图斑更新层KCMJ=TBMJ*KCXS
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层KCMJ=TBMJ*KCXS' ErrorName,'{3}' RuleType from {0}  WHERE KCMJ!=(TBMJ*KCXS)


RuleCode: 33014304000008
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: 地类图斑更新层TBDLMJ=TBMJ-KCMJ
Requirement: 地类图斑更新层TBDLMJ=TBMJ-KCMJ
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBDLMJ=TBMJ-KCMJ' ErrorName,'{3}' RuleType from {0}  WHERE TBDLMJ!=(TBMJ-KCMJ)


RuleCode: 33014304000009
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01且GDPDJB为1时，GDLX为空
Requirement: 地类图斑更新层DLBM前2位为01且GDPDJB为1时，GDLX为空
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位为01且GDPDJB为1时，GDLX为空' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' AND GDPDJB='1' AND GDLX NOTNULL and GDLX!='' and GDLX!=' '


RuleCode: 33014304000010
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层GDLX与DLBM、GDPDJB逻辑一致，DLBM前两位为01且GDPDJB为2、3、4或5时，GDLX为PD或TT
Requirement: 地类图斑更新层GDLX与DLBM、GDPDJB逻辑一致，DLBM前两位为01且GDPDJB为2、3、4或5时，GDLX为PD或TT
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GDLX与DLBM、GDPDJB逻辑一致，DLBM前两位为01且GDPDJB为2、3、4或5时，GDLX为PD或TT' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' and GDPDJB in ('2','3','4','5') and  GDLX not in ('PD','TT') 


RuleCode: 33014304000011
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位非01时，GDLX为空
Requirement: 地类图斑更新层DLBM前2位非01时，GDLX为空
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位非01时，GDLX为空' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)!='01'  and GDLX NOTNULL AND GDLX!='' AND GDLX!=' '


RuleCode: 33014304000012
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层GDPDJB与DLBM逻辑一致，DLBM前两位为01时，GDPDJB为1、2、3、4或5
Requirement: 地类图斑更新层GDPDJB与DLBM逻辑一致，DLBM前两位为01时，GDPDJB为1、2、3、4或5
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GDPDJB与DLBM逻辑一致，DLBM前两位为01时，GDPDJB为1、2、3、4或5' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' and GDPDJB NOT IN ('1','2','3','4','5')


RuleCode: 33014304000013
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位非01时，GDPDJB为空
Requirement: 地类图斑更新层DLBM前2位非01时，GDPDJB为空或填写0
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位非01时，GDPDJB为空或填写0' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)!='01' and GDPDJB NOTNULL and GDPDJB!=0 and GDPDJB!=''  


RuleCode: 33014304000014
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD大于0
Requirement: 地类图斑更新层铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD大于0
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD大于0' ErrorName,'{3}' RuleType from {0} WHERE DLBM in ('1001', '1002', '1003', '1004', '1006', '1007', '1008', '1009', '1109', '1107', '1107A', '1101') and (XZDWKD<=0 or XZDWKD ISNULL or XZDWKD='')


RuleCode: 33014304000015
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层CZCSXM字段取值为201A、202A、203A时，DLBM字段取值为0601
Requirement: 地类图斑更新层CZCSXM字段取值为201A、202A、203A时，DLBM字段取值为0601
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层CZCSXM字段取值为201A、202A、203A时，DLBM字段取值为0601' ErrorName,'{3}' RuleType from {0} WHERE CZCSXM in ('201A','202A','203A') and DLBM !='0601'


RuleCode: 33014304000016
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层TBXHDM字段取值在HDGD、HQGD、LQGD、MQGD、SHGD、SMGD、YJGD范围内时，DLBM前2位为01
Requirement: 地类图斑更新层TBXHDM字段取值在HDGD、HQGD、LQGD、MQGD、SHGD、SMGD、YJGD范围内时，地类必须为耕地
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBXHDM字段取值在HDGD、HQGD、LQGD、MQGD、SHGD、SMGD、YJGD范围内时，地类必须为耕地' ErrorName,'{3}' RuleType from {0} WHERE  TBXHDM in ('HDGD','HQGD','LQGD','MQGD','SHGD','SMGD','YJGD') and SUBSTR(DLBM,1,2)!='01'


RuleCode: 33014304000017
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01时，TBXHDM字段取值在HDGD、HQGD、LQGD、MQGD、SHGD、SMGD、YJGD或空范围内
Requirement: 地类图斑更新层耕地图斑，TBXHDM字段取值在HDGD、HQGD、LQGD、MQGD、SHGD、SMGD、YJGD或空范围内
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层耕地图斑，TBXHDM字段取值在HDGD、HQGD、LQGD、MQGD、SHGD、SMGD、YJGD或空范围内' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' and TBXHDM NOT in ('HDGD','HQGD','LQGD','MQGD','SHGD','SMGD','YJGD') and TBXHDM NOTNULL and TBXHDM !=' ' and TBXHDM != ''


RuleCode: 33014304000018
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0301、0302、0305、0307、0404、1104、1104A时，ZZSXDM取值在JKHF、GCHF、空范围内
Requirement: 地类图斑更新层DLBM为0301、0302、0305、0307、0404、1104、1104A时，种植属性代码取值在JKHF、GCHF范围内，或为空值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM为0301、0302、0305、0307、0404、1104、1104A时，种植属性代码取值在JKHF、GCHF范围内，或为空值' ErrorName,'{3}' RuleType from {0} WHERE DLBM in ('0301','0302','0305','0307','0404','1104','1104A')  AND ZZSXDM not in('JKHF','GCHF') and ZZSXDM NOTNULL AND ZZSXDM !=' ' AND ZZSXDM !=''


RuleCode: 33014304000019
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0201、0202、0203、0204，且TBXHDM为空时，ZZSXDM取值在JKHF、GCHF、空范围内
Requirement: 地类图斑更新层DLBM为0201、0202、0203、0204，且TBXHDM为空时，ZZSXDM字段取值在JKHF、GCHF范围内，且允许存在空值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM为0201、0202、0203、0204，且TBXHDM为空时，ZZSXDM字段取值在JKHF、GCHF范围内，且允许存在空值' ErrorName,'{3}' RuleType from {0} WHERE DLBM in ('0201','0202','0203','0204') and (TBXHDM ISNULL or TBXHDM='' or TBXHDM=' ') AND ZZSXDM not in('JKHF','GCHF') and ZZSXDM NOTNULL AND ZZSXDM !=' ' AND ZZSXDM !=''


RuleCode: 33014304000022
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层TBXHDM字段取值在HDGY、GTGY、MTGY、SNGY、BLGY、DLGY范围内时，DLBM等于0601
Requirement: 地类图斑更新层TBXHDM字段取值在HDGY、GTGY、MTGY、SNGY、BLGY、DLGY范围内时，地类为工业用地
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBXHDM字段取值在HDGY、GTGY、MTGY、SNGY、BLGY、DLGY范围内时，地类为工业用地' ErrorName,'{3}' RuleType from {0} WHERE TBXHDM in ('HDGY','GTGY','MTGY','SNGY','BLGY','DLGY') and DLBM !='0601'


RuleCode: 33014304000023
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0601时，TBXHDM字段为HDGY、GTGY、MTGY、SNGY、BLGY或DLGY
Requirement: 地类图斑更新层工业用地，TBXHDM字段为HDGY、GTGY、MTGY、SNGY、BLGY、DLGY，或空值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层工业用地，TBXHDM字段为HDGY、GTGY、MTGY、SNGY、BLGY、DLGY，或空值' ErrorName,'{3}' RuleType from {0} WHERE DLBM='0601' and  TBXHDM not in ('HDGY','GTGY','MTGY','SNGY','BLGY','DLGY') and TBXHDM!='' and TBXHDM!=' ' and TBXHDM NOTNULL


RuleCode: 33014304000024
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位非01、02、03、04，且不等于0601、0602、1001、1003，或属于湿地的，TBXHDM字段为空
Requirement: 地类图斑更新层DLBM字段前2位非01、02、03、04，且DLBM不在0601、0602、1001、1003取值范围内，或属于湿地的地类，不能进行图斑细化标注
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM字段前2位非01、02、03、04，且DLBM不在0601、0602、1001、1003取值范围内，或属于湿地的地类，不能进行图斑细化标注' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2) not in ('01','02','03','04') and DLBM not in ('0601', '0602', '1001', '1003', '0303', '0304', '0306', '0402', '0603', '1105', '1106', '1108') and TBXHDM NOTNULL and TBXHDM !=''


RuleCode: 33014304000025
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层TBXHMC与TBXHDM字段取值匹配
Requirement: 地类图斑更新层TBXHMC与TBXHDM字段取值匹配
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select distinct {0}.OBJECTID, {0}.BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBXHMC与TBXHDM字段取值匹配' ErrorName,'{3}' RuleType from {0}  LEFT JOIN Sys_DicDetail on {0}.TBXHDM = Sys_DicDetail.CODE WHERE {0}.TBXHMC != Sys_DicDetail.NAME


RuleCode: 33014304000026
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01时，ZZSXDM取值在LS、FLS、LYFL、XG、LLJZ、WG范围内
Requirement: 地类图斑更新层耕地图斑，种植属性代码取值在LS、FLS、LYFL、XG、LLJZ、WG范围内
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层耕地图斑，种植属性代码取值在LS、FLS、LYFL、XG、LLJZ、WG范围内' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' AND ZZSXDM not in ('LS','FLS','LYFL','XG','LLJZ','WG') and ZZSXDM NOTNULL and ZZSXDM !='' and ZZSXDM !=' ' 


RuleCode: 33014304000028
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层ZZSXMC与ZZSXDM字段取值匹配
Requirement: 地类图斑更新层ZZSXMC与ZZSXDM字段取值匹配
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select distinct DLTBBG.OBJECTID, DLTBBG.BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZZSXMC与ZZSXDM字段取值匹配' ErrorName,'{3}' RuleType from DLTBBG  LEFT JOIN Sys_DicDetail on DLTBBG.ZZSXDM = Sys_DicDetail.CODE WHERE DLTBBG.ZZSXMC != Sys_DicDetail.NAME


RuleCode: 33014304000029
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层FRDBS字段值为1时，ZLDWDM前12位与QSDWDM前12位不一致
Requirement: 地类图斑更新层FRDBS字段值为1时，ZLDWDM前12位与QSDWDM前12位不一致
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层FRDBS字段值为1时，ZLDWDM前12位与QSDWDM前12位不一致' ErrorName,'{3}' RuleType from {0} WHERE FRDBS='1' and SUBSTR(ZLDWDM,1,12)=SUBSTR(QSDWDM,1,12)


RuleCode: 33014304000031
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层建设用地（除工业用地、交通运输用地外），CZCSXM取值在201、202、203、204、205范围内
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
Requirement:
地类图斑更新层建设用地（05H1、0508、0602、0603、0701、0702、08H1、08H2、08H2A、0809、0810、0810A、09、1004、1005、1201），CZCSXM取值在201、202、203、204、205范围内，不允许为空

ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层建设用地（05H1、0508、0602、0603、0701、0702、08H1、08H2、08H2A、0809、0810、0810A、09、1004、1005、1201），CZCSXM取值在201、202、203、204、205范围内，不允许为空' ErrorName ,'{3}' RuleType from {0} WHERE  DLBM in 
 ('05H1','0508','0602','0603','0701','0702','08H1','08H2','08H2A','0809','0810','0810A','09','1004','1005','1201') and CZCSXM not in ('201','202','203','204','205')


RuleCode: 33014304000034
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层工业用地0601，CZCSXM字段取值在201、202、203、201A、202A、203A、204、205范围内
Requirement: 地类图斑更新层工业用地0601，CZCSXM字段取值在201、202、203、201A、202A、203A、204、205范围内
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层工业用地0601，CZCSXM字段取值在201、202、203、201A、202A、203A、204、205范围内' ErrorName,'{3}' RuleType from {0} WHERE  DLBM='0601' and CZCSXM not in ('201','202','203','201A','202A','203A','204','205')


RuleCode: 33014304000035
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层非河流、铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD等于0
Requirement: 地类图斑更新层非河流、铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD等于0，允许为空
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层非河流、铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD等于0，允许为空' ErrorName,'{3}' RuleType from {0}  WHERE  DLBM not in ('1001', '1002', '1003', '1004', '1006', '1007', '1008', '1009', '1109', '1107', '1107A', '1101')  and XZDWKD !=0 and XZDWKD NOTNULL and XZDWKD !=' ' and XZDWKD !=''


RuleCode: 33014304000036
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层非建设用地、交通运输用地、水工建筑用地，CZCSXM字段取值在201、202、203、204、205范围内，或为空值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
Requirement:
地类图斑更新层非建设用地、交通运输用地(1001,1002,1003,1006,1007,1008,1009)、水工建筑用地（1109），CZCSXM字段取值在201、202、203、204、205范围内，或取值为空

ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层非建设用地、交通运输用地(1001,1002,1003,1006,1007,1008,1009)、水工建筑用地（1109），CZCSXM字段取值在201、202、203、204、205范围内，或取值为空' ErrorName from {0} WHERE  
 DLBM not in ('1001', '1002', '1003', '1006', '1007', '1008', '1009', '1109') and CZCSXM not in ('201','202','203','204','205') and CZCSXM NOTNULL and CZCSXM !='' and CZCSXM !=' '


RuleCode: 33014304000037
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层KCXS与KCDLBM一致性检查，KCXS大于0时，KCDLBM不为空，KCXS等于0时，KCDLBM为空
Requirement: 地类图斑更新层KCXS与KCDLBM一致性检查，KCXS大于0时，KCDLBM不为空，KCXS等于0时，KCDLBM为空
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层KCXS与KCDLBM一致性检查，KCXS大于0时，KCDLBM不为空，KCXS等于0时，KCDLBM为空' ErrorName from {0} WHERE (KCXS >0 and (KCDLBM ISNULL or KCDLBM='' or KCDLBM=' ' ) ) or  (KCXS=0 and KCDLBM NOTNULL and KCDLBM !='' and KCDLBM !=' '  )


RuleCode: 33014304000039
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01时，GDDB字段取值在[1..15]范围内
Requirement: 地类图斑更新层DLBM前2位为01时，GDDB字段取值在[1..15]范围内,允许存在空值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位为01时，GDDB字段取值在[1..15]范围内,允许存在空值' ErrorName from {0} WHERE  SUBSTR(DLBM,1,2)='01' and (GDDB<1 or GDDB>15) and GDDB NOTNULL and GDDB!='' and GDDB!=' '


RuleCode: 33014304000040
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位非01时，GDDB字段取值为空
Requirement: 地类图斑更新层DLBM前2位非01时，GDDB字段取值为空
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位非01时，GDDB字段取值为空' ErrorName from {0} WHERE SUBSTR(DLBM,1,2)!='01'  and GDDB NOTNULL and GDDB !='' and GDDB!=' '


RuleCode: 33014304000041
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为04时（不含0404），TBXHDM取值在GCCD、空范围内
Requirement: 地类图斑更新层草地（不含其他草地），图斑细化标注可以是GCCD，允许不标注
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层草地（不含其他草地），图斑细化标注可以是GCCD，允许不标注' ErrorName from {0} WHERE SUBSTR(DLBM,1,2)='04' and DLBM!='0404' and TBXHDM!='GCCD' and TBXHDM NOTNULL and TBXHDM!='' and TBXHDM!=' '


RuleCode: 33014304000049
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层国有土地飞入地标识不能为1
Requirement: 地类图斑更新层权属和坐落属于同一区县的国有土地飞入地标识不能为1
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层权属和坐落属于同一区县的国有土地飞入地标识不能为1' ErrorName from {0} WHERE SUBSTR(QSDWDM,1,12)=SUBSTR(ZLDWDM,1,12) and FRDBS='1'


RuleCode: 33014304000051
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为04（不包括0404、0403K)、05、06、07、08、09、10、11（不包括1104、1104A、1104K）、12，或属于湿地的，ZZSXDM字段为空
Requirement: 地类图斑更新层DLBM前2位为04（不包括0404、0403K)、05、06、07、08、09、10、11（不包括1104、1104A、1104K）、12，或属于湿地的，不允许填写种植属性代码
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位为04（不包括0404、0403K)、05、06、07、08、09、10、11（不包括1104、1104A、1104K）、12，或属于湿地的，不允许填写种植属性代码' ErrorName,'{3}' RuleType from {0} WHERE ((SUBSTR(DLBM,1,2) in ('04','05','06','07','08','09','10','11','12') and DLBM not in ('0404','0403K','1104','1104A','1104K')) or DLBM in ('0303', '0304', '0306', '0402', '0603', '1105', '1106','1108')) and ZZSXDM NOTNULL and ZZSXDM !='' and ZZSXDM !=' ' 


RuleCode: 33014304000052
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为02时，TBXHDM取值在LQYD、空范围内
Requirement: 地类图斑更新层种植园用地，图斑细化标注可以是LQYD，允许不标注
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层种植园用地，图斑细化标注可以是LQYD，允许不标注' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='02' and TBXHDM!='LQYD' and TBXHDM NOTNULL and TBXHDM!='' and TBXHDM!=' '


RuleCode: 33014304000053
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0201、0202、0203、0204，且TBXHDM为LQYD时，ZZSXDM取值为空
Requirement: 地类图斑更新层地类为0201、0202、0203、0204，且标注林区种植园用地的不能标注种植属性
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层地类为0201、0202、0203、0204，且标注林区种植园用地的不能标注种植属性' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='02' and TBXHDM='LQYD' and ZZSXDM NOTNULL and ZZSXDM!='' and ZZSXDM!=' '


RuleCode: 33014304000054
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为03时，TBXHDM取值在LJTM、空范围内
Requirement: 地类图斑更新层林地，图斑细化代码为LJTM，或为空
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层林地，图斑细化代码为LJTM，或为空' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='03' and TBXHDM!='LJTM' and TBXHDM NOTNULL AND TBXHDM!='' and TBXHDM!=' '


RuleCode: 33014304000055
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0404时，TBXHDM取值在LJTM、GCCD、空范围内
Requirement: 地类图斑更新层其他草地，图斑细化标注可以是LJTM或GCCD，或为空
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层其他草地，图斑细化标注可以是LJTM或GCCD，或为空' ErrorName,'{3}' RuleType from {0} WHERE DLBM='0404' and TBXHDM!='LJTM' and TBXHDM!='GCCD' and TBXHDM NOTNULL AND TBXHDM!='' and TBXHDM!=' '


RuleCode: 33014304000056
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0201K、0202K、0203K、0204K、0301K、0302K、0307K、0403K、1104K时，ZZSXDM取值在JKHF、GCHF、空范围内
Requirement: 地类图斑更新层所有可调整地类，种植属性代码取值在JKHF、GCHF、空范围内
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层所有可调整地类，种植属性代码取值在JKHF、GCHF、空范围内' ErrorName,'{3}' RuleType from {0} WHERE DLBM in ('0201K','0202K','0203K','0204K','0301K','0302K','0307K','0403K','1104K')  and ZZSXDM not in('GCHF','JKHF') and ZZSXDM NOTNULL and ZZSXDM!='' and ZZSXDM!=' '


RuleCode: 32054504000002
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层TBBGMJ取值大于0
Requirement: 地类图斑更新过程层TBBGMJ取值大于0，且不能为空值
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBBGMJ取值大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE TBBGMJ <=0 or TBBGMJ ISNULL or TBBGMJ ='' or TBBGMJ=' '


RuleCode: 32054504000004
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层变更行为取值为0（灭失）、1（属性变更）、2（图形变更）、3（新增）
Requirement: 地类图斑只有图形变更、属性变更、新增、灭失四种变更行为
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'地类图斑只有图形变更、属性变更、新增、灭失四种变更行为' ErrorName,'{3}' RuleType from {0} WHERE  BGXW not in ('0','1','2','3')


RuleCode: 32054504000005
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层GXSJ字段取值符合规范要求
Requirement: 地类图斑更新过程层GXSJ字段取值符合规范要求，不能为空值，年份为2021
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，不能为空值，年份为2021' ErrorName,'{3}' RuleType from {0} WHERE  STRFTIME('%Y',GXSJ)!='2021' or GXSJ ISNULL


RuleCode: 32054504000006
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层面积类字段小数位数检查
Requirement: 地类图斑更新过程层TBBGMJ、BGHKCMJ、BGHKCDLMJ字段保留2位小数
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBBGMJ、BGHKCMJ、BGHKCDLMJ字段保留2位小数' ErrorName,'{3}' RuleType from {0}  WHERE  LENGTH(TBBGMJ)-instr(TBBGMJ,'.')=1 or LENGTH(BGHKCMJ)-instr(BGHKCMJ,'.')=1 or LENGTH(BGHKCDLMJ)-instr(BGHKCDLMJ,'.')=1


RuleCode: 32054504000007
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层变更后线状地物宽度字段小数位数检查
Requirement: 地类图斑更新过程层BGHXZDWKD字段保留1位小数
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BGHXZDWKD字段保留1位小数' ErrorName,'{3}' RuleType from {0} WHERE LENGTH(BGHXZDWKD)-instr(BGHXZDWKD,'.')!=1


RuleCode: 32054504000008
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层行政区调整类型取值为县级行政区代码无变化0、调入1、调出2、新增3、灭失4、仅县级行政区代码变化5
Requirement: 地类图斑更新过程层行政区调整类型取值为县级行政区代码无变化0、调入1、调出2、新增3、灭失4、仅县级行政区代码变化5
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型取值为县级行政区代码无变化0、调入1、调出2、新增3、灭失4、仅县级行政区代码变化5' ErrorName,'{3}' RuleType from {0}  WHERE XZQTZLX not in ('0','1','2','3','4') AND BGHQSDWDM !='5'


RuleCode: 33014504000006
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层变更行为是属性变更，变更前后DLBM一致时，则变更前后XZDWKD一致
Requirement: 地类图斑更新过程层变更行为是属性变更且地类未发生变化，线状地物宽度也不能变化
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更且地类未发生变化，线状地物宽度也不能变化' ErrorName,'{3}' RuleType from {0} WHERE BGXW='1' and BGQDLBM=BGHDLBM and BGQXZDWKD!=BGHXZDWKD


RuleCode: 33014504000007
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为县级行政区代码无变化的属性变更单元，变更前标识码与变更后标识码一致
Requirement: 地类图斑更新过程层变更行为是属性变更且行政区调整类型为县级行政区代码无变化，变更前后标识码一致
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更且行政区调整类型为县级行政区代码无变化，变更前后标识码一致' ErrorName,'{3}' RuleType from {0} WHERE BGXW='1' and XZQTZLX='0' and BGQTBBSM!=BGHTBBSM


RuleCode: 33014504000008
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层变更行为是属性变更，变更前后对应属性项（除BSM、TBBH外）至少存在一项不一致
ZLLayerName: DLTBGXGC_地类图斑更新过程
Requirement:
地类图斑更新过程层变更行为是属性变更，变更前后对应属性项DLBM、DLMC、GDDB、QSXZ、QSDWDM、QSDWMC、ZLDWDM、ZLDWMC、GDDB、KCDLBM、KCXS、GDLX、GDPDJB、XZDWKD、TBXHDM、TBXHMC、ZZSXDM、ZZSXMC、FRDBS、CZCSXM、HDMC、KCMJ、TBDLMJ、MSSM至少一项不一致

ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更，变更前后对应属性项DLBM、DLMC、GDDB、QSXZ、QSDWDM、QSDWMC、ZLDWDM、ZLDWMC、GDDB、KCDLBM、KCXS、GDLX、GDPDJB、XZDWKD、TBXHDM、TBXHMC、ZZSXDM、ZZSXMC、FRDBS、CZCSXM、HDMC、KCMJ、TBDLMJ、MSSM至少一项不一致' ErrorName,'{3}' RuleType from {0} WHERE BGXW='1' and BGQDLBM=BGHDLBM and BGQDLMC =BGHDLMC and BGQGDDB =BGHGDDB and BGQQSXZ =BGHQSXZ and BGQQSDWDM =BGHQSDWDM and BGQQSDWMC =BGHQSDWMC and BGQZLDWDM =BGHZLDWDM and BGQZLDWMC =BGHZLDWMC and 
BGQKCDLBM =BGHKCDLBM and BGQKCXS =BGHKCXS and BGQGDLX =BGHGDLX and BGQGDPDJB =BGHGDPDJB and BGQXZDWKD =BGHXZDWKD and BGQTBXHDM =BGHTBXHDM and BGQTBXHMC =BGHTBXHMC and BGQZZSXDM =BGHZZSXDM and BGQZZSXDM =BGHZZSXDM and BGQFRDBS =BGHFRDBS and BGQCZCSXM =BGHCZCSXM and BGQHDMC =BGHHDMC and BGQMSSM =BGHMSSM


RuleCode: 33014504000011
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层BGQKCDLMJ=TBBGMJ*BGQKCXS
Requirement: 地类图斑更新过程层变更前扣除地类面积 = 图斑变更面积* 变更前扣除地类系数
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更前扣除地类面积 = 图斑变更面积* 变更前扣除地类系数' ErrorName,'{3}' RuleType  from {0} WHERE  BGQKCDLMJ!=(TBBGMJ*BGQKCDLXS)


RuleCode: 33014504000012
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层BGQTBDLMJ=TBBGMJ-BGQKCMJ
Requirement: 地类图斑更新过程层变更前地类面积 = 图斑变更面积-变更前扣除地类面积
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更前地类面积 = 图斑变更面积-变更前扣除地类面积' ErrorName,'{3}' RuleType from {0} WHERE  BGQTBDLMJ!=(TBBGMJ-BGQKCDLMJ)


RuleCode: 33014504000013
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层BGHKCDLMJ=TBBGMJ*BGHKCXS
Requirement: 地类图斑更新过程层变更后扣除地类面积 = 图斑变更面积*变更后扣除地类系数
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更后扣除地类面积 = 图斑变更面积*变更后扣除地类系数' ErrorName,'{3}' RuleType from {0} WHERE  BGHKCDLMJ!=(TBBGMJ*BGHKCDLXS)


RuleCode: 33014504000014
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层BGHTBDLMJ=TBBGMJ-BGHKCMJ
Requirement: 地类图斑更新过程层变更后地类面积 = 图斑变更面积-变更后扣除地类面积
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更后地类面积 = 图斑变更面积-变更后扣除地类面积' ErrorName,'{3}' RuleType from {0} WHERE  BGHTBDLMJ!=(TBBGMJ-BGHKCDLMJ)


RuleCode: 33014504000019
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层变更行为是灭失0时，变更后属性均为空
Requirement: 地类图斑更新过程层变更行为是灭失0时，变更后属性均为空
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是灭失0时，变更后属性均为空' ErrorName,'{3}' RuleType from {0} WHERE BGXW='0' and (BGHTBBSM NOTNULL or  BGHDLBM NOTNULL or BGHDLMC NOTNULL BGHQSXZ NOTNULL or BGHQSDWDM NOTNULL or BGHQSDWMC NOTNULL or BGHZLDWDM NOTNULL or BGHZLDWMC NOTNULL or BGHKCDLBM NOTNULL or BGHKCXS NOTNULL or BGHKCMJ NOTNULL or BGHTBDLMJ NOTNULL or BGHGDLX NOTNULL or BGHGDPDJB NOTNULL or BGHXZDWKD NOTNULL or BGHTBXHDM NOTNULL or BGHTBXHMC NOTNULL or BGHZZSXDM NOTNULL or BGHZZSXMC NOTNULL or BGHGDDB NOTNULL or BGHFRDBS NOTNULL or BGHCZCSXM NOTNULL or BGHMSSM NOTNULL or BGHHDMC)


RuleCode: 33014504000020
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层变更行为是新增3时，变更前属性均为空
Requirement: 地类图斑更新过程层变更行为是新增3时，变更前属性均为空
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是新增3时，变更前属性均为空' ErrorName,'{3}' RuleType from {0} WHERE BGXW='3' and (BGQTBBSM NOTNULL or  BGQDLBM NOTNULL or BGQDLMC NOTNULL BGQQSXZ NOTNULL or BGQQSDWDM NOTNULL or BGQQSDWMC NOTNULL or BGQZLDWDM NOTNULL or BGQZLDWMC NOTNULL or BGQKCDLBM NOTNULL or BGQKCXS NOTNULL or BGQKCMJ NOTNULL or BGQTBDLMJ NOTNULL or BGQGDLX NOTNULL or BGQGDPDJB NOTNULL or BGQXZDWKD NOTNULL or BGQTBXHDM NOTNULL or BGQTBXHMC NOTNULL or BGQZZSXDM NOTNULL or BGQZZSXMC NOTNULL or BGQGDDB NOTNULL or BGQFRDBS NOTNULL or BGQCZCSXM NOTNULL or BGQMSSM NOTNULL or BGQHDMC)


RuleCode: 33014504000021
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为县级行政区代码无变化0、调入1、仅县级行政区代码变化5时，变更行为是属性变更1或图形变更2
Requirement: 地类图斑更新过程层行政区调整类型为县级行政区代码无变化0、调入1、仅县级行政区代码变化5时，变更行为是属性变更1或图形变更2
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为县级行政区代码无变化0、调入1、仅县级行政区代码变化5时，变更行为是属性变更1或图形变更2' ErrorName,'{3}' RuleType from {0} WHERE  XZQTZLX in('0','1','2') and BGHQSDWDM ='5' and BGXW not in ('1','2')


RuleCode: 33014504000022
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为调出时，变更行为是图形变更
Requirement: 地类图斑更新过程层行政区调整类型为调出时，变更行为是图形变更（整图斑调出时，不提更新过程和更新层，只提变更一览表）
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为调出时，变更行为是图形变更（整图斑调出时，不提更新过程和更新层，只提变更一览表）' ErrorName,'{3}' RuleType from {0} WHERE  XZQTZLX ='2' and (BGXW!='2' or BGXW ISNULL or BGXW='')


RuleCode: 33014504000023
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为调出2时，变更后属性均为空
Requirement: 地类图斑更新过程层行政区调整类型为调出2时，变更后属性均为空
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为调出2时，变更后属性均为空' ErrorName,'{3}' RuleType from {0} WHERE XZQTZLX='2' and (BGHTBBSM NOTNULL or  BGHDLBM NOTNULL or BGHDLMC NOTNULL BGHQSXZ NOTNULL or BGHQSDWDM NOTNULL or BGHQSDWMC NOTNULL or BGHZLDWDM NOTNULL or BGHZLDWMC NOTNULL or BGHKCDLBM NOTNULL or BGHKCXS NOTNULL or BGHKCMJ NOTNULL or BGHTBDLMJ NOTNULL or BGHGDLX NOTNULL or BGHGDPDJB NOTNULL or BGHXZDWKD NOTNULL or BGHTBXHDM NOTNULL or BGHTBXHMC NOTNULL or BGHZZSXDM NOTNULL or BGHZZSXMC NOTNULL or BGHGDDB NOTNULL or BGHFRDBS NOTNULL or BGHCZCSXM NOTNULL or BGHMSSM NOTNULL or BGHHDMC)


RuleCode: 33014504000024
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为新增3时，变更行为是新增3
Requirement: 地类图斑更新过程层行政区调整类型为新增3时，变更行为是新增3
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为新增3时，变更行为是新增3' ErrorName,'{3}' RuleType from {0} WHERE XZQTZLX='3' and BGXW!='3'


RuleCode: 33014504000025
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为灭失4时，变更行为是灭失0
Requirement: 地类图斑更新过程层行政区调整类型为灭失4时，变更行为是灭失0
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为灭失4时，变更行为是灭失0' ErrorName,'{3}' RuleType from {0} WHERE XZQTZLX='4' and BGXW!='0'


RuleCode: 33014504000026
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为0或5时，变更前后标识码非空
Requirement: 地类图斑更新过程层行政区调整类型为0或5时，变更前后标识码非空
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为0或5时，变更前后标识码非空' ErrorName,'{3}' RuleType from {0} WHERE (XZQTZLX='0' or XZQTZLX='5') and (BGQTBBSM ISNULL or BGQTBBSM='' or  BGQTBBSM=' '  or BGHTBBSM ISNULL or BGHTBBSM='' or BGHTBBSM=' ' )


RuleCode: 33014504000027
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为调入1时，变更前标识码非空且前6位与本区县基础库行政区代码不一致
Requirement: 地类图斑更新过程层行政区调整类型为调入1时，变更前标识码非空且前6位与本区县基础库行政区代码不一致
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为调入1时，变更前标识码非空且前6位与本区县基础库行政区代码不一致' ErrorName,'{3}' RuleType from {0} WHERE  XZQTZLX='1' and  ( BGQTBBSM ISNULL or BGQTBBSM='' or BGQTBBSM=' ' or SUBSTR(BGQTBBSM,1,6)='{4}' )


RuleCode: 33014504000028
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层新增特殊用地必须为建设用地
ZLLayerName: DLTBGXGC_地类图斑更新过程
Requirement:
地类图斑更新过程层变更前非205、变更后为205的变更基本单元变更后地类必须为建设用地，变更前后均为205的变更基本单元变更后地类必须为建设用地（不包含1001、1002、1003、1007、1008、1009、1109）

ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更前非205、变更后为205的变更基本单元变更后地类必须为建设用地，变更前后均为205的变更基本单元变更后地类必须为建设用地（不包含1001、1002、1003、1007、1008、1009、1109）' ErrorName,'{3}' RuleType from {0} WHERE (BGQDLBM != '205' and BGHDLBM = '205' and BGHDLBM not in ('1001','1002','1003','1007','1008','1009','1109')) or (BGQDLBM = '205' and BGHDLBM = '205' and BGHDLBM in ('1001','1002','1003','1007','1008','1009','1109')) 


RuleCode: 33014504000030
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层新增建设用地（不含铁路、公路、轨道交通、机场、港口码头、管道运输和水工建筑）均应标注城镇村属性码
Requirement: 地类图斑更新过程层新增建设用地（不包含1001、1002、1003、1007、1008、1009、1109）应标注城镇村属性码
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层新增建设用地（不包含1001、1002、1003、1007、1008、1009、1109）应标注城镇村属性码' ErrorName,'{3}' RuleType from {0} WHERE BGHDLBM not in ('1001','1002','1003','1007','1008','1009','1109') and (BGHCZCSXM ISNULL or BGHCZCSXM='' or BGHCZCSXM=' ')


RuleCode: 33014504000031
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层新增地类1001、1002、1003、1007、1008、1009、1109不允许标注城镇村属性码
Requirement: 地类图斑更新过程层新增地类1001、1002、1003、1007、1008、1009、1109不允许标注城镇村属性码
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层新增地类1001、1002、1003、1007、1008、1009、1109不允许标注城镇村属性码' ErrorName,'{3}' RuleType from {0} WHERE BGHDLBM in ('1001','1002','1003','1007','1008','1009','1109') and BGHCZCSXM NOTNULL and BGHCZCSXM='' and BGHCZCSXM=' '


RuleCode: 33014504000032
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层地类1001、1002、1003、1007、1008、1009、1109原数据库中已标注城镇村属性码的，应将变更后城镇村属性码置空
Requirement: 地类图斑更新过程层地类1001、1002、1003、1007、1008、1009、1109原数据库中已标注城镇村属性码的，应将变更后城镇村属性码置空
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层地类1001、1002、1003、1007、1008、1009、1109原数据库中已标注城镇村属性码的，应将变更后城镇村属性码置空' ErrorName,'{3}' RuleType from {0} WHERE BGHDLBM in ('1001','1002','1003','1007','1008','1009','1109') and BGQCZCSXM NOTNULL and BGHCZCSXM NOTNULL and BGHCZCSXM='' and BGHCZCSXM=' '


RuleCode: 33014504000033
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层地类1004变更前城镇村属性码为空的，应补充填写变更后城镇村属性码
Requirement: 地类图斑更新过程层地类1004变更前城镇村属性码为空的，应补充填写变更后城镇村属性码
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层地类1004变更前城镇村属性码为空的，应补充填写变更后城镇村属性码' ErrorName,'{3}' RuleType from {0} WHERE BGQDLBM = '1004' and BGQCZCSXM ISNULL and BGHCZCSXM ISNULL and BGHCZCSXM='' and BGHCZCSXM=' '


RuleCode: 32054309000001
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层YSDM字段取值为2099040100
Requirement: 耕地等别更新层YSDM字段取值为2099040100，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值为2099040100，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE  YSDM!='2099040100' or YSDM ISNULL or YSDM='' or YSDM =' '


RuleCode: 32054309000003
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层ZRDZS字段取值大于0
Requirement: 耕地等别更新层ZRDZS字段取值大于0，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZRDZS字段取值大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE  ZRDZS<=0 or ZRDZS ISNULL or ZRDZS='' or ZRDZS=' '


RuleCode: 32054309000004
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层LYDZS字段取值大于0
Requirement: 耕地等别更新层LYDZS字段取值大于0，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层LYDZS字段取值大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE  LYDZS<=0 or LYDZS ISNULL or LYDZS='' or LYDZS=' '


RuleCode: 32054309000005
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层JJDZS字段取值大于0
Requirement: 耕地等别更新层JJDZS字段取值大于0，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层JJDZS字段取值大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE  JJDZS<=0 or JJDZS ISNULL or JJDZS='' or JJDZS=' '


RuleCode: 32054309000006
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层DYBH空值检查
Requirement: 耕地等别更新层DYBH空值检查
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DYBH空值检查' ErrorName,'{3}' RuleType from GDDBGX WHERE  DYBH ISNULL or DYBH='' or DYBH=' '


RuleCode: 32054309000007
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层ZRD字段取值为[1..15]
Requirement: 耕地等别更新层ZRD字段取值为[1..15]，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZRD字段取值为[1..15]，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE ZRD ISNULL or ZRD<1 or ZRD>15 or ZRD='' or ZRD=' '


RuleCode: 32054309000008
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层JJD字段取值为[1..15]
Requirement: 耕地等别更新层JJD字段取值为[1..15]，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层JJD字段取值为[1..15]，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE JJD ISNULL or JJD<1 or JJD>15 or JJD='' or JJD=' ' 


RuleCode: 32054309000009
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层LYD字段取值为[1..15]
Requirement: 耕地等别更新层LYD字段取值为[1..15]，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层LYD字段取值为[1..15]，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE LYD ISNULL or LYD<1 or LYD>15 or LYD='' or LYD=' ' 


RuleCode: 32054309000011
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为2941，11-18位不重复
Requirement: 耕地等别更新层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为2941，11-18位不重复，BSM不允许有空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为2941，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from {0}  WHERE BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2941' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1) 


RuleCode: 32054309000012
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层DLBM取值在0101、0102、0103范围内
Requirement: 耕地等别更新层DLBM取值在0101、0102、0103范围内
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM取值在0101、0102、0103范围内' ErrorName,'{3}' RuleType from {0} WHERE DLBM not in ('0101','0102','0103') or DLBM ISNULL


RuleCode: 32054309000013
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层DLMC与DLBM字段取值匹配
Requirement: 耕地等别更新层DLMC与DLBM字段取值匹配，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select distinct {0}.OBJECTID, {0}.BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLMC与DLBM字段取值匹配，且不能为空值' ErrorName,'{3}' RuleType from {0}  LEFT JOIN Sys_DicDetail on {0}.DLBM = Sys_DicDetail.CODE WHERE {0}.DLMC != Sys_DicDetail.NAME or DLBM ISNULL or DLMC ISNULL or DLBM='' or DLMC='' or DLBM=' ' or DLMC=' '


RuleCode: 32054309000014
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层KCDLBM取值在1203、空范围内
Requirement: 耕地等别更新层KCDLBM取值在1203、空范围内
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层KCDLBM取值在1203、空范围内' ErrorName,'{3}' RuleType from {0} WHERE KCDLBM!='1203' AND KCDLBM NOTNULL and KCDLBM!='' and KCDLBM!=' '


RuleCode: 32054309000015
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层KCDLMJ大于等于0
Requirement: 耕地等别更新层KCDLMJ大于等于0
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层KCDLMJ大于等于0' ErrorName,'{3}' RuleType from {0} WHERE KCDLMJ<0 or KCDLMJ ISNULL


RuleCode: 32054309000016
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层TBDLMJ大于0
Requirement: 耕地等别更新层TBDLMJ大于0 ，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBDLMJ大于0 ，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE TBDLMJ<=0 or TBDLMJ ISNULL or TBDLMJ='' or TBDLMJ=' '


RuleCode: 32054309000017
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层GXSJ字段取值符合规范要求
Requirement: 耕地等别更新层GXSJ字段取值符合规范要求，且不能为空值，年份为2021
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份为2021' ErrorName,'{3}' RuleType from {0} WHERE STRFTIME('%Y',GXSJ)!='2021' or GXSJ ISNULL


RuleCode: 32054426000001
LayerName: 光伏板区更新层
RuleType: 值域规范性
RuleName: 光伏板区更新层要素代码（YSDM）为2099070100
Requirement: 光伏板区更新层要素代码（YSDM）为2099070100，且不能为空值
ZLLayerName: GFBQGX_光伏板区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层要素代码（YSDM）为2099070100，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE YSDM!='2099070100' or YSDM ISNULL


RuleCode: 32054426000002
LayerName: 光伏板区更新层
RuleType: 值域规范性
RuleName: 光伏板区更新层区域面积（QYMJ）大于0
Requirement: 光伏板区更新层区域面积（QYMJ）大于0，且不能为空值
ZLLayerName: GFBQGX_光伏板区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层区域面积（QYMJ）大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE QYMJ<=0 or QYMJ ISNULL or QYMJ='' or QYMJ=' '


RuleCode: 32054426000003
LayerName: 光伏板区更新层
RuleType: 值域规范性
RuleName: 光伏板区更新层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2971，11-18位不重复
Requirement: 光伏板区更新层标识码BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2971，11-18位不重复，BSM不允许有空值
ZLLayerName: GFBQGX_光伏板区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层标识码BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2971，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType  from {0} WHERE 
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2971' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054426000004
LayerName: 光伏板区更新层
RuleType: 值域规范性
RuleName: 光伏板区更新层GXSJ字段取值符合规范要求
Requirement: 光伏板区更新层GXSJ字段取值符合规范要求，且不能为空值，年份为2021
ZLLayerName: GFBQGX_光伏板区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份为2021' ErrorName,'{3}' RuleType from {0}  WHERE  STRFTIME('%Y',GXSJ)!='2021' or GXSJ ISNULL


RuleCode: 32054408000001
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层PZRQ字段不为空
Requirement: 临时用地更新层PZRQ字段不为空
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层PZRQ字段不为空' ErrorName,'{3}' RuleType from {0}  WHERE  PZRQ ISNULL or PZRQ='' or PZRQ=' '


RuleCode: 32054408000002
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层YSDM字段取值为2099010100
Requirement: 临时用地更新层YSDM字段取值为2099010100，且不能为空值
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值为2099010100，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE  YSDM!='2099010100' or YSDM ISNULL


RuleCode: 32054408000003
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层TBMJ字段取值大于0
Requirement: 临时用地更新层TBMJ字段取值大于0，且不能为空值
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBMJ字段取值大于0，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE TBMJ<=0 or TBMJ ISNULL or TBMJ='' or TBMJ=' '


RuleCode: 32054408000004
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层PZMJ字段取值大于0
Requirement: 临时用地更新层PZMJ字段取值大于0，且不能为空值
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层PZMJ字段取值大于0，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE PZMJ<=0 or PZMJ ISNULL or PZMJ='' or PZMJ=' '


RuleCode: 32054408000005
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层YTFL字段取值在G、D、Q范围内
Requirement: 临时用地更新层YTFL字段取值在G、D、Q范围内
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YTFL字段取值在G、D、Q范围内' ErrorName,'{3}' RuleType from {0}  WHERE  YTFL not in ('G','D','Q') or YTFL ISNULL


RuleCode: 32054408000006
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层JTXMYT字段取值在JT、SL、NY、GX、KC、QT范围内
Requirement: 临时用地更新层JTXMYT字段取值在JT、SL、NY、GX、KC、QT范围内
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层JTXMYT字段取值在JT、SL、NY、GX、KC、QT范围内' ErrorName,'{3}' RuleType from {0}  WHERE JTXMYT not in('JT','SL','NY','GX','KC','QT') or JTXMYT ISNULL


RuleCode: 32054408000007
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层BSM字段取值符合规范要求，前6位为县级行政区代码，7-10位为2911，11-18位不重复
Requirement: 临时用地更新层BSM字段取值符合规范要求，前6位为县级行政区代码，7-10位为2911，11-18位不重复，BSM不允许有空值
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，前6位为县级行政区代码，7-10位为2911，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType  from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2911' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054408000008
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层PZWH字段取值不为空
Requirement: 临时用地更新层PZWH字段不能存在空值
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层PZWH字段不能存在空值' ErrorName,'{3}' RuleType from {0}  WHERE PZWH ISNULL or PZWH='' or PZWH=' '


RuleCode: 32054408000009
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层PZWJMC字段取值不为空
Requirement: 临时用地更新层PZWJMC字段不能存在空值
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层PZWJMC字段不能存在空值' ErrorName,'{3}' RuleType from {0}  WHERE PZWJMC ISNULL or PZWJMC='' or PZWJMC=' '


RuleCode: 32054408000010
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层GXSJ字段取值符合规范要求
Requirement: 临时用地更新层GXSJ字段取值符合规范要求，且不能为空值，年份为2021
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份为2021' ErrorName,'{3}' RuleType from {0}  WHERE STRFTIME('%Y',GXSJ)!='2021' or GXSJ ISNULL


RuleCode: 32054330000003
LayerName: 路面范围更新层
RuleType: 值域规范性
RuleName: 路面范围更新层MJ取值大于0
Requirement: 路面范围更新层MJ取值大于0，且不能为空值
ZLLayerName: LMFWGX_路面范围更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层MJ取值大于0，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE MJ<=0 or MJ ISNULL or MJ='' or MJ=' '


RuleCode: 32054330000004
LayerName: 路面范围更新层
RuleType: 值域规范性
RuleName: 路面范围更新层DLBM取值为1001、1003
Requirement: 路面范围更新层DLBM取值为1001、1003
ZLLayerName: LMFWGX_路面范围更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM取值为1001、1003' ErrorName,'{3}' RuleType from {0}  WHERE DLBM not in ('1001','1003') or DLBM ISNULL


RuleCode: 32054330000006
LayerName: 路面范围更新层
RuleType: 值域规范性
RuleName: 路面范围更新层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为29A1，11-18位不重复
Requirement: 路面范围更新层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为29A1，11-18位不重复
ZLLayerName: LMFWGX_路面范围更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为29A1，11-18位不重复' ErrorName,'{3}' RuleType  from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='29A1' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054330000007
LayerName: 路面范围更新层
RuleType: 值域规范性
RuleName: 路面范围更新层YSDM字段取值为2099100100
Requirement: 路面范围更新层YSDM字段取值为2099100100
ZLLayerName: LMFWGX_路面范围更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值为2099100100'ErrorName,'{3}' RuleType from {0}  WHERE YSDM!='2099100100' or YSDM ISNULL


RuleCode: 32054427000001
LayerName: 推土区更新层
RuleType: 值域规范性
RuleName: 推土区更新层要素代码（YSDM）为2099080100
Requirement: 推土区更新层要素代码（YSDM）为2099080100，且不能为空值
ZLLayerName: TTQGX_推土区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层要素代码（YSDM）为2099080100，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE YSDM!='2099080100' or YSDM ISNULL


RuleCode: 32054427000002
LayerName: 推土区更新层
RuleType: 值域规范性
RuleName: 推土区更新层推土区面积（TTQMJ）大于0
Requirement: 推土区更新层推土区面积（TTQMJ）大于0，且不能为空值
ZLLayerName: TTQGX_推土区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层推土区面积（TTQMJ）大于0，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE TTQMJ<=0 or TTQMJ ISNULL or TTQMJ='' or TTQMJ=' '


RuleCode: 32054427000003
LayerName: 推土区更新层
RuleType: 值域规范性
RuleName: 推土区更新层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2981，11-18位不重复
Requirement: 推土区更新层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2981，11-18位不重复，BSM不允许有空值
ZLLayerName: TTQGX_推土区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位为县级行政区代码，7-10位为2981，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2981' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054301000001
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层YSDM字段取值为1000600100
Requirement: 行政区更新层YSDM字段取值为1000600100，且不能为空值
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值为1000600100，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE  YSDM!='1000600100' or YSDM ISNULL


RuleCode: 32054301000002
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层JSMJ字段取值大于0
Requirement: 行政区更新层JSMJ字段取值大于0，且不能为空值
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层JSMJ字段取值大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE  JSMJ<=0  or JSMJ ISNULL or JSMJ='' or JSMJ=' '


RuleCode: 32054301000003
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层DCMJ字段取值大于0
Requirement: 行政区更新层DCMJ字段取值大于0，且不能为空值
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DCMJ字段取值大于0，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE  DCMJ<=0  or DCMJ ISNULL or DCMJ='' or DCMJ=' '


RuleCode: 32054301000004
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层MSSM字段取值为'00'或'01'
Requirement: 行政区更新层MSSM字段取值为'00'或'01'，'00'代表非海岛区域，'01'代表海岛区域
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层MSSM字段取值为00或01，00代表非海岛区域，01代表海岛区域' ErrorName,'{3}' RuleType from {0}  WHERE MSSM not in ('00','01') or MSSM ISNULL


RuleCode: 32054301000005
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层XZQDM字段不为空，且字段长度为9
Requirement: 行政区更新层XZQDM字段不为空，且字段长度为9
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层XZQDM字段不为空，且字段长度为9' ErrorName,'{3}' RuleType from {0}  WHERE LENGTH(XZQDM)!=9 or XZQDM ISNULL


RuleCode: 32054301000006
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为1210，11-18位不重复
Requirement: 行政区更新层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为1210，11-18位不重复，BSM不允许有空值
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为1210，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1210' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054301000007
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层XZQDM前6位为县级行政区代码
Requirement: 行政区更新层XZQDM前6位为县级行政区代码
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层XZQDM前6位为县级行政区代码' ErrorName,'{3}' RuleType from {0}  WHERE SUBSTR(XZQDM,1,6)!='{4}'


RuleCode: 32054301000008
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层XZQMC字段取值不能为空
Requirement: 行政区更新层XZQMC字段取值不能为空
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层XZQMC字段取值不能为空' ErrorName,'{3}' RuleType from {0}  WHERE XZQMC ISNULL or XZQMC='' or XZQMC=' '


RuleCode: 32054501000001
LayerName: 行政区更新过程层
RuleType: 值域规范性
RuleName: 行政区更新过程层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为1211，11-18位不重复
Requirement: 行政区更新过程层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为1211，11-18位不重复
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为1211，11-18位不重复' ErrorName,'{3}' RuleType from {0} WHERE 
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1211' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054501000002
LayerName: 行政区更新过程层
RuleType: 值域规范性
RuleName: 行政区更新过程层BGMJ取值大于0
Requirement: 行政区更新过程层BGMJ取值大于0，且不存在空值
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BGMJ取值大于0，且不存在空值' ErrorName,'{3}' RuleType from {0}  WHERE BGMJ<=0 or BGMJ ISNULL or BGMJ='' or BGMJ=' '


RuleCode: 32054501000003
LayerName: 行政区更新过程层
RuleType: 值域规范性
RuleName: 行政区更新过程层变更行为取值为0（灭失）、1（属性变更）、2（图形变更）、3（新增）
Requirement: 行政区允许存在属性变更、图形变更、新增、灭失四种变更行为
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'行政区允许存在属性变更、图形变更、新增、灭失四种变更行为' ErrorName,'{3}' RuleType from {0}  WHERE BGXW not in ('0','1','2','3') or BGXW ISNULL


RuleCode: 33014501000007
LayerName: 行政区更新过程层
RuleType: 逻辑一致性
RuleName: 行政区更新过程层变更前后同一区县的属性变更单元，变更前标识码与变更后标识码一致
Requirement: 行政区更新过程层变更行为是属性变更且变更前后属于同一区县，变更前标识码与变更后标识码一致
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更且变更前后属于同一区县，变更前标识码与变更后标识码一致' ErrorName,'{3}' RuleType from {0} WHERE BGXW='1' and BGQXZQDM = BGHXZQDM and BGQBSM != BGHBSM


RuleCode: 33014501000008
LayerName: 行政区更新过程层
RuleType: 逻辑一致性
RuleName: 行政区更新过程层变更行为是属性变更，变更前后对应属性项至少存在一项不一致
Requirement: 行政区更新过程层变更行为是属性变更，变更前后对应属性项（XZQDM、XZQMC、HDMC、DCMJ、MSSM、BZ）至少存在一项不一致
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更，变更前后对应属性项（XZQDM、XZQMC、HDMC、DCMJ、MSSM、BZ）至少存在一项不一致' ErrorName,'{3}' RuleType from {0}  WHERE BGXW='1' and BGQXZQDM==BGHXZQDM and BGQXZQMC==BGHXZQMC and BGQHDMC =BGHHDMC and BGQMSSM=BGHMSSM and BGQBZ=BGHBZ


RuleCode: 33014501000010
LayerName: 行政区更新过程层
RuleType: 逻辑一致性
RuleName: 行政区更新过程层图形变更（不含调入），更新过程层内变更前标识码不唯一或变更后标识码不唯一
ZLLayerName: XZQGXGC_行政区更新过程
Requirement:
行政区更新过程层图形变更（不含调入），图形必须发生变化，更新过程层内变更前标识码不唯一或变更后标识码不唯一；针对调出时已经发生图形变更的行政区，调入后不管是否再次图形变更，调入县应记录变更行为为图形变更


RuleCode: 33014501000011
LayerName: 行政区更新过程层
RuleType: 逻辑一致性
RuleName: 行政区更新过程层变更行为是新增3时，变更前属性均为空
Requirement: 行政区更新过程层变更行为是新增3时，变更前属性均为空
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是新增3时，变更前属性均为空' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='3' and (BGQBSM NOTNULL or BGQXZQDM NOTNULL or BGQXZQMC NOTNULL or BGQDCMJ NOTNULL or BGQMSSM NOTNULL or BGQHDMC NOTNULL or BGQBZ NOTNULL)


RuleCode: 33014501000012
LayerName: 行政区更新过程层
RuleType: 逻辑一致性
RuleName: 行政区更新过程层变更行为是灭失0时，变更后属性均为空
Requirement: 行政区更新过程层变更行为是灭失0时，变更后属性均为空
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是灭失0时，变更后属性均为空' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='0' and (BGHBSM NOTNULL or BGHXZQDM NOTNULL or BGHXZQMC NOTNULL or BGHDCMJ NOTNULL or BGHMSSM NOTNULL or BGHHDMC NOTNULL or BGHBZ NOTNULL)


RuleCode: 32054302000001
LayerName: 行政区界线更新层
RuleType: 值域规范性
RuleName: 行政区界线更新层YSDM字段取值为1000600200
Requirement: 行政区界线更新层YSDM字段取值为1000600200
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值为1000600200' ErrorName,'{3}' RuleType from {0} WHERE YSDM!='1000600200' or YSDM ISNULL 


RuleCode: 32054302000004
LayerName: 行政区界线更新层
RuleType: 值域规范性
RuleName: 行政区界线更新层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为1220，11-18位不重复
Requirement: 行政区界线更新层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为1220，11-18位不重复，BSM不允许有空值（只检查无变化和新增部分）
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位为县级行政区代码，7-10位为1220，11-18位不重复，BSM不允许有空值（只检查无变化和新增部分）' ErrorName,'{3}' RuleType from {0}  WHERE  
 (BGXW='3' or BGXW='4') and (BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1220' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1))


# CheckingRule

RuleCode: 32054428000001
LayerName: 拆除未尽区更新层
RuleType: 值域规范性
RuleName: 拆除未尽区更新层要素代码（YSDM）应为2099090100
Requirement: 拆除未尽区更新层要素代码（YSDM）应为2099090100，且不能为空值
RepairSQL: update {0} set YSDM='2099090100' where BSM in ({1})
ZLLayerName: CCWJQGX_拆除未尽区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层要素代码（YSDM）应为2099090100，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE YSDM IS NULL or YSDM!='2099090100'  or YSDM='' or YSDM =' '


RuleCode: 32054428000002
LayerName: 拆除未尽区更新层
RuleType: 值域规范性
RuleName: 拆除未尽区更新层占地面积（ZDMJ）应大于0
Requirement: 拆除未尽区更新层占地面积（ZDMJ）应大于0，且不能为空值
ZLLayerName: CCWJQGX_拆除未尽区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层占地面积（ZDMJ）应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE ZDMJ ISNULL OR ZDMJ<=0 or ZDMJ='' or ZDMJ=' '


RuleCode: 32054428000004
LayerName: 拆除未尽区更新层
RuleType: 值域规范性
RuleName: 拆除未尽区更新层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2991，11-18位不重复
Requirement: 拆除未尽区更新层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2991，11-18位不重复，BSM不允许有空值
ZLLayerName: CCWJQGX_拆除未尽区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2991，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from  {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2991' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054428000005
LayerName: 拆除未尽区更新层
RuleType: 值域规范性
RuleName: 拆除未尽区更新层GXSJ字段取值符合规范要求
Requirement: 拆除未尽区更新层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022
RepairSQL: update {0} set GXSJ=2022+117*366+82 where BSM in ({1})
ZLLayerName: CCWJQGX_拆除未尽区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022' ErrorName,'{3}' RuleType from {0} WHERE  STRFTIME('%Y',GXSJ)!='2022' or GXSJ ISNULL or GXSJ='' or GXSJ =' ' 


RuleCode: 32054308000001
LayerName: 城镇村等用地更新层
RuleType: 值域规范性
RuleName: 城镇村等用地更新层YSDM字段取值应为2099030100
Requirement: 城镇村等用地更新层YSDM字段取值应为2099030100，且不能为空值
RepairSQL: update {0} set YSDM='2099030100' where BSM in ({1})
ZLLayerName: CZCDYDGX_城镇村等用地更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值应为2099030100，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE YSDM IS NULL or YSDM!='2099030100' or YSDM='' or YSDM =' '


RuleCode: 32054308000002
LayerName: 城镇村等用地更新层
RuleType: 值域规范性
RuleName: 城镇村等用地更新层CZCMJ字段取值应大于0
Requirement: 城镇村等用地更新层CZCMJ字段取值应大于0，且不能为空值
ZLLayerName: CZCDYDGX_城镇村等用地更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层CZCMJ字段取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE CZCMJ ISNULL OR CZCMJ<=0 OR CZCMJ='' OR CZCMJ=' '


RuleCode: 32054308000003
LayerName: 城镇村等用地更新层
RuleType: 值域规范性
RuleName: 城镇村等用地更新层CZCLX字段取值应在201、201A、202、202A、203、203A、204、205范围内
Requirement: 城镇村等用地更新层CZCLX字段取值应在201、201A、202、202A、203、203A、204、205范围内
ZLLayerName: CZCDYDGX_城镇村等用地更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层CZCLX字段取值应在201、201A、202、202A、203、203A、204、205范围内' ErrorName,'{3}' RuleType from {0}  WHERE CZCLX not in ('201','201A','202','202A','203','203A','204','205') or CZCLX ISNULL 


RuleCode: 32054308000004
LayerName: 城镇村等用地更新层
RuleType: 值域规范性
RuleName: 城镇村等用地更新层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为2931，11-18位不重复
Requirement: 城镇村等用地更新层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为2931，11-18位不重复，BSM不允许有空值
ZLLayerName: CZCDYDGX_城镇村等用地更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为2931，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2931' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1) 


RuleCode: 32054308000007
LayerName: 城镇村等用地更新层
RuleType: 值域规范性
RuleName: 城镇村等用地更新层GXSJ字段取值符合规范要求
Requirement: 城镇村等用地更新层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022
RepairSQL: update {0} set GXSJ=2022+117*366+82 where BSM in ({1})
ZLLayerName: CZCDYDGX_城镇村等用地更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022' ErrorName,'{3}' RuleType from {0} WHERE  STRFTIME('%Y',GXSJ)!='2022' or GXSJ ISNULL or GXSJ='' or GXSJ =' '


RuleCode: 32054508000001
LayerName: 城镇村等用地更新过程层
RuleType: 值域规范性
RuleName: 城镇村等用地更新过程层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2932，11-18位不重复
Requirement: 城镇村等用地更新过程层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2932，11-18位不重复
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2932，11-18位不重复' ErrorName,'{3}' RuleType from {0} WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2932' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054508000002
LayerName: 城镇村等用地更新过程层
RuleType: 值域规范性
RuleName: 城镇村等用地更新过程层BGMJ取值应大于0
Requirement: 城镇村等用地更新过程层BGMJ取值应大于0
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BGMJ取值应大于0' ErrorName,'{3}' RuleType from {0} WHERE BGMJ ISNULL OR BGMJ<=0


RuleCode: 32054508000004
LayerName: 城镇村等用地更新过程层
RuleType: 值域规范性
RuleName: 城镇村等用地更新过程层GXSJ字段取值符合规范要求
Requirement: 城镇村等用地更新过程层GXSJ字段取值符合规范要求,不允许存在空值，年份应为2022
RepairSQL: update {0} set GXSJ=2022+117*366+82 where BSM in ({1})
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求,不允许存在空值，年份应为2022' ErrorName,'{3}' RuleType  from {0} WHERE  STRFTIME('%Y',GXSJ)!='2022' or GXSJ ISNULL or GXSJ='' or GXSJ =' '


RuleCode: 33014508000001
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层变更前后同一区县的属性变更单元，变更前标识码与变更后标识码应一致
Requirement: 城镇村等用地更新过程层变更前后同一区县的属性变更单元不允许修改标识码，变更前标识码与变更后标识码应一致
RepairSQL: update {0} set BGHBSM=BGQBSM where BSM in ({1})
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更前后同一区县的属性变更单元不允许修改标识码，变更前标识码与变更后标识码应一致' ErrorName,'{3}' RuleType from {0} 
WHERE BGQCZCDM=BGHCZCDM AND BGQCZCMC=BGHCZCMC and BGXW='1' and (BGQBSM!=BGHBSM or (BGQBSM ISNULL or BGQBSM='' or BGQBSM=' ') and (BGHBSM ISNULL or BGHBSM='' or BGHBSM=' '))


RuleCode: 33014508000002
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层属性变更，变更前后对应属性项应至少存在一项不一致
Requirement: 城镇村等用地更新过程层属性变更，变更前后对应属性项应至少存在一项不一致
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层属性变更，变更前后对应属性项应至少存在一项不一致' ErrorName,'{3}' RuleType  from {0}
 WHERE  BGXW='1' and (BGQBSM=BGHBSM or BGQBSM ISNULL AND BGHBSM ISNULL) and (BGQCZCLX=BGHCZCLX or BGQCZCLX ISNULL AND BGHCZCLX ISNULL) and (BGQCZCDM=BGHCZCDM or BGQCZCDM ISNULL AND BGHCZCDM ISNULL) and (BGQCZCMC=BGHCZCMC or BGQCZCMC ISNULL AND BGHCZCMC ISNULL) and (BGQBZ=BGHBZ or BGQBZ ISNULL AND BGHBZ ISNULL)


RuleCode: 33014508000003
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层属性变更，更新过程层内变更前标识码应唯一且变更后标识码唯一
Requirement: 城镇村等用地更新过程层属性变更，更新过程层内变更前标识码应唯一且变更后标识码唯一，不存在合并或拆分等图形变化情况
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层属性变更，更新过程层内变更前标识码应唯一且变更后标识码唯一，不存在合并或拆分等图形变化情况' ErrorName,'{3}' RuleType  from {0} WHERE  BGXW='1' and BGQBSM in 
 (
 select  BGQBSM from {0} WHERE  BGXW='1' GROUP BY BGQBSM HAVING count(BGQBSM)>1
 ) 
 and BGHBSM in 
 (
 select  BGHBSM from {0} WHERE  BGXW='1' GROUP BY BGHBSM HAVING count(BGHBSM)>1
 ) 


RuleCode: 33014508000004
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层图形变更（不含调入），更新过程层内变更前标识码应不唯一或变更后标识码不唯一
Requirement: 城镇村等用地更新过程层图形变更（不含调入），更新过程层内变更前标识码应不唯一或变更后标识码不唯一，存在合并或拆分
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层图形变更（不含调入），更新过程层内变更前标识码应不唯一或变更后标识码不唯一，存在合并或拆分' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='2' and (BGQBSM in 
 (
 select  BGQBSM from {0} GROUP BY BGQBSM HAVING count(BGQBSM)=1
 ) 
  AND  BGHBSM in 
 (
 select  BGHBSM from {0} GROUP BY BGHBSM HAVING count(BGHBSM)=1
 ) )


RuleCode: 33014508000005
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层变更行为是新增3时，变更前属性应均为空
Requirement: 城镇村等用地更新过程层变更行为是新增3时，变更前属性应均为空
RepairSQL: update {0} set BGQBSM=NULL, BGQCZCLX=NULL, BGQCZCDM=NULL, BGQCZCMC=NULL where BSM in ({1})
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是新增3时，变更前属性应均为空' ErrorName,'{3}' RuleType from {0} 
WHERE  BGXW='3'  and (BGQBSM NOTNULL and BGQBSM!='' and BGQBSM!=' ' or BGQCZCLX NOTNULL and BGQCZCLX!='' and BGQCZCLX!=' ' or
 BGQCZCDM NOTNULL and BGQCZCDM!='' and BGQCZCDM!=' ' or BGQCZCMC NOTNULL and BGQCZCMC!='' and BGQCZCMC!=' ' or BGQBZ NOTNULL and BGQBZ!='' and BGQBZ!=' ')


RuleCode: 33014508000006
LayerName: 城镇村等用地更新过程层
RuleType: 逻辑一致性
RuleName: 城镇村等用地更新过程层变更行为是灭失0时，变更后属性应均为空
Requirement: 城镇村等用地更新过程层变更行为是灭失0时，变更后属性应均为空
RepairSQL: update {0} set BGHBSM=NULL, BGHCZCLX=NULL, BGHCZCDM=NULL, BGHCZCMC=NULL where BSM in ({1})
ZLLayerName: CZCDYDGXGC_城镇村等用地更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是灭失0时，变更后属性应均为空' ErrorName,'{3}' RuleType from {0} 
WHERE  BGXW='0'  and (BGHBSM NOTNULL and BGHBSM!='' and BGHBSM!=' ' or BGHCZCLX NOTNULL and BGHCZCLX!='' and BGHCZCLX!=' ' 
or BGHCZCDM NOTNULL and BGHCZCDM!='' and BGHCZCDM!=' ' or BGHCZCMC NOTNULL and BGHCZCMC!='' and BGHCZCMC!=' ' or BGHBZ NOTNULL and BGHBZ!='' and BGHBZ!=' ')


RuleCode: 32054310000001
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层YSDM字段取值应为1000600400
Requirement: 村级调查区更新层YSDM字段取值应为1000600400
RepairSQL: update {0} set YSDM='1000600400' where BSM in ({1})
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值应为1000600400' ErrorName,'{3}' RuleType from {0} WHERE YSDM IS NULL or YSDM!='1000600400'  or YSDM='' or YSDM =' '


RuleCode: 32054310000002
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层计算面积（JSMJ）应大于0
Requirement: 村级调查区更新层计算面积（JSMJ）应大于0，且不能为空值
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层计算面积（JSMJ）应大于0，且不能为空值' ErrorName,'{3}' RuleType  from {0} WHERE JSMJ ISNULL OR JSMJ<=0 or JSMJ='' or JSMJ=' '


RuleCode: 32054310000004
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层调查面积（DCMJ）应大于0
Requirement: 村级调查区更新层调查面积（DCMJ）应大于0，且不能为空值
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层调查面积（DCMJ）应大于0，且不能为空值' ErrorName,'{3}' RuleType  from {0}  WHERE DCMJ ISNULL OR DCMJ<=0 or DCMJ='' or DCMJ=' '


RuleCode: 32054310000005
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为1240，11-18位不重复
Requirement: 村级调查区更新层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为1240，11-18位不重复
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为1240，11-18位不重复' ErrorName,'{3}' RuleType  from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1240' or SUBSTR(BSM,11,8) in (select SUBSTR(BSM,11,8) from {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054310000006
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层ZLDWDM不能为空，长度为19位，后7位应为0000000
Requirement: 村级调查区更新层ZLDWDM不能为空，长度为19位，后7位应为0000000
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZLDWDM不能为空，长度为19位，后7位应为0000000' ErrorName,'{3}' RuleType  from {0} WHERE ZLDWDM ISNULL or ZLDWDM='' or ZLDWDM=' ' or LENGTH(ZLDWDM)!=19 or SUBSTR(ZLDWDM,13,7)!='0000000'


RuleCode: 32054310000013
LayerName: 村级调查区更新层
RuleType: 值域规范性
RuleName: 村级调查区更新层ZLDWMC不能存在特殊字符
Requirement: 村级调查区更新层ZLDWMC不能存在特殊字符（不能以字母开头，不能全为字母或全为数字或出现特殊字符）
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select ZLDWMC MC, OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZLDWMC不存在特殊字符（不能以字母开头，不能全为字母或全为数字或出现特殊字符）' ErrorName,'{3}' RuleType from {0}


RuleCode: 33014310000003
LayerName: 村级调查区更新层
RuleType: 逻辑一致性
RuleName: 村级调查区更新层HDMC与MSSM一致性检查
Requirement: 村级调查区更新层HDMC与MSSM一致性检查
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层HDMC与MSSM一致性检查' ErrorName,'{3}' RuleType from {0} 
WHERE MSSM='00' and (HDMC NOTNULL and HDMC!='' and
 HDMC!=' ') or MSSM='01' and (HDMC ISNULL or HDMC='' or HDMC=' ')


RuleCode: 33024310000001
LayerName: 村级调查区更新层
RuleType: 逻辑一致性
RuleName: 村级调查区更新层相同坐落单位代码、描述说明的多个调查区调查面积（DCMJ）应相等
Requirement: 村级调查区更新层相同坐落单位代码、描述说明的多个调查区调查面积（DCMJ）应相等
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select A.OBJECTID, A.BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层相同坐落单位代码、描述说明的多个调查区调查面积（DCMJ）应相等' ErrorName,'{3}' RuleType 
from {0} A,(SELECT ZLDWDM,MSSM,DCMJ FROM {0} GROUP by ZLDWDM,MSSM HAVING count(DCMJ)>1) B where A.ZLDWDM=B.ZLDWDM and A.MSSM=B.MSSM and A.DCMJ-B.DCMJ > 0.001


RuleCode: 32054510000001
LayerName: 村级调查区更新过程层
RuleType: 值域规范性
RuleName: 村级调查区更新过程层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为1241，11-18位不重复
Requirement: 村级调查区更新过程层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为1241，11-18位不重复
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为1241，11-18位不重复' ErrorName,'{3}' RuleType from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1241' or SUBSTR(BSM,11,8) in (select SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054510000002
LayerName: 村级调查区更新过程层
RuleType: 值域规范性
RuleName: 村级调查区更新过程层BGMJ取值应大于0
Requirement: 村级调查区更新过程层BGMJ取值应大于0，不为空值
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BGMJ取值应大于0，不为空值' ErrorName,'{3}' RuleType from {0}  WHERE BGMJ ISNULL OR BGMJ<=0 or BGMJ='' or BGMJ=' '


RuleCode: 32054510000004
LayerName: 村级调查区更新过程层
RuleType: 值域规范性
RuleName: 村级调查区更新过程层GXSJ字段取值符合规范要求
Requirement: 村级调查区更新更新过程层GXSJ字段取值符合规范要求,不允许存在空值，年份应为2022
RepairSQL: update {0} set GXSJ=2022+117*366+82 where BSM in ({1})
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求,不允许存在空值，年份应为2022' ErrorName,'{3}' RuleType from {0}  WHERE  STRFTIME('%Y',GXSJ)!='2022' or GXSJ ISNULL or GXSJ='' or GXSJ =' '


RuleCode: 33014510000007
LayerName: 村级调查区更新过程层
RuleType: 逻辑一致性
RuleName: 村级调查区更新过程层变更前后同一区县的属性变更单元，变更前标识码与变更后标识码应一致
Requirement: 村级调查区更新过程层变更行为是属性变更且变更前后属于同一区县，变更前标识码与变更后标识码应一致
RepairSQL: update {0} set BGHBSM=BGQBSM where BSM in ({1})
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更且变更前后属于同一区县，变更前标识码与变更后标识码应一致' ErrorName,'{3}' RuleType from {0} 
WHERE BGXW ='1' AND BGQZLDWDM=BGHZLDWDM AND BGQZLDWMC=BGHZLDWMC AND (BGQBSM!=BGHBSM or BGQBSM ISNULL or BGQBSM='' or BGQBSM=' ' or BGHBSM ISNULL or BGHBSM='' or BGHBSM=' ')


RuleCode: 33014510000008
LayerName: 村级调查区更新过程层
RuleType: 逻辑一致性
RuleName: 村级调查区更新过程层变更行为是属性变更，变更前后对应属性项应至少存在一项不一致
Requirement: 村级调查区更新过程层变更行为是属性变更，变更前后对应属性项（XZQDM、XZQMC、DCMJ、MSSM、HDMC、BZ）应至少存在一项不一致
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
 select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更，变更前后对应属性项（XZQDM、XZQMC、DCMJ、MSSM、HDMC、BZ）应至少存在一项不一致' ErrorName,'{3}' RuleType  from {0}  
 WHERE  BGXW='1' and (BGQZLDWDM=BGHZLDWDM or BGQZLDWDM ISNULL and BGHZLDWDM ISNULL) and (BGQZLDWMC=BGHZLDWMC or BGQZLDWMC ISNULL and BGHZLDWMC ISNULL) and (BGQMSSM=BGHMSSM or BGQMSSM ISNULL and BGHMSSM ISNULL) and (BGQHDMC= BGHHDMC or BGQHDMC ISNULL and BGHHDMC ISNULL) and (BGQBZ=BGHBZ or BGQBZ ISNULL and BGHBZ ISNULL)


RuleCode: 33014510000009
LayerName: 村级调查区更新过程层
RuleType: 逻辑一致性
RuleName: 村级调查区更新过程层属性变更，更新过程层内变更前标识码应唯一且变更后标识码唯一
Requirement: 村级调查区更新过程层属性变更，图形不能发生变化，更新过程层内变更前标识码应唯一且变更后标识码唯一
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层属性变更，图形不能发生变化，更新过程层内变更前标识码应唯一且变更后标识码唯一' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='1'  
 and BGQBSM in 
 (
 select  BGQBSM from {0} WHERE  BGXW='1' GROUP BY BGQBSM HAVING count(BGQBSM)>1
 ) 
 or  BGHBSM in 
 (
 select  BGHBSM from {0} WHERE  BGXW='1' GROUP BY BGHBSM HAVING count(BGHBSM)>1
 ) 


RuleCode: 33014510000011
LayerName: 村级调查区更新过程层
RuleType: 逻辑一致性
RuleName: 村级调查区更新过程层变更行为是新增3时，变更前属性应均为空
Requirement: 村级调查区更新过程层变更行为是新增3时，变更前属性应均为空
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是新增3时，变更前属性应均为空' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='3'  and (BGQBSM NOTNULL and BGQBSM!='' and BGQBSM!=' ' or BGQZLDWDM NOTNULL and BGQZLDWDM!='' and BGQZLDWDM!=' ' or BGQZLDWMC NOTNULL and BGQZLDWMC!='' and BGQZLDWMC!=' ' or BGQDCMJ NOTNULL and BGQDCMJ!='' and BGQDCMJ!=' ' or BGQMSSM NOTNULL and BGQMSSM!='' and BGQMSSM!=' ' or BGQHDMC NOTNULL and BGQHDMC!='' and BGQHDMC!=' ' or BGQBZ NOTNULL and BGQBZ!='' and BGQBZ!=' ')

RepairSQL:
update {0} set BGQBSM=NULL, BGQZLDWDM=NULL, BGQZLDWMC=NULL, BGQDCMJ=NULL, BGQMSSM=NULL, BGQHDMC=NULL, BGQBZ=NULL where BSM in ({1})


RuleCode: 33014510000012
LayerName: 村级调查区更新过程层
RuleType: 逻辑一致性
RuleName: 村级调查区更新过程层变更行为是灭失0时，变更后属性应均为空
Requirement: 村级调查区更新过程层变更行为是灭失0时，变更后属性应均为空
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是灭失0时，变更后属性应均为空' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='0'  and (BGHBSM NOTNULL and BGHBSM!='' and BGHBSM!=' ' or BGHZLDWDM NOTNULL and BGHZLDWDM!='' and BGHZLDWDM!=' ' or BGHZLDWMC NOTNULL and BGHZLDWMC!='' and BGHZLDWMC!=' '  or BGHDCMJ NOTNULL and BGHDCMJ!='' and BGHDCMJ!=' '  or BGHMSSM NOTNULL and BGHMSSM!='' and BGHMSSM!=' '  or BGHHDMC NOTNULL and BGHHDMC!='' and BGHHDMC!=' ' or BGHBZ NOTNULL and BGHBZ!='' and BGHBZ!=' ')

RepairSQL:
update {0} set BGHBSM=NULL, BGHZLDWDM=NULL, BGHZLDWMC=NULL, BGHDCMJ=NULL, BGHMSSM=NULL, BGHHDMC=NULL, BGHBZ=NULL where BSM in ({1})


RuleCode: 32054425000001
LayerName: 村级调查区界线更新层
RuleType: 值域规范性
RuleName: 村级调查区界线更新层YSDM字段取值应为1000600500
Requirement: 村级调查区界线更新层YSDM字段取值应为1000600500
RepairSQL: update {0} set YSDM='1000600500' where BSM in ({1})
ZLLayerName: CJDCQJXGX_村级调查区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值应为1000600500' ErrorName,'{3}' RuleType from {0}  WHERE YSDM IS NULL or YSDM!='1000600500'  or YSDM='' or YSDM =' '


RuleCode: 32054425000002
LayerName: 村级调查区界线更新层
RuleType: 值域规范性
RuleName: 村级调查区界线更新层界线性质（JXXZ）字段值在界线性质代码表中应有对应项
Requirement: 村级调查区界线更新层界线性质（JXXZ）字段值在界线性质代码表中应有对应项
ZLLayerName: CJDCQJXGX_村级调查区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层界线性质（JXXZ）字段值在界线性质代码表中应有对应项' ErrorName,'{3}' RuleType from {0} WHERE 
JXXZ not in (select CODE from Sys_DicDetail WHERE OWNERDIC=(SELECT ID from Sys_DicManage WHERE ALIASNAME='JXXZ')) or JXXZ ISNULL or JXXZ='' or JXXZ=' '


RuleCode: 32054425000003
LayerName: 村级调查区界线更新层
RuleType: 值域规范性
RuleName: 村级调查区界线更新层界线类型（JXLX）字段值在界线类型代码表中应有对应项
Requirement: 村级调查区界线更新层界线类型（JXLX）字段值在界线类型代码表中应有对应项
ZLLayerName: CJDCQJXGX_村级调查区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层界线类型（JXLX）字段值在界线类型代码表中应有对应项' ErrorName,'{3}' RuleType from {0} WHERE 
JXLX not in (select CODE from Sys_DicDetail WHERE OWNERDIC=(SELECT ID from Sys_DicManage WHERE ALIASNAME='JXLX')) or JXLX ISNULL or JXLX='' or JXLX=' '


RuleCode: 32054425000004
LayerName: 村级调查区界线更新层
RuleType: 值域规范性
RuleName: 村级调查区界线更新层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为1250，11-18位不重复
Requirement: 村级调查区界线更新层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为1250，11-18位不重复
ZLLayerName: CJDCQJXGX_村级调查区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为1250，11-18位不重复' ErrorName,'{3}' RuleType from {0}  
WHERE BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1250' 
or SUBSTR(BSM,11,8) in (select SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054425000005
LayerName: 村级调查区界线更新层
RuleType: 值域规范性
RuleName: 村级调查区界线更新层GXSJ字段取值符合规范要求
Requirement: 村级调查区界线更新层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022
RepairSQL: update {0} set GXSJ=2022+117*366+82 where BSM in ({1})
ZLLayerName: CJDCQJXGX_村级调查区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022' ErrorName,'{3}' RuleType from {0}  WHERE  STRFTIME('%Y',GXSJ)!='2022' or GXSJ ISNULL or GXSJ='' or GXSJ =' '


RuleCode: 32054425000006
LayerName: 村级调查区界线更新层
RuleType: 值域规范性
RuleName: 村级调查区界线更新层变更行为取值应为0（灭失）、3（新增）、4（无变化）
Requirement: 村级调查区界线更新层变更行为取值应为0（灭失）、3（新增）、4（无变化）
ZLLayerName: CJDCQJXGX_村级调查区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为取值应为0（灭失）、3（新增）、4（无变化）' ErrorName,'{3}' RuleType from {0}  WHERE BGXW not in ('0','3','4')


RuleCode: 33054303430401
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: 地类图斑更新层耕地图斑GDPDJB字段取值与对应坡度图层面积占优的坡度级别PDJB字段取值应一致
ImplementSQL: SameGDPDJB
ZLLayerName: DLTBGX_地类图斑更新
Requirement:
耕地要素耕地坡度级别与对应坡度图层内面积占优的坡度级应保持一致（属性变更但耕地坡度级别未变更的耕地图斑、按照国家规定耕地坡度级别变更要求中要求地方将坡度级别由1修改为4/5的耕地图斑不报错，如果没有坡度图更新层才会执行该项规则）


RuleCode: 32054304000002
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层要素代码（YSDM）应为2001010100
Requirement: 地类图斑更新层YSDM字段取值应为2001010100，且不能为空值
RepairSQL: update {0} set YSDM='2001010100' where BSM in ({1})
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值应为2001010100，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE YSDM ISNULL or YSDM!='2001010100'  or YSDM='' or YSDM =' '


RuleCode: 32054304000003
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层TBMJ字段取值应大于0
Requirement: 地类图斑更新层TBMJ字段取值应大于0，且不能为空值
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBMJ字段取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE TBMJ ISNULL OR TBMJ<=0 OR TBMJ='' OR TBMJ=' '


RuleCode: 32054304000004
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层TBDLMJ字段取值应大于0
Requirement: 地类图斑更新层TBDLMJ字段取值应大于0，且不能为空值
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBDLMJ字段取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE  TBDLMJ ISNULL OR TBDLMJ<=0 or TBDLMJ='' or TBDLMJ=' '


RuleCode: 32054304000005
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层DLBM和DLMC在第三次全国土地调查工作分类表（最末级分类）中有对应项且匹配
Requirement: 地类图斑更新层DLBM和DLMC在第三次全国土地调查工作分类表（最末级分类）中有对应项且匹配
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM和DLMC在第三次全国土地调查工作分类表（最末级分类）中有对应项且匹配' ErrorName,'{3}' RuleType from {0} WHERE 
DLBM not in (select CODE from Sys_DicDetail WHERE OWNERDIC=(SELECT ID from Sys_DicManage WHERE ALIASNAME='DLBM')) or DLBM ISNULL or DLBM='' or DLBM=' ' or 
DLMC not in (select NAME from Sys_DicDetail WHERE OWNERDIC=(SELECT ID from Sys_DicManage WHERE ALIASNAME='DLBM')) or DLMC ISNULL or DLMC='' or DLMC=' '


RuleCode: 32054304000006
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层KCDLBM取值应在1203、空范围内
Requirement: 地类图斑更新层KCDLBM取值应在1203、空范围内
RepairSQL: update {0} set KCDLBM=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层KCDLBM取值应在1203、空范围内' ErrorName,'{3}' RuleType from {0} WHERE KCDLBM != '1203' and KCDLBM notNULL and KCDLBM != '' and KCDLBM != ' '


RuleCode: 32054304000007
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为2110，11-18位不重复
Requirement: 地类图斑更新层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为2110，11-18位不重复，BSM不允许有空值
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为2110，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from {0} WHERE BSM ISNULL or BSM='' or BSM =' ' or length(BSM)!=18 or SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2110' or SUBSTR(BSM,11,8) in (select SUBSTR(BSM,11,8) from {0} group by SUBSTR(BSM,11,8) having count(SUBSTR(BSM,11,8)) > 1)


RuleCode: 32054304000008
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层QSDWDM不能为空，长度为应19位
Requirement: 地类图斑更新层QSDWDM不能为空，长度应为19位，必须为纯数值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层QSDWDM不能为空，长度应为19位，必须为纯数值' ErrorName,'{3}' RuleType from {0} WHERE LENGTH(QSDWDM)!=19 or  QSDWDM ISNULL or  LENGTH(CAST(QSDWDM as INTEGER))!=19


RuleCode: 32054304000010
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层QSXZ字段取值规范性
Requirement: 地类图斑更新层QSXZ字段取值规范性，且不能为空值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层QSXZ不能为空' ErrorName,'{3}' RuleType from {0} 
WHERE QSXZ ISNULL or QSXZ='' or QSXZ=' ' or QSXZ not in (select CODE from  Sys_DicDetail WHERE OWNERDIC=(select ID from Sys_DicManage WHERE ALIASNAME='QSXZ'))


RuleCode: 32054304000012
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层MSSM字段取值应为'00'或'01'
Requirement: 地类图斑更新层MSSM字段取值应为'00'或'01'
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层MSSM字段取值应为00或01' ErrorName,'{3}' RuleType from {0} WHERE  MSSM not in ('00','01')


RuleCode: 32054304000013
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层QSDWMC不能为空
Requirement: 地类图斑更新层QSDWMC不能为空
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层QSDWMC不能为空' ErrorName,'{3}' RuleType from {0} WHERE  QSDWMC ISNULL or QSDWMC='' or QSDWMC=' '


RuleCode: 32054304000014
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层ZLDWDM不能为空，长度应为19位
Requirement: 地类图斑更新层ZLDWDM不能为空，长度应为19位，必须为纯数值
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZLDWDM不能为空，长度应为19位，必须为纯数值' ErrorName,'{3}' RuleType from {0} WHERE LENGTH(ZLDWDM)!=19 or  ZLDWDM ISNULL or  LENGTH(CAST(ZLDWDM as INTEGER))!=19


RuleCode: 32054304000017
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层ZLDWDM前6位应为县级行政区代码
Requirement: 地类图斑更新层ZLDWDM前6位应为县级行政区代码
RepairSQL: update {0} set ZLDWDM = REPLACE(ZLDWDM,SUBSTR(ZLDWDM,0,7),'{2}') where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZLDWDM前6位应为县级行政区代码' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(ZLDWDM,0,7)!='{4}'


RuleCode: 32054304410819
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层GXSJ字段取值符合规范要求
Requirement: 地类图斑更新层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022
RepairSQL: update {0} set GXSJ=2022+117*366+82 where BSM in ({1})
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求' ErrorName,'{3}' RuleType from {0}  WHERE  STRFTIME('%Y',GXSJ)!='2022' or GXSJ ISNULL or GXSJ='' or GXSJ =' '


RuleCode: 32054304410820
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层面积类字段小数位数检查
Requirement: 地类图斑更新层TBMJ、TBDLMJ、KCMJ字段应保留2位小数
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBMJ、TBDLMJ、KCMJ字段应保留2位小数' ErrorName,'{3}' RuleType from {0} WHERE LENGTH(TBMJ)-instr(TBMJ,'.')>2 or LENGTH(TBDLMJ)-instr(TBDLMJ,'.')>2 or	LENGTH(KCMJ)-instr(KCMJ,'.')>2


RuleCode: 32054304410821
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层线状地物宽度字段小数位数检查
Requirement: 地类图斑更新层XZDWKD字段应保留1位小数
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层XZDWKD字段应保留1位小数' ErrorName,'{3}' RuleType from {0}  WHERE  LENGTH(XZDWKD)-instr(XZDWKD,'.')>1


RuleCode: 32054304410822
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层ZLDWMC不能存在特殊字符
Requirement: 地类图斑更新层ZLDWMC不能存在特殊字符（不能以字母开头，不能全为字母或全为数字或出现特殊字符）
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select ZLDWMC MC, OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZLDWMC不能存在特殊字符（不能以字母开头，不能全为字母或全为数字或出现特殊字符）' ErrorName,'{3}' RuleType from {0}


RuleCode: 32054304410823
LayerName: 地类图斑更新层
RuleType: 值域规范性
RuleName: {1}层QSDWMC不能存在特殊字符
Requirement: 地类图斑更新层QSDWMC不能存在特殊字符（不能以字母开头，不能全为字母或全为数字或出现特殊字符）
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select QSDWMC MC, OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层QSDWMC不能存在特殊字符（不能以字母开头，不能全为字母或全为数字或出现特殊字符）' ErrorName,'{3}' RuleType from {0}


RuleCode: 33014304000001
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层ZLDWDM前12位相同的图斑，TBBH应唯一且不为空
Requirement: 地类图斑更新层ZLDWDM前12位相同的图斑，TBBH应唯一且不为空
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select  OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZLDWDM前12位相同的图斑，TBBH应唯一且不为空' ErrorName,'{3}' RuleType,ZLDWDM,TBBH,SUBSTR(ZLDWDM,1,12)  from {0} 
WHERE (TBBH in(select TBBH from {0} GROUP BY SUBSTR(ZLDWDM,1,12),TBBH HAVING (count(TBBH)>1 and count(SUBSTR(ZLDWDM,1,12))>1)) or TBBH ISNULL or TBBH='' or TBBH=' ') and 
SUBSTR(ZLDWDM,1,12) in (select SUBSTR(ZLDWDM,1,12) from {0} GROUP BY SUBSTR(ZLDWDM,1,12),TBBH HAVING count(TBBH)>1)


RuleCode: 33014304000002
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0602、1001、1003时，TBXHDM字段应为FQ或空值
Requirement: 地类图斑更新层DLBM为0602、1001、1003时，TBXHDM字段应为FQ或空值
RepairSQL: update {0} set TBXHDM=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM为0602、1001、1003时，TBXHDM字段应为FQ或空值' ErrorName,'{3}' RuleType from {0} WHERE DLBM in('0602','1001','1003') and TBXHDM NOTNULL and TBXHDM!='FQ' and TBXHDM!='' and TBXHDM!=' '


RuleCode: 33014304000003
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01且GDPDJB为1时，KCXS应等于0
Requirement: 地类图斑更新层DLBM前2位为01且GDPDJB为1时，KCXS应等于0
RepairSQL: update {0} set KCXS=0 where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位为01且GDPDJB为1时，KCXS应等于0' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' AND GDPDJB='1' AND KCXS!=0


RuleCode: 33014304000004
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01且GDPDJB为2、3、4、5，KCXS取值应在[0,1)之间
Requirement: 地类图斑更新层DLBM前2位为01且GDPDJB为2、3、4、5，KCXS取值应在[0,1)之间
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位为01且GDPDJB为2、3、4、5，KCXS取值应在[0,1)之间' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' AND GDPDJB in('2','3','4','5')  and (KCXS<0 or KCXS>1 or KCXS=1)


RuleCode: 33014304000005
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位非01时，KCXS应等于0
Requirement: 地类图斑更新层DLBM前2位非01时，KCXS应等于0
RepairSQL: update {0} set KCXS=0 where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位非01时，KCXS应等于0' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)!='01' and KCXS!=0


RuleCode: 33014304000007
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层KCMJ=TBMJ*KCXS
Requirement: 地类图斑更新层KCMJ=TBMJ*KCXS
RepairSQL: update {0} set KCMJ=(TBMJ*KCXS) where BSM in ({1})
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层KCMJ=TBMJ*KCXS' ErrorName,'{3}' RuleType from {0}  
WHERE LENGTH(KCMJ)-instr(KCMJ,'.')>2 or KCMJ-ROUND(TBMJ*KCXS,2) > 0.001


RuleCode: 33014304000008
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层TBDLMJ=TBMJ-KCMJ
Requirement: 地类图斑更新层TBDLMJ=TBMJ-KCMJ
RepairSQL: update {0} set TBDLMJ=(TBMJ-KCMJ) where BSM in ({1})
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBDLMJ=TBMJ-KCMJ' ErrorName,'{3}' RuleType from {0}  
WHERE LENGTH(TBDLMJ)-instr(TBDLMJ,'.')>2 or TBDLMJ-ROUND(TBMJ-KCMJ,2) > 0.001


RuleCode: 33014304000009
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01且GDPDJB为1时，GDLX应为空
Requirement: 地类图斑更新层DLBM前2位为01且GDPDJB为1时，GDLX应为空
RepairSQL: update {0} set GDLX=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位为01且GDPDJB为1时，GDLX应为空' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' AND GDPDJB='1' AND GDLX NOTNULL and GDLX!='' and GDLX!=' '


RuleCode: 33014304000010
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层GDLX与DLBM、GDPDJB逻辑一致，DLBM前两位为01且GDPDJB为2、3、4或5时，GDLX应为PD或TT
Requirement: 地类图斑更新层GDLX与DLBM、GDPDJB逻辑一致，DLBM前两位为01且GDPDJB为2、3、4或5时，GDLX应为PD或TT
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GDLX与DLBM、GDPDJB逻辑一致，DLBM前两位为01且GDPDJB为2、3、4或5时，GDLX应为PD或TT' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' and GDPDJB in ('2','3','4','5') and  GDLX not in ('PD','TT') 


RuleCode: 33014304000011
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位非01时，GDLX应为空
Requirement: 地类图斑更新层DLBM前2位非01时，GDLX应为空
RepairSQL: update {0} set GDLX=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位非01时，GDLX应为空' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)!='01'  and GDLX NOTNULL AND GDLX!='' AND GDLX!=' '


RuleCode: 33014304000012
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层GDPDJB与DLBM逻辑一致，DLBM前两位为01时，GDPDJB应为1、2、3、4或5
Requirement: 地类图斑更新层GDPDJB与DLBM逻辑一致，DLBM前两位为01时，GDPDJB应为1、2、3、4或5
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GDPDJB与DLBM逻辑一致，DLBM前两位为01时，GDPDJB应为1、2、3、4或5' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' and GDPDJB NOT IN ('1','2','3','4','5')


RuleCode: 33014304000013
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位非01时，GDPDJB应为空
Requirement: 地类图斑更新层DLBM前2位非01时，GDPDJB应为空或填写0
RepairSQL: update {0} set GDPDJB='0' where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位非01时，GDPDJB应为空或填写0' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)!='01' and GDPDJB NOTNULL and GDPDJB!=0 and GDPDJB!=''  


RuleCode: 33014304000014
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD应大于等于0
Requirement: 地类图斑更新层铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD应大于等于0
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD应大于等于0' ErrorName,'{3}' RuleType from {0} WHERE DLBM in ('1001', '1003', '1004', '1006', '1009', '1107', '1107A', '1101') and (XZDWKD<0 or XZDWKD ISNULL or XZDWKD='')


RuleCode: 33014304000015
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层CZCSXM字段取值为201A、202A、203A时，DLBM字段取值应为0601
Requirement: 地类图斑更新层CZCSXM字段取值为201A、202A、203A时，DLBM字段取值应为0601
RepairSQL: update {0} set DLBM='0601' where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层CZCSXM字段取值为201A、202A、203A时，DLBM字段取值应为0601' ErrorName,'{3}' RuleType from {0} WHERE CZCSXM in ('201A','202A','203A') and DLBM !='0601'


RuleCode: 33014304000017
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01时，TBXHDM字段取值应在HDGD、HQGD、LQGD、MQGD、SHGD、SMGD、YJGD或空范围内
Requirement: 地类图斑更新层耕地图斑，TBXHDM字段取值应在HDGD、HQGD、LQGD、MQGD、SHGD、SMGD、YJGD或空范围内
RepairSQL: update {0} set TBXHDM=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层耕地图斑，TBXHDM字段取值应在HDGD、HQGD、LQGD、MQGD、SHGD、SMGD、YJGD或空范围内' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' and TBXHDM NOT in ('HDGD','HQGD','LQGD','MQGD','SHGD','SMGD','YJGD') and TBXHDM NOTNULL and TBXHDM !=' ' and TBXHDM != ''


RuleCode: 33014304000018
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0301、0302、0305、0307、0404、1104、1104A时，ZZSXDM取值应在JKHF、GCHF、空范围内
Requirement: 地类图斑更新层DLBM为0301、0302、0305、0307、0404、1104、1104A时，种植属性代码取值应在JKHF、GCHF范围内，或为空值
RepairSQL: update {0} set ZZSXDM=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM为0301、0302、0305、0307、0404、1104、1104A时，种植属性代码取值应在JKHF、GCHF范围内，或为空值' ErrorName,'{3}' RuleType from {0} WHERE DLBM in ('0301','0302','0305','0307','0404','1104','1104A')  AND ZZSXDM not in('JKHF','GCHF') and ZZSXDM NOTNULL AND ZZSXDM !=' ' AND ZZSXDM !=''


RuleCode: 33014304000019
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0201、0202、0203、0204，且TBXHDM为空时，ZZSXDM取值应在JKHF、GCHF、空范围内
Requirement: 地类图斑更新层DLBM为0201、0202、0203、0204，且TBXHDM为空时，ZZSXDM字段取值应在JKHF、GCHF范围内，且允许存在空值
RepairSQL: update {0} set ZZSXDM=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM为0201、0202、0203、0204，且TBXHDM为空时，ZZSXDM字段取值应在JKHF、GCHF范围内，且允许存在空值' ErrorName,'{3}' RuleType from {0} WHERE DLBM in ('0201','0202','0203','0204') and (TBXHDM ISNULL or TBXHDM='' or TBXHDM=' ') AND ZZSXDM not in('JKHF','GCHF') and ZZSXDM NOTNULL AND ZZSXDM !=' ' AND ZZSXDM !=''


RuleCode: 33014304000022
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层TBXHDM字段取值在HDGY、GTGY、MTGY、SNGY、BLGY、DLGY范围内时，DLBM应等于0601
Requirement: 地类图斑更新层TBXHDM字段取值在HDGY、GTGY、MTGY、SNGY、BLGY、DLGY范围内时，地类应为工业用地
RepairSQL: update {0} set DLBM='0601' where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBXHDM字段取值在HDGY、GTGY、MTGY、SNGY、BLGY、DLGY范围内时，地类应为工业用地' ErrorName,'{3}' RuleType from {0} WHERE TBXHDM in ('HDGY','GTGY','MTGY','SNGY','BLGY','DLGY') and DLBM !='0601'


RuleCode: 33014304000023
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0601时，TBXHDM字段应为HDGY、GTGY、MTGY、SNGY、BLGY或DLGY
Requirement: 地类图斑更新层工业用地，TBXHDM字段应为HDGY、GTGY、MTGY、SNGY、BLGY、DLGY，或空值
RepairSQL: update {0} set TBXHDM=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层工业用地，TBXHDM字段应为HDGY、GTGY、MTGY、SNGY、BLGY、DLGY，或空值' ErrorName,'{3}' RuleType from {0} WHERE DLBM='0601' and  TBXHDM not in ('HDGY','GTGY','MTGY','SNGY','BLGY','DLGY') and TBXHDM!='' and TBXHDM!=' ' and TBXHDM NOTNULL


RuleCode: 33014304000024
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位非01、02、03、04，且不等于0601、0602、1001、1003，或属于湿地的，TBXHDM字段应为空
Requirement: 地类图斑更新层DLBM字段前2位非01、02、03、04，且DLBM不在0601、0602、1001、1003取值范围内，或属于湿地的地类，不能进行图斑细化标注
RepairSQL: update {0} set TBXHDM=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM字段前2位非01、02、03、04，且DLBM不在0601、0602、1001、1003取值范围内，或属于湿地的地类，不能进行图斑细化标注' ErrorName,'{3}' RuleType from {0} 
WHERE (SUBSTR(DLBM,1,2) not in ('01','02','03','04') and DLBM not in ('0601', '0602', '1001', '1003') 
or DLBM in ('0303','0304','0306','0402','0603','1105','1106','1108'))
and TBXHDM NOTNULL and TBXHDM !=''


RuleCode: 33014304000025
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层TBXHMC与TBXHDM字段取值匹配
Requirement: 地类图斑更新层TBXHMC与TBXHDM字段取值匹配
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select distinct {0}.OBJECTID, {0}.BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBXHMC与TBXHDM字段取值匹配' ErrorName,'{3}' RuleType from {0} 
 LEFT JOIN Sys_DicDetail on {0}.TBXHDM = Sys_DicDetail.CODE WHERE {0}.TBXHMC != Sys_DicDetail.NAME  
 or (({0}.TBXHMC ISNULL or {0}.TBXHMC='' or {0}.TBXHMC=' ' ) and {0}.TBXHDM NOTNULL)
 or (({0}.TBXHDM ISNULL or {0}.TBXHDM='' or {0}.TBXHDM=' ' ) and {0}.TBXHMC NOTNULL)


RuleCode: 33014304000026
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01时，ZZSXDM取值应在LS、FLS、LYFL、XG、LLJZ、WG范围内
Requirement: 地类图斑更新层耕地图斑，种植属性代码取值应在LS、FLS、LYFL、XG、LLJZ、WG范围内
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层耕地图斑，种植属性代码取值应在LS、FLS、LYFL、XG、LLJZ、WG范围内' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='01' AND ZZSXDM not in ('LS','FLS','LYFL','XG','LLJZ','WG') and ZZSXDM NOTNULL and ZZSXDM !='' and ZZSXDM !=' ' 


RuleCode: 33014304000028
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层ZZSXMC与ZZSXDM字段取值匹配
Requirement: 地类图斑更新层ZZSXMC与ZZSXDM字段取值匹配
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select distinct {0}.OBJECTID, {0}.BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZZSXMC与ZZSXDM字段取值匹配' ErrorName,'{3}' RuleType from {0}  
LEFT JOIN Sys_DicDetail on {0}.ZZSXDM = Sys_DicDetail.CODE WHERE {0}.ZZSXMC != Sys_DicDetail.NAME 
or (({0}.ZZSXMC ISNULL or {0}.ZZSXMC='' or {0}.ZZSXMC=' ' ) and {0}.ZZSXDM NOTNULL)
or (({0}.ZZSXDM ISNULL  or {0}.ZZSXDM='' or {0}.ZZSXDM=' ' ) and {0}.ZZSXMC NOTNULL)


RuleCode: 33014304000029
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层FRDBS字段值为1时，ZLDWDM前12位与QSDWDM前12位应不一致
Requirement: 地类图斑更新层FRDBS字段值为1时，ZLDWDM前12位与QSDWDM前12位应不一致
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层FRDBS字段值为1时，ZLDWDM前12位与QSDWDM前12位应不一致' ErrorName,'{3}' RuleType from {0} WHERE FRDBS='1' and SUBSTR(ZLDWDM,1,12)=SUBSTR(QSDWDM,1,12)


RuleCode: 33014304000031
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层建设用地（除工业用地、交通运输用地外），CZCSXM取值应在201、202、203、204、205范围内
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
Requirement:
地类图斑更新层建设用地（05H1、0508、0602、0603、0701、0702、08H1、08H2、08H2A、0809、0810、0810A、09、1004、1005、1201），CZCSXM取值应在201、202、203、204、205范围内，不允许为空

ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层建设用地（05H1、0508、0602、0603、0701、0702、08H1、08H2、08H2A、0809、0810、0810A、09、1004、1005、1201），CZCSXM取值应在201、202、203、204、205范围内，不允许为空' ErrorName ,'{3}' RuleType from {0} WHERE  DLBM in 
 ('05H1','0508','0602','0603','0701','0702','08H1','08H2','08H2A','0809','0810','0810A','09','1004','1005','1201') and CZCSXM not in ('201','202','203','204','205')


RuleCode: 33014304000034
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层工业用地0601，CZCSXM字段取值应在201、202、203、201A、202A、203A、204、205范围内
Requirement: 地类图斑更新层工业用地0601，CZCSXM字段取值应在201、202、203、201A、202A、203A、204、205范围内
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层工业用地0601，CZCSXM字段取值应在201、202、203、201A、202A、203A、204、205范围内' ErrorName,'{3}' RuleType from {0} WHERE  DLBM='0601' and CZCSXM not in ('201','202','203','201A','202A','203A','204','205')


RuleCode: 33014304000035
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层非河流、铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD应等于0
Requirement: 地类图斑更新层非河流、铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD应等于0，允许为空
RepairSQL: update {0} set XZDWKD=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层非河流、铁路、公路、管道用地、农村道路和沟渠等线形地物，线状图斑宽度XZDWKD应等于0，允许为空' ErrorName,'{3}' RuleType from {0}  WHERE  DLBM not in ('1001', '1003', '1004', '1006', '1009', '1107', '1107A', '1101')  and XZDWKD !=0 and XZDWKD NOTNULL and XZDWKD !=' ' and XZDWKD !=''


RuleCode: 33014304000036
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层非建设用地、交通运输用地、水工建筑用地，CZCSXM字段取值应在201、202、203、204、205范围内，或为空值
RepairSQL: update {0} set CZCSXM=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
Requirement:
地类图斑更新层非建设用地、交通运输用地(1001,1002,1003,1006,1007,1008,1009)、水工建筑用地（1109），CZCSXM字段取值应在201、202、203、204、205范围内，或取值为空

ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层非建设用地、交通运输用地(1001,1002,1003,1006,1007,1008,1009)、水工建筑用地（1109），CZCSXM字段取值应在201、202、203、204、205范围内，或取值为空' ErrorName,'{3}' RuleType from {0} WHERE  
(DLBM not in ('05H1', '0508', '0601', '0602', '0603', '0701', '0702', '08H1', '08H2', '0809', '0810', '09', '1004', '1005', '1201' ) or DLBM in ('1001', '1002', '1003', '1006', '1007', '1008', '1009', '1109')) and CZCSXM not in ('201','202','203','204','205') and CZCSXM NOTNULL and CZCSXM !='' and CZCSXM !=' '


RuleCode: 33014304000037
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层KCXS与KCDLBM一致性检查，KCXS大于0时，KCDLBM不为空，KCXS等于0时，KCDLBM应为空
Requirement: 地类图斑更新层KCXS与KCDLBM一致性检查，KCXS大于0时，KCDLBM不为空，KCXS等于0时，KCDLBM应为空
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层KCXS与KCDLBM一致性检查，KCXS大于0时，KCDLBM不为空，KCXS等于0时，KCDLBM应为空' ErrorName,'{3}' RuleType from {0} WHERE (KCXS >0 and (KCDLBM ISNULL or KCDLBM='' or KCDLBM=' ' ) ) or  (KCXS=0 and KCDLBM NOTNULL and KCDLBM !='' and KCDLBM !=' '  )


RuleCode: 33014304000039
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为01时，GDDB字段取值应在[1..15]范围内
Requirement: 地类图斑更新层DLBM前2位为01时，GDDB字段取值应在[1..15]范围内,允许存在空值
RepairSQL: update {0} set GDDB=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位为01时，GDDB字段取值应在[1..15]范围内,允许存在空值' ErrorName,'{3}' RuleType from {0} WHERE  SUBSTR(DLBM,1,2)='01' and (GDDB<1 or GDDB>15) and GDDB NOTNULL and GDDB!='' and GDDB!=' ' and GDDB!='0'


RuleCode: 33014304000040
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位非01时，GDDB字段取值应为空
Requirement: 地类图斑更新层DLBM前2位非01时，GDDB字段取值应为空
RepairSQL: update {0} set GDDB=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM前2位非01时，GDDB字段取值应为空' ErrorName,'{3}' RuleType from {0} 
WHERE SUBSTR(DLBM,1,2)!='01'  and GDDB NOTNULL and GDDB !='' and GDDB!=' ' and GDDB!='0' 


RuleCode: 33014304000041
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为04时（不含0404），TBXHDM取值应在GCCD、空范围内
Requirement: 地类图斑更新层草地（不含其他草地），图斑细化标注可以是GCCD，允许不标注
RepairSQL: update {0} set TBXHDM=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层草地（不含其他草地），图斑细化标注可以是GCCD，允许不标注' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='04' and DLBM!='0404' and TBXHDM!='GCCD' and TBXHDM NOTNULL and TBXHDM!='' and TBXHDM!=' '


RuleCode: 33014304000049
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层国有土地飞入地标识不能为1
Requirement: 地类图斑更新层权属和坐落属于同一区县的国有土地飞入地标识不能为1
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层权属和坐落属于同一区县的国有土地飞入地标识不能为1' ErrorName,'{3}' RuleType from {0} 
WHERE SUBSTR(QSDWDM,1,12)=SUBSTR(ZLDWDM,1,12) and QSXZ in('10','20','21') and FRDBS='1'


RuleCode: 33014304000054
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM前2位为03时，TBXHDM取值应在LJTM、空范围内
Requirement: 地类图斑更新层林地，图斑细化代码应为LJTM，或为空
RepairSQL: update {0} set TBXHDM=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层林地，图斑细化代码应为LJTM，或为空' ErrorName,'{3}' RuleType from {0} WHERE SUBSTR(DLBM,1,2)='03' and TBXHDM!='LJTM' and TBXHDM NOTNULL AND TBXHDM!='' and TBXHDM!=' '


RuleCode: 33014304000056
LayerName: 地类图斑更新层
RuleType: 逻辑一致性
RuleName: {1}层DLBM为0201K、0202K、0203K、0204K、0301K、0302K、0307K、0403K、1104K时，ZZSXDM取值应在JKHF、GCHF、空范围内
Requirement: 地类图斑更新层所有可调整地类，种植属性代码取值应在JKHF、GCHF、空范围内
RepairSQL: update {0} set ZZSXDM=NULL where BSM in ({1})
BGLayerName: DLTBBG_地类图斑变更
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层所有可调整地类，种植属性代码取值应在JKHF、GCHF、空范围内' ErrorName,'{3}' RuleType from {0} WHERE DLBM in ('0201K','0202K','0203K','0204K','0301K','0302K','0307K','0403K','1104K')  and ZZSXDM not in('GCHF','JKHF') and ZZSXDM NOTNULL and ZZSXDM!='' and ZZSXDM!=' '


RuleCode: 32054504000002
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层TBBGMJ取值应大于0
Requirement: 地类图斑更新过程层TBBGMJ取值应大于0，且不能为空值
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBBGMJ取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE TBBGMJ <=0 or TBBGMJ ISNULL or TBBGMJ ='' or TBBGMJ=' '


RuleCode: 32054504000004
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层变更行为取值应为0（灭失）、1（属性变更）、2（图形变更）、3（新增）、4（无变化）
Requirement: 地类图斑只有图形变更、属性变更、新增、灭失、无变化五种变更行为
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'地类图斑只有图形变更、属性变更、新增、灭失、无变化五种变更行为' ErrorName,'{3}' RuleType from {0} WHERE  BGXW not in ('0','1','2','3','4')


RuleCode: 32054504000005
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层GXSJ字段取值符合规范要求
Requirement: 地类图斑更新过程层GXSJ字段取值符合规范要求，不能为空值，年份应为2022
RepairSQL: update {0} set GXSJ=2022+117*366+82 where BSM in ({1})
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，不能为空值，年份应为2022' ErrorName,'{3}' RuleType from {0} WHERE  STRFTIME('%Y',GXSJ)!='2022' or GXSJ ISNULL or GXSJ='' or GXSJ =' '


RuleCode: 32054504000006
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层面积类字段小数位数检查
Requirement: 地类图斑更新过程层TBBGMJ、BGHKCMJ、BGHTBDLMJ字段应保留2位小数
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBBGMJ、BGHKCMJ、BGHTBDLMJ字段应保留2位小数' ErrorName,'{3}' RuleType from {0}  WHERE  LENGTH(TBBGMJ)-instr(TBBGMJ,'.')>2 or LENGTH(BGHKCMJ)-instr(BGHKCMJ,'.')>2 or LENGTH(BGHTBDLMJ)-instr(BGHTBDLMJ,'.')>2


RuleCode: 32054504000007
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层变更后线状地物宽度字段小数位数检查
Requirement: 地类图斑更新过程层BGHXZDWKD字段应保留1位小数
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BGHXZDWKD字段应保留1位小数' ErrorName,'{3}' RuleType from {0} WHERE LENGTH(BGHXZDWKD)-instr(BGHXZDWKD,'.')>1


RuleCode: 32054504000008
LayerName: 地类图斑更新过程层
RuleType: 值域规范性
RuleName: 地类图斑更新过程层行政区调整类型取值应为县级行政区代码无变化0、调入1、调出2、新增3、灭失4、仅县级行政区代码变化5
Requirement: 地类图斑更新过程层行政区调整类型取值应为县级行政区代码无变化0、调入1、调出2、新增3、灭失4、仅县级行政区代码变化5
RepairSQL: update {0} set BGHQSDWDM='5' where BSM in ({1})
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型取值应为县级行政区代码无变化0、调入1、调出2、新增3、灭失4、仅县级行政区代码变化5' ErrorName,'{3}' RuleType from {0}  
WHERE XZQTZLX not in ('0','1','2','3','4','5')


RuleCode: 33014504000007
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为县级行政区代码无变化的属性变更单元，变更前标识码与变更后标识码应一致
Requirement: 地类图斑更新过程层变更行为是属性变更且行政区调整类型为县级行政区代码无变化，变更前后标识码应一致
RepairSQL: update {0} set BGHTBBSM=BGQTBBSM where BSM in ({1})
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更且行政区调整类型为县级行政区代码无变化，变更前后标识码应一致' ErrorName,'{3}' RuleType from {0} WHERE BGXW='1' and XZQTZLX='0' and BGQTBBSM!=BGHTBBSM


RuleCode: 33014504000008
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层变更行为是属性变更，变更前后对应属性项（除BSM、TBBH外）至少存在一项不一致
ZLLayerName: DLTBGXGC_地类图斑更新过程
Requirement:
地类图斑更新过程层变更行为是属性变更，变更前后对应属性项DLBM、DLMC、GDDB、QSXZ、QSDWDM、QSDWMC、ZLDWDM、ZLDWMC、GDDB、KCDLBM、KCXS、GDLX、GDPDJB、XZDWKD、TBXHDM、TBXHMC、ZZSXDM、ZZSXMC、FRDBS、CZCSXM、HDMC、KCMJ、TBDLMJ、MSSM至少一项不一致

ImplementSQL:
 select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更，变更前后对应属性项DLBM、DLMC、GDDB、QSXZ、QSDWDM、QSDWMC、ZLDWDM、ZLDWMC、GDDB、KCDLBM、KCXS、GDLX、GDPDJB、XZDWKD、TBXHDM、TBXHMC、ZZSXDM、ZZSXMC、FRDBS、CZCSXM、HDMC、KCMJ、TBDLMJ、MSSM至少一项不一致' ErrorName,'{3}' RuleType from {0} 
 WHERE BGXW='1' and (BGQDLBM=BGHDLBM or BGQDLBM ISNULL and BGHDLBM ISNULL) and (BGQDLMC =BGHDLMC or BGQDLMC ISNULL and BGHDLMC ISNULL) and (BGQGDDB =BGHGDDB or BGQGDDB ISNULL and BGHGDDB ISNULL) and (BGQQSXZ =BGHQSXZ or BGQQSXZ ISNULL and BGHQSXZ ISNULL) and (BGQQSDWDM =BGHQSDWDM or BGQQSDWDM ISNULL and BGHQSDWDM ISNULL)
 and (BGQQSDWMC =BGHQSDWMC or BGQQSDWMC ISNULL and BGHQSDWMC ISNULL) and (BGQZLDWDM =BGHZLDWDM or BGQZLDWDM ISNULL and BGHZLDWDM ISNULL) and (BGQZLDWMC =BGHZLDWMC or BGQZLDWMC ISNULL and BGHZLDWMC ISNULL) and (BGQKCDLBM =BGHKCDLBM or BGQKCDLBM ISNULL and BGHKCDLBM ISNULL) 
 and (BGQKCXS =BGHKCXS or BGQKCXS ISNULL and BGHKCXS ISNULL) and (BGQGDLX =BGHGDLX or BGQGDLX ISNULL and BGHGDLX ISNULL) and (BGQGDPDJB =BGHGDPDJB or BGQGDPDJB ISNULL and BGHGDPDJB ISNULL) and (BGQXZDWKD =BGHXZDWKD or BGQXZDWKD ISNULL and BGHXZDWKD ISNULL) and (BGQTBXHDM =BGHTBXHDM or BGQTBXHDM ISNULL and BGHTBXHDM ISNULL) 
 and (BGQTBXHMC =BGHTBXHMC or BGQTBXHMC ISNULL and BGHTBXHMC ISNULL) and (BGQZZSXDM =BGHZZSXDM or BGQZZSXDM ISNULL and BGHZZSXDM ISNULL) and (BGQFRDBS =BGHFRDBS or BGQFRDBS ISNULL and BGHFRDBS ISNULL) and (BGQCZCSXM =BGHCZCSXM or BGQCZCSXM ISNULL and BGHCZCSXM ISNULL) and (BGQHDMC =BGHHDMC or BGQHDMC ISNULL and BGHHDMC ISNULL)
 and (BGQMSSM =BGHMSSM or BGQMSSM ISNULL and BGHMSSM ISNULL)


RuleCode: 33014504000009
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层属性变更，更新过程层内变更前标识码应唯一且变更后标识码唯一
Requirement: 地类图斑更新过程层属性变更，图形一定不能变化，更新过程层内变更前后标识码应唯一
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层属性变更，更新过程层内变更前标识码应唯一且变更后标识码唯一' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='1'  
 and BGQTBBSM in 
 (
 select  BGQTBBSM from {0} WHERE  BGXW='1' GROUP BY BGQTBBSM HAVING count(BGQTBBSM)>1
 ) 
 or  BGHTBBSM in 
 (
 select  BGHTBBSM from {0} WHERE  BGXW='1' GROUP BY BGHTBBSM HAVING count(BGHTBBSM)>1
 ) 


RuleCode: 33014504000011
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层BGQKCDLMJ=TBBGMJ*BGQKCXS
Requirement: 地类图斑更新过程层变更前扣除地类面积 = 图斑变更面积* 变更前扣除地类系数
RepairSQL: update {0} set BGQKCDLMJ=(TBBGMJ*BGQKCDLXS) where BSM in ({1})
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更前扣除地类面积 = 图斑变更面积* 变更前扣除地类系数' ErrorName,'{3}' RuleType  from {0} 
WHERE LENGTH(BGQKCMJ)-instr(BGQKCMJ,'.')>2 or BGQKCMJ-ROUND(TBBGMJ*BGQKCXS,2) > 0.001


RuleCode: 33014504000012
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层BGQTBDLMJ=TBBGMJ-BGQKCMJ
Requirement: 地类图斑更新过程层变更前地类面积 = 图斑变更面积-变更前扣除地类面积
RepairSQL: update {0} set BGQTBDLMJ=(TBBGMJ-BGQKCDLMJ) where BSM in ({1})
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更前地类面积 = 图斑变更面积-变更前扣除地类面积' ErrorName,'{3}' RuleType from {0} 
WHERE LENGTH(BGQTBDLMJ)-instr(BGQTBDLMJ,'.')>2 or BGQTBDLMJ-ROUND(TBBGMJ-BGQKCMJ,2) > 0.001


RuleCode: 33014504000013
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层BGHKCDLMJ=TBBGMJ*BGHKCXS
Requirement: 地类图斑更新过程层变更后扣除地类面积 = 图斑变更面积*变更后扣除地类系数
RepairSQL: update {0} set BGHKCDLMJ=(TBBGMJ*BGHKCDLXS) where BSM in ({1})
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更后扣除地类面积 = 图斑变更面积*变更后扣除地类系数' ErrorName,'{3}' RuleType from {0} 
WHERE LENGTH(BGHKCMJ)-instr(BGHKCMJ,'.')>2 or BGHKCMJ-ROUND(TBBGMJ*BGHKCXS,2) > 0.001


RuleCode: 33014504000014
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层BGHTBDLMJ=TBBGMJ-BGHKCMJ
Requirement: 地类图斑更新过程层变更后地类面积 = 图斑变更面积-变更后扣除地类面积
RepairSQL: update {0} set BGHTBDLMJ=(TBBGMJ-BGHKCDLMJ) where BSM in ({1})
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更后地类面积 = 图斑变更面积-变更后扣除地类面积' ErrorName,'{3}' RuleType from {0} 
WHERE LENGTH(BGHTBDLMJ)-instr(BGHTBDLMJ,'.')>2 or BGHTBDLMJ-ROUND(TBBGMJ-BGHKCMJ,2) > 0.001


RuleCode: 33014504000018
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层不允许存在仅变更前后图斑标识码、图斑编号、坐落单位代码、坐落单位名称、权属单位代码、权属单位名称变化的属性变更记录
Requirement: 由于行政区、村级调查区的行政区代码、坐落单位代码更新，导致地类图斑仅发生标识码、图斑编号、坐落单位代码、坐落单位名称、权属单位名称、权属单位代码变化的，不提取地类图斑更新层和更新过程层
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层不允许存在仅变更前后图斑标识码、图斑编号、坐落单位代码、坐落单位名称、权属单位代码、权属单位名称变化的属性变更记录' ErrorName,'{3}' RuleType from 
{0} WHERE  BGXW='1' and ONLYZLBG!='1' and 
(BGQTBBSM!=BGHTBBSM or BGQTBBH!=BGHTBBH or BGQZLDWDM!=BGHZLDWDM or BGQZLDWMC!=BGHZLDWMC  or BGQQSDWDM!=BGHQSDWDM or BGQQSDWMC!=BGHQSDWMC) 
and (BGQDLBM=BGHDLBM or (BGQDLBM ISNULL or BGQDLBM='' or BGQDLBM=' ') and (BGHDLBM ISNULL or BGHDLBM='' or BGHDLBM=' '))
and (BGQDLMC=BGHDLMC or (BGQDLMC ISNULL or BGQDLMC='' or BGQDLMC=' ') and (BGHDLMC ISNULL or BGHDLMC='' or BGHDLMC=' ')) 
and (BGQQSXZ=BGHQSXZ or (BGQQSXZ ISNULL or BGQQSXZ='' or BGQQSXZ=' ') and (BGHQSXZ ISNULL or BGHQSXZ='' or BGHQSXZ=' ')) 
and (BGQKCDLBM=BGHKCDLBM  or (BGQKCDLBM ISNULL or BGQKCDLBM='' or BGQKCDLBM=' ') and (BGHKCDLBM ISNULL or BGHKCDLBM='' or BGHKCDLBM=' ')) 
and  (BGQKCXS=BGHKCXS  or (BGQKCXS ISNULL or BGQKCXS='' or BGQKCXS=' ') and (BGHKCXS ISNULL or BGHKCXS='' or BGHKCXS=' ')) 
and ((BGQKCMJ-BGHKCMJ)<0.001  or (BGQKCMJ ISNULL or BGQKCMJ='' or BGQKCMJ=' ') and (BGHKCMJ ISNULL or BGHKCMJ='' or BGHKCMJ=' ')) 
and  ((BGQTBDLMJ-BGHTBDLMJ)<0.001  or (BGQTBDLMJ ISNULL or BGQTBDLMJ='' or BGQTBDLMJ=' ') and (BGHTBDLMJ ISNULL or BGHTBDLMJ='' or BGHTBDLMJ=' ')) 
and (BGQGDLX=BGHGDLX  or (BGQGDLX ISNULL or BGQGDLX='' or BGQGDLX=' ') and (BGHGDLX ISNULL or BGHGDLX='' or BGHGDLX=' ')) 
and  (BGQGDPDJB=BGHGDPDJB  or (BGQGDPDJB ISNULL or BGQGDPDJB='' or BGQGDPDJB=' ') and (BGHGDPDJB ISNULL or BGHGDPDJB='' or BGHGDPDJB=' ')) 
and (BGQXZDWKD=BGHXZDWKD or (BGQXZDWKD ISNULL or BGQXZDWKD='' or BGQXZDWKD=' ') and (BGHXZDWKD ISNULL or BGHXZDWKD='' or BGHXZDWKD=' ')) 
and (BGQTBXHDM=BGHTBXHDM or (BGQTBXHDM ISNULL or BGQTBXHDM='' or BGQTBXHDM=' ') and (BGHTBXHDM ISNULL or BGHTBXHDM='' or BGHTBXHDM=' ')) 
and (BGQTBXHMC=BGHTBXHMC  or (BGQTBXHMC ISNULL or BGQTBXHMC='' or BGQTBXHMC=' ') and (BGHTBXHMC ISNULL or BGHTBXHMC='' or BGHTBXHMC=' ')) 
and (BGQZZSXDM=BGHZZSXDM  or (BGQZZSXDM ISNULL or BGQZZSXDM='' or BGQZZSXDM=' ') and (BGHZZSXDM ISNULL or BGHZZSXDM='' or BGHZZSXDM=' ')) 
and  (BGQZZSXMC=BGHZZSXMC  or (BGQZZSXMC ISNULL or BGQZZSXMC='' or BGQZZSXMC=' ') and (BGHZZSXMC ISNULL or BGHZZSXMC='' or BGHZZSXMC=' ')) 
and (BGQGDDB=BGHGDDB  or (BGQGDDB ISNULL or BGQGDDB='' or BGQGDDB=' ') and (BGHGDDB ISNULL or BGHGDDB='' or BGHGDDB=' ')) 
and  (BGQFRDBS=BGHFRDBS  or (BGQFRDBS ISNULL or BGQFRDBS='' or BGQFRDBS=' ') and (BGHFRDBS ISNULL or BGHFRDBS='' or BGHFRDBS=' ')) 
and (BGQCZCSXM=BGHCZCSXM  or (BGQCZCSXM ISNULL or BGQCZCSXM='' or BGQCZCSXM=' ') and (BGHCZCSXM ISNULL or BGHCZCSXM='' or BGHCZCSXM=' ')) 
AND (BGQMSSM=BGHMSSM  or (BGQMSSM ISNULL or BGQMSSM='' or BGQMSSM=' ') and (BGHMSSM ISNULL or BGHMSSM='' or BGHMSSM=' ')) 
and (BGQHDMC=BGHHDMC or (BGQHDMC ISNULL or BGQHDMC='' or BGQHDMC=' ') and (BGHHDMC ISNULL or BGHHDMC='' or BGHHDMC=' ')) 


RuleCode: 33014504000019
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层变更行为是灭失0时，变更后属性应均为空
Requirement: 地类图斑更新过程层变更行为是灭失0时，变更后属性应均为空
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是灭失0时，变更后属性应均为空' ErrorName,'{3}' RuleType from {0} WHERE BGXW='0' and (BGHTBBSM NOTNULL and BGHTBBSM!='' and BGHTBBSM!=' ' or  BGHDLBM NOTNULL and BGHDLBM!='' and BGHDLBM!=' ' or BGHDLMC NOTNULL and BGHDLMC!='' and BGHDLMC!=' ' or BGHQSXZ NOTNULL and BGHQSXZ!='' and BGHQSXZ!=' ' or BGHQSDWDM NOTNULL and BGHQSDWDM!='' and BGHQSDWDM!=' ' or BGHQSDWMC NOTNULL and BGHQSDWMC!='' and BGHQSDWMC!=' ' or BGHZLDWDM NOTNULL and BGHZLDWDM!='' and BGHZLDWDM!=' ' or BGHZLDWMC NOTNULL and BGHZLDWMC!='' and BGHZLDWMC!=' ' or BGHKCDLBM NOTNULL and BGHKCDLBM!='' and BGHKCDLBM!=' ' or BGHKCXS NOTNULL and BGHKCXS!='' and BGHKCXS!=' ' or BGHKCMJ NOTNULL and BGHKCMJ!='' and BGHKCMJ!=' ' or BGHTBDLMJ NOTNULL and BGHTBDLMJ!='' and BGHTBDLMJ!=' ' or BGHGDLX NOTNULL and BGHGDLX!='' and BGHGDLX!=' ' or BGHGDPDJB NOTNULL and BGHGDPDJB!='' and BGHGDPDJB!=' ' or BGHXZDWKD NOTNULL and BGHXZDWKD!='' and BGHXZDWKD!=' ' or BGHTBXHDM NOTNULL and BGHTBXHDM!='' and BGHTBXHDM!=' ' or BGHTBXHMC NOTNULL and BGHTBXHMC!='' and BGHTBXHMC!=' ' or BGHZZSXDM NOTNULL and BGHZZSXDM!='' and BGHZZSXDM!=' ' or BGHZZSXMC NOTNULL and BGHZZSXMC!='' and BGHZZSXMC!=' ' or BGHGDDB NOTNULL and BGHGDDB!='' and BGHGDDB!=' ' or BGHFRDBS NOTNULL and BGHFRDBS!='' and BGHFRDBS!=' ' or BGHCZCSXM NOTNULL and BGHCZCSXM!='' and BGHCZCSXM!=' ' or BGHMSSM NOTNULL and BGHMSSM!='' and BGHMSSM!=' ' or BGHHDMC NOTNULL and BGHHDMC!='' and BGHHDMC!=' ')

RepairSQL:
update {0} set BGHTBBSM=NULL, BGHDLBM=NULL, BGHDLMC=NULL, BGHQSXZ=NULL, BGHQSDWDM=NULL, BGHQSDWMC=NULL, BGHZLDWDM=NULL, BGHZLDWDM=NULL, BGHZLDWMC=NULL, BGHKCDLBM=NULL, BGHKCXS=NULL, BGHKCMJ=NULL, BGHTBDLMJ=NULL, BGHGDLX=NULL, BGHGDPDJB=NULL, BGHXZDWKD=NULL, BGHTBXHDM=NULL, BGHTBXHMC=NULL, BGHZZSXDM=NULL, BGHZZSXMC=NULL, BGHGDDB=NULL, BGHFRDBS=NULL, BGHCZCSXM=NULL, BGHMSSM=NULL, BGHHDMC=NULL where BSM in ({1})


RuleCode: 33014504000020
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层变更行为是新增3时，变更前属性应均为空
Requirement: 地类图斑更新过程层变更行为是新增3时，变更前属性应均为空
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是新增3时，变更前属性应均为空' ErrorName,'{3}' RuleType from {0} WHERE BGXW='3' and (BGQTBBSM NOTNULL and BGQTBBSM!='' and BGQTBBSM!=' ' or  BGQDLBM NOTNULL and BGQDLBM!='' and BGQDLBM!=' ' or BGQDLMC NOTNULL and BGQDLMC!='' and BGQDLMC!=' ' or BGQQSXZ NOTNULL and BGQQSXZ!='' and BGQQSXZ!=' ' or BGQQSDWDM NOTNULL and BGQQSDWDM!='' and BGQQSDWDM!=' ' or BGQQSDWMC NOTNULL and BGQQSDWMC!='' and BGQQSDWMC!=' ' or BGQZLDWDM NOTNULL and BGQZLDWDM!='' and BGQZLDWDM!=' ' or BGQZLDWMC NOTNULL and BGQZLDWMC!='' and BGQZLDWMC!=' ' or BGQKCDLBM NOTNULL and BGQKCDLBM!='' and BGQKCDLBM!=' ' or BGQKCXS NOTNULL and BGQKCXS!='' and BGQKCXS!=' ' or BGQKCMJ NOTNULL and BGQKCMJ!='' and BGQKCMJ!=' ' or BGQTBDLMJ NOTNULL and BGQTBDLMJ!='' and BGQTBDLMJ!=' ' or BGQGDLX NOTNULL and BGQGDLX!='' and BGQGDLX!=' ' or BGQGDPDJB NOTNULL and BGQGDPDJB!='' and BGQGDPDJB!=' ' or BGQXZDWKD NOTNULL and BGQXZDWKD!='' and BGQXZDWKD!=' ' or BGQTBXHDM NOTNULL and BGQTBXHDM!='' and BGQTBXHDM!=' ' or BGQTBXHMC NOTNULL and BGQTBXHMC!='' and BGQTBXHMC!=' ' or BGQZZSXDM NOTNULL and BGQZZSXDM!='' and BGQZZSXDM!=' ' or BGQZZSXMC NOTNULL and BGQZZSXMC!='' and BGQZZSXMC!=' ' or BGQGDDB NOTNULL and BGQGDDB!='' and BGQGDDB!=' ' or BGQFRDBS NOTNULL and BGQFRDBS!='' and BGQFRDBS!=' ' or BGQCZCSXM NOTNULL and BGQCZCSXM!='' and BGQCZCSXM!=' ' or BGQMSSM NOTNULL and BGQMSSM!='' and BGQMSSM!=' ' or BGQHDMC NOTNULL  and BGQHDMC!='' and BGQHDMC!=' ')

RepairSQL:
update {0} set BGQTBBSM=NULL, BGQDLBM=NULL, BGQDLMC=NULL, BGQQSXZ=NULL, BGQQSDWDM=NULL, BGQQSDWMC=NULL, BGQZLDWDM=NULL, BGQZLDWMC=NULL, BGQKCDLBM=NULL, BGQKCXS=NULL, BGQKCMJ=NULL, BGQTBDLMJ=NULL, BGQGDLX=NULL, BGQGDPDJB=NULL, BGQXZDWKD=NULL, BGQTBXHDM=NULL, BGQTBXHMC=NULL, BGQZZSXDM=NULL, BGQZZSXMC=NULL, BGQGDDB=NULL, BGQFRDBS=NULL, BGQCZCSXM=NULL, BGQMSSM=NULL, BGQHDMC=NULL where BSM in ({1})


RuleCode: 33014504000021
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为县级行政区代码无变化0、调入1、仅县级行政区代码变化5时，变更行为应是属性变更1或图形变更2
Requirement: 地类图斑更新过程层行政区调整类型为县级行政区代码无变化0、调入1、仅县级行政区代码变化5时，变更行为应是属性变更1或图形变更2
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为县级行政区代码无变化0、调入1、仅县级行政区代码变化5时，变更行为应是属性变更1或图形变更2' ErrorName,'{3}' RuleType from {0} 
WHERE  XZQTZLX in('0','1','5') and (BGXW not in ('1','2') or BGXW ISNULL or BGXW='')


RuleCode: 33014504000022
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为调出时，变更行为应是图形变更
Requirement: 地类图斑更新过程层行政区调整类型为调出时，变更行为应是图形变更（整图斑调出时，不提更新过程和更新层，只提变更一览表）
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为调出时，变更行为应是图形变更（整图斑调出时，不提更新过程和更新层，只提变更一览表）' ErrorName,'{3}' RuleType from {0} WHERE  XZQTZLX ='2' and (BGXW!='2' or BGXW ISNULL or BGXW='')


RuleCode: 33014504000023
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为调出2时，变更后属性应均为空
Requirement: 地类图斑更新过程层行政区调整类型为调出2时，变更后属性应均为空
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为调出2时，变更后属性应均为空' ErrorName,'{3}' RuleType from {0} WHERE XZQTZLX='2' and (BGHTBBSM NOTNULL and BGHTBBSM!='' and BGHTBBSM!=' ' or  BGHDLBM NOTNULL and BGHDLBM!='' and BGHDLBM!=' ' or BGHDLMC NOTNULL and BGHDLMC!='' and BGHDLMC!=' ' or BGHQSXZ NOTNULL and BGHQSXZ!='' and BGHQSXZ!=' ' or BGHQSDWDM NOTNULL and BGHQSDWDM!='' and BGHQSDWDM!=' ' or BGHQSDWMC NOTNULL and BGHQSDWMC!='' and BGHQSDWMC!=' ' or BGHZLDWDM NOTNULL and BGHZLDWDM!='' and BGHZLDWDM!=' ' or BGHZLDWMC NOTNULL and BGHZLDWMC!='' and BGHZLDWMC!=' ' or BGHKCDLBM NOTNULL and BGHKCDLBM!='' and BGHKCDLBM!=' ' or BGHKCXS NOTNULL and BGHKCXS!='' and BGHKCXS!=' ' or BGHKCMJ NOTNULL and BGHKCMJ!='' and BGHKCMJ!=' ' or BGHTBDLMJ NOTNULL and BGHTBDLMJ!='' and BGHTBDLMJ!=' ' or BGHGDLX NOTNULL and BGHGDLX!='' and BGHGDLX!=' ' or BGHGDPDJB NOTNULL and BGHGDPDJB!='' and BGHGDPDJB!=' ' or BGHXZDWKD NOTNULL and BGHXZDWKD!='' and BGHXZDWKD!=' ' or BGHTBXHDM NOTNULL and BGHTBXHDM!='' and BGHTBXHDM!=' ' or BGHTBXHMC NOTNULL and BGHTBXHMC!='' and BGHTBXHMC!=' ' or BGHZZSXDM NOTNULL and BGHZZSXDM!='' and BGHZZSXDM!=' ' or BGHZZSXMC NOTNULL and BGHZZSXMC!='' and BGHZZSXMC!=' ' or BGHGDDB NOTNULL and BGHGDDB!='' and BGHGDDB!=' ' or BGHFRDBS NOTNULL and BGHFRDBS!='' and BGHFRDBS!=' ' or BGHCZCSXM NOTNULL and BGHCZCSXM!='' and BGHCZCSXM!=' ' or BGHMSSM NOTNULL and BGHMSSM!='' and BGHMSSM!=' ' or BGHHDMC NOTNULL and BGHHDMC!='' and BGHHDMC!=' ' or BGHTBBH NOTNULL and BGHTBBH!='' and BGHTBBH!=' ')

RepairSQL:
update {0} set BGHTBBSM=NULL, BGHDLBM=NULL, BGHDLMC=NULL, BGHQSXZ=NULL, BGHQSDWDM=NULL, BGHQSDWMC=NULL, BGHZLDWDM=NULL, BGHZLDWMC=NULL, BGHKCDLBM=NULL, BGHKCXS=NULL, BGHKCMJ=NULL, BGHTBDLMJ=NULL, BGHGDLX=NULL, BGHGDPDJB=NULL, BGHXZDWKD=NULL, BGHTBXHDM=NULL, BGHTBXHMC=NULL, BGHZZSXDM=NULL, BGHZZSXMC=NULL, BGHGDDB=NULL, BGHFRDBS=NULL, BGHCZCSXM=NULL, BGHMSSM=NULL, BGHHDMC=NULL where BSM in ({1})


RuleCode: 33014504000024
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为新增3时，变更行为应是新增3
Requirement: 地类图斑更新过程层行政区调整类型为新增3时，变更行为应是新增3
RepairSQL: update {0} set BGXW='3' where BSM in ({1})
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为新增3时，变更行为应是新增3' ErrorName,'{3}' RuleType from {0} WHERE XZQTZLX='3' and BGXW!='3'


RuleCode: 33014504000025
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为灭失4时，变更行为应是灭失0
Requirement: 地类图斑更新过程层行政区调整类型为灭失4时，变更行为应是灭失0
RepairSQL: update {0} set BGXW='0' where BSM in ({1})
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为灭失4时，变更行为应是灭失0' ErrorName,'{3}' RuleType from {0} WHERE XZQTZLX='4' and BGXW!='0'


RuleCode: 33014504000026
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为0或5时，变更前后标识码应非空
Requirement: 地类图斑更新过程层行政区调整类型为0或5时，变更前后标识码应非空
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为0或5时，变更前后标识码应非空' ErrorName,'{3}' RuleType from {0} WHERE (XZQTZLX='0' or XZQTZLX='5') and (BGQTBBSM ISNULL or BGQTBBSM='' or  BGQTBBSM=' '  or BGHTBBSM ISNULL or BGHTBBSM='' or BGHTBBSM=' ' )


RuleCode: 33014504000027
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层行政区调整类型为调入1时，变更前标识码应非空且前6位与本区县基础库行政区代码不一致
Requirement: 地类图斑更新过程层行政区调整类型为调入1时，变更前标识码应非空且前6位与本区县基础库行政区代码不一致
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层行政区调整类型为调入1时，变更前标识码应非空且前6位与本区县基础库行政区代码不一致' ErrorName,'{3}' RuleType from {0} WHERE  XZQTZLX='1' and  ( BGQTBBSM ISNULL or BGQTBBSM='' or BGQTBBSM=' ' or SUBSTR(BGQTBBSM,1,6)='{4}' )


RuleCode: 33014504000028
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层新增特殊用地必须为建设用地
ZLLayerName: DLTBGXGC_地类图斑更新过程
Requirement:
地类图斑更新过程层变更前非205、变更后为205的变更基本单元变更后地类必须为建设用地，变更前后均为205的变更基本单元变更后地类必须为建设用地（不包含1001、1002、1003、1007、1008、1009、1109）

ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,
'{1}层变更前非205、变更后为205的变更基本单元变更后地类必须为建设用地，变更前后均为205的变更基本单元变更后地类必须为建设用地（不包含1001、1002、1003、1007、1008、1009、1109）' ErrorName,'{3}' RuleType 
from {0} WHERE (BGQCZCSXM != '205' and BGHCZCSXM = '205' and (BGHDLBM not in ('05H1','0508','0601','0602','0603','0701','0702','08H1','08H2','0809','0810','09','1004','1005','1201') or BGHDLBM ISNULL or BGHDLBM='')) 
or (BGQCZCSXM = '205' and BGHCZCSXM = '205' and (BGQDLBM not in ('05H1','0508','0601','0602','0603','0701','0702','08H1','08H2','0809','0810','09','1004','1005','1201') or BGQDLBM ISNULL or BGQDLBM='') and 
(BGHDLBM not in ('05H1','0508','0601','0602','0603','0701','0702','08H1','08H2','0809','0810','09','1004','1005','1201') or BGHDLBM ISNULL or BGHDLBM='')) 


RuleCode: 33014504000030
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层新增建设用地（不含铁路、公路、轨道交通、机场、港口码头、管道运输和水工建筑）均应标注城镇村属性码
Requirement: 地类图斑更新过程层新增建设用地（不包含1001、1002、1003、1007、1008、1009、1109）应标注城镇村属性码
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层新增建设用地（不包含1001、1002、1003、1007、1008、1009、1109）应标注城镇村属性码' ErrorName,'{3}' RuleType from {0} WHERE BGHDLBM in('05H1','0508', '0601', '0602', '0603', '0701', '0702', '08H1', '08H2', '0809', '0810', '09', '1004', '1005', '1201' )  and (BGHCZCSXM ISNULL or BGHCZCSXM='' or BGHCZCSXM=' ')


RuleCode: 33014504000031
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层新增地类1001、1002、1003、1007、1008、1009、1109不允许标注城镇村属性码
Requirement: 地类图斑更新过程层新增地类1001、1002、1003、1007、1008、1009、1109不允许标注城镇村属性码
RepairSQL: update {0} set BGHCZCSXM=NULL where BSM in ({1})
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层新增地类1001、1002、1003、1007、1008、1009、1109不允许标注城镇村属性码' ErrorName,'{3}' RuleType from {0} WHERE BGXW='3' and BGHDLBM in ('1001','1002','1003','1007','1008','1009','1109') and BGHCZCSXM NOTNULL and BGHCZCSXM!='' and BGHCZCSXM!=' '


RuleCode: 33014504000033
LayerName: 地类图斑更新过程层
RuleType: 逻辑一致性
RuleName: 地类图斑更新过程层地类1004变更前城镇村属性码为空的，应补充填写变更后城镇村属性码
Requirement: 地类图斑更新过程层地类1004变更前城镇村属性码为空的，应补充填写变更后城镇村属性码
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层地类1004变更前城镇村属性码为空的，应补充填写变更后城镇村属性码' ErrorName,'{3}' RuleType from {0} WHERE BGQDLBM = '1004' and BGQCZCSXM ISNULL and (BGHCZCSXM ISNULL or BGHCZCSXM='' or BGHCZCSXM=' ')


RuleCode: 32054309000001
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层YSDM字段取值应为2099040100
Requirement: 耕地等别更新层YSDM字段取值应为2099040100，且不能为空值
RepairSQL: update {0} set YSDM='2099040100' where BSM in ({1})
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值应为2099040100，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE  YSDM!='2099040100' or YSDM ISNULL or YSDM='' or YSDM =' '


RuleCode: 32054309000003
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层ZRDZS字段取值应大于0
Requirement: 耕地等别更新层ZRDZS字段取值应大于0，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZRDZS字段取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE  ZRDZS<=0 or ZRDZS ISNULL or ZRDZS='' or ZRDZS=' '


RuleCode: 32054309000004
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层LYDZS字段取值应大于0
Requirement: 耕地等别更新层LYDZS字段取值应大于0，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层LYDZS字段取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE  LYDZS<=0 or LYDZS ISNULL or LYDZS='' or LYDZS=' '


RuleCode: 32054309000005
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层JJDZS字段取值应大于0
Requirement: 耕地等别更新层JJDZS字段取值应大于0，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层JJDZS字段取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE  JJDZS<=0 or JJDZS ISNULL or JJDZS='' or JJDZS=' '


RuleCode: 32054309000006
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层DYBH空值检查
Requirement: 耕地等别更新层DYBH空值检查
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DYBH空值检查' ErrorName,'{3}' RuleType from {0} WHERE  DYBH ISNULL or DYBH='' or DYBH=' '


RuleCode: 32054309000007
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层ZRD字段取值应为[1..15]
Requirement: 耕地等别更新层ZRD字段取值应为[1..15]，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层ZRD字段取值应为[1..15]，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE ZRD ISNULL or ZRD<1 or ZRD>15 or ZRD='' or ZRD=' '


RuleCode: 32054309000008
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层JJD字段取值应为[1..15]
Requirement: 耕地等别更新层JJD字段取值应为[1..15]，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层JJD字段取值应为[1..15]，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE JJD ISNULL or JJD<1 or JJD>15 or JJD='' or JJD=' ' 


RuleCode: 32054309000009
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层LYD字段取值应为[1..15]
Requirement: 耕地等别更新层LYD字段取值应为[1..15]，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层LYD字段取值应为[1..15]，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE LYD ISNULL or LYD<1 or LYD>15 or LYD='' or LYD=' ' 


RuleCode: 32054309000011
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为2941，11-18位不重复
Requirement: 耕地等别更新层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为2941，11-18位不重复，BSM不允许有空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为2941，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from {0}  WHERE BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2941' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1) 


RuleCode: 32054309000012
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层DLBM取值应在0101、0102、0103范围内
Requirement: 耕地等别更新层DLBM取值应在0101、0102、0103范围内
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM取值应在0101、0102、0103范围内' ErrorName,'{3}' RuleType from {0} WHERE DLBM not in ('0101','0102','0103') or DLBM ISNULL


RuleCode: 32054309000014
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层KCDLBM取值应在1203、空范围内
Requirement: 耕地等别更新层KCDLBM取值应在1203、空范围内
RepairSQL: update {0} set KCDLBM=NULL where BSM in ({1})
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层KCDLBM取值应在1203、空范围内' ErrorName,'{3}' RuleType from {0} WHERE KCDLBM!='1203' AND KCDLBM NOTNULL and KCDLBM!='' and KCDLBM!=' '


RuleCode: 32054309000015
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层KCDLMJ应大于等于0
Requirement: 耕地等别更新层KCDLMJ应大于等于0
RepairSQL: update {0} set KCDLMJ=0 where BSM in ({1})
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层KCDLMJ应大于等于0' ErrorName,'{3}' RuleType from {0} WHERE KCDLMJ<0 or KCDLMJ ISNULL


RuleCode: 32054309000016
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层TBDLMJ应大于0
Requirement: 耕地等别更新层TBDLMJ应大于0 ，且不能为空值
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBDLMJ应大于0 ，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE TBDLMJ<=0 or TBDLMJ ISNULL or TBDLMJ='' or TBDLMJ=' '


RuleCode: 32054309000017
LayerName: 耕地等别更新层
RuleType: 值域规范性
RuleName: 耕地等别更新层GXSJ字段取值符合规范要求
Requirement: 耕地等别更新层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022
RepairSQL: update {0} set GXSJ=2022+117*366+82 where BSM in ({1})
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022' ErrorName,'{3}' RuleType from {0} WHERE STRFTIME('%Y',GXSJ)!='2022' or GXSJ ISNULL or GXSJ='' or GXSJ =' '


RuleCode: 32054426000001
LayerName: 光伏板区更新层
RuleType: 值域规范性
RuleName: 光伏板区更新层要素代码（YSDM）应为2099070100
Requirement: 光伏板区更新层要素代码（YSDM）应为2099070100，且不能为空值
RepairSQL: update {0} set YSDM='2099070100' where BSM in ({1})
ZLLayerName: GFBQGX_光伏板区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层要素代码（YSDM）应为2099070100，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE YSDM!='2099070100' or YSDM ISNULL  or YSDM='' or YSDM =' '


RuleCode: 32054426000002
LayerName: 光伏板区更新层
RuleType: 值域规范性
RuleName: 光伏板区更新层区域面积（QYMJ）应大于0
Requirement: 光伏板区更新层区域面积（QYMJ）应大于0，且不能为空值
ZLLayerName: GFBQGX_光伏板区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层区域面积（QYMJ）应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE QYMJ<=0 or QYMJ ISNULL or QYMJ='' or QYMJ=' '


RuleCode: 32054426000003
LayerName: 光伏板区更新层
RuleType: 值域规范性
RuleName: 光伏板区更新层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2971，11-18位不重复
Requirement: 光伏板区更新层标识码BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2971，11-18位不重复，BSM不允许有空值
ZLLayerName: GFBQGX_光伏板区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层标识码BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2971，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType  from {0} WHERE 
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2971' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054426000004
LayerName: 光伏板区更新层
RuleType: 值域规范性
RuleName: 光伏板区更新层GXSJ字段取值符合规范要求
Requirement: 光伏板区更新层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022
RepairSQL: update {0} set GXSJ=2022+117*366+82 where BSM in ({1})
ZLLayerName: GFBQGX_光伏板区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022' ErrorName,'{3}' RuleType from {0}  WHERE  STRFTIME('%Y',GXSJ)!='2022' or GXSJ ISNULL or GXSJ='' or GXSJ =' '


RuleCode: 32054408000001
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层PZRQ字段应不为空
Requirement: 临时用地更新层PZRQ字段应不为空
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层PZRQ字段应不为空' ErrorName,'{3}' RuleType from {0}  WHERE  PZRQ ISNULL or PZRQ='' or PZRQ=' '


RuleCode: 32054408000002
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层YSDM字段取值应为2099010100
Requirement: 临时用地更新层YSDM字段取值应为2099010100，且不能为空值
RepairSQL: update {0} set YSDM='2099010100' where BSM in ({1})
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值应为2099010100，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE  YSDM!='2099010100' or YSDM ISNULL  or YSDM='' or YSDM =' '


RuleCode: 32054408000003
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层TBMJ字段取值应大于0
Requirement: 临时用地更新层TBMJ字段取值应大于0，且不能为空值
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层TBMJ字段取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE TBMJ<=0 or TBMJ ISNULL or TBMJ='' or TBMJ=' '


RuleCode: 32054408000004
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层PZMJ字段取值应大于0
Requirement: 临时用地更新层PZMJ字段取值应大于0，且不能为空值
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层PZMJ字段取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE PZMJ<=0 or PZMJ ISNULL or PZMJ='' or PZMJ=' '


RuleCode: 32054408000005
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层YTFL字段取值应在G、D、Q范围内
Requirement: 临时用地更新层YTFL字段取值应在G、D、Q范围内
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YTFL字段取值应在G、D、Q范围内' ErrorName,'{3}' RuleType from {0}  WHERE  YTFL not in ('G','D','Q') or YTFL ISNULL


RuleCode: 32054408000006
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层JTXMYT字段取值应在JT、SL、NY、GX、KC、QT范围内
Requirement: 临时用地更新层JTXMYT字段取值应在JT、SL、NY、GX、KC、QT范围内
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层JTXMYT字段取值应在JT、SL、NY、GX、KC、QT范围内' ErrorName,'{3}' RuleType from {0}  WHERE JTXMYT not in('JT','SL','NY','GX','KC','QT') or JTXMYT ISNULL


RuleCode: 32054408000007
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层BSM字段取值符合规范要求，前6位应为县级行政区代码，7-10位为2911，11-18位不重复
Requirement: 临时用地更新层BSM字段取值符合规范要求，前6位应为县级行政区代码，7-10位为2911，11-18位不重复，BSM不允许有空值
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，前6位应为县级行政区代码，7-10位为2911，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType  from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2911' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054408000010
LayerName: 临时用地更新层
RuleType: 值域规范性
RuleName: 临时用地更新层GXSJ字段取值符合规范要求
Requirement: 临时用地更新层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022
RepairSQL: update {0} set GXSJ=2022+117*366+82 where BSM in ({1})
ZLLayerName: LSYDGX_临时用地更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层GXSJ字段取值符合规范要求，且不能为空值，年份应为2022' ErrorName,'{3}' RuleType from {0}  WHERE STRFTIME('%Y',GXSJ)!='2022' or GXSJ ISNULL or GXSJ='' or GXSJ =' '


RuleCode: 32054330000003
LayerName: 路面范围更新层
RuleType: 值域规范性
RuleName: 路面范围更新层MJ取值应大于0
Requirement: 路面范围更新层MJ取值应大于0，且不能为空值
ZLLayerName: LMFWGX_路面范围更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层MJ取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE MJ<=0 or MJ ISNULL or MJ='' or MJ=' '


RuleCode: 32054330000004
LayerName: 路面范围更新层
RuleType: 值域规范性
RuleName: 路面范围更新层DLBM取值应为1001、1003
Requirement: 路面范围更新层DLBM取值应为1001、1003
ZLLayerName: LMFWGX_路面范围更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DLBM取值应为1001、1003' ErrorName,'{3}' RuleType from {0}  WHERE DLBM not in ('1001','1003') or DLBM ISNULL


RuleCode: 32054330000006
LayerName: 路面范围更新层
RuleType: 值域规范性
RuleName: 路面范围更新层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为29A1，11-18位不重复
Requirement: 路面范围更新层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为29A1，11-18位不重复
ZLLayerName: LMFWGX_路面范围更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为29A1，11-18位不重复' ErrorName,'{3}' RuleType  from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='29A1' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054330000007
LayerName: 路面范围更新层
RuleType: 值域规范性
RuleName: 路面范围更新层YSDM字段取值应为2099100100
Requirement: 路面范围更新层YSDM字段取值应为2099100100
RepairSQL: update {0} set YSDM='2099100100' where BSM in ({1})
ZLLayerName: LMFWGX_路面范围更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值应为2099100100'ErrorName,'{3}' RuleType from {0}  WHERE YSDM!='2099100100' or YSDM ISNULL  or YSDM='' or YSDM =' '


RuleCode: 32054427000001
LayerName: 推土区更新层
RuleType: 值域规范性
RuleName: 推土区更新层要素代码（YSDM）应为2099080100
Requirement: 推土区更新层要素代码（YSDM）应为2099080100，且不能为空值
RepairSQL: update {0} set YSDM='2099080100' where BSM in ({1})
ZLLayerName: TTQGX_推土区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层要素代码（YSDM）应为2099080100，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE YSDM!='2099080100' or YSDM ISNULL  or YSDM='' or YSDM =' '


RuleCode: 32054427000002
LayerName: 推土区更新层
RuleType: 值域规范性
RuleName: 推土区更新层推土区面积（TTQMJ）应大于0
Requirement: 推土区更新层推土区面积（TTQMJ）应大于0，且不能为空值
ZLLayerName: TTQGX_推土区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层推土区面积（TTQMJ）应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE TTQMJ<=0 or TTQMJ ISNULL or TTQMJ='' or TTQMJ=' '


RuleCode: 32054427000003
LayerName: 推土区更新层
RuleType: 值域规范性
RuleName: 推土区更新层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2981，11-18位不重复
Requirement: 推土区更新层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2981，11-18位不重复，BSM不允许有空值
ZLLayerName: TTQGX_推土区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段符合规范要求，前6位应为县级行政区代码，7-10位为2981，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='2981' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054301000001
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层YSDM字段取值应为1000600100
Requirement: 行政区更新层YSDM字段取值应为1000600100，且不能为空值
RepairSQL: update {0} set YSDM='1000600100' where BSM in ({1})
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值应为1000600100，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE  YSDM!='1000600100' or YSDM ISNULL  or YSDM='' or YSDM =' '


RuleCode: 32054301000002
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层JSMJ字段取值应大于0
Requirement: 行政区更新层JSMJ字段取值应大于0，且不能为空值
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层JSMJ字段取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0} WHERE  JSMJ<=0  or JSMJ ISNULL or JSMJ='' or JSMJ=' '


RuleCode: 32054301000003
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层DCMJ字段取值应大于0
Requirement: 行政区更新层DCMJ字段取值应大于0，且不能为空值
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层DCMJ字段取值应大于0，且不能为空值' ErrorName,'{3}' RuleType from {0}  WHERE  DCMJ<=0  or DCMJ ISNULL or DCMJ='' or DCMJ=' '


RuleCode: 32054301000004
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层MSSM字段取值应为'00'或'01'
Requirement: 行政区更新层MSSM字段取值应为'00'或'01'，'00'代表非海岛区域，'01'代表海岛区域
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层MSSM字段取值应为00或01，00代表非海岛区域，01代表海岛区域' ErrorName,'{3}' RuleType from {0}  WHERE MSSM not in ('00','01') or MSSM ISNULL


RuleCode: 32054301000005
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层XZQDM字段应不为空，且字段长度为9
Requirement: 行政区更新层XZQDM字段应不为空，且字段长度为9
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层XZQDM字段应不为空，且字段长度为9' ErrorName,'{3}' RuleType from {0}  WHERE LENGTH(XZQDM)!=9 or XZQDM ISNULL


RuleCode: 32054301000006
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为1210，11-18位不重复
Requirement: 行政区更新层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为1210，11-18位不重复，BSM不允许有空值
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为1210，11-18位不重复，BSM不允许有空值' ErrorName,'{3}' RuleType from {0}  WHERE  
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1210' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054301000007
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层XZQDM前6位应为县级行政区代码
Requirement: 行政区更新层XZQDM前6位应为县级行政区代码
RepairSQL: update {0} set XZQDM=REPLACE(XZQDM,SUBSTR(XZQDM,1,6),'{2}') where BSM in ({1})
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层XZQDM前6位应为县级行政区代码' ErrorName,'{3}' RuleType from {0}  WHERE SUBSTR(XZQDM,1,6)!='{4}'


RuleCode: 32054301000008
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层XZQMC字段取值应不能为空
Requirement: 行政区更新层XZQMC字段取值应不能为空
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层XZQMC字段取值应不能为空' ErrorName,'{3}' RuleType from {0}  WHERE XZQMC ISNULL or XZQMC='' or XZQMC=' '


RuleCode: 32054301000011
LayerName: 行政区更新层
RuleType: 值域规范性
RuleName: 行政区更新层XZQMC不能存在特殊字符
Requirement: 行政区更新层XZQMC不能存在特殊字符（不能以字母开头，不能全为字母或全为数字或出现特殊字符）
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select XZQMC MC, OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,' {1}层XZQMC不能存在特殊字符' ErrorName,'{3}' RuleType from {0}


RuleCode: 32054501000001
LayerName: 行政区更新过程层
RuleType: 值域规范性
RuleName: 行政区更新过程层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为1211，11-18位不重复
Requirement: 行政区更新过程层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为1211，11-18位不重复
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM,'{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为1211，11-18位不重复' ErrorName,'{3}' RuleType from {0} WHERE 
BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1211' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1)


RuleCode: 32054501000002
LayerName: 行政区更新过程层
RuleType: 值域规范性
RuleName: 行政区更新过程层BGMJ取值应大于0
Requirement: 行政区更新过程层BGMJ取值应大于0，且不存在空值
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BGMJ取值应大于0，且不存在空值' ErrorName,'{3}' RuleType from {0}  WHERE BGMJ<=0 or BGMJ ISNULL or BGMJ='' or BGMJ=' '


RuleCode: 33014501000007
LayerName: 行政区更新过程层
RuleType: 逻辑一致性
RuleName: 行政区更新过程层变更前后同一区县的属性变更单元，变更前标识码与变更后标识码应一致
Requirement: 行政区更新过程层变更行为是属性变更且变更前后属于同一区县，变更前标识码与变更后标识码应一致
RepairSQL: update {0} set BGHBSM=BGQBSM where BSM in ({1})
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更且变更前后属于同一区县，变更前标识码与变更后标识码应一致' ErrorName,'{3}' RuleType from {0} 
WHERE BGXW='1' and BGQXZQDM = BGHXZQDM AND BGQXZQMC=BGHXZQMC and (BGQBSM!=BGHBSM or BGQBSM ISNULL or BGQBSM='' or BGQBSM=' ' or BGHBSM ISNULL or BGHBSM='' or BGHBSM=' ')


RuleCode: 33014501000008
LayerName: 行政区更新过程层
RuleType: 逻辑一致性
RuleName: 行政区更新过程层变更行为是属性变更，变更前后对应属性项至少存在一项不一致
Requirement: 行政区更新过程层变更行为是属性变更，变更前后对应属性项（XZQDM、XZQMC、HDMC、DCMJ、MSSM、BZ）至少存在一项不一致
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是属性变更，变更前后对应属性项（XZQDM、XZQMC、HDMC、DCMJ、MSSM、BZ）至少存在一项不一致' ErrorName,'{3}' RuleType from {0}  
WHERE BGXW='1' and (BGQXZQDM==BGHXZQDM or BGQXZQDM ISNULL and BGHXZQDM ISNULL) and (BGQXZQMC==BGHXZQMC or BGQXZQMC ISNULL and BGHXZQMC ISNULL) and (BGQHDMC =BGHHDMC or BGQHDMC ISNULL and BGHHDMC ISNULL) and (BGQMSSM=BGHMSSM or BGQMSSM ISNULL and BGHMSSM ISNULL) and (BGQBZ=BGHBZ or BGQBZ ISNULL and BGHBZ ISNULL)


RuleCode: 33014501000009
LayerName: 行政区更新过程层
RuleType: 逻辑一致性
RuleName: 行政区更新过程层属性变更，更新过程层内变更前标识码应唯一且变更后标识码唯一
Requirement: 行政区更新过程层属性变更，图形不能发生变化，更新过程层内变更前标识码应唯一且变更后标识码唯一
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层属性变更，更新过程层内变更前标识码应唯一且变更后标识码唯一' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='1'  
 and BGQBSM in 
 (
 select  BGQBSM from {0} WHERE  BGXW='1' GROUP BY BGQBSM HAVING count(BGQBSM)>1
 ) 
 or  BGHBSM in 
 (
 select  BGHBSM from {0} WHERE  BGXW='1' GROUP BY BGHBSM HAVING count(BGHBSM)>1
 ) 


RuleCode: 33014501000010
LayerName: 行政区更新过程层
RuleType: 逻辑一致性
RuleName: 行政区更新过程层图形变更（不含调入），更新过程层内变更前标识码应不唯一或变更后标识码不唯一
ZLLayerName: XZQGXGC_行政区更新过程
Requirement:
行政区更新过程层图形变更（不含调入），图形必须发生变化，更新过程层内变更前标识码应不唯一或变更后标识码不唯一；针对调出时已经发生图形变更的行政区，调入后不管是否再次图形变更，调入县应记录变更行为为图形变更


RuleCode: 33014501000011
LayerName: 行政区更新过程层
RuleType: 逻辑一致性
RuleName: 行政区更新过程层变更行为是新增3时，变更前属性应均为空
Requirement: 行政区更新过程层变更行为是新增3时，变更前属性应均为空
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是新增3时，变更前属性应均为空' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='3' and (BGQBSM NOTNULL and BGQBSM!='' and BGQBSM!=' ' or BGQXZQDM NOTNULL and BGQXZQDM!='' and BGQXZQDM!=' ' or BGQXZQMC NOTNULL and BGQXZQMC!='' and BGQXZQMC!=' ' or BGQDCMJ NOTNULL and BGQDCMJ!='' and BGQDCMJ!=' ' or BGQMSSM NOTNULL and BGQMSSM!='' and BGQMSSM!=' ' or BGQHDMC NOTNULL and BGQHDMC!='' and BGQHDMC!=' ' or BGQBZ NOTNULL and BGQBZ!='' and BGQBZ!=' ')

RepairSQL:
update {0} set BGQBSM=NULL, BGQXZQDM=NULL, BGQXZQMC=NULL, BGQDCMJ=NULL, BGQMSSM=NULL, BGQHDMC=NULL, BGQBZ=NULL where BSM in ({1})


RuleCode: 33014501000012
LayerName: 行政区更新过程层
RuleType: 逻辑一致性
RuleName: 行政区更新过程层变更行为是灭失0时，变更后属性应均为空
Requirement: 行政区更新过程层变更行为是灭失0时，变更后属性应均为空
ZLLayerName: XZQGXGC_行政区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为是灭失0时，变更后属性应均为空' ErrorName,'{3}' RuleType from {0}  WHERE  BGXW='0' and (BGHBSM NOTNULL and BGHBSM!='' and BGHBSM!=' ' or BGHXZQDM NOTNULL and BGHXZQDM!='' and BGHXZQDM!=' ' or BGHXZQMC NOTNULL and BGHXZQMC!='' and BGHXZQMC!=' ' or BGHDCMJ NOTNULL and BGHDCMJ!='' and BGHDCMJ!=' ' or BGHMSSM NOTNULL and BGHMSSM!='' and BGHMSSM!=' ' or BGHHDMC NOTNULL and BGHHDMC!='' and BGHHDMC!=' ' or BGHBZ NOTNULL and BGHBZ!='' and BGHBZ!=' ')

RepairSQL:
update {0} set BGHBSM=NULL, BGHXZQDM=NULL, BGHXZQMC=NULL, BGHDCMJ=NULL, BGHMSSM=NULL, BGHHDMC=NULL, BGHBZ=NULL where BSM in ({1})


RuleCode: 32054302000001
LayerName: 行政区界线更新层
RuleType: 值域规范性
RuleName: 行政区界线更新层YSDM字段取值应为1000600200
Requirement: 行政区界线更新层YSDM字段取值应为1000600200
RepairSQL: update {0} set YSDM='1000600200' where BSM in ({1})
ZLLayerName: XZQJXGX_行政区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层YSDM字段取值应为1000600200' ErrorName,'{3}' RuleType from {0} WHERE YSDM!='1000600200' or YSDM ISNULL  or YSDM='' or YSDM =' '


RuleCode: 32054302000002
LayerName: 行政区界线更新层
RuleType: 值域规范性
RuleName: 行政区界线更新层JXLX字段取值应在界线类型代码表中有对应项
Requirement: 行政区界线更新层JXLX字段取值应在界线类型代码表中有对应项
ZLLayerName: XZQJXGX_行政区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层JXLX字段取值应在界线类型代码表中有对应项' ErrorName,'{3}' RuleType from {0} WHERE 
JXLX not in (select CODE from Sys_DicDetail WHERE OWNERDIC=(SELECT ID from Sys_DicManage WHERE ALIASNAME='JXLX')) or JXLX ISNULL or JXLX='' or JXLX=' '


RuleCode: 32054302000003
LayerName: 行政区界线更新层
RuleType: 值域规范性
RuleName: 行政区界线更新层JXXZ字段取值应在界线性质代码表中有对应项
Requirement: 行政区界线更新层JXXZ字段取值应在界线性质代码表中有对应项
ZLLayerName: XZQJXGX_行政区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层JXXZ字段取值应在界线性质代码表中有对应项' ErrorName,'{3}' RuleType from {0} WHERE 
JXXZ not in (select CODE from Sys_DicDetail WHERE OWNERDIC=(SELECT ID from Sys_DicManage WHERE ALIASNAME='JXXZ')) or JXXZ ISNULL or JXXZ='' or JXXZ=' '


RuleCode: 32054302000004
LayerName: 行政区界线更新层
RuleType: 值域规范性
RuleName: 行政区界线更新层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为1220，11-18位不重复
Requirement: 行政区界线更新层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为1220，11-18位不重复，BSM不允许有空值（只检查无变化和新增部分）
ZLLayerName: XZQJXGX_行政区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM字段取值符合规范要求，标识码前6位应为县级行政区代码，7-10位为1220，11-18位不重复，BSM不允许有空值（只检查无变化和新增部分）' ErrorName,'{3}' RuleType from {0}  WHERE  
 (BGXW='3' or BGXW='4') and (BSM ISNULL or BSM='' or BSM =' ' or BSM='	' or length(BSM)!=18 or  SUBSTR(BSM,0,7)!='{4}' or SUBSTR(BSM,7,4)!='1220' or SUBSTR(BSM,11,8) in (select  SUBSTR(BSM,11,8) from  {0} GROUP BY SUBSTR(BSM,11,8) HAVING COUNT(SUBSTR(BSM,11,8))>1))


RuleCode: 32054302000006
LayerName: 行政区界线更新层
RuleType: 值域规范性
RuleName: 行政区界线更新层变更行为取值应为0（灭失）、3（新增）、4（无变化）
Requirement: 行政区界线更新层变更行为取值应为0（灭失）、3（新增）、4（无变化）
ZLLayerName: XZQJXGX_行政区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层变更行为取值应为0（灭失）、3（新增）、4（无变化）' ErrorName,'{3}' RuleType from {0}  WHERE BGXW not in ('0','3','4') or BGXW ISNULL or BGXW='' or BGXW=' '


RuleCode: 32074428000001
LayerName: 拆除未尽区更新层
RuleType: 图形拓扑
RuleName: 拆除未尽区更新层不允许存在碎片多边形
Requirement: 拆除未尽区更新层不允许存在碎片多边形(要求面积大于30平方米）
ZLLayerName: CCWJQGX_拆除未尽区更新
ImplementSQL:
 select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层不存在碎片多边形(要求面积大于30平方米）' ErrorName,'{3}' RuleType from {0} WHERE SHAPE_Area<30; 


RuleCode: 32074310000001
LayerName: 村级调查区更新层
RuleType: 图形拓扑
RuleName: 村级调查区更新层不允许存在碎片多边形
Requirement: 村级调查区更新层不能存在碎片多边形(要求面积大于200平方米）
ZLLayerName: CJDCQGX_村级调查区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层不能存在碎片多边形(要求面积大于200平方米）' ErrorName,'{3}' RuleType from {0} WHERE SHAPE_Area<200; 


RuleCode: 32074510000001
LayerName: 村级调查区更新过程层
RuleType: 图形拓扑
RuleName: 村级调查区更新过程层不允许存在碎片多边形
Requirement: 村级调查区更新过程层不允许存在碎片多边形(要求面积大于0.1平方米）
ZLLayerName: CJDCQGXGC_村级调查区更新过程
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层不存在碎片多边形(要求面积大于0.1平方米）' ErrorName,'{3}' RuleType from {0} WHERE SHAPE_Area<0.1; 


RuleCode: 32074425000001
LayerName: 村级调查区界线更新层
RuleType: 图形拓扑
RuleName: 村级调查区界线更新层要素不允许存在碎线
Requirement: 村级调查区界线更新层要素不允许存在碎线(要求长度大于0.2米）
ZLLayerName: CJDCQJXGX_村级调查区界线更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层要素不存在碎线(要求长度大于0.2米）' ErrorName,'{3}' RuleType from {0} WHERE SHAPE_Length<0.2; 


RuleCode: 32074304000001
LayerName: 地类图斑更新层
RuleType: 图形拓扑
RuleName: 地类图斑更新层不允许存在碎片多边形
Requirement: 地类图斑更新层不允许存在碎片多边形(要求面积大于30平方米），不检查以下地类1001,1002,1003,1004,1006,1009,1101,1107,1107A,1203
ZLLayerName: DLTBGX_地类图斑更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层不存在碎片多边形(要求面积大于30平方米），不检查以下地类1001,1002,1003,1004,1006,1009,1101,1107,1107A,1203' ErrorName,'{3}' RuleType from {0} WHERE SHAPE_Area<30 and DLBM NOT IN('1001','1002','1003','1004','1006','1009','1101','1107','1107A','1203'); 


RuleCode: 32074504000001
LayerName: 地类图斑更新过程层
RuleType: 图形拓扑
RuleName: 地类图斑更新过程层不允许存在碎片多边形
Requirement: 地类图斑更新过程层不允许存在碎片多边形(要求面积大于0.01平方米）
ZLLayerName: DLTBGXGC_地类图斑更新过程
ImplementSQL:
 select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层不存在碎片多边形(要求面积大于0.01平方米）' ErrorName,'{3}' RuleType from {0} WHERE SHAPE_Area<0.01; 


RuleCode: 32074309000001
LayerName: 耕地等别更新层
RuleType: 图形拓扑
RuleName: 耕地等别更新层不允许存在碎片多边形
Requirement: 耕地等别更新层不允许存在碎片多边形(要求面积大于30平方米）
ZLLayerName: GDDBGX_耕地等别更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层不存在碎片多边形(要求面积大于30平方米）' ErrorName,'{3}' RuleType from {0} WHERE SHAPE_Area<30; 


RuleCode: 32074301000001
LayerName: 行政区更新层
RuleType: 图形拓扑
RuleName: 行政区更新层不允许存在碎片多边形
Requirement: 行政区更新层不允许存在碎片多边形(要求面积大于200平方米）
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层不存在碎片多边形(要求面积大于200平方米）' ErrorName,'{3}' RuleType from {0} WHERE SHAPE_Area<200; 


RuleCode: 33014301000002
LayerName: 行政区更新层
RuleType: 图形拓扑
RuleName: 行政区更新层HDMC与MSSM一致性检查
Requirement: 行政区更新层描述说明MSSM为00时，不能填写海岛名称；描述说明MSSM为01时，必须填写海岛名称
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select OBJECTID, BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层HDMC与MSSM一致性检查' ErrorName,'{3}' RuleType from {0} 
WHERE MSSM='00' and HDMC NOTNULL or MSSM='01' and (HDMC ISNULL or HDMC='' or HDMC=' ')


RuleCode: 33024301000002
LayerName: 行政区更新层
RuleType: 图形拓扑
RuleName: 行政区更新层相同行政区代码、描述说明的多个行政区调查面积(DCMJ）相等
Requirement: 行政区更新层相同行政区代码、描述说明的多个行政区调查面积(DCMJ）相等
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select A.OBJECTID, A.BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层相同坐落单位代码、描述说明的多个调查区调查面积（DCMJ）相等' ErrorName,'{3}' RuleType 
from {0} A,(SELECT XZQDM,MSSM,DCMJ FROM {0} GROUP by XZQDM,MSSM HAVING count(DCMJ)>1) B where A.XZQDM=B.XZQDM and A.MSSM=B.MSSM and A.DCMJ!=B.DCMJ


RuleCode: 33034301450101
LayerName: 行政区更新层
RuleType: 图形拓扑
RuleName: 行政区更新层BSM与更新过程层BGHBSM相同的记录，变更后各字段与更新层对应各字段属性一致
Requirement: 行政区更新层BSM与更新过程层BGHBSM相同的记录，变更后各字段与更新层对应各字段属性一致
ZLLayerName: XZQGX_行政区更新
ImplementSQL:
select a.OBJECTID, a.BSM, '{0}' ErrorLayer,'{2}' ErrorCode,'{1}层BSM与更新过程层BGHBSM相同的记录，变更后各字段与更新层对应各字段属性一致' ErrorName,'{3}' RuleType from
 XZQGX a ,XZQGXGC b on a.BSM=b.BGHBSM WHERE XZQDM!=BGHXZQDM or XZQMC!=BGHXZQMC or DCMJ!=BGHDCMJ or MSSM!=BGHMSSM or HDMC!=BGHHDMC or BZ!=BGHBZ


