|
|
@@ -16,6 +16,7 @@ import com.jzg.commons.entity.po.*;
|
|
|
import com.jzg.commons.util.StringUtils;
|
|
|
import com.jzg.commons.util.idgen.IdGenerate;
|
|
|
import com.jzg.organization.client.EsmInsCompanyClient;
|
|
|
+import com.jzg.organization.client.PlatformClient;
|
|
|
import com.jzg.organization.mapper.PtlAgreementDispatchActionMapper;
|
|
|
import com.jzg.organization.mapper.PtlAgreementDispatchAfterActionMapper;
|
|
|
import com.jzg.organization.mapper.PtlAgreementDispatchMapper;
|
|
|
@@ -52,6 +53,8 @@ public class PtlAgreementDispatchServiceImpl extends ServiceImpl<PtlAgreementDis
|
|
|
@Autowired
|
|
|
SysDictService sysDictService;
|
|
|
@Autowired
|
|
|
+ PlatformClient platformClient;
|
|
|
+ @Autowired
|
|
|
PtlAgreementService ptlAgreementService;
|
|
|
@Autowired
|
|
|
EsmInsCompanyClient esmInsCompanyClient;
|
|
|
@@ -199,8 +202,10 @@ public class PtlAgreementDispatchServiceImpl extends ServiceImpl<PtlAgreementDis
|
|
|
}
|
|
|
}
|
|
|
}else if("change_bs_account".equals(action.getActionCode())){
|
|
|
- if(Objects.nonNull(action.getActionJson().get("accountId"))) {
|
|
|
- HttpResult<PtlAgreementAttribution> agreementAttribution = esmInsCompanyClient.getAgreementAttribution(action.getActionJson().get("accountId").toString());
|
|
|
+ String accountId = action.getActionJson().get("accountId").toString();
|
|
|
+ if(Objects.nonNull(accountId)){
|
|
|
+ HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution2(accountId);
|
|
|
+ //HttpResult<PtlAgreementAttribution> agreementAttribution = esmInsCompanyClient.getAgreementAttribution(accountId);
|
|
|
if (agreementAttribution.getCode() == 200) {
|
|
|
PtlAgreementAttribution data = agreementAttribution.getData();
|
|
|
action.getActionJson().put("userName", data.getUsername());
|
|
|
@@ -282,7 +287,6 @@ public class PtlAgreementDispatchServiceImpl extends ServiceImpl<PtlAgreementDis
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|