select id, name, subject_id, subject_name, certificate, private_key, issuer, possessor, valid_time, valid_flag, del_flag, create_by, creator_id, create_time, update_by, update_time, remark from ca_cert
and subject_id = #{subjectId}
and name like '%' || #{name} || '%'
and subject_name like '%' || #{subjectName} || '%'
and name like concat('%', #{name}, '%')
and subject_name like concat('%', #{subjectName}, '%')
and certificate = #{certificate}
and private_key = #{privateKey}
and issuer = #{issuer}
and possessor = #{possessor}
and valid_time = #{validTime}
and valid_flag = #{validFlag}
and creator_id = #{creatorId}
where id = #{id}
insert into ca_cert name, subject_id, subject_name, certificate, private_key, issuer, possessor, valid_time, valid_flag, del_flag, create_by, creator_id, create_time, update_by, update_time, remark, #{name}, #{subjectId}, #{subjectName}, #{certificate}, #{privateKey}, #{issuer}, #{possessor}, #{validTime}, #{validFlag}, #{delFlag}, #{createBy}, #{creatorId}, #{createTime}, #{updateBy}, #{updateTime}, #{remark},
update ca_cert name = #{name}, subject_id = #{subjectId}, subject_name = #{subjectName}, certificate = #{certificate}, private_key = #{privateKey}, issuer = #{issuer}, possessor = #{possessor}, valid_time = #{validTime}, 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_cert where id = #{id}
delete from ca_cert where id in #{id}