问题:
2021-04-29 14:45:50.871 ERROR 8324 --- [io-12000-exec-8] c.y.cols.controller.CardTypeController   : 修改失败:Method Not Implemented!
原因:
CardType cardType1 = cardTypeService.findById(cardType.getId());
findById方法是IBaseService的方法,没有被CardService实现。
解决:
@PutMapping("/updateCardType")
@ApiPermission
public ModelMap updateCardType(@RequestBody CardType cardType) {
    ModelMap modelMap = new ModelMap();
    try {
        CardType cardType1 = cardTypeService.getById(cardType.getId());
        if (cardType1 != null) {
            CardType update = cardTypeService.update(cardType);
            modelMap.addAttribute(FishConstant.SUCCESS,true);
        }else{
            modelMap.addAttribute(FishConstant.SUCCESS,false);
            modelMap.addAttribute(FishConstant.ERROR_MSG,"修改失败,卡种类不存在");
        }
    }catch (JpaObjectRetrievalFailureException e){
        logger.error("修改失败:"+e.getMessage());
        modelMap.addAttribute(FishConstant.SUCCESS,false);
        modelMap.addAttribute(FishConstant.ERROR_MSG,"修改失败,卡种类不存在,请刷新界面");
    }catch (Exception e){
        logger.error("修改失败:"+e.getMessage());
        modelMap.addAttribute(FishConstant.SUCCESS,false);
        modelMap.addAttribute(FishConstant.ERROR_MSG,"修改失败");
    }
    return modelMap;
}

报错,ERROR 8324 --- [io-12000-exec-8] c.y.cols.controller.CardTypeController相关推荐

  1. docker报错Error response from daemon: Get https://registry-1.docker.io/v2/: x509

    docker报错 Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate has exp ...

  2. 解决 docker exec 报错 Error response from daemon: Container XXXXX is not running

    docker exec 报错 Error response from daemon: Container XXXXX is not running 解决思路 XXXXX 为报错容器id 问题描述 废话 ...

  3. Qt5:报错error: ‘tr‘ was not declared in this scop

    Qt5:报错error: 'tr' was not declared in this scop Qt5出现tr错误 QObject简单解释 QObject描述 Qt5出现tr错误 CMyDir.cpp ...

  4. OpenCV drawMatches出现报错Error: Assertion failed

    OpenCV drawMatches出现报错Error: Assertion failed (i2 >= 0 && i2 < static_cast<int>( ...

  5. python下载第三方库的时候报错ERROR: Command errored out with exit status 1: python setup.py egg_info Check the

    python下载第三方库的时候报错ERROR: Command errored out with exit status 1: python setup.py egg_info Check the l ...

  6. pip报错 ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory

    使用pip安装某些包时,会出现以下报错 ERROR: Could not install packages due to an OSError: [Errno 2] No such file or d ...

  7. Flex报错Error #2048: 安全沙箱冲突

    Flex+JPA架构,JPA程序迁移,从A服务器到B.其他一切没变,唯一变的就是IP. 前端Flex也就是swf报错Error #2048: 安全沙箱冲突:http://xxx.swf 不能从 xxx ...

  8. git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists)....

    Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 解决办法一:保 ...

  9. SAP MM MB21创建预留单据报错- Error during conversion to alternative units of measure -

    SAP MM MB21创建预留单据报错- Error during conversion to alternative units of measure - 某日下午收到业务部门报错,说是创建预留单保 ...

最新文章

  1. 2021 Facebook 博士奖研金名单出炉:13位华人学者获选
  2. Android Studio找不到org.apache.http中的类
  3. 拥抱对手 微软崛起或靠“云计算”业务
  4. 笔记本电脑销量排名_网友总结京东笔记本销量,联想高居第一,华为表现很出色...
  5. C++设计模式-开放-封闭原则基本概念与实例
  6. 将Office2010版EXCEL文件保存为2007版.XLS文件格式体积巨增解决方法
  7. PS5运行Linux,索尼发布最新驱动!PS5手柄现在已支持Linux系统
  8. Problem E: 深入浅出学算法019-求n的阶乘
  9. HDU 3732 Ahui Writes Word
  10. Windows驱动开发之DDK与WDK、WDM的区别
  11. Android 动画系列之 -- 补间动画
  12. UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 2: illegal mu
  13. Linux:《gzip》《bzip2》压缩解压
  14. windows环境下利用python进行CGI配置
  15. 音乐制作软件中文精简版-Nuendo 4 v4.3 WiN
  16. 第十篇:读《这才是心理学-看穿伪科学的批判性思维》
  17. 利用HTML和javaScript实现简单的加减乘除运算
  18. 狂赚 1200 亿,差点收购苹果,影响千万程序员,那个叫做太阳的公司却陨落了!...
  19. springBoot学习2--整合篇--基于狂神说
  20. 豌豆荚使用到的开源技术

热门文章

  1. 理解三值逻辑与NULL,你离SQL高手更近了一步
  2. 为什么说容器的崛起预示着云原生时代到来?
  3. 华为云的研究成果又双叒叕被MICCAI收录了!
  4. Reactive(2) 响应式流与制奶厂业务
  5. python推导式pythonic必备
  6. 【华为云实战开发】8.如何快速搭建C#网站并实现持续集成?
  7. 推荐系统实战-概念理解入门篇
  8. 红橙Darren视频笔记 热更新 bsdiff bspatch 在Android设备上的应用 架构篇1完结篇
  9. 织梦熊掌号提交urls.php,织梦熊掌号api自动提交代码
  10. LaTeX设置长公式的跨页显示