|
|
@@ -46,6 +46,7 @@
|
|
|
<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"/>
|
|
|
</resultMap>
|
|
|
<resultMap id="AuthVoResultMap" type="com.ruoyi.interfaces.domain.vo.PtServiceVo">
|
|
|
@@ -71,6 +72,7 @@
|
|
|
<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"/>
|
|
|
@@ -112,7 +114,8 @@ AUDIT_REMARK,
|
|
|
PUBLISH,
|
|
|
PUBLISH_BY,
|
|
|
PUBLISH_TIME,
|
|
|
- GATEWAY_ID
|
|
|
+ GATEWAY_ID,
|
|
|
+ state
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
RPCONTENT
|
|
|
@@ -127,7 +130,8 @@ AUDIT_REMARK,
|
|
|
PUBLISH,
|
|
|
PUBLISH_BY,
|
|
|
PUBLISH_TIME
|
|
|
- ,GATEWAY_ID
|
|
|
+ ,GATEWAY_ID,
|
|
|
+ state
|
|
|
</sql>
|
|
|
<sql id="table_columns">
|
|
|
MDID
|
|
|
@@ -175,7 +179,8 @@ PUBLISH_TIME
|
|
|
PUBLISH,
|
|
|
PUBLISH_BY,
|
|
|
PUBLISH_TIME,
|
|
|
- GATEWAY_ID
|
|
|
+ GATEWAY_ID,
|
|
|
+ state
|
|
|
</sql>
|
|
|
<sql id="entity_properties">
|
|
|
#{mdid,jdbcType=VARCHAR},
|
|
|
@@ -310,6 +315,8 @@ PUBLISH_TIME
|
|
|
</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}
|
|
|
@@ -481,6 +488,11 @@ PUBLISH_TIME
|
|
|
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">
|
|
|
@@ -510,7 +522,6 @@ PUBLISH_TIME
|
|
|
<select id="listByUserService" resultMap="AuthVoResultMap">
|
|
|
SELECT A.ID,
|
|
|
A.DEADLINE,
|
|
|
- A.gateway_id,
|
|
|
A.USER_ID,
|
|
|
P.UP_CYCL,
|
|
|
P.OPEN_CNDTN,
|
|
|
@@ -544,7 +555,9 @@ PUBLISH_TIME
|
|
|
P.DEVELOP_CONTACTER,
|
|
|
P.MAINTAIN_UNIT,
|
|
|
P.MAINTAIN_CONTACER,
|
|
|
- P.VIEW_NUM
|
|
|
+ P.VIEW_NUM,
|
|
|
+ P.state,
|
|
|
+ P.gateway_id,
|
|
|
FROM PT_SERVICE P
|
|
|
JOIN PT_SERVICE_AUTH A ON P.SRV_ID = A.SRV_ID
|
|
|
WHERE A.USER_ID = #{userId}
|
|
|
@@ -632,6 +645,7 @@ PUBLISH_TIME
|
|
|
<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"/>
|