Browse Source

客户跟进BUG修复

anderx 7 years ago
parent
commit
eab1a55aa2

+ 2 - 2
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -513,7 +513,7 @@ public class CustomerServiceImpl  extends BaseMybatisDao<UserMapper> implements
 						}
 						if(!isBusinessOwner) throw new BusinessException(new Error(ErrorConstants.BUSINESS_ALREADY_LOCKED,businessName,""));
 					}else{ 
-						if(isUserOwner) throw new BusinessException(new Error(ErrorConstants.CUSTOMER_ALREADY_LOCKED,businessName,""));
+						if(!isUserOwner) throw new BusinessException(new Error(ErrorConstants.CUSTOMER_ALREADY_LOCKED,businessName,""));
 					}
 					
 					
@@ -552,7 +552,7 @@ public class CustomerServiceImpl  extends BaseMybatisDao<UserMapper> implements
 						}
 						if(!isBusinessOwner) throw new BusinessException(new Error(ErrorConstants.BUSINESS_ALREADY_LOCKED,businessName,""));
 					}else{ 
-						if(isUserOwner) throw new BusinessException(new Error(ErrorConstants.CUSTOMER_ALREADY_LOCKED,businessName,""));
+						if(!isUserOwner) throw new BusinessException(new Error(ErrorConstants.CUSTOMER_ALREADY_LOCKED,businessName,""));
 					}
 					
 					if(userBusinessMapper.judgeBusiness(fbb.getUid(), ub.getBusinessProjectId(), "")>0){

+ 4 - 4
src/main/resources/props/config_local.properties

@@ -58,12 +58,12 @@ template.cacheable=false
 portal.host=//sf.jishutao.com/portal/2.0.6
 avatar.upload.host=//sb.jishutao.com/upload
 #连接开发
-#static.host=//sb.jishutao.com/1.0.50
-#avatar.host=//sb.jishutao.com
+static.host=//sb.jishutao.com/1.0.50
+avatar.host=//sb.jishutao.com
 
 #本地连生产
-avatar.host=//static.kedexinxi.com
-static.host=//s.kedexinxi.com/1.0.92
+#avatar.host=//static.kedexinxi.com
+#static.host=//s.kedexinxi.com/1.0.92
 
 upload.path=F:/data/public/upload
 upload.private.path=F:/data/private/upload