select COUNT(w.OID) count
from ${tableName} w
join PL_CODE_ALLCODE c on w.OID = c.CREATECODEOID
where c.CREATECODEBTM = #{btm}
and c.CODERULEOID = #{oid}
and w.LASTR = '1'
and w.LASTV = '1'
${inSql}
${inSql}
select COUNT(*) FROM ${tableName}
${inSql}
${inSql}
${inSql}
${inSql}
insert into ${tableName}
(
${key}
)
select
#{value}
from dual
delete from ${tableName} where oid in (${oids})
BEGIN
update ${tableName}
${key} = #{value}
where oid = #{columnMap.oid}
;
END;
select max(revisionSeq) + 1 REVISIONSEQ,
max(RevisionValue) + 1 REVISIONVAL,
max(VersionSeq) + 1 VERSIONSEQ,
max(VersionValue) + 1 VERSIONVAL
from ${tableName}
where nameoid = #{nameoid}
select max(revisionSeq) REVISIONSEQ,
max(RevisionValue) REVISIONVAL,
max(VersionSeq) VERSIONSEQ,
max(VersionValue) VERSIONVAL
from ${tableName}
where nameoid = #{nameoid}