丽知: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) {
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
BdCubasdocEntity requestVo = list.get(i);
|
||||
String custcode = requestVo.getCustcode();
|
||||
if (custcode != null && !"".equals(custcode)) {
|
||||
String def1 = requestVo.getCustcode();
|
||||
// String custcode = requestVo.getCustcode();
|
||||
if (def1 != null && !"".equals(def1)) {
|
||||
boolean isExis = true;
|
||||
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(custcode);
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(def1);
|
||||
integrationTaskLivingDetailsEntity.setNewState(ProfilesActiveConstant.LOG_STATUS_Y);
|
||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||
List<IntegrationTaskLivingDetailsEntity> integrationTaskLivingDetailsEntities = iIntegrationTaskLivingDetailsDao.query(integrationTaskLivingDetailsEntity);
|
||||
|
@ -275,6 +276,7 @@ public class CustdocAutoAllotPluginInitializer extends PluginBaseEntity {
|
|||
|
||||
for (BdCubasdocEntity bdCubasdocEntity : list) {
|
||||
String assginjsonString = "";
|
||||
String def1 = bdCubasdocEntity.getDef1();
|
||||
String custcode = bdCubasdocEntity.getCustcode();
|
||||
String createtime = bdCubasdocEntity.getCreatetime();
|
||||
try {
|
||||
|
@ -336,8 +338,9 @@ public class CustdocAutoAllotPluginInitializer extends PluginBaseEntity {
|
|||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(attribute.getData());
|
||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||
integrationTaskLivingDetailsEntity.setBusinessDate(createtime);
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(custcode);
|
||||
integrationTaskLivingDetailsEntity.setRootAppBill(custcode);
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(def1);
|
||||
integrationTaskLivingDetailsEntity.setRootAppBill(def1);
|
||||
integrationTaskLivingDetailsEntity.setNewSystemNumber(custcode);
|
||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||
saveOrUpdateBusinessLogUtil.saveOrUpdate(integrationTaskLivingDetailsEntity);
|
||||
} catch (Exception e) {
|
||||
|
@ -351,8 +354,9 @@ public class CustdocAutoAllotPluginInitializer extends PluginBaseEntity {
|
|||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||
integrationTaskLivingDetailsEntity.setBusinessDate(createtime);
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(custcode);
|
||||
integrationTaskLivingDetailsEntity.setRootAppBill(custcode);
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(def1);
|
||||
integrationTaskLivingDetailsEntity.setRootAppBill(def1);
|
||||
integrationTaskLivingDetailsEntity.setNewSystemNumber(custcode);
|
||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||
saveOrUpdateBusinessLogUtil.saveOrUpdate(integrationTaskLivingDetailsEntity);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue