diff --git a/aucma-api/src/main/java/com/aucma/api/service/impl/SAPPortServiceImpl.java b/aucma-api/src/main/java/com/aucma/api/service/impl/SAPPortServiceImpl.java index 530e156..5b161ef 100644 --- a/aucma-api/src/main/java/com/aucma/api/service/impl/SAPPortServiceImpl.java +++ b/aucma-api/src/main/java/com/aucma/api/service/impl/SAPPortServiceImpl.java @@ -60,7 +60,7 @@ public class SAPPortServiceImpl implements ISAPPortService { // 将 JSON 字符串转换为 Java 对象 SAPResultVo resultVo = resultMapper.readValue(result, SAPResultVo.class); //判断返回数据是否正确 - if (StringUtils.isNull(resultVo.getO_RETURN()) || "0".equals(resultVo.getO_RETURN().getItem().get(0).get("ID"))){ + if (StringUtils.isNull(resultVo.getO_RETURN()) || !"0".equals(resultVo.getO_RETURN().getItem().get(0).get("ID"))){ throw new BaseException("处理接口返回消息错误!(ID不为0或O_RETURN为空)"); } //转物料实体类 保存数据 diff --git a/aucma-api/src/main/java/com/aucma/api/service/impl/SAPPutStorageServiceImpl.java b/aucma-api/src/main/java/com/aucma/api/service/impl/SAPPutStorageServiceImpl.java index 13e5530..fb16811 100644 --- a/aucma-api/src/main/java/com/aucma/api/service/impl/SAPPutStorageServiceImpl.java +++ b/aucma-api/src/main/java/com/aucma/api/service/impl/SAPPutStorageServiceImpl.java @@ -7,6 +7,7 @@ import com.aucma.base.domain.BaseMaterialInfo; import com.aucma.base.service.IBaseDeviceLedgerService; import com.aucma.base.service.IBaseMaterialInfoService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.HashMap; @@ -17,6 +18,7 @@ import java.util.List; * @Author YinQ * @create 2023-09-27 15:07 */ +@Service public class SAPPutStorageServiceImpl implements ISAPPutStorageService { @Autowired diff --git a/aucma-base/src/main/java/com/aucma/base/service/IBaseMaterialinfoService.java b/aucma-base/src/main/java/com/aucma/base/service/IBaseMaterialInfoService.java similarity index 100% rename from aucma-base/src/main/java/com/aucma/base/service/IBaseMaterialinfoService.java rename to aucma-base/src/main/java/com/aucma/base/service/IBaseMaterialInfoService.java