|
@@ -336,6 +336,7 @@ public class ScheduleTask9 {
|
|
|
privateNewCustomerNumMap = new HashMap<>();
|
|
privateNewCustomerNumMap = new HashMap<>();
|
|
|
privateOldCustomerNumMap = new HashMap<>();
|
|
privateOldCustomerNumMap = new HashMap<>();
|
|
|
for(Map ltcCustomerRecord : ltcCustomerData){
|
|
for(Map ltcCustomerRecord : ltcCustomerData){
|
|
|
|
|
+ businessUserId = "";
|
|
|
try {
|
|
try {
|
|
|
testUseFlag = "";
|
|
testUseFlag = "";
|
|
|
if(ltcCustomerRecord.get("testUseFlag") != null){
|
|
if(ltcCustomerRecord.get("testUseFlag") != null){
|
|
@@ -384,59 +385,60 @@ public class ScheduleTask9 {
|
|
|
log.info("私海客户["+ltcCustomerRecord.get("customerName")+"]业务员为空");
|
|
log.info("私海客户["+ltcCustomerRecord.get("customerName")+"]业务员为空");
|
|
|
}
|
|
}
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
|
+ log.info("业务员ID:" + businessUserId);
|
|
|
log.error("匹配客户名册表业务员与业务员档案表业务员异常",e);
|
|
log.error("匹配客户名册表业务员与业务员档案表业务员异常",e);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(privateCustomerNumMap.isEmpty()){
|
|
|
|
|
- log.info("业务员私海客户数量获取不正确");
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if(privateCustomerNumMap.isEmpty()){
|
|
|
|
|
+// log.info("业务员私海客户数量获取不正确");
|
|
|
|
|
+// return;
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
|
更新各业务员私海客户数量
|
|
更新各业务员私海客户数量
|
|
|
*/
|
|
*/
|
|
|
- for (String userIdKey : userIdList){
|
|
|
|
|
- if(privateCustomerNumMap.containsKey(userIdKey)){
|
|
|
|
|
- numOfPrivateCustomer = privateCustomerNumMap.get(userIdKey);
|
|
|
|
|
- }else{
|
|
|
|
|
- //私海客户归0
|
|
|
|
|
- numOfPrivateCustomer = 0;
|
|
|
|
|
- }
|
|
|
|
|
- try {
|
|
|
|
|
- formInstId = userIdFormInstIdMap.get(userIdKey);
|
|
|
|
|
- log.info("更新各业务员私海客户数量:" + formInstId + " " + numOfPrivateCustomer);
|
|
|
|
|
- yidaService.updateLtcBusinessUserPrivateCustomerNum(formInstId, numOfPrivateCustomer);
|
|
|
|
|
- } catch (Exception e) {
|
|
|
|
|
- log.error("更新各业务员私海客户数量异常",e);
|
|
|
|
|
- }
|
|
|
|
|
- if(privateNewCustomerNumMap.containsKey(userIdKey)){
|
|
|
|
|
- numOfPrivateNewCustomer = privateNewCustomerNumMap.get(userIdKey);
|
|
|
|
|
- }else{
|
|
|
|
|
- //新客户归0
|
|
|
|
|
- numOfPrivateNewCustomer = 0;
|
|
|
|
|
- }
|
|
|
|
|
- try {
|
|
|
|
|
- formInstId = userIdFormInstIdMap.get(userIdKey);
|
|
|
|
|
- log.info("更新各业务员新客户数量:" + formInstId + " " + numOfPrivateNewCustomer);
|
|
|
|
|
- yidaService.updateLtcBusinessUserPrivateNewCustomerNum(formInstId, numOfPrivateNewCustomer);
|
|
|
|
|
- } catch (Exception e) {
|
|
|
|
|
- log.error("更新各业务员新客户数量异常",e);
|
|
|
|
|
- }
|
|
|
|
|
- if(privateOldCustomerNumMap.containsKey(userIdKey)){
|
|
|
|
|
- numOfPrivateOldCustomer = privateOldCustomerNumMap.get(userIdKey);
|
|
|
|
|
- }else{
|
|
|
|
|
- //老客户归0
|
|
|
|
|
- numOfPrivateOldCustomer = 0;
|
|
|
|
|
- }
|
|
|
|
|
- try {
|
|
|
|
|
- formInstId = userIdFormInstIdMap.get(userIdKey);
|
|
|
|
|
- log.info("更新各业务员老客户数量:" + formInstId + " " + numOfPrivateOldCustomer);
|
|
|
|
|
- yidaService.updateLtcBusinessUserPrivateOldCustomerNum(formInstId, numOfPrivateOldCustomer);
|
|
|
|
|
- } catch (Exception e) {
|
|
|
|
|
- log.error("更新各业务员老客户数量异常",e);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// for (String userIdKey : userIdList){
|
|
|
|
|
+// if(privateCustomerNumMap.containsKey(userIdKey)){
|
|
|
|
|
+// numOfPrivateCustomer = privateCustomerNumMap.get(userIdKey);
|
|
|
|
|
+// }else{
|
|
|
|
|
+// //私海客户归0
|
|
|
|
|
+// numOfPrivateCustomer = 0;
|
|
|
|
|
+// }
|
|
|
|
|
+// try {
|
|
|
|
|
+// formInstId = userIdFormInstIdMap.get(userIdKey);
|
|
|
|
|
+// log.info("更新各业务员私海客户数量:" + formInstId + " " + numOfPrivateCustomer);
|
|
|
|
|
+// yidaService.updateLtcBusinessUserPrivateCustomerNum(formInstId, numOfPrivateCustomer);
|
|
|
|
|
+// } catch (Exception e) {
|
|
|
|
|
+// log.error("更新各业务员私海客户数量异常",e);
|
|
|
|
|
+// }
|
|
|
|
|
+// if(privateNewCustomerNumMap.containsKey(userIdKey)){
|
|
|
|
|
+// numOfPrivateNewCustomer = privateNewCustomerNumMap.get(userIdKey);
|
|
|
|
|
+// }else{
|
|
|
|
|
+// //新客户归0
|
|
|
|
|
+// numOfPrivateNewCustomer = 0;
|
|
|
|
|
+// }
|
|
|
|
|
+// try {
|
|
|
|
|
+// formInstId = userIdFormInstIdMap.get(userIdKey);
|
|
|
|
|
+// log.info("更新各业务员新客户数量:" + formInstId + " " + numOfPrivateNewCustomer);
|
|
|
|
|
+// yidaService.updateLtcBusinessUserPrivateNewCustomerNum(formInstId, numOfPrivateNewCustomer);
|
|
|
|
|
+// } catch (Exception e) {
|
|
|
|
|
+// log.error("更新各业务员新客户数量异常",e);
|
|
|
|
|
+// }
|
|
|
|
|
+// if(privateOldCustomerNumMap.containsKey(userIdKey)){
|
|
|
|
|
+// numOfPrivateOldCustomer = privateOldCustomerNumMap.get(userIdKey);
|
|
|
|
|
+// }else{
|
|
|
|
|
+// //老客户归0
|
|
|
|
|
+// numOfPrivateOldCustomer = 0;
|
|
|
|
|
+// }
|
|
|
|
|
+// try {
|
|
|
|
|
+// formInstId = userIdFormInstIdMap.get(userIdKey);
|
|
|
|
|
+// log.info("更新各业务员老客户数量:" + formInstId + " " + numOfPrivateOldCustomer);
|
|
|
|
|
+// yidaService.updateLtcBusinessUserPrivateOldCustomerNum(formInstId, numOfPrivateOldCustomer);
|
|
|
|
|
+// } catch (Exception e) {
|
|
|
|
|
+// log.error("更新各业务员老客户数量异常",e);
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|