From 964a5a8c901bb1e7daa07edb8fc0d5e8aef83e6a Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Thu, 14 Aug 2025 14:59:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=96=99=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/BackApplyServiceImpl.java | 10 ++--- .../mapper/material/BackApplyMapper.xml | 40 +++++++++---------- 2 files changed, 23 insertions(+), 27 deletions(-) diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/BackApplyServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/BackApplyServiceImpl.java index cfc1b69..d076ca4 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/BackApplyServiceImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/BackApplyServiceImpl.java @@ -1348,12 +1348,12 @@ public class BackApplyServiceImpl implements BackApplyService { if (dto == null) { return AjaxResult.error(HttpCodeEnum.FAIL.getCode(), "参数不能为空"); } - if (dto.getUnitId() == null) { - return AjaxResult.error(HttpCodeEnum.FAIL.getCode(), "单位ID为空"); - } - if (dto.getProjectId() == null) { - return AjaxResult.error(HttpCodeEnum.FAIL.getCode(), "工程ID为空"); + if (dto.getAgreementId() == null) { + return AjaxResult.error(HttpCodeEnum.FAIL.getCode(), "协议ID为空"); } +// if (dto.getProjectId() == null) { +// return AjaxResult.error(HttpCodeEnum.FAIL.getCode(), "工程ID为空"); +// } if (StringUtils.isBlank(dto.getTypeId())) { return AjaxResult.error(HttpCodeEnum.FAIL.getCode(), "机具类型ID为空"); } diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml index 4e26c7f..37a25eb 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml @@ -1188,33 +1188,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"