Commit 7af6bde3 authored by xxxxxwwwww's avatar xxxxxwwwww

修改

parent 4d2a06cc
...@@ -71,14 +71,14 @@ public class AppRegisterServiceImpl implements AppRegisterService { ...@@ -71,14 +71,14 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantExtent.setTenantState((short) 0); ocpTenantExtent.setTenantState((short) 0);
int j = ocpTenantExtentMapper.insert(ocpTenantExtent); int j = ocpTenantExtentMapper.insert(ocpTenantExtent);
OcpTenantGroup ocpTenantGroup = new OcpTenantGroup(); // OcpTenantGroup ocpTenantGroup = new OcpTenantGroup();
ocpTenantGroup.setTenantGroupUserId(appRegisterDTO.getUserId()); // ocpTenantGroup.setTenantGroupUserId(appRegisterDTO.getUserId());
ocpTenantGroup.setTenantGroupUserName(appRegisterDTO.getUserName()); // ocpTenantGroup.setTenantGroupUserName(appRegisterDTO.getUserName());
ocpTenantGroup.setTenantGroupCtime(new Timestamp(System.currentTimeMillis())); // ocpTenantGroup.setTenantGroupCtime(new Timestamp(System.currentTimeMillis()));
ocpTenantGroup.setTenantGroupCode(GUIDGenerator.generate32(true)); // ocpTenantGroup.setTenantGroupCode(GUIDGenerator.generate32(true));
ocpTenantGroup.setTenantGroupName(appRegisterDTO.getType()); // ocpTenantGroup.setTenantGroupName(appRegisterDTO.getType());
ocpTenantGroup.setIsDelete((short) 0); // ocpTenantGroup.setIsDelete((short) 0);
int m = ocpTenantGroupMapper.insert(ocpTenantGroup); // int m = ocpTenantGroupMapper.insert(ocpTenantGroup);
OcpTenantBase ocpTenantBase = new OcpTenantBase(); OcpTenantBase ocpTenantBase = new OcpTenantBase();
ocpTenantBase.setTenantUserId(appRegisterDTO.getUserId()); ocpTenantBase.setTenantUserId(appRegisterDTO.getUserId());
...@@ -90,11 +90,11 @@ public class AppRegisterServiceImpl implements AppRegisterService { ...@@ -90,11 +90,11 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantBase.setTenantUnit(appRegisterDTO.getManufacturer()); ocpTenantBase.setTenantUnit(appRegisterDTO.getManufacturer());
ocpTenantBase.setTenantVersion(appRegisterDTO.getVersion()); ocpTenantBase.setTenantVersion(appRegisterDTO.getVersion());
ocpTenantBase.setTenantCtime(new Timestamp(System.currentTimeMillis())); ocpTenantBase.setTenantCtime(new Timestamp(System.currentTimeMillis()));
ocpTenantBase.setTenantGroupCode(ocpTenantGroup.getTenantGroupCode()); ocpTenantBase.setTenantGroupCode(appRegisterDTO.getType());
ocpTenantBase.setIsDelete((short) 0); ocpTenantBase.setIsDelete((short) 0);
int i = ocpTenantBaseMapper.insert(ocpTenantBase); int i = ocpTenantBaseMapper.insert(ocpTenantBase);
if (n > 0 && i > 0 && j > 0 && m > 0) { if (n > 0 && i > 0 && j > 0) {
return ResponseVO.ok(); return ResponseVO.ok();
} }
return ResponseVO.error("新增应用注册失败"); return ResponseVO.error("新增应用注册失败");
......
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