Commit 7af6bde3 authored by xxxxxwwwww's avatar xxxxxwwwww

修改

parent 4d2a06cc
......@@ -71,14 +71,14 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantExtent.setTenantState((short) 0);
int j = ocpTenantExtentMapper.insert(ocpTenantExtent);
OcpTenantGroup ocpTenantGroup = new OcpTenantGroup();
ocpTenantGroup.setTenantGroupUserId(appRegisterDTO.getUserId());
ocpTenantGroup.setTenantGroupUserName(appRegisterDTO.getUserName());
ocpTenantGroup.setTenantGroupCtime(new Timestamp(System.currentTimeMillis()));
ocpTenantGroup.setTenantGroupCode(GUIDGenerator.generate32(true));
ocpTenantGroup.setTenantGroupName(appRegisterDTO.getType());
ocpTenantGroup.setIsDelete((short) 0);
int m = ocpTenantGroupMapper.insert(ocpTenantGroup);
// OcpTenantGroup ocpTenantGroup = new OcpTenantGroup();
// ocpTenantGroup.setTenantGroupUserId(appRegisterDTO.getUserId());
// ocpTenantGroup.setTenantGroupUserName(appRegisterDTO.getUserName());
// ocpTenantGroup.setTenantGroupCtime(new Timestamp(System.currentTimeMillis()));
// ocpTenantGroup.setTenantGroupCode(GUIDGenerator.generate32(true));
// ocpTenantGroup.setTenantGroupName(appRegisterDTO.getType());
// ocpTenantGroup.setIsDelete((short) 0);
// int m = ocpTenantGroupMapper.insert(ocpTenantGroup);
OcpTenantBase ocpTenantBase = new OcpTenantBase();
ocpTenantBase.setTenantUserId(appRegisterDTO.getUserId());
......@@ -90,11 +90,11 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantBase.setTenantUnit(appRegisterDTO.getManufacturer());
ocpTenantBase.setTenantVersion(appRegisterDTO.getVersion());
ocpTenantBase.setTenantCtime(new Timestamp(System.currentTimeMillis()));
ocpTenantBase.setTenantGroupCode(ocpTenantGroup.getTenantGroupCode());
ocpTenantBase.setTenantGroupCode(appRegisterDTO.getType());
ocpTenantBase.setIsDelete((short) 0);
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.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