后端代码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实名认证没有开发!

相关推荐
程序猿乐锅3 小时前
【黑马点评 | 第八篇】Redisson分布式锁
java·数据库·spring boot·redis·分布式·spring·缓存
需要8264 小时前
分布式事务:Seata AT/TCC/SAGA 的取舍与踩坑
java·spring boot·分布式·spring·spring cloud
m0_587383005 小时前
深圳24小时自助健身房解决方案实战:从系统架构到部署指南
java·人工智能·spring boot·spring·系统架构·需求分析
小马哥程序开发7 小时前
[点赞收藏免费领取 · 项目源码]57105基于Spring Boot的充电桩管理系统的设计与实现
java·spring boot·源码·课程设计·毕设·大作业·课设
卓怡学长9 小时前
w202springboot基于B_S架构的图书信息管理系统
java·spring boot·spring·intellij-idea
走到天涯海角9 小时前
用springBoot写几个简单的接口
java·spring boot·intellij-idea
xcl092510 小时前
西安同城货运系统源码开发实战 核心功能实现与部署全指南
java·spring boot
ym hyd 11110 小时前
慢性病精细化管理平台源码 Java+SpringBoot+Vue3 前后分离
java·vue.js·spring boot·毕设
RuoyiOffice11 小时前
SpringBoot3+Vue3 低代码业务表单:从拖拽设计、独立建表到审批与数据查询
spring boot·vue3·数据建模·flowable·版本管理·低代码表单·ruoyi office
需要82611 小时前
MySQL MVCC 与事务隔离级别:从一条 update 看版本链
java·数据库·spring boot·mysql·spring cloud