@@ -47,7 +47,7 @@
<select id="queryDeleteBw" parameterType="java.lang.String" resultMap="bwResultMap">
select
<include refid="bwsql"/>
- from GK_BASIC_JSJY_JYR_BW where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9'
+ from GK_BASIC_JSJY_JYR_BW where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9' and aqid is not null
</select>
<update id="updateDeleteStatus" parameterType="java.util.Map">
@@ -51,7 +51,7 @@
<select id="queryDeleteCg" resultType="map">
<include refid="cgsql"/>
- from GK_BASIC_JSJY_JYR_CG where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9'
+ from GK_BASIC_JSJY_JYR_CG where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9' and aqid is not null
@@ -48,7 +48,7 @@
<select id="queryDeleteCk" parameterType="java.lang.String" resultMap="ckResultMap">
<include refid="cksql"/>
- from GK_BASIC_JSJY_JYR_CK where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9'
+ from GK_BASIC_JSJY_JYR_CK where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9' and aqid is not null
@@ -45,7 +45,7 @@
<select id="queryDeleteGq" resultMap="gqResultMap">
<include refid="gqsql"/>
- from GK_BASIC_JSJY_GK_GQ where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9'
+ from GK_BASIC_JSJY_GK_GQ where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9' and aqid is not null
@@ -49,7 +49,7 @@
<select id="queryDeleteJyr" resultMap="jyrResultMap" parameterType="java.lang.String">
<include refid="jyrsql"/>
- from GK_BASIC_JSJY_JYR where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9'
+ from GK_BASIC_JSJY_JYR where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9' and aqid is not null
<select id="queryDeleteDc" parameterType="java.lang.String" resultMap="jyrdcResultMap">
<include refid="jyrdcsql"/>
- from GK_BASIC_JSJY_JYR_DC where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9'
+ from GK_BASIC_JSJY_JYR_DC where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9' and aqid is not null
@@ -42,7 +42,7 @@
<select id="queryDeleteMt" parameterType="java.lang.String" resultMap="mtResultMap">
<include refid="mtsql"/>
- from GK_BASIC_JSJY_JYR_MT where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9'
+ from GK_BASIC_JSJY_JYR_MT where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9' and aqid is not null
<select id="querySyncMt" parameterType="java.lang.String" resultMap="mtResultMap">
@@ -41,7 +41,7 @@
<select id="queryDeleteRy" resultMap="ryResultMap">
<include refid="rysql"/>
- from GK_BASIC_JSJY_JYR_RY where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9'
+ from GK_BASIC_JSJY_JYR_RY where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9' and aqid is not null
<select id="queryDeleteSssb" resultMap="sssbResultMap">
<include refid="sssbsql"/>
- from GK_BASIC_JSJY_JYR_SSSB where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9'
+ from GK_BASIC_JSJY_JYR_SSSB where SFTB = 'Y' and (TBZT='N' or TBZT='Z') and RECORD_STATUS = '9' and aqid is not null