|
@@ -42,32 +42,6 @@
|
|
|
where id = #{id} and company_id = #{companyId} and del_flag = 0
|
|
where id = #{id} and company_id = #{companyId} and del_flag = 0
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
- <insert id="insert" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
- insert into lobster_compliance_rule (
|
|
|
|
|
- company_id, rule_name, rule_type, pattern, description, action,
|
|
|
|
|
- severity, enabled, del_flag, create_by, create_time, update_by, update_time
|
|
|
|
|
- ) values (
|
|
|
|
|
- #{companyId}, #{ruleName}, #{ruleType}, #{pattern}, #{description}, #{action},
|
|
|
|
|
- #{severity}, #{enabled}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}
|
|
|
|
|
- )
|
|
|
|
|
- </insert>
|
|
|
|
|
-
|
|
|
|
|
- <update id="updateById">
|
|
|
|
|
- update lobster_compliance_rule
|
|
|
|
|
- <set>
|
|
|
|
|
- <if test="ruleName != null">rule_name = #{ruleName},</if>
|
|
|
|
|
- <if test="ruleType != null">rule_type = #{ruleType},</if>
|
|
|
|
|
- <if test="pattern != null">pattern = #{pattern},</if>
|
|
|
|
|
- <if test="description != null">description = #{description},</if>
|
|
|
|
|
- <if test="action != null">action = #{action},</if>
|
|
|
|
|
- <if test="severity != null">severity = #{severity},</if>
|
|
|
|
|
- <if test="enabled != null">enabled = #{enabled},</if>
|
|
|
|
|
- <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
- update_time = #{updateTime}
|
|
|
|
|
- </set>
|
|
|
|
|
- where id = #{id} and company_id = #{companyId}
|
|
|
|
|
- </update>
|
|
|
|
|
-
|
|
|
|
|
<update id="logicalDeleteById">
|
|
<update id="logicalDeleteById">
|
|
|
update lobster_compliance_rule set del_flag = 1 where id = #{id} and company_id = #{companyId}
|
|
update lobster_compliance_rule set del_flag = 1 where id = #{id} and company_id = #{companyId}
|
|
|
</update>
|
|
</update>
|