|
|
@@ -149,6 +149,24 @@ public class HlgPlatformServiceImpl extends ServiceImpl<HlgPlatformMapper, HlgPl
|
|
|
removeById(id);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 更新平台信息
|
|
|
+ *
|
|
|
+ * @param hlgPlatform
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ @Transactional
|
|
|
+ public boolean updatePlatform(HlgPlatform hlgPlatform) {
|
|
|
+ //变更机构信息
|
|
|
+ SysDepart sysDepart = sysDepartService.getByCode(hlgPlatform.getSysOrgCode());
|
|
|
+ sysDepart.setDepartName(hlgPlatform.getPlatformName());
|
|
|
+ boolean ok1 = sysDepartService.updateById(sysDepart);
|
|
|
+ //变更企业信息
|
|
|
+ boolean ok = this.updateById(hlgPlatform);
|
|
|
+ return ok & ok1;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* saveDepartData 的调用方法,生成部门编码和部门类型
|