|
@@ -31,6 +31,10 @@ public class FlwProcessCategoryServiceImpl extends BaseServiceImpl<FlwProcessCat
|
|
|
public boolean save(FlwProcessCategory flwProcessCategory) {
|
|
|
ApiAssert.fail(super.lambdaQuery().eq(FlwProcessCategory::getName,
|
|
|
flwProcessCategory.getName()).count() > 0, "分类名称已存在,请更换其它名称");
|
|
|
+ if (null == flwProcessCategory.getSort()) {
|
|
|
+ // 设置默认排序
|
|
|
+ flwProcessCategory.setSort(0);
|
|
|
+ }
|
|
|
return super.save(flwProcessCategory);
|
|
|
}
|
|
|
|