|
@@ -12,6 +12,7 @@
|
|
<result property="secretKey" column="secret_key"/>
|
|
<result property="secretKey" column="secret_key"/>
|
|
<result property="isSwitch" column="is_switch"/>
|
|
<result property="isSwitch" column="is_switch"/>
|
|
<result property="authorityType" column="authority_type"/>
|
|
<result property="authorityType" column="authority_type"/>
|
|
|
|
+ <result property="macAddress" column="mac_address"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="SysSecretProjectDTO" id="getSysSecretProjectList">
|
|
<resultMap type="SysSecretProjectDTO" id="getSysSecretProjectList">
|
|
@@ -24,10 +25,11 @@
|
|
<result property="statusText" column="statusText"/>
|
|
<result property="statusText" column="statusText"/>
|
|
<result property="isSwitch" column="is_switch"/>
|
|
<result property="isSwitch" column="is_switch"/>
|
|
<result property="authorityType" column="authority_type"/>
|
|
<result property="authorityType" column="authority_type"/>
|
|
|
|
+ <result property="macAddress" column="mac_address"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysSecretProjectVo">
|
|
<sql id="selectSysSecretProjectVo">
|
|
- select id, project_id, overdue_date, status, secret_key,is_switch,authority_type
|
|
|
|
|
|
+ select id, project_id, overdue_date, status, secret_key,is_switch,authority_type,mac_address
|
|
from sys_secret_project
|
|
from sys_secret_project
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -43,7 +45,8 @@
|
|
ssp.status,
|
|
ssp.status,
|
|
ssp.is_switch,
|
|
ssp.is_switch,
|
|
secret_key,
|
|
secret_key,
|
|
- ssp.authority_type
|
|
|
|
|
|
+ ssp.authority_type,
|
|
|
|
+ ssp.mac_address
|
|
from sys_secret_project ssp
|
|
from sys_secret_project ssp
|
|
left join sys_project sp on ssp.project_id = sp.id
|
|
left join sys_project sp on ssp.project_id = sp.id
|
|
<where>
|
|
<where>
|
|
@@ -65,7 +68,8 @@
|
|
ssp.status,
|
|
ssp.status,
|
|
ssp.is_switch,
|
|
ssp.is_switch,
|
|
secret_key,
|
|
secret_key,
|
|
- ssp.authority_type
|
|
|
|
|
|
+ ssp.authority_type,
|
|
|
|
+ ssp.mac_address
|
|
from sys_secret_project ssp
|
|
from sys_secret_project ssp
|
|
left join sys_project sp on ssp.project_id = sp.id
|
|
left join sys_project sp on ssp.project_id = sp.id
|
|
where ssp.id = #{id}
|
|
where ssp.id = #{id}
|
|
@@ -80,6 +84,7 @@
|
|
<if test="overdueDate != null">overdue_date,</if>
|
|
<if test="overdueDate != null">overdue_date,</if>
|
|
<if test="isSwitch != null">is_switch,</if>
|
|
<if test="isSwitch != null">is_switch,</if>
|
|
<if test="authorityType != null">authority_type,</if>
|
|
<if test="authorityType != null">authority_type,</if>
|
|
|
|
+ <if test="macAddress != null">mac_address,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="projectId != null">#{projectId},</if>
|
|
<if test="projectId != null">#{projectId},</if>
|
|
@@ -88,6 +93,7 @@
|
|
<if test="overdueDate != null">#{overdueDate},</if>
|
|
<if test="overdueDate != null">#{overdueDate},</if>
|
|
<if test="isSwitch != null">#{isSwitch},</if>
|
|
<if test="isSwitch != null">#{isSwitch},</if>
|
|
<if test="authorityType != null">#{authorityType},</if>
|
|
<if test="authorityType != null">#{authorityType},</if>
|
|
|
|
+ <if test="macAddress != null">#{macAddress},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -100,6 +106,7 @@
|
|
<if test="overdueDate != null">overdue_date = #{overdueDate},</if>
|
|
<if test="overdueDate != null">overdue_date = #{overdueDate},</if>
|
|
<if test="isSwitch != null">is_switch = #{isSwitch},</if>
|
|
<if test="isSwitch != null">is_switch = #{isSwitch},</if>
|
|
<if test="authorityType != null">authority_type = #{authorityType},</if>
|
|
<if test="authorityType != null">authority_type = #{authorityType},</if>
|
|
|
|
+ <if test="macAddress != null">mac_address = #{macAddress},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|