添加默认分组逻辑

This commit is contained in:
孙小云 2026-01-27 13:44:19 +08:00
parent c3d7142e3c
commit 4b4dede75a
1 changed files with 2 additions and 0 deletions

View File

@ -42,12 +42,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="insertGroup" parameterType="com.ruoyi.device.mapper.entity.GroupEntity" useGeneratedKeys="true" keyProperty="groupId">
insert into device_group
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="groupId != null">group_id,</if>
<if test="groupName != null and groupName != ''">group_name,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="remark != null and remark != ''">remark,</if>
create_time
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="groupId != null">#{groupId},</if>
<if test="groupName != null and groupName != ''">#{groupName},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="remark != null and remark != ''">#{remark},</if>