| | |
| | | )>0){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,该类型分组已经创建,请返回刷新页面查看!"); |
| | | } |
| | | |
| | | platformGroup.setStatus(Constants.ZERO); |
| | | platformGroup.setIsdeleted(Constants.ZERO); |
| | | platformGroup.setCreator(platformGroup.getLoginUserInfo().getId()); |
| | | platformGroup.setCreateDate(new Date()); |
| | | platformGroup.setEditDate(platformGroup.getEditDate()); |
| | | platformGroup.setEditDate(platformGroup.getCreateDate()); |
| | | platformGroup.setEditor(platformGroup.getCreator()); |
| | | platformGroupMapper.insert(platformGroup); |
| | | return platformGroup.getId(); |
| | |
| | | )>0){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,该类型分组已经创建,请返回刷新页面查看!"); |
| | | } |
| | | platformGroup.setEditDate(platformGroup.getEditDate()); |
| | | platformGroup.setEditor(platformGroup.getCreator()); |
| | | platformGroup.setEditDate(new Date()); |
| | | platformGroup.setEditor(platformGroup.getLoginUserInfo().getId()); |
| | | platformGroupMapper.updateById(platformGroup); |
| | | } |
| | | |