Commit ec93bf0c authored by liwei's avatar liwei

修改了商家管理的显示bug

parent 7262ccac
...@@ -110,6 +110,8 @@ public class SysUnitServiceImpl extends ServiceImpl<SysUnitRepository, SysUnit> ...@@ -110,6 +110,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 merge(SysUnit sysUnit) { public CyPersistModel merge(SysUnit sysUnit) {
SysUser sysUser = sysUserService.getById(sysUnit.getUserId());
sysUnit.setUnitNumber(sysUser.getUsername());
int line = baseMapper.updateById(sysUnit); int line = baseMapper.updateById(sysUnit);
//根据用户id查询用户信息并且修改 //根据用户id查询用户信息并且修改
if (sysUnit.getUserId() != null) { if (sysUnit.getUserId() != null) {
......
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