|
|
@@ -3,7 +3,6 @@
|
|
|
<mapper namespace="com.ruoyi.interfaces.mapper.PtServiceMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.ruoyi.interfaces.domain.PtService">
|
|
|
<id column="SRV_ID" jdbcType="VARCHAR" property="srvId"/>
|
|
|
- <id column="MDID" jdbcType="VARCHAR" property="mdid"/>
|
|
|
<result column="CATE_CODE" jdbcType="VARCHAR" property="cateCode"/>
|
|
|
<result column="NAME" jdbcType="VARCHAR" property="name"/>
|
|
|
<result column="TYPE" jdbcType="VARCHAR" property="type"/>
|
|
|
@@ -19,7 +18,6 @@
|
|
|
<result column="EXAMPLE" jdbcType="CLOB" property="example"/>
|
|
|
<result column="PROXY_ADDRESS" jdbcType="VARCHAR" property="proxyAddress"/>
|
|
|
<result column="PROXY_PATH" jdbcType="VARCHAR" property="proxyPath"/>
|
|
|
- <result column="gateway_id" jdbcType="VARCHAR" property="gatewayId"/>
|
|
|
<result column="SERVICE_SOURCE" jdbcType="VARCHAR" property="serviceSource"/>
|
|
|
<result property="serviceDept" column="SERVICE_DEPT" jdbcType="VARCHAR"/>
|
|
|
<result property="manageName" column="MANAGE_NAME" jdbcType="VARCHAR"/>
|
|
|
@@ -39,21 +37,11 @@
|
|
|
<result column="DATA_RANGE" property="dataRange" jdbcType="VARCHAR"/>
|
|
|
<result column="APPLY_NUM" property="applyNum" jdbcType="INTEGER"/>
|
|
|
<result column="DATA_NUM" property="dataNum" jdbcType="INTEGER"/>
|
|
|
- <result column="SORT" property="sort" jdbcType="INTEGER"/>
|
|
|
- <result column="AUDIT" property="audit" jdbcType="VARCHAR"/>
|
|
|
- <result column="AUDIT_BY" property="auditBy" jdbcType="VARCHAR"/>
|
|
|
- <result column="AUDIT_TIME" property="auditTime"/>
|
|
|
- <result column="AUDIT_REMARK" property="auditRemark" jdbcType="VARCHAR"/>
|
|
|
- <result column="PUBLISH" property="publish" jdbcType="VARCHAR"/>
|
|
|
- <result column="PUBLISH_BY" property="publishBy" jdbcType="VARCHAR"/>
|
|
|
- <result column="state" property="state" jdbcType="VARCHAR"/>
|
|
|
- <result column="PUBLISH_TIME" property="publishTime"/>
|
|
|
- <result column="data_Signature" property="dataSignature"/>
|
|
|
</resultMap>
|
|
|
<resultMap id="AuthVoResultMap" type="com.ruoyi.interfaces.domain.vo.PtServiceVo">
|
|
|
<result property="id" jdbcType="VARCHAR" column="ID"/>
|
|
|
<result property="deadline" column="DEADLINE"/>
|
|
|
- <result property="gatewayId" jdbcType="VARCHAR" column="gateway_id"/>
|
|
|
+ <result property="appId" jdbcType="VARCHAR" column="APP_ID"/>
|
|
|
<result property="srvId" jdbcType="VARCHAR" column="SRV_ID"/>
|
|
|
<result property="userId" jdbcType="VARCHAR" column="USER_ID"/>
|
|
|
<result column="SRV_ID" jdbcType="VARCHAR" property="srvId"/>
|
|
|
@@ -72,8 +60,6 @@
|
|
|
<result column="EXAMPLE" jdbcType="CLOB" property="example"/>
|
|
|
<result column="PROXY_ADDRESS" jdbcType="VARCHAR" property="proxyAddress"/>
|
|
|
<result column="PROXY_PATH" jdbcType="VARCHAR" property="proxyPath"/>
|
|
|
- <result column="gateway_id" jdbcType="VARCHAR" property="gatewayId"/>
|
|
|
- <result column="state" jdbcType="VARCHAR" property="state"/>
|
|
|
<result column="SERVICE_SOURCE" jdbcType="VARCHAR" property="serviceSource"/>
|
|
|
<result property="serviceDept" column="SERVICE_DEPT" jdbcType="VARCHAR"/>
|
|
|
<result property="manageName" column="MANAGE_NAME" jdbcType="VARCHAR"/>
|
|
|
@@ -92,32 +78,16 @@
|
|
|
<result column="DATA_RANGE" property="dataRange" jdbcType="VARCHAR"/>
|
|
|
<result column="APPLY_NUM" property="applyNum" jdbcType="INTEGER"/>
|
|
|
<result column="DATA_NUM" property="dataNum" jdbcType="INTEGER"/>
|
|
|
- <result column="AUDIT" property="audit" jdbcType="VARCHAR"/>
|
|
|
- <result column="AUDIT_BY" property="auditBy" jdbcType="VARCHAR"/>
|
|
|
- <result column="AUDIT_TIME" property="auditTime"/>
|
|
|
- <result column="AUDIT_REMARK" property="auditRemark" jdbcType="VARCHAR"/>
|
|
|
- <result column="PUBLISH" property="publish" jdbcType="VARCHAR"/>
|
|
|
- <result column="PUBLISH_BY" property="publishBy" jdbcType="VARCHAR"/>
|
|
|
- <result column="PUBLISH_TIME" property="publishTime"/>
|
|
|
- <result column="data_Signature" property="dataSignature"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
SRV_ID
|
|
|
- ,MDID
|
|
|
, CATE_CODE, NAME, TYPE, INTRO, STATUS, USER_ID,
|
|
|
DEVELOP_UNIT,DEVELOP_CONTACTER,MAINTAIN_UNIT,MAINTAIN_CONTACER,
|
|
|
SERVICE_SOURCE,SERVICE_DEPT, MANAGE_NAME,DATA_RANGE, OPEN_CNDTN, DATA_FIELD,
|
|
|
URL, RQTYPE, RPTYPE, PROXY_ADDRESS,PROXY_PATH,
|
|
|
TM, RELEASE_TIME, RLSTM, UPTM,
|
|
|
- VIEW_NUM, CNT, APPLY_NUM, DATA_NUM,"AUDIT",AUDIT_BY,
|
|
|
-AUDIT_TIME,
|
|
|
-AUDIT_REMARK,
|
|
|
- PUBLISH,
|
|
|
-PUBLISH_BY,
|
|
|
-PUBLISH_TIME,
|
|
|
- GATEWAY_ID,
|
|
|
- state,data_Signature
|
|
|
+ VIEW_NUM, CNT, APPLY_NUM, DATA_NUM
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
RPCONTENT
|
|
|
@@ -126,19 +96,11 @@ PUBLISH_TIME,
|
|
|
<sql id="SRV_INFO_List">
|
|
|
SRV_ID
|
|
|
, NAME, TYPE, INTRO, URL, RQTYPE, RPTYPE, STATUS, CNT, USER_ID, TM,PROXY_ADDRESS,PROXY_PATH,SERVICE_SOURCE,CATE_CODE,
|
|
|
- SERVICE_DEPT, MANAGE_NAME,RELEASE_TIME,DEVELOP_UNIT,DEVELOP_CONTACTER,MAINTAIN_UNIT,MAINTAIN_CONTACER,VIEW_NUM,"AUDIT",AUDIT_BY,
|
|
|
-AUDIT_TIME,
|
|
|
-AUDIT_REMARK,
|
|
|
- PUBLISH,
|
|
|
-PUBLISH_BY,
|
|
|
-PUBLISH_TIME
|
|
|
- ,GATEWAY_ID,
|
|
|
- state,data_Signature
|
|
|
+ SERVICE_DEPT, MANAGE_NAME,RELEASE_TIME,DEVELOP_UNIT,DEVELOP_CONTACTER,MAINTAIN_UNIT,MAINTAIN_CONTACER,VIEW_NUM
|
|
|
</sql>
|
|
|
<sql id="table_columns">
|
|
|
- MDID
|
|
|
+ UP_CYCL
|
|
|
,
|
|
|
- UP_CYCL,
|
|
|
OPEN_CNDTN,
|
|
|
AD_NAME,
|
|
|
DATA_FIELD,
|
|
|
@@ -172,22 +134,11 @@ PUBLISH_TIME
|
|
|
DEVELOP_CONTACTER,
|
|
|
MAINTAIN_UNIT,
|
|
|
MAINTAIN_CONTACER,
|
|
|
- VIEW_NUM,
|
|
|
- SORT,
|
|
|
- "AUDIT",
|
|
|
- AUDIT_BY,
|
|
|
- AUDIT_TIME,
|
|
|
- AUDIT_REMARK,
|
|
|
- PUBLISH,
|
|
|
- PUBLISH_BY,
|
|
|
- PUBLISH_TIME,
|
|
|
- GATEWAY_ID,
|
|
|
- state,
|
|
|
- DATA_SIGNATURE
|
|
|
+ VIEW_NUM
|
|
|
</sql>
|
|
|
<sql id="entity_properties">
|
|
|
- #{mdid,jdbcType=VARCHAR},
|
|
|
- #{upCycl,jdbcType=VARCHAR},
|
|
|
+ #{upCycl,jdbcType=VARCHAR}
|
|
|
+ ,
|
|
|
#{openCndtn,jdbcType=VARCHAR},
|
|
|
#{adName,jdbcType=VARCHAR},
|
|
|
#{dataField,jdbcType=VARCHAR},
|
|
|
@@ -221,24 +172,10 @@ PUBLISH_TIME
|
|
|
#{developContacter,jdbcType=VARCHAR},
|
|
|
#{maintainUnit,jdbcType=VARCHAR},
|
|
|
#{maintainContacer,jdbcType=VARCHAR},
|
|
|
- #{viewNum,jdbcType=INTEGER},
|
|
|
- #{sort,jdbcType=INTEGER},
|
|
|
- #{audit,jdbcType=VARCHAR},
|
|
|
- #{auditBy,jdbcType=VARCHAR},
|
|
|
- #{auditTime,jdbcType=DATE},
|
|
|
- #{auditRemark,jdbcType=VARCHAR},
|
|
|
- #{publish,jdbcType=VARCHAR},
|
|
|
- #{publishBy,jdbcType=VARCHAR},
|
|
|
- #{publishTime,jdbcType=DATE},
|
|
|
- #{gatewayId,jdbcType=VARCHAR},
|
|
|
- #{state,jdbcType=VARCHAR},
|
|
|
- #{dataSignature,jdbcType=VARCHAR}
|
|
|
+ #{viewNum, jdbcType=INTEGER}
|
|
|
</sql>
|
|
|
<sql id="page_where">
|
|
|
<trim prefix="where" prefixOverrides="and | or ">
|
|
|
- <if test="mdid != null and mdid != ''">
|
|
|
- and MDID = #{mdid,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
<if test="upCycl != null and upCycl != ''">
|
|
|
and UP_CYCL = #{upCycl,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -317,12 +254,6 @@ PUBLISH_TIME
|
|
|
<if test="proxyPath != null and proxyPath != ''">
|
|
|
and PROXY_PATH = #{proxyPath}
|
|
|
</if>
|
|
|
- <if test="gatewayId != null and gatewayId != ''">
|
|
|
- and gateway_id = #{gatewayId}
|
|
|
- </if>
|
|
|
- <if test="state != null and state != ''">
|
|
|
- and state = #{state}
|
|
|
- </if>
|
|
|
<if test="serviceSource != null and serviceSource != ''">
|
|
|
and SERVICE_SOURCE = #{serviceSource}
|
|
|
</if>
|
|
|
@@ -350,12 +281,6 @@ PUBLISH_TIME
|
|
|
<if test="viewNum != null and viewNum != ''">
|
|
|
and VIEW_NUM = #{viewNum}
|
|
|
</if>
|
|
|
- <if test="audit != null and audit != ''">
|
|
|
- and "AUDIT" = #{audit}
|
|
|
- </if>
|
|
|
- <if test="publish != null and publish != ''">
|
|
|
- and PUBLISH = #{publish}
|
|
|
- </if>
|
|
|
</trim>
|
|
|
</sql>
|
|
|
|
|
|
@@ -369,7 +294,6 @@ PUBLISH_TIME
|
|
|
<if test="cateCode !=null and cateCode !=''">
|
|
|
where CATE_CODE = #{cateCode}
|
|
|
</if>
|
|
|
- order by SORT
|
|
|
</select>
|
|
|
|
|
|
<!--查询数据列表-->
|
|
|
@@ -378,10 +302,8 @@ PUBLISH_TIME
|
|
|
<include refid="table_columns"/>
|
|
|
from PT_SERVICE
|
|
|
<include refid="page_where"/>
|
|
|
- order by SORT
|
|
|
</select>
|
|
|
|
|
|
-
|
|
|
<select id="selectAllPublic" parameterType="com.ruoyi.interfaces.domain.PtService" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
@@ -405,108 +327,8 @@ PUBLISH_TIME
|
|
|
</foreach>
|
|
|
</if>
|
|
|
</where>
|
|
|
- order by SORT
|
|
|
</select>
|
|
|
|
|
|
- <!--根据主键获取数据-->
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
- ,
|
|
|
- <include refid="Blob_Column_List"/>
|
|
|
- FROM PT_SERVICE
|
|
|
- where SRV_ID = #{srvId,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
-
|
|
|
- <!--添加数据-->
|
|
|
- <insert id="insert" parameterType="com.ruoyi.interfaces.domain.PtService">
|
|
|
- insert into PT_SERVICE(
|
|
|
- <include refid="table_columns"/>
|
|
|
- )
|
|
|
- values (
|
|
|
- <include refid="entity_properties"/>
|
|
|
- )
|
|
|
- </insert>
|
|
|
-
|
|
|
- <!--根据主键更新数据-->
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.interfaces.domain.PtService">
|
|
|
- update PT_SERVICE
|
|
|
- <trim prefix="set" suffixOverrides=",">
|
|
|
- <if test="upCycl != null and upCycl != ''">UP_CYCL = #{upCycl,jdbcType=VARCHAR},</if>
|
|
|
- <if test="openCndtn != null and openCndtn != ''">OPEN_CNDTN = #{openCndtn},</if>
|
|
|
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
|
|
|
- <if test="dataField != null and dataField != ''">DATA_FIELD = #{dataField},</if>
|
|
|
- <if test="dataRange != null and dataRange != ''">DATA_RANGE = #{dataRange},</if>
|
|
|
- <if test="applyNum != null and applyNum != ''">APPLY_NUM = #{applyNum},</if>
|
|
|
- <if test="dataNum != null and dataNum != ''">DATA_NUM = #{dataNum},</if>
|
|
|
- <if test="cateCode != null and cateCode != ''">CATE_CODE = #{cateCode},</if>
|
|
|
- <if test="name != null and name != ''">NAME = #{name},</if>
|
|
|
- <if test="type != null and type != ''">TYPE = #{type},</if>
|
|
|
- <if test="intro != null and intro != ''">INTRO = #{intro},</if>
|
|
|
- <if test="url != null and url != ''">URL = #{url},</if>
|
|
|
- <if test="rqtype != null and rqtype != ''">RQTYPE = #{rqtype},</if>
|
|
|
- <if test="rptype != null and rptype != ''">RPTYPE = #{rptype},</if>
|
|
|
- <if test="rpcontent != null and rpcontent != ''">RPCONTENT = #{rpcontent},</if>
|
|
|
- <if test="note != null and note != ''">NOTE = #{note},</if>
|
|
|
- <if test="example != null and example != ''">EXAMPLE = #{example},</if>
|
|
|
- <if test="status != null and status != ''">STATUS = #{status},</if>
|
|
|
- <if test="cnt != null and cnt != ''">CNT = #{cnt},</if>
|
|
|
- <if test="userId != null and userId != ''">USER_ID = #{userId},</if>
|
|
|
- <if test="proxyAddress != null and proxyAddress != ''">PROXY_ADDRESS = #{proxyAddress},</if>
|
|
|
- <if test="proxyPath != null and proxyPath != ''">PROXY_PATH = #{proxyPath},</if>
|
|
|
- <if test="gatewayId != null and gatewayId != ''">gateway_id = #{gatewayId},</if>
|
|
|
- <if test="serviceSource != null and serviceSource != ''">SERVICE_SOURCE = #{serviceSource},</if>
|
|
|
- <if test="serviceDept != null and serviceDept != ''">SERVICE_DEPT = #{serviceDept},</if>
|
|
|
- <if test="manageName != null and manageName != ''">MANAGE_NAME = #{manageName},</if>
|
|
|
- <if test="developUnit != null and developUnit != ''">DEVELOP_UNIT = #{developUnit},</if>
|
|
|
- <if test="developContacter != null and developContacter != ''">DEVELOP_CONTACTER = #{developContacter},</if>
|
|
|
- <if test="maintainUnit != null and maintainUnit != ''">MAINTAIN_UNIT = #{maintainUnit},</if>
|
|
|
- <if test="maintainContacer != null and maintainContacer != ''">MAINTAIN_CONTACER = #{maintainContacer},</if>
|
|
|
- <if test="viewNum != null and viewNum != ''">VIEW_NUM = #{viewNum},</if>
|
|
|
- <if test="tm != null">TM = #{tm},</if>
|
|
|
- <if test="releaseTime != null">RELEASE_TIME = #{releaseTime},</if>
|
|
|
- <if test="uptm != null">UPTM = #{uptm},</if>
|
|
|
- <if test="rlstm != null">RLSTM = #{rlstm},</if>
|
|
|
- <if test="sort != null">SORT = #{sort},</if>
|
|
|
- <if test="dataSignature != null">data_Signature = #{dataSignature},</if>
|
|
|
- </trim>
|
|
|
- where SRV_ID = #{srvId,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
- <update id="audit">
|
|
|
- update PT_SERVICE
|
|
|
- set "AUDIT" = #{audit},
|
|
|
- AUDIT_BY = #{auditBy},
|
|
|
- AUDIT_TIME = #{auditTime},
|
|
|
- AUDIT_REMARK = #{auditRemark}
|
|
|
- where SRV_ID = #{srvId}
|
|
|
- </update>
|
|
|
- <update id="updatePtServicePublish">
|
|
|
- update PT_SERVICE
|
|
|
- set PUBLISH = #{publish},
|
|
|
- PUBLISH_BY = #{publishBy},
|
|
|
- PUBLISH_TIME = #{publishTime}
|
|
|
- where SRV_ID = #{srvId}
|
|
|
- </update>
|
|
|
- <update id="updatePtServicePublishByMdid">
|
|
|
- update PT_SERVICE
|
|
|
- set PUBLISH = #{publish},
|
|
|
- PUBLISH_BY = #{publishBy},
|
|
|
- PUBLISH_TIME = #{publishTime}
|
|
|
- where mdid = #{mdid}
|
|
|
- </update>
|
|
|
- <update id="updateState">
|
|
|
- update PT_SERVICE
|
|
|
- set state = #{state}
|
|
|
- where SRV_ID = #{srvId}
|
|
|
- </update>
|
|
|
-
|
|
|
- <!--根据主键删除数据-->
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
- delete
|
|
|
- from PT_SERVICE
|
|
|
- where SRV_ID = #{srvId,jdbcType=VARCHAR}
|
|
|
- </delete>
|
|
|
-
|
|
|
<select id="listOfCntTop10" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
SELECT * FROM (
|
|
|
SELECT
|
|
|
@@ -528,6 +350,7 @@ PUBLISH_TIME
|
|
|
<select id="listByUserService" resultMap="AuthVoResultMap">
|
|
|
SELECT A.ID,
|
|
|
A.DEADLINE,
|
|
|
+ A.APP_ID,
|
|
|
A.USER_ID,
|
|
|
P.UP_CYCL,
|
|
|
P.OPEN_CNDTN,
|
|
|
@@ -561,249 +384,10 @@ PUBLISH_TIME
|
|
|
P.DEVELOP_CONTACTER,
|
|
|
P.MAINTAIN_UNIT,
|
|
|
P.MAINTAIN_CONTACER,
|
|
|
- P.VIEW_NUM,
|
|
|
- P.state,
|
|
|
- P.data_Signature,
|
|
|
- P.gateway_id,
|
|
|
+ P.VIEW_NUM
|
|
|
FROM PT_SERVICE P
|
|
|
JOIN PT_SERVICE_AUTH A ON P.SRV_ID = A.SRV_ID
|
|
|
WHERE A.USER_ID = #{userId}
|
|
|
ORDER BY RLSTM DESC
|
|
|
</select>
|
|
|
- <resultMap id="MdModelInfoVoMap" type="com.ruoyi.interfaces.domain.vo.MdModelInfoVo">
|
|
|
- <result property="mdid" column="MDID"/>
|
|
|
- <result property="name" column="M_NAME"/>
|
|
|
- <result property="enname" column="ENNAME"/>
|
|
|
- <result property="cateid" column="CATEID"/>
|
|
|
- <result property="devlang" column="DEVLANG"/>
|
|
|
- <result property="version" column="VERSION"/>
|
|
|
- <result property="intro" column="M_INTRO"/>
|
|
|
- <result property="type" column="M_TYPE"/>
|
|
|
- <result property="tags" column="TAGS"/>
|
|
|
- <result property="kind" column="KIND"/>
|
|
|
- <result property="purpose" column="PURPOSE"/>
|
|
|
- <result property="israte" column="ISRATE"/>
|
|
|
- <result property="weight" column="WEIGHT"/>
|
|
|
- <result property="devkind" column="DEVKIND"/>
|
|
|
- <result property="author" column="AUTHOR"/>
|
|
|
- <result property="ispublic" column="ISPUBLIC"/>
|
|
|
- <result property="isapproved" column="ISAPPROVED"/>
|
|
|
- <result property="status" column="M_STATUS"/>
|
|
|
- <result property="classname" column="CLASSNAME"/>
|
|
|
- <result property="mdRunCmd" column="MD_RUN_CMD"/>
|
|
|
- <result property="mdUrl" column="MD_URL"/>
|
|
|
- <result property="mdAuth" column="MD_AUTH"/>
|
|
|
- <result property="mdHeader" column="MD_HEADER"/>
|
|
|
- <result property="mdSecret" column="MD_SECRET"/>
|
|
|
- <result property="mdUnit" column="MD_UNIT"/>
|
|
|
- <result property="mdContact" column="MD_CONTACT"/>
|
|
|
- <result property="devUnit" column="DEV_UNIT"/>
|
|
|
- <result property="devContact" column="DEV_CONTACT"/>
|
|
|
- <result property="whFlag" column="WH_FLAG"/>
|
|
|
- <result property="whUrl" column="WH_URL"/>
|
|
|
- <result property="whMethod" column="WH_METHOD"/>
|
|
|
- <result property="whAuth" column="WH_AUTH"/>
|
|
|
- <result property="whHeader" column="WH_HEADER"/>
|
|
|
- <result property="whSecret" column="WH_SECRET"/>
|
|
|
- <result property="envOs" column="ENV_OS"/>
|
|
|
- <result property="evnArmX86" column="EVN_ARM_X86"/>
|
|
|
- <result property="envCpu" column="ENV_CPU"/>
|
|
|
- <result property="envGpuType" column="ENV_GPU_TYPE"/>
|
|
|
- <result property="envGpuNum" column="ENV_GPU_NUM"/>
|
|
|
- <result property="envGpuMem" column="ENV_GPU_MEM"/>
|
|
|
- <result property="envDisk" column="ENV_DISK"/>
|
|
|
- <result property="envMem" column="ENV_MEM"/>
|
|
|
- <result property="deployIp" column="DEPLOY_IP"/>
|
|
|
- <result property="deployDir" column="DEPLOY_DIR"/>
|
|
|
- <result property="deployPort" column="DEPLOY_PORT"/>
|
|
|
- <result property="deployNote" column="DEPLOY_NOTE"/>
|
|
|
- <result property="mdInName" column="MD_IN_NAME"/>
|
|
|
- <result property="mdInFile" column="MD_IN_FILE"/>
|
|
|
- <result property="mdInNote" column="MD_IN_NOTE"/>
|
|
|
- <result property="mdOutName" column="MD_OUT_NAME"/>
|
|
|
- <result property="mdOutFile" column="MD_OUT_FILE"/>
|
|
|
- <result property="mdOutNote" column="MD_OUT_NOTE"/>
|
|
|
- <result property="mirrorImageName" column="MIRROR_IMAGE_NAME"/>
|
|
|
- <result property="mirrorImageUrl" column="MIRROR_IMAGE_URL"/>
|
|
|
- <result property="mirrorImageDesc" column="MIRROR_IMAGE_DESC"/>
|
|
|
- <result property="mdAuthUrl" column="MD_AUTH_URL"/>
|
|
|
- <result property="createby" column="CREATEBY"/>
|
|
|
- <result property="modifyby" column="MODIFYBY"/>
|
|
|
- <result property="regUser" column="REG_USER"/>
|
|
|
- <result property="sort" column="SORT"/>
|
|
|
- <result property="audit" column="AUDIT"/>
|
|
|
- <collection property="serviceList" ofType="com.ruoyi.interfaces.domain.PtService" resultMap="PtServiceVoMap"/>
|
|
|
- </resultMap>
|
|
|
- <resultMap id="PtServiceVoMap" type="com.ruoyi.interfaces.domain.PtService">
|
|
|
- <id column="SRV_ID" jdbcType="VARCHAR" property="srvId"/>
|
|
|
- <result column="CATE_CODE" jdbcType="VARCHAR" property="cateCode"/>
|
|
|
- <result column="s_name" jdbcType="VARCHAR" property="name"/>
|
|
|
- <result column="s_type" jdbcType="VARCHAR" property="type"/>
|
|
|
- <result column="s_intro" jdbcType="VARCHAR" property="intro"/>
|
|
|
- <result column="URL" jdbcType="VARCHAR" property="url"/>
|
|
|
- <result column="RQTYPE" jdbcType="VARCHAR" property="rqtype"/>
|
|
|
- <result column="RPTYPE" jdbcType="VARCHAR" property="rptype"/>
|
|
|
- <result column="S_STATUS" jdbcType="VARCHAR" property="status"/>
|
|
|
- <result column="CNT" jdbcType="DECIMAL" property="cnt"/>
|
|
|
- <result column="USER_ID" jdbcType="VARCHAR" property="userId"/>
|
|
|
- <result column="RPCONTENT" jdbcType="CLOB" property="rpcontent"/>
|
|
|
- <result column="NOTE" jdbcType="CLOB" property="note"/>
|
|
|
- <result column="EXAMPLE" jdbcType="CLOB" property="example"/>
|
|
|
- <result column="PROXY_ADDRESS" jdbcType="VARCHAR" property="proxyAddress"/>
|
|
|
- <result column="PROXY_PATH" jdbcType="VARCHAR" property="proxyPath"/>
|
|
|
- <result column="gateway_id" jdbcType="VARCHAR" property="gatewayId"/>
|
|
|
- <result column="state" jdbcType="VARCHAR" property="state"/>
|
|
|
- <result column="SERVICE_SOURCE" jdbcType="VARCHAR" property="serviceSource"/>
|
|
|
- <result property="serviceDept" column="SERVICE_DEPT" jdbcType="VARCHAR"/>
|
|
|
- <result property="manageName" column="MANAGE_NAME" jdbcType="VARCHAR"/>
|
|
|
- <result property="releaseTime" column="RELEASE_TIME" jdbcType="TIMESTAMP"/>
|
|
|
- <result property="developUnit" column="DEVELOP_UNIT" jdbcType="VARCHAR"/>
|
|
|
- <result property="developContacter" column="DEVELOP_CONTACTER" jdbcType="VARCHAR"/>
|
|
|
- <result property="maintainUnit" column="MAINTAIN_UNIT" jdbcType="VARCHAR"/>
|
|
|
- <result property="maintainContacer" column="MAINTAIN_CONTACER" jdbcType="VARCHAR"/>
|
|
|
- <result column="VIEW_NUM" jdbcType="DECIMAL" property="viewNum"/>
|
|
|
- <result column="UP_CYCL" property="upCycl" jdbcType="VARCHAR"/>
|
|
|
- <result column="OPEN_CNDTN" property="openCndtn" jdbcType="VARCHAR"/>
|
|
|
- <result column="AD_NAME" property="adName" jdbcType="VARCHAR"/>
|
|
|
- <result column="DATA_FIELD" property="dataField" jdbcType="VARCHAR"/>
|
|
|
- <result column="TM" jdbcType="DATE" property="tm"/>
|
|
|
- <result column="UPTM" property="uptm" jdbcType="DATE"/>
|
|
|
- <result column="RLSTM" property="rlstm" jdbcType="DATE"/>
|
|
|
- <result column="DATA_RANGE" property="dataRange" jdbcType="VARCHAR"/>
|
|
|
- <result column="APPLY_NUM" property="applyNum" jdbcType="INTEGER"/>
|
|
|
- <result column="DATA_NUM" property="dataNum" jdbcType="INTEGER"/>
|
|
|
- <result column="SEN_STATE" property="senState" jdbcType="INTEGER"/>
|
|
|
- <result column="S_AUDIT" property="audit" jdbcType="VARCHAR"/>
|
|
|
- <result column="S_AUDIT_BY" property="auditBy" jdbcType="VARCHAR"/>
|
|
|
- <result column="S_AUDIT_TIME" property="auditTime"/>
|
|
|
- <result column="S_AUDIT_REMARK" property="auditRemark" jdbcType="VARCHAR"/>
|
|
|
- <result column="S_PUBLISH" property="publish" jdbcType="VARCHAR"/>
|
|
|
- <result column="S_PUBLISH_BY" property="publishBy" jdbcType="VARCHAR"/>
|
|
|
- <result column="S_PUBLISH_TIME" property="publishTime"/>
|
|
|
- <result column="data_Signature" property="dataSignature"/>
|
|
|
- </resultMap>
|
|
|
-
|
|
|
-
|
|
|
- <select id="selectModelService" resultMap="MdModelInfoVoMap">
|
|
|
- select
|
|
|
- m.MDID,
|
|
|
- m.NAME as M_NAME,
|
|
|
- m.ENNAME,
|
|
|
- m.CATEID,
|
|
|
- m.DEVLANG,
|
|
|
- m.VERSION,
|
|
|
- m.INTRO as M_INTRO,
|
|
|
- m.TYPE AS M_TYPE,
|
|
|
- m.TAGS,
|
|
|
- m.KIND,
|
|
|
- m.PURPOSE,
|
|
|
- m.ISRATE,
|
|
|
- m.WEIGHT,
|
|
|
- m.DEVKIND,
|
|
|
- m.AUTHOR,
|
|
|
- m.ISPUBLIC,
|
|
|
- m.ISAPPROVED,
|
|
|
- m.STATUS AS M_STATUS,
|
|
|
- m.CLASSNAME,
|
|
|
- m.MD_RUN_CMD,
|
|
|
- m.MD_URL,
|
|
|
- m.MD_AUTH,
|
|
|
- m.MD_HEADER,
|
|
|
- m.MD_SECRET,
|
|
|
- m.MD_UNIT,
|
|
|
- m.MD_CONTACT,
|
|
|
- m.DEV_UNIT,
|
|
|
- m.DEV_CONTACT,
|
|
|
- m.WH_FLAG,
|
|
|
- m.WH_URL,
|
|
|
- m.WH_METHOD,
|
|
|
- m.WH_AUTH,
|
|
|
- m.WH_HEADER,
|
|
|
- m.WH_SECRET,
|
|
|
- m.ENV_OS,
|
|
|
- m.EVN_ARM_X86,
|
|
|
- m.ENV_CPU,
|
|
|
- m.ENV_GPU_TYPE,
|
|
|
- m.ENV_GPU_NUM,
|
|
|
- m.ENV_GPU_MEM,
|
|
|
- m.ENV_DISK,
|
|
|
- m.ENV_MEM,
|
|
|
- m.DEPLOY_IP,
|
|
|
- m.DEPLOY_DIR,
|
|
|
- m.DEPLOY_PORT,
|
|
|
- m.DEPLOY_NOTE,
|
|
|
- m.MD_IN_NAME,
|
|
|
- m.MD_IN_FILE,
|
|
|
- m.MD_IN_NOTE,
|
|
|
- m.MD_OUT_NAME,
|
|
|
- m.MD_OUT_FILE,
|
|
|
- m.MD_OUT_NOTE,
|
|
|
- m.MIRROR_IMAGE_NAME,
|
|
|
- m.MIRROR_IMAGE_URL,
|
|
|
- m.MIRROR_IMAGE_DESC,
|
|
|
- m.MD_AUTH_URL,
|
|
|
- m.CREATEBY,
|
|
|
- m.MODIFYBY,
|
|
|
- m.REG_USER,
|
|
|
- m.SORT,
|
|
|
- m."AUDIT",
|
|
|
- s.UP_CYCL,
|
|
|
- s.OPEN_CNDTN,
|
|
|
- s.AD_NAME,
|
|
|
- s.DATA_FIELD,
|
|
|
- s.UPTM,
|
|
|
- s.RLSTM,
|
|
|
- s.DATA_RANGE,
|
|
|
- s.APPLY_NUM,
|
|
|
- s.DATA_NUM,
|
|
|
- s.SRV_ID,
|
|
|
- s.CATE_CODE,
|
|
|
- s.NAME as s_name,
|
|
|
- s.TYPE s_type,
|
|
|
- s.INTRO s_intro,
|
|
|
- s.URL,
|
|
|
- s.RQTYPE,
|
|
|
- s.RPTYPE,
|
|
|
- s.RPCONTENT,
|
|
|
- s.NOTE,
|
|
|
- s.EXAMPLE,
|
|
|
- s.STATUS S_STATUS,
|
|
|
- s.CNT,
|
|
|
- s.USER_ID,
|
|
|
- s.TM,
|
|
|
- s.PROXY_ADDRESS,
|
|
|
- s.PROXY_PATH,
|
|
|
- s.SERVICE_SOURCE,
|
|
|
- s.SERVICE_DEPT,
|
|
|
- s.MANAGE_NAME,
|
|
|
- s.RELEASE_TIME,
|
|
|
- s.DEVELOP_UNIT,
|
|
|
- s.DEVELOP_CONTACTER,
|
|
|
- s.MAINTAIN_UNIT,
|
|
|
- s.MAINTAIN_CONTACER,
|
|
|
- s.VIEW_NUM,
|
|
|
- s."AUDIT" as S_AUDIT,
|
|
|
- s.AUDIT_BY AS S_AUDIT_BY,
|
|
|
- s.AUDIT_TIME AS S_AUDIT_TIME,
|
|
|
- s.AUDIT_REMARK AS S_AUDIT_REMARK,
|
|
|
- s.PUBLISH AS S_PUBLISH,
|
|
|
- s.PUBLISH_BY AS S_PUBLISH_BY,
|
|
|
- s.PUBLISH_TIME AS S_PUBLISH_TIME,
|
|
|
- s.state,
|
|
|
- s.data_Signature,
|
|
|
- r.SEN_STATE
|
|
|
- from md_model_info m left join pt_service s on m.mdid = s.MDID
|
|
|
- LEFT JOIN (
|
|
|
- SELECT ser_id, sen_state FROM (
|
|
|
- SELECT t.* ,
|
|
|
- ROW_NUMBER () OVER (PARTITION BY ser_id ORDER BY run_tm DESC ) rn
|
|
|
- FROM pt_service_run_log t
|
|
|
- ) WHERE rn = 1
|
|
|
- ) r ON s.SRV_ID =
|
|
|
- r.ser_id
|
|
|
- <where>
|
|
|
- <if test="mdid != null ">and m.mdid = #{mdid}</if>
|
|
|
- </where>
|
|
|
- order by s.sort
|
|
|
- </select>
|
|
|
</mapper>
|