(1)特定服务管理,增加一列,配置类型;
(2)app策略,增加一列行为类型
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<result column="op_time" property="opTime" jdbcType="TIMESTAMP" />
|
||||
<result column="is_leaf" property="isLeaf" jdbcType="INTEGER" />
|
||||
<result column="group_id" property="groupId" jdbcType="INTEGER" />
|
||||
<result column="cfg_type" property="cfgType" jdbcType="INTEGER" />
|
||||
<!-- 父id -->
|
||||
<association property="parent" javaType="com.nis.domain.specific.SpecificServiceCfg">
|
||||
<id column="parent_id" property="specServiceId" jdbcType="INTEGER" />
|
||||
@@ -26,7 +27,8 @@
|
||||
s.op_time AS opTime,
|
||||
s.parent_id AS "parent.specServiceId",
|
||||
s.is_leaf AS isLeaf,
|
||||
s.group_id AS groupId
|
||||
s.group_id AS groupId,
|
||||
s.cfg_type AS cfgType
|
||||
</sql>
|
||||
|
||||
|
||||
@@ -53,6 +55,9 @@
|
||||
<if test="groupId != null and groupId != '' ">
|
||||
AND group_id like '%${groupId}%'
|
||||
</if>
|
||||
<if test="cfgType != null and cfgType != '' ">
|
||||
AND cfg_type =#{cfgType,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="beginDate != null" >
|
||||
AND s.op_time >= #{beginDate,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
@@ -112,6 +117,9 @@
|
||||
<if test="specificServiceCfg.groupId != null and specificServiceCfg.groupId != '' ">
|
||||
AND group_id like '%${specificServiceCfg.groupId}%'
|
||||
</if>
|
||||
<if test="specificServiceCfg.cfgType != null and specificServiceCfg.cfgType != '' ">
|
||||
AND cfg_type = #{specificServiceCfg.cfgType}
|
||||
</if>
|
||||
<if test="specificServiceCfg.beginDate != null">
|
||||
AND op_time > #{specificServiceCfg.beginDate}
|
||||
</if>
|
||||
@@ -130,8 +138,8 @@
|
||||
|
||||
<!-- 新增 -->
|
||||
<insert id="insert" parameterType="com.nis.domain.specific.SpecificServiceCfg" useGeneratedKeys="true">
|
||||
insert into specific_service_cfg (spec_service_code,spec_service_name,spec_service_desc,is_valid, op_time, parent_id,is_leaf,group_id)
|
||||
values(#{specServiceCode},#{specServiceName},#{specServiceDesc},#{isValid},#{opTime},#{parent.specServiceId},#{isLeaf},#{groupId})
|
||||
insert into specific_service_cfg (spec_service_code,spec_service_name,spec_service_desc,is_valid, op_time, parent_id,is_leaf,group_id,cfg_type)
|
||||
values(#{specServiceCode},#{specServiceName},#{specServiceDesc},#{isValid},#{opTime},#{parent.specServiceId},#{isLeaf},#{groupId},#{cfgType})
|
||||
</insert>
|
||||
|
||||
<!-- 修改 -->
|
||||
@@ -144,7 +152,8 @@
|
||||
s.op_time = #{opTime},
|
||||
s.parent_id = #{parent.specServiceId},
|
||||
s.is_leaf = #{isLeaf},
|
||||
s.group_id = #{groupId}
|
||||
s.group_id = #{groupId},
|
||||
s.cfg_type = #{cfgType}
|
||||
WHERE s.spec_service_id = #{specServiceId}
|
||||
</update>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user