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

相关推荐
南城以南溫暖如初1471 小时前
社区健身小程序开发流程详解:技术选型与实施经验分享
java·经验分享·spring boot·mysql·vue·apache
vx-程序开发1 小时前
django汽车租赁系统---附源码25360
java·javascript·spring boot·python·eclipse·django·php
2601_953824612 小时前
【计算机毕业设计】基于Spring Boot的宠物领养救助平台的设计与实现
spring boot·课程设计·宠物
RuoyiOffice3 小时前
SpringBoot3+Vue3 会议室预订系统:时段冲突三模式检测 + 会前定时提醒与 cancelByBiz
spring boot·vue3·flowable·消息中心·spring boot 3·会议室·时段冲突
万亿少女的梦1683 小时前
基于Spring Boot、Java与MySQL的同城宠物服务系统设计与实现
java·spring boot·mysql·系统设计·协同过滤
andongni2033 小时前
SpringBoot RESTful API 设计与实现
spring boot·后端·restful
万亿少女的梦1683 小时前
基于Spring Boot、Vue与MySQL的私人健身教练预约管理系统设计
java·spring boot·mysql·vue·预约管理
云烟成雨TD3 小时前
Micrometer 系列【59】统一观测:Spring Boot 集成指南
spring boot·云原生·链路追踪
山荷枝21 小时前
04-框架--SpringBoot
java·spring boot·后端
用户3126874877201 天前
你的配置真的绑定上了吗?Spring Boot @ConfigurationProperties 全链路拆解
spring boot