parent
d7e75502ea
commit
9ba4a5ffde
|
|
@ -43,24 +43,24 @@ public class CorpInfoUpdateExe {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void changeCompanyName(CorpInfoUpdateCmd corpInfoUpdateCmd) {
|
public void changeCompanyName(CorpInfoUpdateCmd corpInfoUpdateCmd) {
|
||||||
CorpInfoDO corpInfoDO = corpInfoRepository.getById(corpInfoUpdateCmd.getId());
|
// CorpInfoDO corpInfoDO = corpInfoRepository.getById(corpInfoUpdateCmd.getId());
|
||||||
|
|
||||||
CorpInfoE corpInfoE = new CorpInfoE();
|
CorpInfoE corpInfoE = new CorpInfoE();
|
||||||
BeanUtils.copyProperties(corpInfoUpdateCmd, corpInfoE);
|
BeanUtils.copyProperties(corpInfoUpdateCmd, corpInfoE);
|
||||||
corpInfoGateway.changeCompanyName(corpInfoE);
|
corpInfoGateway.changeCompanyName(corpInfoE);
|
||||||
|
|
||||||
|
|
||||||
OtaPlatformUserUpdateCmd otaUpdateCmd = new OtaPlatformUserUpdateCmd();
|
// OtaPlatformUserUpdateCmd otaUpdateCmd = new OtaPlatformUserUpdateCmd();
|
||||||
otaUpdateCmd.setAccount(corpInfoE.getCorpName());
|
// otaUpdateCmd.setAccount(corpInfoE.getCorpName());
|
||||||
otaUpdateCmd.setTenantName(corpInfoE.getCorpName());
|
// otaUpdateCmd.setTenantName(corpInfoE.getCorpName());
|
||||||
otaUpdateCmd.setOriginalAccount(corpInfoE.getCorpName());
|
// otaUpdateCmd.setOriginalAccount(corpInfoE.getCorpName());
|
||||||
log.info("CorpInfoXgfUpdateExe,修改企业信息调用GBS请求:{}",otaUpdateCmd.toString());
|
// log.info("CorpInfoXgfUpdateExe,修改企业信息调用GBS请求:{}",otaUpdateCmd.toString());
|
||||||
Response response = tenantFacade.updateOtaPlatformUser(otaUpdateCmd);
|
// Response response = tenantFacade.updateOtaPlatformUser(otaUpdateCmd);
|
||||||
log.info("CorpInfoXgfUpdateExe,修改企业信息调用GBS返回:{}",response.toString());
|
// log.info("CorpInfoXgfUpdateExe,修改企业信息调用GBS返回:{}",response.toString());
|
||||||
|
//
|
||||||
if(!corpInfoDO.getCorpName().equals(corpInfoE.getCorpName())){
|
// if(!corpInfoDO.getCorpName().equals(corpInfoE.getCorpName())){
|
||||||
//TODO 名字有变动,发送mq
|
// //TODO 名字有变动,发送mq
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
public void changeEnableFlag(CorpInfoUpdateUseFlagCmd corpInfoUpdateUseFlagCmd) {
|
public void changeEnableFlag(CorpInfoUpdateUseFlagCmd corpInfoUpdateUseFlagCmd) {
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,8 @@ public class CorpInfoServiceImpl implements CorpInfoServiceI {
|
||||||
@Override
|
@Override
|
||||||
public SingleResponse add(CorpInfoAddCmd cmd) {
|
public SingleResponse add(CorpInfoAddCmd cmd) {
|
||||||
|
|
||||||
Long userId = AuthContext.getUserId();
|
// Long userId = AuthContext.getUserId();
|
||||||
|
cmd.setCorpinfoId(Tools.get32UUID());
|
||||||
Long id = corpInfoAddExe.execute(cmd);
|
Long id = corpInfoAddExe.execute(cmd);
|
||||||
|
|
||||||
//新增企业成功后新增企业主账号用户(企业主账号的gbsId与企业的gbsId一致) 2025-10-31 huangyuxuan
|
//新增企业成功后新增企业主账号用户(企业主账号的gbsId与企业的gbsId一致) 2025-10-31 huangyuxuan
|
||||||
|
|
|
||||||
|
|
@ -178,46 +178,46 @@ public class CorpInfoCO extends ClientObject {
|
||||||
private LocalDate licenseEnd;
|
private LocalDate licenseEnd;
|
||||||
//有无职业卫生信息,1:是,0:否
|
//有无职业卫生信息,1:是,0:否
|
||||||
@ApiModelProperty(value = "有无职业卫生信息,1:是,0:否")
|
@ApiModelProperty(value = "有无职业卫生信息,1:是,0:否")
|
||||||
private Integer whetherHygiene;
|
private Integer whetherHygieneFlag;
|
||||||
//有无重大危险源,1:是,0:否
|
//有无重大危险源,1:是,0:否
|
||||||
@ApiModelProperty(value = "有无重大危险源,1:是,0:否")
|
@ApiModelProperty(value = "有无重大危险源,1:是,0:否")
|
||||||
private Integer whetherHazards;
|
private Integer whetherHazardsFlag;
|
||||||
//是否有稀缺大型应急物资或设施,1:是,0:否
|
//是否有稀缺大型应急物资或设施,1:是,0:否
|
||||||
@ApiModelProperty(value = "是否有稀缺大型应急物资或设施,1:是,0:否")
|
@ApiModelProperty(value = "是否有稀缺大型应急物资或设施,1:是,0:否")
|
||||||
private Integer whetherScarce;
|
private Integer whetherScarceFlag;
|
||||||
//是否涉及危化品,1:是,0:否
|
//是否涉及危化品,1:是,0:否
|
||||||
@ApiModelProperty(value = "是否涉及危化品,1:是,0:否")
|
@ApiModelProperty(value = "是否涉及危化品,1:是,0:否")
|
||||||
private Integer whetherChemicals;
|
private Integer whetherChemicalsFlag;
|
||||||
//有无特种设备,1:是,0:否
|
//有无特种设备,1:是,0:否
|
||||||
@ApiModelProperty(value = "有无特种设备,1:是,0:否")
|
@ApiModelProperty(value = "有无特种设备,1:是,0:否")
|
||||||
private Integer whetherSpecialequipment;
|
private Integer whetherSpecialequipmentFlag;
|
||||||
//有无特存种作业人员,1:是,0:否
|
//有无特存种作业人员,1:是,0:否
|
||||||
@ApiModelProperty(value = "有无特存种作业人员,1:是,0:否")
|
@ApiModelProperty(value = "有无特存种作业人员,1:是,0:否")
|
||||||
private Integer whetherSpecialpeople;
|
private Integer whetherSpecialpeopleFlag;
|
||||||
//是否涉及煤气,1:是,0:否
|
//是否涉及煤气,1:是,0:否
|
||||||
@ApiModelProperty(value = "是否涉及煤气,1:是,0:否")
|
@ApiModelProperty(value = "是否涉及煤气,1:是,0:否")
|
||||||
private Integer whetherCoalgas;
|
private Integer whetherCoalgasFlag;
|
||||||
//是否属于消防重点单位,1:是,0:否
|
//是否属于消防重点单位,1:是,0:否
|
||||||
@ApiModelProperty(value = "是否属于消防重点单位,1:是,0:否")
|
@ApiModelProperty(value = "是否属于消防重点单位,1:是,0:否")
|
||||||
private Integer whetherFire;
|
private Integer whetherFireFlag;
|
||||||
//是否在有限空间作业,1:是,0:否
|
//是否在有限空间作业,1:是,0:否
|
||||||
@ApiModelProperty(value = "是否在有限空间作业,1:是,0:否")
|
@ApiModelProperty(value = "是否在有限空间作业,1:是,0:否")
|
||||||
private Integer whetherConfined;
|
private Integer whetherConfinedFlag;
|
||||||
//是否存在涉爆粉尘作业,1:是,0:否
|
//是否存在涉爆粉尘作业,1:是,0:否
|
||||||
@ApiModelProperty(value = "是否存在涉爆粉尘作业,1:是,0:否")
|
@ApiModelProperty(value = "是否存在涉爆粉尘作业,1:是,0:否")
|
||||||
private Integer whetherPowder;
|
private Integer whetherPowderFlag;
|
||||||
//是否涉及防雷防静电,1:是,0:否
|
//是否涉及防雷防静电,1:是,0:否
|
||||||
@ApiModelProperty(value = "是否涉及防雷防静电,1:是,0:否")
|
@ApiModelProperty(value = "是否涉及防雷防静电,1:是,0:否")
|
||||||
private Integer whetherLightning;
|
private Integer whetherLightningFlag;
|
||||||
//是否涉及危化品管道,1:是,0:否
|
//是否涉及危化品管道,1:是,0:否
|
||||||
@ApiModelProperty(value = "是否涉及危化品管道,1:是,0:否")
|
@ApiModelProperty(value = "是否涉及危化品管道,1:是,0:否")
|
||||||
private Integer whetherPipeline;
|
private Integer whetherPipelineFlag;
|
||||||
//是否持有放射源,1:是,0:否
|
//是否持有放射源,1:是,0:否
|
||||||
@ApiModelProperty(value = "是否持有放射源,1:是,0:否")
|
@ApiModelProperty(value = "是否持有放射源,1:是,0:否")
|
||||||
private Integer whetherActinogen;
|
private Integer whetherActinogenFlag;
|
||||||
//是否涉及液氨制冷,1:是,0:否
|
//是否涉及液氨制冷,1:是,0:否
|
||||||
@ApiModelProperty(value = "是否涉及液氨制冷,1:是,0:否")
|
@ApiModelProperty(value = "是否涉及液氨制冷,1:是,0:否")
|
||||||
private Integer whetherLiquidammonia;
|
private Integer whetherLiquidammoniaFlag;
|
||||||
//乐观锁
|
//乐观锁
|
||||||
@ApiModelProperty(value = "乐观锁")
|
@ApiModelProperty(value = "乐观锁")
|
||||||
private Integer version;
|
private Integer version;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue