Commit 8134af44 by guojuxing

新建账号分组接口改动,返回账号分组主键ID

parent 613a97fd
......@@ -24,7 +24,8 @@ public class AccountGroupServiceImpl implements AccountGroupService{
dto.setCreateTime(new Date());
dto.setUpdateTime(new Date());
TabSysAccountGroup record = EntityUtil.changeEntityNew(TabSysAccountGroup.class, dto);
return tabSysAccountGroupMapper.insert(record);
tabSysAccountGroupMapper.insert(record);
return record.getAccountGroupId();
}
@Override
......
......@@ -23,7 +23,7 @@
delete from tab_sys_account_group
where account_group_id = #{accountGroupId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.auth.entity.TabSysAccountGroup">
<insert id="insert" parameterType="com.gic.auth.entity.TabSysAccountGroup" useGeneratedKeys="true" keyProperty="accountGroupId">
insert into tab_sys_account_group (account_group_id, account_group_name,
enterprise_id, status, sort,
create_time, update_time)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment