Browse Source

add:添加场景描述字段

master_tdsql
caoqi 1 year ago
parent
commit
79f0de584c
  1. 5
      shuili-system/src/main/java/com/kms/yg/znjg/domain/SyScene.java
  2. 6
      shuili-system/src/main/resources/mapper/yg/znjg/SySceneMapper.xml

5
shuili-system/src/main/java/com/kms/yg/znjg/domain/SyScene.java

@ -42,6 +42,11 @@ public class SyScene implements Serializable {
*/ */
private String interfaceAddress; private String interfaceAddress;
/**
* 描述
*/
private String description;
/** /**
* 数据是否有效用来标识逻辑删除1可用0已被逻辑删除 * 数据是否有效用来标识逻辑删除1可用0已被逻辑删除
*/ */

6
shuili-system/src/main/resources/mapper/yg/znjg/SySceneMapper.xml

@ -10,12 +10,13 @@
<result property="pubDate" column="pub_date" jdbcType="TIMESTAMP"/> <result property="pubDate" column="pub_date" jdbcType="TIMESTAMP"/>
<result property="createUser" column="create_user" jdbcType="VARCHAR"/> <result property="createUser" column="create_user" jdbcType="VARCHAR"/>
<result property="interfaceAddress" column="interface_address" jdbcType="VARCHAR"/> <result property="interfaceAddress" column="interface_address" jdbcType="VARCHAR"/>
<result property="description" column="description" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
y.id y.id
,y.name,y.pub_date, ,y.name,y.pub_date,
y.create_user,y.interface_address y.create_user,y.interface_address,description
</sql> </sql>
<select id="findSceneList" resultType="com.kms.yg.znjg.vo.SySceneVo"> <select id="findSceneList" resultType="com.kms.yg.znjg.vo.SySceneVo">
SELECT SELECT
@ -28,6 +29,9 @@
<if test="syScene.name != null"> <if test="syScene.name != null">
AND name LIKE CONCAT(CONCAT('%', TRIM(#{syScene.name,jdbcType=VARCHAR})), '%') AND name LIKE CONCAT(CONCAT('%', TRIM(#{syScene.name,jdbcType=VARCHAR})), '%')
</if> </if>
<if test="syScene.description != null">
AND description LIKE CONCAT(CONCAT('%', TRIM(#{syScene.description,jdbcType=VARCHAR})), '%')
</if>
<if test="syScene.interfaceAddress != null"> <if test="syScene.interfaceAddress != null">
AND interface_address LIKE CONCAT(CONCAT('%', TRIM(#{syScene.interfaceAddress,jdbcType=VARCHAR})), '%') AND interface_address LIKE CONCAT(CONCAT('%', TRIM(#{syScene.interfaceAddress,jdbcType=VARCHAR})), '%')
</if> </if>

Loading…
Cancel
Save