|
|
@@ -535,7 +535,9 @@ public class StaffService extends BaseService<Staff> {
|
|
|
gc.setOpCreateUserId(staffId);
|
|
|
listG.add(gc);
|
|
|
};
|
|
|
- goodsCategoryMapper.insertBatch(listG);
|
|
|
+ if(listG != null && listG.size() > 0){
|
|
|
+ goodsCategoryMapper.insertBatch(listG);
|
|
|
+ }
|
|
|
}
|
|
|
//执行函数
|
|
|
goodsCategoryMapper.resetLevelGoodsCategory(new GoodsCategoryQuery());
|