后端代码1

java 复制代码
// 新增
public JsonResultVo<?> create(@ApiIgnore @RequestAttribute(ConstVal.REQ_USER) BaseUser baseUser,
                                  @RequestBody IUTradeBuyPreserveVo iuTradeBuyPreserveVo) {
        //权限判断
        if (!baseCompanyService.dataPermission(baseUser, iuTradeBuyPreserveVo.getCompanyid(), Enums.SYSTEM_ID.XIANHUO)) {
            return JsonResultVo.failYThrowEx(Enums.RETCODE.TRADE_NO_DATA_RIGHT);
        }


        if (!tradeBuyPreserveService.save(iuTradeBuyPreserveVo)) {
            return ofRetFail(Enums.RETCODE.SQL_ERROR);
        } else {
            for (TradeBuyPreserveLine tradeBuyPreserveLine :
                    iuTradeBuyPreserveVo.getTradeBuyPreserveLineList()) {
                tradeBuyPreserveLine.setPreserveId(iuTradeBuyPreserveVo.getId());
                tradeBuyPreserveLineService.save(tradeBuyPreserveLine);
            }
            return JsonResultVo.success();
        }
    }
  1. 黑马瑞吉外卖知识点:

黑马云岚到家 第二章 客户管理- 5实名认证没有开发!

相关推荐
J2虾虾10 小时前
Spring Boot中使用@Scheduled做定时任务
java·前端·spring boot
彭于晏Yan14 小时前
LangChain4j实战三:图像模型
java·spring boot·后端·langchain
无尽的沉默14 小时前
使用Thymeleaf配置国际化页面(语言切换)
前端·spring boot
my_styles15 小时前
window系统安装/配置Nginx
服务器·前端·spring boot·nginx
洋洋技术笔记15 小时前
Spring Boot自动装配原理
java·spring boot
迪巴拉152515 小时前
基于Springboot+Vue的制造业采购管理系统
vue.js·spring boot·后端
qq_124987075316 小时前
基于springboot+vue的热门文创内容推荐平台(源码+论文+部署+安装)
vue.js·spring boot·后端·spring·毕业设计·计算机毕设
鹿角片ljp17 小时前
短信登录:基于 Session 实现(黑马点评实战)
java·服务器·spring boot·mybatis
计算机学姐18 小时前
基于SpringBoot的服装购物商城销售系统【协同过滤推荐算法+数据可视化统计】
java·vue.js·spring boot·mysql·信息可视化·mybatis·推荐算法