Commit 7262ccac authored by liwei's avatar liwei

修改了商家管理的显示bug

parent ccfe1891
...@@ -53,6 +53,8 @@ public class SysUnitServiceImpl extends ServiceImpl<SysUnitRepository, SysUnit> ...@@ -53,6 +53,8 @@ public class SysUnitServiceImpl extends ServiceImpl<SysUnitRepository, SysUnit>
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT) @Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT)
@Override @Override
public CyPersistModel persist(SysUnit sysUnit) { public CyPersistModel persist(SysUnit sysUnit) {
SysUser sysUser = sysUserService.getById(sysUnit.getUserId());
sysUnit.setUnitNumber(sysUser.getUsername());
//增加操作 //增加操作
int line = baseMapper.insert(sysUnit); int line = baseMapper.insert(sysUnit);
//添加unit_user表 //添加unit_user表
......
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