From 5252ef92d390de8bb6965052e9819331043a3b12 Mon Sep 17 00:00:00 2001 From: sdhkjh <2450473462@qq.com> Date: Sat, 5 Oct 2024 21:43:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=90=E4=BA=A4=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E5=A4=8D=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/skyeye/pay/service/PayAppService.java | 6 ------ .../pay/service/impl/PayAppServiceImpl.java | 21 +------------------ .../service/impl/PayChannelServiceImpl.java | 1 + 3 files changed, 2 insertions(+), 26 deletions(-) diff --git a/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/PayAppService.java b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/PayAppService.java index 6f5d13ec..cf68dd93 100644 --- a/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/PayAppService.java +++ b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/PayAppService.java @@ -16,10 +16,4 @@ import com.skyeye.pay.entity.PayApp; * 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的 */ public interface PayAppService extends SkyeyeBusinessService { -<<<<<<< HEAD -======= - - void updateEnabled(InputObject inputObject, OutputObject outputObject); - ->>>>>>> 6ea701f278e38aa5a863728a89295f400d79faff } diff --git a/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/impl/PayAppServiceImpl.java b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/impl/PayAppServiceImpl.java index 59a3d29a..3debce1c 100644 --- a/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/impl/PayAppServiceImpl.java +++ b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/impl/PayAppServiceImpl.java @@ -7,14 +7,11 @@ package com.skyeye.pay.service.impl; import cn.hutool.core.util.ObjectUtil; import cn.hutool.json.JSONUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.skyeye.annotation.service.SkyeyeService; import com.skyeye.base.business.service.impl.SkyeyeBusinessServiceImpl; import com.skyeye.common.constans.CommonConstants; import com.skyeye.common.constans.CommonNumConstants; -import com.skyeye.common.enumeration.WhetherEnum; import com.skyeye.common.object.InputObject; -import com.skyeye.common.object.OutputObject; import com.skyeye.common.util.mybatisplus.MybatisPlusUtil; import com.skyeye.exception.CustomException; import com.skyeye.pay.dao.PayAppDao; @@ -42,23 +39,7 @@ public class PayAppServiceImpl extends SkyeyeBusinessServiceImpl params = inputObject.getParams(); - String id = params.get("id").toString(); - String enabled = params.get("enabled").toString(); - verify(id); - UpdateWrapper updateWrapper = new UpdateWrapper<>(); - updateWrapper.set(MybatisPlusUtil.toColumns(PayApp::getEnabled), enabled) - .eq(CommonConstants.ID, id); - update(updateWrapper); - refreshCache(id); - } - ->>>>>>> 6ea701f278e38aa5a863728a89295f400d79faff - private void verify(String id){ + private void verify(String id) { QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.eq(CommonConstants.ID, id); PayApp one = getOne(queryWrapper); diff --git a/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/impl/PayChannelServiceImpl.java b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/impl/PayChannelServiceImpl.java index c4d00264..d1533fb3 100644 --- a/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/impl/PayChannelServiceImpl.java +++ b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/impl/PayChannelServiceImpl.java @@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.skyeye.annotation.service.SkyeyeService; import com.skyeye.base.business.service.impl.SkyeyeBusinessServiceImpl; import com.skyeye.common.constans.CommonConstants; +import com.skyeye.common.object.InputObject; import com.skyeye.exception.CustomException; import com.skyeye.pay.dao.PayChannelDao; import com.skyeye.pay.entity.PayChannel;