select id, name, cn, ou, o, l, st, c, certificate, private_key, valid_flag, del_flag, create_by, creator_id, create_time, update_by, update_time, remark from ca_subject
and cn = #{cn}
and ou = #{ou}
and o = #{o}
and l = #{l}
and st = #{st}
and c = #{c}
and certificate = #{certificate}
and private_key = #{privateKey}
and valid_flag = #{validFlag}
and creator_id = #{creatorId}
and name like '%' || #{name} || '%'
and name like concat('%', #{name}, '%')
where id = #{id}
insert into ca_subject name, cn, ou, o, l, st, c, certificate, private_key, valid_flag, del_flag, create_by, creator_id, create_time, update_by, update_time, remark, #{name}, #{cn}, #{ou}, #{o}, #{l}, #{st}, #{c}, #{certificate}, #{privateKey}, #{validFlag}, #{delFlag}, #{createBy}, #{creatorId}, #{createTime}, #{updateBy}, #{updateTime}, #{remark},
update ca_subject name = #{name}, cn = #{cn}, ou = #{ou}, o = #{o}, l = #{l}, st = #{st}, c = #{c}, certificate = #{certificate}, private_key = #{privateKey}, valid_flag = #{validFlag}, del_flag = #{delFlag}, create_by = #{createBy}, creator_id = #{creatorId}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id}
delete from ca_subject where id = #{id}
delete from ca_subject where id in #{id}