丽知:1、客商自动分配优化
This commit is contained in:
parent
56d88b2102
commit
4fff5ef07d
|
@ -247,11 +247,12 @@ public class CustdocAutoAllotPluginInitializer extends PluginBaseEntity {
|
||||||
if (list != null && list.size() > 0) {
|
if (list != null && list.size() > 0) {
|
||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
BdCubasdocEntity requestVo = list.get(i);
|
BdCubasdocEntity requestVo = list.get(i);
|
||||||
String custcode = requestVo.getCustcode();
|
String def1 = requestVo.getCustcode();
|
||||||
if (custcode != null && !"".equals(custcode)) {
|
// String custcode = requestVo.getCustcode();
|
||||||
|
if (def1 != null && !"".equals(def1)) {
|
||||||
boolean isExis = true;
|
boolean isExis = true;
|
||||||
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
|
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
|
||||||
integrationTaskLivingDetailsEntity.setRootAppPk(custcode);
|
integrationTaskLivingDetailsEntity.setRootAppPk(def1);
|
||||||
integrationTaskLivingDetailsEntity.setNewState(ProfilesActiveConstant.LOG_STATUS_Y);
|
integrationTaskLivingDetailsEntity.setNewState(ProfilesActiveConstant.LOG_STATUS_Y);
|
||||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||||
List<IntegrationTaskLivingDetailsEntity> integrationTaskLivingDetailsEntities = iIntegrationTaskLivingDetailsDao.query(integrationTaskLivingDetailsEntity);
|
List<IntegrationTaskLivingDetailsEntity> integrationTaskLivingDetailsEntities = iIntegrationTaskLivingDetailsDao.query(integrationTaskLivingDetailsEntity);
|
||||||
|
@ -275,6 +276,7 @@ public class CustdocAutoAllotPluginInitializer extends PluginBaseEntity {
|
||||||
|
|
||||||
for (BdCubasdocEntity bdCubasdocEntity : list) {
|
for (BdCubasdocEntity bdCubasdocEntity : list) {
|
||||||
String assginjsonString = "";
|
String assginjsonString = "";
|
||||||
|
String def1 = bdCubasdocEntity.getDef1();
|
||||||
String custcode = bdCubasdocEntity.getCustcode();
|
String custcode = bdCubasdocEntity.getCustcode();
|
||||||
String createtime = bdCubasdocEntity.getCreatetime();
|
String createtime = bdCubasdocEntity.getCreatetime();
|
||||||
try {
|
try {
|
||||||
|
@ -336,8 +338,9 @@ public class CustdocAutoAllotPluginInitializer extends PluginBaseEntity {
|
||||||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(attribute.getData());
|
integrationTaskLivingDetailsEntity.setNewTransmitInfo(attribute.getData());
|
||||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||||
integrationTaskLivingDetailsEntity.setBusinessDate(createtime);
|
integrationTaskLivingDetailsEntity.setBusinessDate(createtime);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppPk(custcode);
|
integrationTaskLivingDetailsEntity.setRootAppPk(def1);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppBill(custcode);
|
integrationTaskLivingDetailsEntity.setRootAppBill(def1);
|
||||||
|
integrationTaskLivingDetailsEntity.setNewSystemNumber(custcode);
|
||||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||||
saveOrUpdateBusinessLogUtil.saveOrUpdate(integrationTaskLivingDetailsEntity);
|
saveOrUpdateBusinessLogUtil.saveOrUpdate(integrationTaskLivingDetailsEntity);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -351,8 +354,9 @@ public class CustdocAutoAllotPluginInitializer extends PluginBaseEntity {
|
||||||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
||||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||||
integrationTaskLivingDetailsEntity.setBusinessDate(createtime);
|
integrationTaskLivingDetailsEntity.setBusinessDate(createtime);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppPk(custcode);
|
integrationTaskLivingDetailsEntity.setRootAppPk(def1);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppBill(custcode);
|
integrationTaskLivingDetailsEntity.setRootAppBill(def1);
|
||||||
|
integrationTaskLivingDetailsEntity.setNewSystemNumber(custcode);
|
||||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||||
saveOrUpdateBusinessLogUtil.saveOrUpdate(integrationTaskLivingDetailsEntity);
|
saveOrUpdateBusinessLogUtil.saveOrUpdate(integrationTaskLivingDetailsEntity);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue