@@ -172,8 +172,6 @@ public class AdminVarietiesApiController extends CertifyApiController{
res.getError().add(buildError("上移失败", "上移失败"));
return res;
}
-
if (sort>=Integer.valueOf(businessVarietiesMapper.getSortMax())&&flag==0) {
res.getError().add(buildError("下移失败", "下移失败"));
@@ -37,6 +37,8 @@ public class BusinessVarietiesServiceImpl extends BaseMybatisDao<BusinessVarieti
Integer x=Integer.valueOf(businessVarietiesMapper.getSortMax());
x+=1;
buv.setSort(x);
+ }else {
+ buv.setSort(1);
String str=businessVarietiesMapper.getCidMax(superId);
String scid=businessVarietiesMapper.getCid(superId);