|
@@ -41,11 +41,12 @@ public class MaterialCategoryLogic {
|
|
|
public void add(WebsitGoodsCategory category) {
|
|
|
AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
|
|
|
|
- String companyWechatId = null;
|
|
|
- if (Objects.nonNull(adminUser.getAdminCompanyWechat())) {
|
|
|
- companyWechatId = adminUser.getAdminCompanyWechat().getCompanyWechatId();
|
|
|
+ if (Objects.isNull(adminUser.getAdminCompanyWechat())) {
|
|
|
+ throw new RemoteServiceException("平台账号禁止操作");
|
|
|
}
|
|
|
|
|
|
+ String companyWechatId = adminUser.getAdminCompanyWechat().getCompanyWechatId();
|
|
|
+
|
|
|
if (Objects.isNull(category.getCategoryLevel())) {
|
|
|
throw new RemoteServiceException("级别不能为空");
|
|
|
}
|