| | |
| | | import cn.huge.base.common.utils.DateUtils; |
| | | import cn.huge.base.common.utils.IdUtils; |
| | | import cn.huge.module.client.api.impl.UtilsClientImpl; |
| | | import cn.huge.module.constant.BaseConsts; |
| | | import cn.huge.module.ctrole.dao.mapper.CtRolefunMapper; |
| | | import cn.huge.module.ctrole.domain.po.CtRolefun; |
| | | import cn.huge.module.rsoper.domain.dto.RoleMenuTreeDTO; |
| | | import cn.huge.module.rsoper.service.RsRolefunService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.google.common.collect.Maps; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageImpl; |
| | | import org.springframework.data.domain.PageRequest; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | |
| | | @Autowired |
| | | private UtilsClientImpl utilsClient; |
| | | @Autowired |
| | | private RsRolefunService rsRolefunService; |
| | | |
| | | /** |
| | | * 更新对象 |
| | |
| | | */ |
| | | public void saveCtRolefun(CtRolefun ctRolefun){ |
| | | try{ |
| | | Date nowDate = DateUtils.getMowDate(); |
| | | Date nowDate = DateUtils.getNowDate(); |
| | | // 判断是否新增 |
| | | if (IdUtils.checkNewId(ctRolefun.getId())){ |
| | | ctRolefun.setId(utilsClient.getNewTimeId()); |
| | |
| | | throw new ServiceException("CtRolefunService.saveCtRolefun", e); |
| | | } |
| | | } |
| | | |
| | | } |