|
@@ -173,6 +173,7 @@ public class FinanceProductControllers extends BaseController {
|
|
//校验产品名称是否重复
|
|
//校验产品名称是否重复
|
|
LambdaQueryWrapper<ZcFinanceProduct> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<ZcFinanceProduct> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
lambdaQueryWrapper.eq(ZcFinanceProduct::getZfpName,zfpName);
|
|
lambdaQueryWrapper.eq(ZcFinanceProduct::getZfpName,zfpName);
|
|
|
|
+ lambdaQueryWrapper.ne(ZcFinanceProduct::getZfpStatus,"02");
|
|
List<ZcFinanceProduct> list = zcFinanceProductService.findZcFinanceProducts(lambdaQueryWrapper);
|
|
List<ZcFinanceProduct> list = zcFinanceProductService.findZcFinanceProducts(lambdaQueryWrapper);
|
|
if(list.size()>0){
|
|
if(list.size()>0){
|
|
return AjaxResult.error("融资产品已存在");
|
|
return AjaxResult.error("融资产品已存在");
|
|
@@ -250,6 +251,9 @@ public class FinanceProductControllers extends BaseController {
|
|
return AjaxResult.error("请输入正确的资方融资费率");
|
|
return AjaxResult.error("请输入正确的资方融资费率");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(Integer.valueOf(zfpRate) > 100){
|
|
|
|
+ return AjaxResult.error("请输入0-100之内的数字");
|
|
|
|
+ }
|
|
//资方是否支持返佣
|
|
//资方是否支持返佣
|
|
String zfpProfit = CommonUtil.objToString(map.get("zfpProfit"));
|
|
String zfpProfit = CommonUtil.objToString(map.get("zfpProfit"));
|
|
//资方返佣方式
|
|
//资方返佣方式
|
|
@@ -258,9 +262,12 @@ public class FinanceProductControllers extends BaseController {
|
|
String zfpProfitRate = CommonUtil.objToString(map.get("zfpProfitRate"));
|
|
String zfpProfitRate = CommonUtil.objToString(map.get("zfpProfitRate"));
|
|
if(CommonUtil.isNotEmpty(zfpProfitRate)){
|
|
if(CommonUtil.isNotEmpty(zfpProfitRate)){
|
|
if(!Pattern.matches(REGEX,zfpProfitRate)){
|
|
if(!Pattern.matches(REGEX,zfpProfitRate)){
|
|
- return AjaxResult.error("请输入正确的融资返佣费率");
|
|
|
|
|
|
+ return AjaxResult.error("请输入正确的资方返佣费率");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(Integer.valueOf(zfpProfitRate) > 100){
|
|
|
|
+ return AjaxResult.error("请输入0-100之内的数字");
|
|
|
|
+ }
|
|
//是否需平台审批
|
|
//是否需平台审批
|
|
String zfpPlatform = CommonUtil.objToString(map.get("zfpPlatform"));
|
|
String zfpPlatform = CommonUtil.objToString(map.get("zfpPlatform"));
|
|
//主键
|
|
//主键
|
|
@@ -354,6 +361,7 @@ public class FinanceProductControllers extends BaseController {
|
|
LambdaQueryWrapper<ZcFinanceProduct> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<ZcFinanceProduct> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
lambdaQueryWrapper.eq(ZcFinanceProduct::getZfpName,zfpName);
|
|
lambdaQueryWrapper.eq(ZcFinanceProduct::getZfpName,zfpName);
|
|
lambdaQueryWrapper.ne(ZcFinanceProduct::getZfpId,zfpId);
|
|
lambdaQueryWrapper.ne(ZcFinanceProduct::getZfpId,zfpId);
|
|
|
|
+ lambdaQueryWrapper.ne(ZcFinanceProduct::getZfpStatus,"02");
|
|
List<ZcFinanceProduct> list = zcFinanceProductService.findZcFinanceProducts(lambdaQueryWrapper);
|
|
List<ZcFinanceProduct> list = zcFinanceProductService.findZcFinanceProducts(lambdaQueryWrapper);
|
|
if(list.size()>0){
|
|
if(list.size()>0){
|
|
return AjaxResult.error("融资产品已存在");
|
|
return AjaxResult.error("融资产品已存在");
|
|
@@ -366,7 +374,7 @@ public class FinanceProductControllers extends BaseController {
|
|
//是否可拆转融
|
|
//是否可拆转融
|
|
String zfpSplit = CommonUtil.objToString(map.get("zfpSplit"));
|
|
String zfpSplit = CommonUtil.objToString(map.get("zfpSplit"));
|
|
if(CommonUtil.isEmpty(zfpSplit)){
|
|
if(CommonUtil.isEmpty(zfpSplit)){
|
|
- return AjaxResult.error("请选择是否可拆转融(二期处理)");
|
|
|
|
|
|
+ return AjaxResult.error("请选择是否可拆转融");
|
|
}
|
|
}
|
|
//产品类型
|
|
//产品类型
|
|
String zfpType = CommonUtil.objToString(map.get("zfpType"));
|
|
String zfpType = CommonUtil.objToString(map.get("zfpType"));
|
|
@@ -431,6 +439,9 @@ public class FinanceProductControllers extends BaseController {
|
|
return AjaxResult.error("请输入正确的资方融资费率");
|
|
return AjaxResult.error("请输入正确的资方融资费率");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(Integer.valueOf(zfpRate) > 100){
|
|
|
|
+ return AjaxResult.error("请输入0-100之内的数字");
|
|
|
|
+ }
|
|
//资方是否支持返佣
|
|
//资方是否支持返佣
|
|
String zfpProfit = CommonUtil.objToString(map.get("zfpProfit"));
|
|
String zfpProfit = CommonUtil.objToString(map.get("zfpProfit"));
|
|
//资方返佣方式
|
|
//资方返佣方式
|
|
@@ -442,6 +453,9 @@ public class FinanceProductControllers extends BaseController {
|
|
return AjaxResult.error("请输入正确的资方返佣费率");
|
|
return AjaxResult.error("请输入正确的资方返佣费率");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(Integer.valueOf(zfpProfitRate) > 100){
|
|
|
|
+ return AjaxResult.error("请输入0-100之内的数字");
|
|
|
|
+ }
|
|
//是否需平台审批
|
|
//是否需平台审批
|
|
String zfpPlatform = CommonUtil.objToString(map.get("zfpPlatform"));
|
|
String zfpPlatform = CommonUtil.objToString(map.get("zfpPlatform"));
|
|
|
|
|