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

相关推荐
卓怡学长7 小时前
w210基于springboot反诈平台设计与实现
java·spring boot·spring·intellij-idea
大模型丫丫9 小时前
如何提升单体 Spring Boot 应用的并发数?
java·spring boot·后端
RuoyiOffice9 小时前
SpringBoot3+Vue3 最推荐的开源 OA 系统 2026:流程驱动、资源闭环、多端互通
spring boot·vue3·flowable·oa·协同办公·spring boot 3·开源oa
计算机毕设定制辅导-无忧学长10 小时前
基于Spring Boot的玄幻小说个性化推荐平台设计与实现
java·vue.js·spring boot·后端·mysql·推荐算法
Harry Lei10 小时前
长期记忆系统的设计与实现
spring boot·postgresql·embedding
卓怡学长12 小时前
w156一周穿搭App的设计与实现
java·spring boot·spring·maven·intellij-idea
步行cgn13 小时前
Spring Boot 绑定简单 Bean 详解
java·spring boot·后端
爱折腾的编程老炮14 小时前
潮玩品牌自建抽盒机小程序——商城 + 抽盒 + 一番赏 + 会员 + 社区,一套代码怎么搭
spring boot·小程序·vue·mybatis·uniapp
谢亮_vipxieliang15 小时前
ValidX vs Google Guava Preconditions:验证 vs 断言
java·spring boot·后端·spring cloud·hibernate·guava
小小猪的春天1 天前
Java 手写第一个 MCP Server:Spring AI MCP 半小时跑通
java·人工智能·spring boot·ai编程