提交 b0556a44 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 发布系统代码 [ibiz-rt,ibizlab-runtime]

上级 eb0193d4
......@@ -61,7 +61,7 @@ public class DictCatalogFallback implements DictCatalogFeignClient {
}
public DictCatalog saveEntity(DictCatalog dictcatalog) {
public Object saveEntity(DictCatalog dictcatalog) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface DictCatalogFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/dictcatalogs/save")
DictCatalog saveEntity(@RequestBody DictCatalog dictcatalog);
Object saveEntity(@RequestBody DictCatalog dictcatalog);
default Boolean save(@RequestBody DictCatalog dictcatalog) { return saveEntity(dictcatalog)!=null; }
......
......@@ -61,7 +61,7 @@ public class DictOptionFallback implements DictOptionFeignClient {
}
public DictOption saveEntity(DictOption dictoption) {
public Object saveEntity(DictOption dictoption) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface DictOptionFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/dictoptions/save")
DictOption saveEntity(@RequestBody DictOption dictoption);
Object saveEntity(@RequestBody DictOption dictoption);
default Boolean save(@RequestBody DictOption dictoption) { return saveEntity(dictoption)!=null; }
......
......@@ -108,11 +108,23 @@ public class DictCatalogServiceImpl implements IDictCatalogService {
@Override
@Transactional
public boolean save(DictCatalog et) {
DictCatalog rt = dictCatalogFeignClient.saveEntity(et);
boolean result = true;
Object rt = dictCatalogFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), DictCatalog.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class DictOptionServiceImpl implements IDictOptionService {
@Override
@Transactional
public boolean save(DictOption et) {
DictOption rt = dictOptionFeignClient.saveEntity(et);
boolean result = true;
Object rt = dictOptionFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), DictOption.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -61,7 +61,7 @@ public class SDFileFallback implements SDFileFeignClient {
}
public SDFile saveEntity(SDFile sdfile) {
public Object saveEntity(SDFile sdfile) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SDFileFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sdfiles/save")
SDFile saveEntity(@RequestBody SDFile sdfile);
Object saveEntity(@RequestBody SDFile sdfile);
default Boolean save(@RequestBody SDFile sdfile) { return saveEntity(sdfile)!=null; }
......
......@@ -108,11 +108,23 @@ public class SDFileServiceImpl implements ISDFileService {
@Override
@Transactional
public boolean save(SDFile et) {
SDFile rt = sDFileFeignClient.saveEntity(et);
boolean result = true;
Object rt = sDFileFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SDFile.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -61,7 +61,7 @@ public class MsgBodyFallback implements MsgBodyFeignClient {
}
public MsgBody saveEntity(MsgBody msgbody) {
public Object saveEntity(MsgBody msgbody) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface MsgBodyFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/msgbodies/save")
MsgBody saveEntity(@RequestBody MsgBody msgbody);
Object saveEntity(@RequestBody MsgBody msgbody);
default Boolean save(@RequestBody MsgBody msgbody) { return saveEntity(msgbody)!=null; }
......
......@@ -61,7 +61,7 @@ public class MsgOpenAccessFallback implements MsgOpenAccessFeignClient {
}
public MsgOpenAccess saveEntity(MsgOpenAccess msgopenaccess) {
public Object saveEntity(MsgOpenAccess msgopenaccess) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface MsgOpenAccessFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/msgopenaccesses/save")
MsgOpenAccess saveEntity(@RequestBody MsgOpenAccess msgopenaccess);
Object saveEntity(@RequestBody MsgOpenAccess msgopenaccess);
default Boolean save(@RequestBody MsgOpenAccess msgopenaccess) { return saveEntity(msgopenaccess)!=null; }
......
......@@ -61,7 +61,7 @@ public class MsgTemplateFallback implements MsgTemplateFeignClient {
}
public MsgTemplate saveEntity(MsgTemplate msgtemplate) {
public Object saveEntity(MsgTemplate msgtemplate) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface MsgTemplateFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/msgtemplates/save")
MsgTemplate saveEntity(@RequestBody MsgTemplate msgtemplate);
Object saveEntity(@RequestBody MsgTemplate msgtemplate);
default Boolean save(@RequestBody MsgTemplate msgtemplate) { return saveEntity(msgtemplate)!=null; }
......
......@@ -61,7 +61,7 @@ public class MsgUserAccountFallback implements MsgUserAccountFeignClient {
}
public MsgUserAccount saveEntity(MsgUserAccount msguseraccount) {
public Object saveEntity(MsgUserAccount msguseraccount) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface MsgUserAccountFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/msguseraccounts/save")
MsgUserAccount saveEntity(@RequestBody MsgUserAccount msguseraccount);
Object saveEntity(@RequestBody MsgUserAccount msguseraccount);
default Boolean save(@RequestBody MsgUserAccount msguseraccount) { return saveEntity(msguseraccount)!=null; }
......
......@@ -108,11 +108,23 @@ public class MsgBodyServiceImpl implements IMsgBodyService {
@Override
@Transactional
public boolean save(MsgBody et) {
MsgBody rt = msgBodyFeignClient.saveEntity(et);
boolean result = true;
Object rt = msgBodyFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), MsgBody.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class MsgOpenAccessServiceImpl implements IMsgOpenAccessService {
@Override
@Transactional
public boolean save(MsgOpenAccess et) {
MsgOpenAccess rt = msgOpenAccessFeignClient.saveEntity(et);
boolean result = true;
Object rt = msgOpenAccessFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), MsgOpenAccess.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class MsgTemplateServiceImpl implements IMsgTemplateService {
@Override
@Transactional
public boolean save(MsgTemplate et) {
MsgTemplate rt = msgTemplateFeignClient.saveEntity(et);
boolean result = true;
Object rt = msgTemplateFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), MsgTemplate.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class MsgUserAccountServiceImpl implements IMsgUserAccountService {
@Override
@Transactional
public boolean save(MsgUserAccount et) {
MsgUserAccount rt = msgUserAccountFeignClient.saveEntity(et);
boolean result = true;
Object rt = msgUserAccountFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), MsgUserAccount.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -61,7 +61,7 @@ public class SysDepartmentFallback implements SysDepartmentFeignClient {
}
public SysDepartment saveEntity(SysDepartment sysdepartment) {
public Object saveEntity(SysDepartment sysdepartment) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysDepartmentFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysdepartments/save")
SysDepartment saveEntity(@RequestBody SysDepartment sysdepartment);
Object saveEntity(@RequestBody SysDepartment sysdepartment);
default Boolean save(@RequestBody SysDepartment sysdepartment) { return saveEntity(sysdepartment)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysDeptMemberFallback implements SysDeptMemberFeignClient {
}
public SysDeptMember saveEntity(SysDeptMember sysdeptmember) {
public Object saveEntity(SysDeptMember sysdeptmember) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysDeptMemberFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysdeptmembers/save")
SysDeptMember saveEntity(@RequestBody SysDeptMember sysdeptmember);
Object saveEntity(@RequestBody SysDeptMember sysdeptmember);
default Boolean save(@RequestBody SysDeptMember sysdeptmember) { return saveEntity(sysdeptmember)!=null; }
......
......@@ -65,7 +65,7 @@ public class SysEmployeeFallback implements SysEmployeeFeignClient {
return null;
}
public SysEmployee saveEntity(SysEmployee sysemployee) {
public Object saveEntity(SysEmployee sysemployee) {
return null;
}
......
......@@ -61,7 +61,7 @@ public interface SysEmployeeFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysemployees/save")
SysEmployee saveEntity(@RequestBody SysEmployee sysemployee);
Object saveEntity(@RequestBody SysEmployee sysemployee);
default Boolean save(@RequestBody SysEmployee sysemployee) { return saveEntity(sysemployee)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysOrganizationFallback implements SysOrganizationFeignClient {
}
public SysOrganization saveEntity(SysOrganization sysorganization) {
public Object saveEntity(SysOrganization sysorganization) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysOrganizationFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysorganizations/save")
SysOrganization saveEntity(@RequestBody SysOrganization sysorganization);
Object saveEntity(@RequestBody SysOrganization sysorganization);
default Boolean save(@RequestBody SysOrganization sysorganization) { return saveEntity(sysorganization)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysPostFallback implements SysPostFeignClient {
}
public SysPost saveEntity(SysPost syspost) {
public Object saveEntity(SysPost syspost) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysPostFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysposts/save")
SysPost saveEntity(@RequestBody SysPost syspost);
Object saveEntity(@RequestBody SysPost syspost);
default Boolean save(@RequestBody SysPost syspost) { return saveEntity(syspost)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysTeamFallback implements SysTeamFeignClient {
}
public SysTeam saveEntity(SysTeam systeam) {
public Object saveEntity(SysTeam systeam) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysTeamFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/systeams/save")
SysTeam saveEntity(@RequestBody SysTeam systeam);
Object saveEntity(@RequestBody SysTeam systeam);
default Boolean save(@RequestBody SysTeam systeam) { return saveEntity(systeam)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysTeamMemberFallback implements SysTeamMemberFeignClient {
}
public SysTeamMember saveEntity(SysTeamMember systeammember) {
public Object saveEntity(SysTeamMember systeammember) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysTeamMemberFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/systeammembers/save")
SysTeamMember saveEntity(@RequestBody SysTeamMember systeammember);
Object saveEntity(@RequestBody SysTeamMember systeammember);
default Boolean save(@RequestBody SysTeamMember systeammember) { return saveEntity(systeammember)!=null; }
......
......@@ -108,11 +108,23 @@ public class SysDepartmentServiceImpl implements ISysDepartmentService {
@Override
@Transactional
public boolean save(SysDepartment et) {
SysDepartment rt = sysDepartmentFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysDepartmentFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysDepartment.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysDeptMemberServiceImpl implements ISysDeptMemberService {
@Override
@Transactional
public boolean save(SysDeptMember et) {
SysDeptMember rt = sysDeptMemberFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysDeptMemberFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysDeptMember.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -124,11 +124,23 @@ public class SysEmployeeServiceImpl implements ISysEmployeeService {
@Override
@Transactional
public boolean save(SysEmployee et) {
SysEmployee rt = sysEmployeeFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysEmployeeFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysEmployee.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysOrganizationServiceImpl implements ISysOrganizationService {
@Override
@Transactional
public boolean save(SysOrganization et) {
SysOrganization rt = sysOrganizationFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysOrganizationFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysOrganization.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysPostServiceImpl implements ISysPostService {
@Override
@Transactional
public boolean save(SysPost et) {
SysPost rt = sysPostFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysPostFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysPost.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysTeamMemberServiceImpl implements ISysTeamMemberService {
@Override
@Transactional
public boolean save(SysTeamMember et) {
SysTeamMember rt = sysTeamMemberFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysTeamMemberFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysTeamMember.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysTeamServiceImpl implements ISysTeamService {
@Override
@Transactional
public boolean save(SysTeam et) {
SysTeam rt = sysTeamFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysTeamFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysTeam.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -61,7 +61,7 @@ public class PayOpenAccessFallback implements PayOpenAccessFeignClient {
}
public PayOpenAccess saveEntity(PayOpenAccess payopenaccess) {
public Object saveEntity(PayOpenAccess payopenaccess) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface PayOpenAccessFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/payopenaccesses/save")
PayOpenAccess saveEntity(@RequestBody PayOpenAccess payopenaccess);
Object saveEntity(@RequestBody PayOpenAccess payopenaccess);
default Boolean save(@RequestBody PayOpenAccess payopenaccess) { return saveEntity(payopenaccess)!=null; }
......
......@@ -61,7 +61,7 @@ public class PayTradeFallback implements PayTradeFeignClient {
}
public PayTrade saveEntity(PayTrade paytrade) {
public Object saveEntity(PayTrade paytrade) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface PayTradeFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/paytrades/save")
PayTrade saveEntity(@RequestBody PayTrade paytrade);
Object saveEntity(@RequestBody PayTrade paytrade);
default Boolean save(@RequestBody PayTrade paytrade) { return saveEntity(paytrade)!=null; }
......
......@@ -108,11 +108,23 @@ public class PayOpenAccessServiceImpl implements IPayOpenAccessService {
@Override
@Transactional
public boolean save(PayOpenAccess et) {
PayOpenAccess rt = payOpenAccessFeignClient.saveEntity(et);
boolean result = true;
Object rt = payOpenAccessFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), PayOpenAccess.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class PayTradeServiceImpl implements IPayTradeService {
@Override
@Transactional
public boolean save(PayTrade et) {
PayTrade rt = payTradeFeignClient.saveEntity(et);
boolean result = true;
Object rt = payTradeFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), PayTrade.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -65,7 +65,7 @@ public class JobsInfoFallback implements JobsInfoFeignClient {
return null;
}
public JobsInfo saveEntity(JobsInfo jobsinfo) {
public Object saveEntity(JobsInfo jobsinfo) {
return null;
}
......
......@@ -61,7 +61,7 @@ public interface JobsInfoFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/jobsinfos/save")
JobsInfo saveEntity(@RequestBody JobsInfo jobsinfo);
Object saveEntity(@RequestBody JobsInfo jobsinfo);
default Boolean save(@RequestBody JobsInfo jobsinfo) { return saveEntity(jobsinfo)!=null; }
......
......@@ -61,7 +61,7 @@ public class JobsLockFallback implements JobsLockFeignClient {
}
public JobsLock saveEntity(JobsLock jobslock) {
public Object saveEntity(JobsLock jobslock) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface JobsLockFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/jobslocks/save")
JobsLock saveEntity(@RequestBody JobsLock jobslock);
Object saveEntity(@RequestBody JobsLock jobslock);
default Boolean save(@RequestBody JobsLock jobslock) { return saveEntity(jobslock)!=null; }
......
......@@ -61,7 +61,7 @@ public class JobsLogFallback implements JobsLogFeignClient {
}
public JobsLog saveEntity(JobsLog jobslog) {
public Object saveEntity(JobsLog jobslog) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface JobsLogFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/jobslogs/save")
JobsLog saveEntity(@RequestBody JobsLog jobslog);
Object saveEntity(@RequestBody JobsLog jobslog);
default Boolean save(@RequestBody JobsLog jobslog) { return saveEntity(jobslog)!=null; }
......
......@@ -61,7 +61,7 @@ public class JobsRegistryFallback implements JobsRegistryFeignClient {
}
public JobsRegistry saveEntity(JobsRegistry jobsregistry) {
public Object saveEntity(JobsRegistry jobsregistry) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface JobsRegistryFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/jobsregistries/save")
JobsRegistry saveEntity(@RequestBody JobsRegistry jobsregistry);
Object saveEntity(@RequestBody JobsRegistry jobsregistry);
default Boolean save(@RequestBody JobsRegistry jobsregistry) { return saveEntity(jobsregistry)!=null; }
......
......@@ -124,11 +124,23 @@ public class JobsInfoServiceImpl implements IJobsInfoService {
@Override
@Transactional
public boolean save(JobsInfo et) {
JobsInfo rt = jobsInfoFeignClient.saveEntity(et);
boolean result = true;
Object rt = jobsInfoFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), JobsInfo.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class JobsLockServiceImpl implements IJobsLockService {
@Override
@Transactional
public boolean save(JobsLock et) {
JobsLock rt = jobsLockFeignClient.saveEntity(et);
boolean result = true;
Object rt = jobsLockFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), JobsLock.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class JobsLogServiceImpl implements IJobsLogService {
@Override
@Transactional
public boolean save(JobsLog et) {
JobsLog rt = jobsLogFeignClient.saveEntity(et);
boolean result = true;
Object rt = jobsLogFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), JobsLog.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class JobsRegistryServiceImpl implements IJobsRegistryService {
@Override
@Transactional
public boolean save(JobsRegistry et) {
JobsRegistry rt = jobsRegistryFeignClient.saveEntity(et);
boolean result = true;
Object rt = jobsRegistryFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), JobsRegistry.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -61,7 +61,7 @@ public class SysAppFallback implements SysAppFeignClient {
}
public SysApp saveEntity(SysApp sysapp) {
public Object saveEntity(SysApp sysapp) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysAppFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysapps/save")
SysApp saveEntity(@RequestBody SysApp sysapp);
Object saveEntity(@RequestBody SysApp sysapp);
default Boolean save(@RequestBody SysApp sysapp) { return saveEntity(sysapp)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysAuthLogFallback implements SysAuthLogFeignClient {
}
public SysAuthLog saveEntity(SysAuthLog sysauthlog) {
public Object saveEntity(SysAuthLog sysauthlog) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysAuthLogFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysauthlogs/save")
SysAuthLog saveEntity(@RequestBody SysAuthLog sysauthlog);
Object saveEntity(@RequestBody SysAuthLog sysauthlog);
default Boolean save(@RequestBody SysAuthLog sysauthlog) { return saveEntity(sysauthlog)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysOpenAccessFallback implements SysOpenAccessFeignClient {
}
public SysOpenAccess saveEntity(SysOpenAccess sysopenaccess) {
public Object saveEntity(SysOpenAccess sysopenaccess) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysOpenAccessFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysopenaccesses/save")
SysOpenAccess saveEntity(@RequestBody SysOpenAccess sysopenaccess);
Object saveEntity(@RequestBody SysOpenAccess sysopenaccess);
default Boolean save(@RequestBody SysOpenAccess sysopenaccess) { return saveEntity(sysopenaccess)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysPSSystemFallback implements SysPSSystemFeignClient {
}
public SysPSSystem saveEntity(SysPSSystem syspssystem) {
public Object saveEntity(SysPSSystem syspssystem) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysPSSystemFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/syspssystems/save")
SysPSSystem saveEntity(@RequestBody SysPSSystem syspssystem);
Object saveEntity(@RequestBody SysPSSystem syspssystem);
default Boolean save(@RequestBody SysPSSystem syspssystem) { return saveEntity(syspssystem)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysPermissionFallback implements SysPermissionFeignClient {
}
public SysPermission saveEntity(SysPermission syspermission) {
public Object saveEntity(SysPermission syspermission) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysPermissionFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/syspermissions/save")
SysPermission saveEntity(@RequestBody SysPermission syspermission);
Object saveEntity(@RequestBody SysPermission syspermission);
default Boolean save(@RequestBody SysPermission syspermission) { return saveEntity(syspermission)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysRoleFallback implements SysRoleFeignClient {
}
public SysRole saveEntity(SysRole sysrole) {
public Object saveEntity(SysRole sysrole) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysRoleFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysroles/save")
SysRole saveEntity(@RequestBody SysRole sysrole);
Object saveEntity(@RequestBody SysRole sysrole);
default Boolean save(@RequestBody SysRole sysrole) { return saveEntity(sysrole)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysRolePermissionFallback implements SysRolePermissionFeignClient {
}
public SysRolePermission saveEntity(SysRolePermission sysrolepermission) {
public Object saveEntity(SysRolePermission sysrolepermission) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysRolePermissionFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysrolepermissions/save")
SysRolePermission saveEntity(@RequestBody SysRolePermission sysrolepermission);
Object saveEntity(@RequestBody SysRolePermission sysrolepermission);
default Boolean save(@RequestBody SysRolePermission sysrolepermission) { return saveEntity(sysrolepermission)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysUserAuthFallback implements SysUserAuthFeignClient {
}
public SysUserAuth saveEntity(SysUserAuth sysuserauth) {
public Object saveEntity(SysUserAuth sysuserauth) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysUserAuthFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysuserauths/save")
SysUserAuth saveEntity(@RequestBody SysUserAuth sysuserauth);
Object saveEntity(@RequestBody SysUserAuth sysuserauth);
default Boolean save(@RequestBody SysUserAuth sysuserauth) { return saveEntity(sysuserauth)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysUserFallback implements SysUserFeignClient {
}
public SysUser saveEntity(SysUser sysuser) {
public Object saveEntity(SysUser sysuser) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysUserFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysusers/save")
SysUser saveEntity(@RequestBody SysUser sysuser);
Object saveEntity(@RequestBody SysUser sysuser);
default Boolean save(@RequestBody SysUser sysuser) { return saveEntity(sysuser)!=null; }
......
......@@ -61,7 +61,7 @@ public class SysUserRoleFallback implements SysUserRoleFeignClient {
}
public SysUserRole saveEntity(SysUserRole sysuserrole) {
public Object saveEntity(SysUserRole sysuserrole) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface SysUserRoleFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/sysuserroles/save")
SysUserRole saveEntity(@RequestBody SysUserRole sysuserrole);
Object saveEntity(@RequestBody SysUserRole sysuserrole);
default Boolean save(@RequestBody SysUserRole sysuserrole) { return saveEntity(sysuserrole)!=null; }
......
......@@ -108,11 +108,23 @@ public class SysAppServiceImpl implements ISysAppService {
@Override
@Transactional
public boolean save(SysApp et) {
SysApp rt = sysAppFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysAppFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysApp.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysAuthLogServiceImpl implements ISysAuthLogService {
@Override
@Transactional
public boolean save(SysAuthLog et) {
SysAuthLog rt = sysAuthLogFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysAuthLogFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysAuthLog.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysOpenAccessServiceImpl implements ISysOpenAccessService {
@Override
@Transactional
public boolean save(SysOpenAccess et) {
SysOpenAccess rt = sysOpenAccessFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysOpenAccessFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysOpenAccess.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysPSSystemServiceImpl implements ISysPSSystemService {
@Override
@Transactional
public boolean save(SysPSSystem et) {
SysPSSystem rt = sysPSSystemFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysPSSystemFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysPSSystem.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysPermissionServiceImpl implements ISysPermissionService {
@Override
@Transactional
public boolean save(SysPermission et) {
SysPermission rt = sysPermissionFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysPermissionFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysPermission.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysRolePermissionServiceImpl implements ISysRolePermissionService {
@Override
@Transactional
public boolean save(SysRolePermission et) {
SysRolePermission rt = sysRolePermissionFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysRolePermissionFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysRolePermission.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysRoleServiceImpl implements ISysRoleService {
@Override
@Transactional
public boolean save(SysRole et) {
SysRole rt = sysRoleFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysRoleFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysRole.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysUserAuthServiceImpl implements ISysUserAuthService {
@Override
@Transactional
public boolean save(SysUserAuth et) {
SysUserAuth rt = sysUserAuthFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysUserAuthFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysUserAuth.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysUserRoleServiceImpl implements ISysUserRoleService {
@Override
@Transactional
public boolean save(SysUserRole et) {
SysUserRole rt = sysUserRoleFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysUserRoleFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysUserRole.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -108,11 +108,23 @@ public class SysUserServiceImpl implements ISysUserService {
@Override
@Transactional
public boolean save(SysUser et) {
SysUser rt = sysUserFeignClient.saveEntity(et);
boolean result = true;
Object rt = sysUserFeignClient.saveEntity(et);
if(rt == null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), SysUser.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
......
......@@ -61,7 +61,7 @@ public class WFGroupFallback implements WFGroupFeignClient {
}
public WFGroup saveEntity(WFGroup wfgroup) {
public Object saveEntity(WFGroup wfgroup) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface WFGroupFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/wfgroups/save")
WFGroup saveEntity(@RequestBody WFGroup wfgroup);
Object saveEntity(@RequestBody WFGroup wfgroup);
default Boolean save(@RequestBody WFGroup wfgroup) { return saveEntity(wfgroup)!=null; }
......
......@@ -61,7 +61,7 @@ public class WFMemberFallback implements WFMemberFeignClient {
}
public WFMember saveEntity(WFMember wfmember) {
public Object saveEntity(WFMember wfmember) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface WFMemberFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/wfmembers/save")
WFMember saveEntity(@RequestBody WFMember wfmember);
Object saveEntity(@RequestBody WFMember wfmember);
default Boolean save(@RequestBody WFMember wfmember) { return saveEntity(wfmember)!=null; }
......
......@@ -61,7 +61,7 @@ public class WFProcessDefinitionFallback implements WFProcessDefinitionFeignClie
}
public WFProcessDefinition saveEntity(WFProcessDefinition wfprocessdefinition) {
public Object saveEntity(WFProcessDefinition wfprocessdefinition) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface WFProcessDefinitionFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/wfprocessdefinitions/save")
WFProcessDefinition saveEntity(@RequestBody WFProcessDefinition wfprocessdefinition);
Object saveEntity(@RequestBody WFProcessDefinition wfprocessdefinition);
default Boolean save(@RequestBody WFProcessDefinition wfprocessdefinition) { return saveEntity(wfprocessdefinition)!=null; }
......
......@@ -61,7 +61,7 @@ public class WFProcessInstanceFallback implements WFProcessInstanceFeignClient {
}
public WFProcessInstance saveEntity(WFProcessInstance wfprocessinstance) {
public Object saveEntity(WFProcessInstance wfprocessinstance) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface WFProcessInstanceFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/wfprocessinstances/save")
WFProcessInstance saveEntity(@RequestBody WFProcessInstance wfprocessinstance);
Object saveEntity(@RequestBody WFProcessInstance wfprocessinstance);
default Boolean save(@RequestBody WFProcessInstance wfprocessinstance) { return saveEntity(wfprocessinstance)!=null; }
......
......@@ -61,7 +61,7 @@ public class WFProcessNodeFallback implements WFProcessNodeFeignClient {
}
public WFProcessNode saveEntity(WFProcessNode wfprocessnode) {
public Object saveEntity(WFProcessNode wfprocessnode) {
return null;
}
......
......@@ -57,7 +57,7 @@ public interface WFProcessNodeFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/wfprocessnodes/save")
WFProcessNode saveEntity(@RequestBody WFProcessNode wfprocessnode);
Object saveEntity(@RequestBody WFProcessNode wfprocessnode);
default Boolean save(@RequestBody WFProcessNode wfprocessnode) { return saveEntity(wfprocessnode)!=null; }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册