仿真子系统添加<运行图编制工作站>;<新建单位rootId字段没有值>bug修改

This commit is contained in:
joylink_zhangsai 2021-02-18 11:10:14 +08:00
parent e37ee81e86
commit d96e44f896
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ public enum MapPrdTypeEnum {
SCHEDULING("05", "派班工作站"), SCHEDULING("05", "派班工作站"),
ISCS("06", "ISCS工作站"), ISCS("06", "ISCS工作站"),
BIG_SCREEN("07", "大屏工作站"), BIG_SCREEN("07", "大屏工作站"),
RUN_PLAN_MAKE("08", "运行图编制工作站")
; ;
private String code; private String code;

View File

@ -80,6 +80,8 @@ public class OrgUserService implements IOrgUserService {
public CompanyVO create(CompanyVO companyVO) { public CompanyVO create(CompanyVO companyVO) {
Org entity = companyVO.toDB(); Org entity = companyVO.toDB();
this.orgDAO.insert(entity); this.orgDAO.insert(entity);
entity.setRootId(entity.getId());
orgDAO.updateByPrimaryKey(entity);
return new CompanyVO(entity); return new CompanyVO(entity);
} }