|
@@ -66,12 +66,9 @@ public class StorageLogic {
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void add(HttpServletRequest request,Storage storage) {
|
|
|
AdminUserCom adminUser = commonLogic.getAdminUser(request);
|
|
|
- if(StringUtils.isEmpty(adminUser.getLoginCompanyWechatId())){
|
|
|
- throw new RemoteServiceException("无效企业微信id");
|
|
|
- }
|
|
|
+
|
|
|
storage.setCreateTime(new Date());
|
|
|
- storage.setCompanyWechatId(adminUser.getLoginCompanyWechatId());
|
|
|
- storage.setCompanyName(adminUser.getLoginCompanyName());
|
|
|
+
|
|
|
storageService.save(storage);
|
|
|
}
|
|
|
|