anderx 4 years ago
parent
commit
3925351e53

+ 6 - 4
src/main/java/com/goafanti/customer/controller/AdminCustomerApiController.java

@@ -761,14 +761,16 @@ public class AdminCustomerApiController extends BaseApiController{
 			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "客户编号或管理员编号"));
 			return res;
 		}
+		//默认为私有转交,4为签单转交
+				if (operatorType==null) {
+					operatorType=AFTConstants.USER_TRANSFER_TO_OTHER;
+				}
+//		if (operatorType !=AFTConstants.SIGN_USER_TRANSFER_TO_OTHER&& customerService.checkMax(aid)) {
 		if (customerService.checkMax(aid)) {
 			res.getError().add(buildError("","对方私有客户已达最大限制"));
 			return res;
 		}
-		//默认为私有转交,4为签单转交
-		if (operatorType==null) {
-			operatorType=AFTConstants.USER_TRANSFER_TO_OTHER;
-		}
+		
 		customerService.updateByOperatorType(uid,oldAid,operatorType, aid);
 		return res;
 	}

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

@@ -1,13 +1,13 @@
 #Driver
 jdbc.driverClassName=com.mysql.jdbc.Driver
 #本地
-#jdbc.url=jdbc\:mysql://localhost:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
-#jdbc.username=root
-#jdbc.password=123456
-#测试
-jdbc.url=jdbc:mysql://101.37.32.31:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
+jdbc.url=jdbc\:mysql://localhost:3306/aft20210305?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
 jdbc.username=root
-jdbc.password=aftdev
+jdbc.password=123456
+#测试
+#jdbc.url=jdbc:mysql://101.37.32.31:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
+#jdbc.username=root
+#jdbc.password=aftdev
 #\u68c0\u6d4b\u6570\u636e\u5e93\u94fe\u63a5\u662f\u5426\u6709\u6548\uff0c\u5fc5\u987b\u914d\u7f6e
 jdbc.validationQuery=SELECT 'x'
 #\u521d\u59cb\u8fde\u63a5\u6570