develop Conflicts: src/main/resources/messages/message_en.properties src/main/resources/messages/message_ru.properties src/main/resources/messages/message_zh_CN.properties 证书颁发机构及 吊销列表功能提交
800 lines
30 KiB
XML
800 lines
30 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
<mapper namespace="com.nis.web.dao.configuration.PxyObjKeyringDao" >
|
|
|
|
<resultMap id="PxyObjKeyringMap" type="com.nis.domain.configuration.PxyObjKeyring" >
|
|
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
|
<result column="cfg_desc" property="cfgDesc" jdbcType="VARCHAR" />
|
|
<result column="keyring_type" property="keyringType" jdbcType="VARCHAR" />
|
|
<result column="private_key_file" property="privateKeyFile" jdbcType="VARCHAR" />
|
|
<result column="public_key_file" property="publicKeyFile" jdbcType="VARCHAR" />
|
|
<result column="expire_after" property="expireAfter" jdbcType="INTEGER" />
|
|
<result column="public_key_algo" property="publicKeyAlgo" jdbcType="VARCHAR" />
|
|
<result column="crl" property="crl" jdbcType="VARCHAR" />
|
|
<result column="issuer" property="issuer" jdbcType="VARCHAR" />
|
|
<result column="subject" property="subject" jdbcType="VARCHAR" />
|
|
<result column="not_before_time" property="notBeforeTime" jdbcType="VARCHAR" />
|
|
<result column="not_after_time" property="notAfterTime" jdbcType="VARCHAR" />
|
|
<result column="cn" property="cn" jdbcType="VARCHAR" />
|
|
<result column="alt_name" property="altName" jdbcType="VARCHAR" />
|
|
<result column="action" property="action" jdbcType="INTEGER" />
|
|
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
|
|
<result column="is_audit" property="isAudit" jdbcType="INTEGER" />
|
|
<result column="creator_id" property="creatorId" jdbcType="INTEGER" />
|
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
<result column="editor_id" property="editorId" jdbcType="INTEGER" />
|
|
<result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
|
|
<result column="auditor_id" property="auditorId" jdbcType="INTEGER" />
|
|
<result column="audit_time" property="auditTime" jdbcType="TIMESTAMP" />
|
|
<result column="service_id" property="serviceId" jdbcType="INTEGER" />
|
|
<result column="request_id" property="requestId" jdbcType="INTEGER" />
|
|
<result column="is_area_effective" property="isAreaEffective" jdbcType="INTEGER" />
|
|
<result column="classify" property="classify" jdbcType="VARCHAR" />
|
|
<result column="attribute" property="attribute" jdbcType="VARCHAR" />
|
|
<result column="lable" property="lable" jdbcType="VARCHAR" />
|
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
|
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="INTEGER" />
|
|
<result column="cfg_type" property="cfgType" jdbcType="VARCHAR" />
|
|
<result column="compile_id" property="compileId" jdbcType="INTEGER" />
|
|
</resultMap>
|
|
<resultMap id="PxyObjTrustedCaCertMap" type="com.nis.domain.configuration.PxyObjTrustedCaCert" >
|
|
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
|
<result column="cfg_desc" property="cfgDesc" jdbcType="VARCHAR" />
|
|
<result column="cert_file" property="certFile" jdbcType="VARCHAR" />
|
|
<result column="issuer" property="issuer" jdbcType="VARCHAR" />
|
|
<result column="action" property="action" jdbcType="INTEGER" />
|
|
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
|
|
<result column="is_audit" property="isAudit" jdbcType="INTEGER" />
|
|
<result column="creator_id" property="creatorId" jdbcType="INTEGER" />
|
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
<result column="editor_id" property="editorId" jdbcType="INTEGER" />
|
|
<result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
|
|
<result column="auditor_id" property="auditorId" jdbcType="INTEGER" />
|
|
<result column="audit_time" property="auditTime" jdbcType="TIMESTAMP" />
|
|
<result column="service_id" property="serviceId" jdbcType="INTEGER" />
|
|
<result column="request_id" property="requestId" jdbcType="INTEGER" />
|
|
<result column="is_area_effective" property="isAreaEffective" jdbcType="INTEGER" />
|
|
<result column="classify" property="classify" jdbcType="VARCHAR" />
|
|
<result column="attribute" property="attribute" jdbcType="VARCHAR" />
|
|
<result column="lable" property="lable" jdbcType="VARCHAR" />
|
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
|
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="INTEGER" />
|
|
<result column="cfg_type" property="cfgType" jdbcType="VARCHAR" />
|
|
<result column="compile_id" property="compileId" jdbcType="INTEGER" />
|
|
<result column="cancel_request_id" property="cancelRequestId" jdbcType="INTEGER" />
|
|
</resultMap>
|
|
<resultMap id="PxyObjTrustedCaCrlMap" type="com.nis.domain.configuration.PxyObjTrustedCaCrl" >
|
|
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
|
<result column="cfg_desc" property="cfgDesc" jdbcType="VARCHAR" />
|
|
<result column="crl_file" property="crlFile" jdbcType="VARCHAR" />
|
|
<result column="cert_id" property="certId" jdbcType="BIGINT" />
|
|
<result column="issuer" property="issuer" jdbcType="VARCHAR" />
|
|
<result column="action" property="action" jdbcType="INTEGER" />
|
|
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
|
|
<result column="is_audit" property="isAudit" jdbcType="INTEGER" />
|
|
<result column="creator_id" property="creatorId" jdbcType="INTEGER" />
|
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
<result column="editor_id" property="editorId" jdbcType="INTEGER" />
|
|
<result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
|
|
<result column="auditor_id" property="auditorId" jdbcType="INTEGER" />
|
|
<result column="audit_time" property="auditTime" jdbcType="TIMESTAMP" />
|
|
<result column="service_id" property="serviceId" jdbcType="INTEGER" />
|
|
<result column="request_id" property="requestId" jdbcType="INTEGER" />
|
|
<result column="is_area_effective" property="isAreaEffective" jdbcType="INTEGER" />
|
|
<result column="classify" property="classify" jdbcType="VARCHAR" />
|
|
<result column="attribute" property="attribute" jdbcType="VARCHAR" />
|
|
<result column="lable" property="lable" jdbcType="VARCHAR" />
|
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
|
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="INTEGER" />
|
|
<result column="cfg_type" property="cfgType" jdbcType="VARCHAR" />
|
|
<result column="compile_id" property="compileId" jdbcType="INTEGER" />
|
|
</resultMap>
|
|
<sql id="PxyObjTrustedCaCertColumns">
|
|
r.cfg_id,r.cfg_desc
|
|
,r.cert_file
|
|
, r.issuer
|
|
,r.cfg_type,r.action
|
|
,r.is_valid,r.is_audit,r.creator_id,r.create_time,r.editor_id
|
|
,r.edit_time,r.auditor_id,r.audit_time,r.service_id,r.request_id
|
|
,r.is_area_effective,r.classify,r.attribute,r.lable
|
|
,r.area_effective_ids,r.function_id,r.cfg_region_code,r.compile_id,r.cancel_request_id
|
|
</sql>
|
|
<sql id="PxyObjTrustedCaCrlColumns">
|
|
r.cfg_id,r.cfg_desc
|
|
,r.crl_file
|
|
,r.cert_id
|
|
, r.issuer
|
|
,r.cfg_type,r.action
|
|
,r.is_valid,r.is_audit,r.creator_id,r.create_time,r.editor_id
|
|
,r.edit_time,r.auditor_id,r.audit_time,r.service_id,r.request_id
|
|
,r.is_area_effective,r.classify,r.attribute,r.lable
|
|
,r.area_effective_ids,r.function_id,r.cfg_region_code,r.compile_id
|
|
</sql>
|
|
<sql id="PxyObjKeyringColumns">
|
|
r.cfg_id,r.cfg_desc
|
|
, r.keyring_type
|
|
,r.private_key_file
|
|
,r.public_key_file
|
|
,r.expire_after
|
|
, r.public_key_algo
|
|
, r.crl
|
|
, r.issuer
|
|
,r.subject
|
|
,r.not_before_time
|
|
,r.not_after_time
|
|
,r.cn
|
|
,r.alt_name
|
|
,r.cfg_type,r.action
|
|
,r.is_valid,r.is_audit,r.creator_id,r.create_time,r.editor_id
|
|
,r.edit_time,r.auditor_id,r.audit_time,r.service_id,r.request_id
|
|
,r.is_area_effective,r.classify,r.attribute,r.lable
|
|
,r.area_effective_ids,r.function_id,r.cfg_region_code,r.compile_id
|
|
</sql>
|
|
|
|
<!-- 查出所有 有效数据-->
|
|
<select id="findPage" resultMap="PxyObjKeyringMap">
|
|
SELECT
|
|
<include refid="PxyObjKeyringColumns"/>
|
|
<trim prefix="," prefixOverrides=",">
|
|
,s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
|
,ri.request_title as requestName
|
|
</trim>
|
|
FROM pxy_obj_keyring r
|
|
left join sys_user s on r.creator_id=s.id
|
|
left join sys_user e on r.editor_id=e.id
|
|
left join sys_user u on r.auditor_id=u.id
|
|
left join request_info ri on r.request_id=ri.id
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
<if test="page !=null and page.where != null and page.where != ''">
|
|
AND ${page.where}
|
|
</if>
|
|
<if test="cfgId != null">
|
|
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
|
</if>
|
|
<if test="compileId != null">
|
|
AND r.compile_id=#{compileId,jdbcType=BIGINT}
|
|
</if>
|
|
<if test="cfgDesc != null and cfgDesc != ''">
|
|
AND r.CFG_DESC like concat(concat('%',#{cfgDesc,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="issuer != null and issuer != ''">
|
|
AND r.issuer like concat(concat('%',#{issuer,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="subject != null and subject != ''">
|
|
AND r.subject like concat(concat('%',#{subject,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="action != null">
|
|
AND r.ACTION=#{action,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="isValid != null">
|
|
AND r.IS_VALID=#{isValid,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="isValid == null">
|
|
AND r.IS_VALID != -1
|
|
</if>
|
|
<if test="isAudit != null">
|
|
AND r.IS_AUDIT=#{isAudit,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="creatorName != null and creatorName != ''">
|
|
AND CREATOR_NAME like concat(concat('%',#{creatorName,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="editorName != null and editorName != ''">
|
|
AND r.EDITOR_NAME like concat(concat('%',#{editorName,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="auditorName != null and auditorName != ''">
|
|
AND AUDITOR_NAME like concat(concat('%',#{auditorName,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="serviceId != null">
|
|
AND r.SERVICE_ID=#{serviceId,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="requestId != null">
|
|
AND r.REQUEST_ID=#{requestId,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="isAreaEffective != null">
|
|
AND r.IS_AREA_EFFECTIVE=#{isAreaEffective,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="classify != null and classify != ''">
|
|
AND r.classify like concat(concat('%',#{classify,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="attribute != null and attribute != ''">
|
|
AND r.attribute like concat(concat('%',#{attribute,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="lable != null and lable != ''">
|
|
AND r.lable like concat(concat('%',#{lable,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="functionId != null">
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
</if>
|
|
<!-- 数据范围过滤 -->
|
|
${sqlMap.dsf}
|
|
</trim>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
<otherwise>
|
|
ORDER BY r.CFG_ID desc
|
|
</otherwise>
|
|
</choose>
|
|
</select>
|
|
<!-- 查出所有 有效数据-->
|
|
<select id="findTrustedCertPage" resultMap="PxyObjTrustedCaCertMap">
|
|
SELECT
|
|
<include refid="PxyObjTrustedCaCertColumns"/>
|
|
<trim prefix="," prefixOverrides=",">
|
|
,s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
|
,ri.request_title as requestName
|
|
</trim>
|
|
FROM pxy_obj_trusted_ca_cert r
|
|
left join sys_user s on r.creator_id=s.id
|
|
left join sys_user e on r.editor_id=e.id
|
|
left join sys_user u on r.auditor_id=u.id
|
|
left join request_info ri on r.request_id=ri.id
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
<if test="page !=null and page.where != null and page.where != ''">
|
|
AND ${page.where}
|
|
</if>
|
|
<if test="cfgId != null">
|
|
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
|
</if>
|
|
<if test="compileId != null">
|
|
AND r.compile_id=#{compileId,jdbcType=BIGINT}
|
|
</if>
|
|
<if test="cfgDesc != null and cfgDesc != ''">
|
|
AND r.CFG_DESC like concat(concat('%',#{cfgDesc,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="issuer != null and issuer != ''">
|
|
AND r.issuer like concat(concat('%',#{issuer,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="action != null">
|
|
AND r.ACTION=#{action,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="isValid != null">
|
|
AND r.IS_VALID=#{isValid,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="isValid == null">
|
|
AND r.IS_VALID != -1
|
|
</if>
|
|
<if test="isAudit != null">
|
|
AND r.IS_AUDIT=#{isAudit,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="creatorName != null and creatorName != ''">
|
|
AND CREATOR_NAME like concat(concat('%',#{creatorName,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="editorName != null and editorName != ''">
|
|
AND r.EDITOR_NAME like concat(concat('%',#{editorName,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="auditorName != null and auditorName != ''">
|
|
AND AUDITOR_NAME like concat(concat('%',#{auditorName,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="serviceId != null">
|
|
AND r.SERVICE_ID=#{serviceId,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="requestId != null">
|
|
AND r.REQUEST_ID=#{requestId,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="isAreaEffective != null">
|
|
AND r.IS_AREA_EFFECTIVE=#{isAreaEffective,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="classify != null and classify != ''">
|
|
AND r.classify like concat(concat('%',#{classify,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="attribute != null and attribute != ''">
|
|
AND r.attribute like concat(concat('%',#{attribute,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="lable != null and lable != ''">
|
|
AND r.lable like concat(concat('%',#{lable,jdbcType=VARCHAR}),'%')
|
|
</if>
|
|
<if test="functionId != null">
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
</if>
|
|
<!-- 数据范围过滤 -->
|
|
${sqlMap.dsf}
|
|
</trim>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
<otherwise>
|
|
ORDER BY r.CFG_ID desc
|
|
</otherwise>
|
|
</choose>
|
|
</select>
|
|
<!-- 查出所有 有效数据-->
|
|
<select id="findList" resultMap="PxyObjKeyringMap">
|
|
SELECT
|
|
<include refid="PxyObjKeyringColumns"/>
|
|
FROM pxy_obj_keyring r
|
|
<where>
|
|
<if test="isValid == -1">
|
|
AND r.is_valid !=-1
|
|
</if>
|
|
<if test="isValid == 1">
|
|
AND r.is_valid =1
|
|
</if>
|
|
<if test="isValid == 0">
|
|
AND r.is_valid =0
|
|
</if>
|
|
<if test="isAudit == 0">
|
|
AND r.is_audit =0
|
|
</if>
|
|
<if test="isAudit == 1">
|
|
AND r.is_audit =1
|
|
</if>
|
|
<if test="cfgType == 'ip' ">
|
|
<![CDATA[AND r.keyring_type <> 'end-entity']]>
|
|
</if>
|
|
<if test="cfgId != null">
|
|
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
<!-- 查出所有 有效数据-->
|
|
<select id="getPxyObjTrustedCaCert" resultType="com.nis.domain.configuration.PxyObjTrustedCaCert">
|
|
SELECT
|
|
<include refid="PxyObjTrustedCaCertColumns"/>
|
|
FROM pxy_obj_trusted_ca_cert r
|
|
where r.CFG_ID=#{id,jdbcType=BIGINT}
|
|
</select>
|
|
<!-- 查出所有 有效数据-->
|
|
<select id="getPxyObjTrustedCaCrl" resultType="com.nis.domain.configuration.PxyObjTrustedCaCrl">
|
|
SELECT
|
|
<include refid="PxyObjTrustedCaCrlColumns"/>
|
|
FROM pxy_obj_trusted_ca_crl r
|
|
<where>
|
|
<if test="cfgId != null">
|
|
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
|
</if>
|
|
<if test="certId != null">
|
|
AND r.CERT_ID=#{certId,jdbcType=BIGINT}
|
|
</if>
|
|
<if test="issuer != null and issuer !=''">
|
|
AND r.issuer=#{issuer,jdbcType=BIGINT}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
<insert id="insert" parameterType="com.nis.domain.configuration.PxyObjKeyring" >
|
|
insert into pxy_obj_keyring (
|
|
CFG_ID,
|
|
CFG_DESC,
|
|
ACTION,
|
|
IS_VALID,
|
|
IS_AUDIT,
|
|
CREATOR_ID,
|
|
CREATE_TIME,
|
|
EDITOR_ID,
|
|
EDIT_TIME,
|
|
AUDITOR_ID,
|
|
AUDIT_TIME,
|
|
SERVICE_ID,
|
|
REQUEST_ID,
|
|
IS_AREA_EFFECTIVE,
|
|
CLASSIFY,
|
|
ATTRIBUTE,
|
|
LABLE,
|
|
AREA_EFFECTIVE_IDS,
|
|
function_id,
|
|
keyring_type,
|
|
private_key_file,
|
|
public_key_file,
|
|
expire_after,
|
|
public_key_algo,
|
|
crl,
|
|
issuer,
|
|
subject,
|
|
not_before_time,
|
|
not_after_time,
|
|
cn,
|
|
alt_name,
|
|
cfg_type,
|
|
compile_Id,
|
|
cfg_region_code
|
|
)values (
|
|
#{cfgId,jdbcType=VARCHAR},
|
|
#{cfgDesc,jdbcType=VARCHAR},
|
|
#{action,jdbcType=INTEGER},
|
|
0,
|
|
0,
|
|
#{creatorId,jdbcType=INTEGER},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{editorId,jdbcType=INTEGER},
|
|
#{editTime,jdbcType=TIMESTAMP},
|
|
#{auditorId,jdbcType=INTEGER},
|
|
#{auditTime,jdbcType=TIMESTAMP},
|
|
#{serviceId,jdbcType=INTEGER},
|
|
#{requestId,jdbcType=INTEGER},
|
|
#{isAreaEffective,jdbcType=INTEGER},
|
|
#{classify,jdbcType=VARCHAR},
|
|
#{attribute,jdbcType=VARCHAR},
|
|
#{lable,jdbcType=VARCHAR},
|
|
#{areaEffectiveIds,jdbcType=VARCHAR},
|
|
#{functionId,jdbcType=INTEGER},
|
|
#{keyringType, jdbcType=VARCHAR},
|
|
#{privateKeyFile, jdbcType=VARCHAR},
|
|
#{publicKeyFile, jdbcType=VARCHAR},
|
|
#{expireAfter, jdbcType=INTEGER},
|
|
#{publicKeyAlgo, jdbcType=VARCHAR},
|
|
#{crl, jdbcType=VARCHAR},
|
|
#{issuer, jdbcType=VARCHAR},
|
|
#{subject, jdbcType=VARCHAR},
|
|
#{notBeforeTime,jdbcType=VARCHAR},
|
|
#{notAfterTime,jdbcType=VARCHAR},
|
|
#{cn,jdbcType=VARCHAR},
|
|
#{altName,jdbcType=VARCHAR},
|
|
#{cfgType,jdbcType=VARCHAR},
|
|
#{compileId,jdbcType=INTEGER},
|
|
#{cfgRegionCode,jdbcType=INTEGER}
|
|
)
|
|
</insert>
|
|
<insert id="insertPxyObjTrustedCaCert" parameterType="com.nis.domain.configuration.PxyObjTrustedCaCert" >
|
|
insert into pxy_obj_trusted_ca_cert (
|
|
CFG_ID,
|
|
CFG_DESC,
|
|
ACTION,
|
|
IS_VALID,
|
|
IS_AUDIT,
|
|
CREATOR_ID,
|
|
CREATE_TIME,
|
|
EDITOR_ID,
|
|
EDIT_TIME,
|
|
AUDITOR_ID,
|
|
AUDIT_TIME,
|
|
SERVICE_ID,
|
|
REQUEST_ID,
|
|
IS_AREA_EFFECTIVE,
|
|
CLASSIFY,
|
|
ATTRIBUTE,
|
|
LABLE,
|
|
AREA_EFFECTIVE_IDS,
|
|
function_id,
|
|
cert_file,
|
|
issuer,
|
|
cfg_type,
|
|
compile_Id,
|
|
cfg_region_code
|
|
)values (
|
|
#{cfgId,jdbcType=VARCHAR},
|
|
#{cfgDesc,jdbcType=VARCHAR},
|
|
#{action,jdbcType=INTEGER},
|
|
0,
|
|
0,
|
|
#{creatorId,jdbcType=INTEGER},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{editorId,jdbcType=INTEGER},
|
|
#{editTime,jdbcType=TIMESTAMP},
|
|
#{auditorId,jdbcType=INTEGER},
|
|
#{auditTime,jdbcType=TIMESTAMP},
|
|
#{serviceId,jdbcType=INTEGER},
|
|
#{requestId,jdbcType=INTEGER},
|
|
#{isAreaEffective,jdbcType=INTEGER},
|
|
#{classify,jdbcType=VARCHAR},
|
|
#{attribute,jdbcType=VARCHAR},
|
|
#{lable,jdbcType=VARCHAR},
|
|
#{areaEffectiveIds,jdbcType=VARCHAR},
|
|
#{functionId,jdbcType=INTEGER},
|
|
#{certFile, jdbcType=VARCHAR},
|
|
#{issuer, jdbcType=VARCHAR},
|
|
#{cfgType,jdbcType=VARCHAR},
|
|
#{compileId,jdbcType=INTEGER},
|
|
#{cfgRegionCode,jdbcType=INTEGER}
|
|
)
|
|
</insert>
|
|
|
|
<update id="updatePxyObjTrustedCaCert" parameterType="com.nis.domain.configuration.PxyObjTrustedCaCert" >
|
|
update pxy_obj_trusted_ca_cert
|
|
<set >
|
|
<trim suffixOverrides=",">
|
|
<if test="cfgDesc != null and cfgDesc != ''" >
|
|
cfg_desc = #{cfgDesc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cfgType != null and cfgDesc != ''" >
|
|
cfg_type = #{cfgType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="compileId != null " >
|
|
compile_Id = #{compileId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="action != null" >
|
|
action = #{action,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="isValid != null" >
|
|
is_valid = #{isValid,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="isAudit != null" >
|
|
is_audit = #{isAudit,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="editorId != null" >
|
|
editor_id = #{editorId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="editTime != null and editTime != ''" >
|
|
edit_time = #{editTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="auditorId != null" >
|
|
AUDITOR_ID = #{auditorId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="auditTime != null and auditTime != ''" >
|
|
AUDIT_TIME = #{auditTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="requestId != null" >
|
|
request_id = #{requestId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="isAreaEffective != null" >
|
|
is_area_effective = #{isAreaEffective,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="classify != null and classify != ''" >
|
|
classify = #{classify,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="attribute != null and attribute != ''" >
|
|
attribute = #{attribute,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="lable != null and lable != ''" >
|
|
lable = #{lable,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="areaEffectiveIds != null" >
|
|
area_effective_ids = #{areaEffectiveIds,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="functionId != null" >
|
|
function_id = #{functionId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="serviceId != null" >
|
|
service_id = #{serviceId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="certFile != null and certFile !=''" >
|
|
cert_file = #{certFile,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="issuer != null and issuer !=''" >
|
|
issuer = #{issuer,jdbcType=VARCHAR},
|
|
</if>
|
|
</trim>
|
|
</set>
|
|
<where>
|
|
and cfg_id = #{cfgId,jdbcType=INTEGER}
|
|
<if test="functionId != null" >
|
|
and function_id = #{functionId,jdbcType=INTEGER}
|
|
</if>
|
|
</where>
|
|
</update>
|
|
<insert id="insertPxyObjTrustedCaCrl" parameterType="com.nis.domain.configuration.PxyObjTrustedCaCrl" >
|
|
insert into pxy_obj_trusted_ca_crl (
|
|
CFG_ID,
|
|
CFG_DESC,
|
|
ACTION,
|
|
IS_VALID,
|
|
IS_AUDIT,
|
|
CREATOR_ID,
|
|
CREATE_TIME,
|
|
EDITOR_ID,
|
|
EDIT_TIME,
|
|
AUDITOR_ID,
|
|
AUDIT_TIME,
|
|
SERVICE_ID,
|
|
REQUEST_ID,
|
|
IS_AREA_EFFECTIVE,
|
|
CLASSIFY,
|
|
ATTRIBUTE,
|
|
LABLE,
|
|
AREA_EFFECTIVE_IDS,
|
|
function_id,
|
|
crl_file,
|
|
cert_Id,
|
|
issuer,
|
|
cfg_type,
|
|
compile_Id,
|
|
cfg_region_code
|
|
)values (
|
|
#{cfgId,jdbcType=VARCHAR},
|
|
#{cfgDesc,jdbcType=VARCHAR},
|
|
#{action,jdbcType=INTEGER},
|
|
#{isValid,jdbcType=INTEGER},
|
|
#{isAudit,jdbcType=INTEGER},
|
|
#{creatorId,jdbcType=INTEGER},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{editorId,jdbcType=INTEGER},
|
|
#{editTime,jdbcType=TIMESTAMP},
|
|
#{auditorId,jdbcType=INTEGER},
|
|
#{auditTime,jdbcType=TIMESTAMP},
|
|
#{serviceId,jdbcType=INTEGER},
|
|
#{requestId,jdbcType=INTEGER},
|
|
#{isAreaEffective,jdbcType=INTEGER},
|
|
#{classify,jdbcType=VARCHAR},
|
|
#{attribute,jdbcType=VARCHAR},
|
|
#{lable,jdbcType=VARCHAR},
|
|
#{areaEffectiveIds,jdbcType=VARCHAR},
|
|
#{functionId,jdbcType=INTEGER},
|
|
#{crlFile, jdbcType=VARCHAR},
|
|
#{certId, jdbcType=INTEGER},
|
|
#{issuer, jdbcType=VARCHAR},
|
|
#{cfgType,jdbcType=VARCHAR},
|
|
#{compileId,jdbcType=INTEGER},
|
|
#{cfgRegionCode,jdbcType=INTEGER}
|
|
)
|
|
</insert>
|
|
|
|
<update id="updatePxyObjTrustedCaCrl" parameterType="com.nis.domain.configuration.PxyObjTrustedCaCrl" >
|
|
update pxy_obj_trusted_ca_crl
|
|
<set >
|
|
<trim suffixOverrides=",">
|
|
<if test="cfgDesc != null and cfgDesc != ''" >
|
|
cfg_desc = #{cfgDesc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cfgType != null and cfgDesc != ''" >
|
|
cfg_type = #{cfgType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="compileId != null " >
|
|
compile_Id = #{compileId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="action != null" >
|
|
action = #{action,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="isValid != null" >
|
|
is_valid = #{isValid,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="isAudit != null" >
|
|
is_audit = #{isAudit,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="editorId != null" >
|
|
editor_id = #{editorId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="editTime != null and editTime != ''" >
|
|
edit_time = #{editTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="auditorId != null" >
|
|
AUDITOR_ID = #{auditorId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="auditTime != null and auditTime != ''" >
|
|
AUDIT_TIME = #{auditTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="requestId != null" >
|
|
request_id = #{requestId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="isAreaEffective != null" >
|
|
is_area_effective = #{isAreaEffective,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="classify != null and classify != ''" >
|
|
classify = #{classify,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="attribute != null and attribute != ''" >
|
|
attribute = #{attribute,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="lable != null and lable != ''" >
|
|
lable = #{lable,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="areaEffectiveIds != null" >
|
|
area_effective_ids = #{areaEffectiveIds,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="functionId != null" >
|
|
function_id = #{functionId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="serviceId != null" >
|
|
service_id = #{serviceId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="crlFile != null and crlFile !=''" >
|
|
crl_file = #{crlFile,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="issuer != null and issuer !=''" >
|
|
issuer = #{issuer,jdbcType=VARCHAR},
|
|
</if>
|
|
</trim>
|
|
</set>
|
|
<where>
|
|
<if test="cfgId != null" >
|
|
and cfg_id = #{cfgId,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="certId != null" >
|
|
and cert_id = #{certId,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="issuer != null and issuer !=''" >
|
|
and issuer = #{issuer,jdbcType=INTEGER}
|
|
</if>
|
|
<if test="functionId != null" >
|
|
and function_id = #{functionId,jdbcType=INTEGER}
|
|
</if>
|
|
</where>
|
|
</update>
|
|
<update id="update" parameterType="com.nis.domain.configuration.PxyObjKeyring" >
|
|
update pxy_obj_keyring
|
|
<set >
|
|
<trim suffixOverrides=",">
|
|
<if test="cfgDesc != null and cfgDesc != ''" >
|
|
cfg_desc = #{cfgDesc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cfgType != null and cfgDesc != ''" >
|
|
cfg_type = #{cfgType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="compileId != null " >
|
|
compile_Id = #{compileId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="action != null" >
|
|
action = #{action,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="isValid != null" >
|
|
is_valid = #{isValid,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="isAudit != null" >
|
|
is_audit = #{isAudit,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="editorId != null" >
|
|
editor_id = #{editorId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="editTime != null and editTime != ''" >
|
|
edit_time = #{editTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="auditorId != null" >
|
|
AUDITOR_ID = #{auditorId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="auditTime != null and auditTime != ''" >
|
|
AUDIT_TIME = #{auditTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="requestId != null" >
|
|
request_id = #{requestId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="isAreaEffective != null" >
|
|
is_area_effective = #{isAreaEffective,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="classify != null and classify != ''" >
|
|
classify = #{classify,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="attribute != null and attribute != ''" >
|
|
attribute = #{attribute,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="lable != null and lable != ''" >
|
|
lable = #{lable,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="areaEffectiveIds != null" >
|
|
area_effective_ids = #{areaEffectiveIds,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="functionId != null" >
|
|
function_id = #{functionId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="serviceId != null" >
|
|
service_id = #{serviceId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="keyringType != null" >
|
|
keyring_type = #{keyringType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="privateKeyFile != null and privateKeyFile !=''" >
|
|
private_key_file = #{privateKeyFile,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="publicKeyFile != null and publicKeyFile !=''" >
|
|
public_key_file = #{publicKeyFile,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="expireAfter != null" >
|
|
expire_after = #{expireAfter,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="publicKeyAlgo != null" >
|
|
public_key_algo = #{publicKeyAlgo,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="crl != null and crl !=''" >
|
|
crl = #{crl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="issuer != null and issuer !=''" >
|
|
issuer = #{issuer,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="subject != null and subject !=''" >
|
|
subject = #{subject,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="notBeforeTime != null and notBeforeTime !=''" >
|
|
not_before_time = #{notBeforeTime,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="notAfterTime != null and notAfterTime !=''" >
|
|
not_after_time = #{notAfterTime,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cn != null and cn !=''" >
|
|
cn = #{cn,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="altName != null and altName !=''" >
|
|
alt_name = #{altName,jdbcType=VARCHAR},
|
|
</if>
|
|
</trim>
|
|
</set>
|
|
<where>
|
|
and cfg_id = #{cfgId,jdbcType=INTEGER}
|
|
<if test="functionId != null" >
|
|
and function_id = #{functionId,jdbcType=INTEGER}
|
|
</if>
|
|
</where>
|
|
</update>
|
|
|
|
</mapper> |