|
@@ -97,8 +97,9 @@ public class SysPlatformServiceImpl extends AbstractCrudService<SysPlatformMappe
|
|
|
@Transactional
|
|
|
public void updatePlatformMenu(PlatformMenuVo platformMenuVo) {
|
|
|
SysPlatform sysPlatform = new SysPlatform();
|
|
|
+ sysPlatform.setPlatformName(platformMenuVo.getPlatformName());
|
|
|
+ sysPlatform.setIcon(platformMenuVo.getIcon());
|
|
|
if (platformMenuVo.getPlatformId().intValue() == 0) {
|
|
|
- sysPlatform.setPlatformName(platformMenuVo.getPlatformName());
|
|
|
sysPlatform.setCreateBy(SecurityUtils.getUsername());
|
|
|
sysPlatform.setCreateTime(LocalDateTime.now());
|
|
|
this.save(sysPlatform);
|
|
@@ -106,7 +107,6 @@ public class SysPlatformServiceImpl extends AbstractCrudService<SysPlatformMappe
|
|
|
platformMenuVo.setPlatformId(fid.longValue());
|
|
|
}else {
|
|
|
sysPlatform.setId(platformMenuVo.getPlatformId().intValue());
|
|
|
- sysPlatform.setPlatformName(platformMenuVo.getPlatformName());
|
|
|
sysPlatform.setUpdateBy(SecurityUtils.getUsername());
|
|
|
sysPlatform.setUpdateTime(LocalDateTime.now());
|
|
|
this.updateById(sysPlatform);
|