| | |
| | | if (StringHelper.isEmpty(entity.getType())) { |
| | | return fail("发布类别为空", null); |
| | | } |
| | | if (!ShuJianService.TYPES.contains(entity.getType())) { |
| | | return fail("发布类别不支持", null); |
| | | } |
| | | |
| | | UserEntity ue = tokenService.getCurrentUser(req); |
| | | if (null != ue) { |
| | |
| | | } |
| | | |
| | | permsService.clearPermsCache(); |
| | | Integer rows = shuJianService.insertSjService(entity, req, res); |
| | | Integer rows = shuJianService.insertSjService(entity); |
| | | |
| | | return success(rows); |
| | | } catch (Exception ex) { |
| | |
| | | } |
| | | |
| | | permsService.clearPermsCache(); |
| | | Integer rows = shuJianService.updateSjService(entity, req, res); |
| | | Integer rows = shuJianService.updateSjService(entity); |
| | | |
| | | return success(rows); |
| | | } catch (Exception ex) { |