diff --git a/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/entity/PayChannel.java b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/entity/PayChannel.java index 12b6d585..9fa9528c 100644 --- a/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/entity/PayChannel.java +++ b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/entity/PayChannel.java @@ -9,10 +9,12 @@ import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.skyeye.annotation.api.ApiModel; import com.skyeye.annotation.api.ApiModelProperty; +import com.skyeye.annotation.api.Property; import com.skyeye.annotation.cache.RedisCacheField; import com.skyeye.annotation.unique.UniqueField; import com.skyeye.common.constans.RedisConstants; import com.skyeye.common.entity.features.OperatorUserInfo; +import com.skyeye.pay.core.PayClientConfig; import lombok.Data; /** @@ -26,7 +28,7 @@ import lombok.Data; @Data @UniqueField({"codeNum", "appId"}) @RedisCacheField(name = "skyeye:payChannel", cacheTime = RedisConstants.THIRTY_DAY_SECONDS) -@TableName("skyeye_pay_channel") +@TableName(value = "skyeye_pay_channel", autoResultMap = true) @ApiModel("支付渠道实体类") public class PayChannel extends OperatorUserInfo { @@ -50,9 +52,13 @@ public class PayChannel extends OperatorUserInfo { @ApiModelProperty(value = "应用id", required = "required") private String appId; + @TableField(exist = false) + @Property("应用信息") + private PayApp appMation; + @TableField("config") @ApiModelProperty(value = "支付渠道配置", required = "required") - private String config; + private PayClientConfig config; @TableField("remark") @ApiModelProperty(value = "备注") 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 cf68dd93..6f5d13ec 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,4 +16,10 @@ 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/PayChannelService.java b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/PayChannelService.java index 69a36278..01be5dc2 100644 --- a/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/PayChannelService.java +++ b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/pay/service/PayChannelService.java @@ -16,4 +16,5 @@ import com.skyeye.pay.entity.PayChannel; * 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的 */ public interface PayChannelService extends SkyeyeBusinessService { + } 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 4f7f92e7..59a3d29a 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 @@ -42,6 +42,22 @@ 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){ QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.eq(CommonConstants.ID, id); 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 d43d0565..c4d00264 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 @@ -12,9 +12,14 @@ import com.skyeye.common.constans.CommonConstants; import com.skyeye.exception.CustomException; import com.skyeye.pay.dao.PayChannelDao; import com.skyeye.pay.entity.PayChannel; +import com.skyeye.pay.service.PayAppService; import com.skyeye.pay.service.PayChannelService; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.util.List; +import java.util.Map; + /** * @ClassName: PayChannelServiceImpl * @Description: 支付渠道服务层 @@ -27,6 +32,23 @@ import org.springframework.stereotype.Service; @SkyeyeService(name = "支付渠道", groupName = "支付渠道") public class PayChannelServiceImpl extends SkyeyeBusinessServiceImpl implements PayChannelService { + @Autowired + private PayAppService payAppService; + + @Override + public List> queryPageDataList(InputObject inputObject) { + List> beans = super.queryPageDataList(inputObject); + payAppService.setMationForMap(beans, "appId", "appMation"); + return beans; + } + + @Override + public PayChannel selectById(String id) { + PayChannel payChannel = super.selectById(id); + payAppService.setDataMation(payChannel, PayChannel::getAppId); + return payChannel; + } + @Override public void updatePrepose(PayChannel payChannel) { QueryWrapper queryWrapper = new QueryWrapper<>(); diff --git a/skyeye-shop/shop-store/src/main/java/com/skyeye/level/controller/ShopMemberLevelController.java b/skyeye-shop/shop-store/src/main/java/com/skyeye/level/controller/ShopMemberLevelController.java index 549db25c..393cadd0 100644 --- a/skyeye-shop/shop-store/src/main/java/com/skyeye/level/controller/ShopMemberLevelController.java +++ b/skyeye-shop/shop-store/src/main/java/com/skyeye/level/controller/ShopMemberLevelController.java @@ -62,12 +62,12 @@ public class ShopMemberLevelController { } /** - * 批量删除快递运费费用模版信息 + * 批量删除快递运费费用模版信息[ids] * * @param inputObject 入参以及用户信息等获取对象 * @param outputObject 出参以及提示信息的返回值对象 */ - @ApiOperation(id = "deleteMemberLeveByIds", value = "批量删除快递运费模版信息", method = "DELETE", allUse = "2") + @ApiOperation(id = "deleteMemberLeveByIds", value = "批量删除会员等级信息", method = "DELETE", allUse = "2") @ApiImplicitParams({ @ApiImplicitParam(id = "ids", name = "ids", value = "主键id列表,多个id用逗号分隔", required = "required")}) @RequestMapping("/post/ShopMemberLevelController/deleteMemberLeveByIds") diff --git a/skyeye-shop/shop-store/src/main/java/com/skyeye/level/service/impl/ShopMemberLevelServiceImpl.java b/skyeye-shop/shop-store/src/main/java/com/skyeye/level/service/impl/ShopMemberLevelServiceImpl.java index fa31cba4..b8743df6 100644 --- a/skyeye-shop/shop-store/src/main/java/com/skyeye/level/service/impl/ShopMemberLevelServiceImpl.java +++ b/skyeye-shop/shop-store/src/main/java/com/skyeye/level/service/impl/ShopMemberLevelServiceImpl.java @@ -61,7 +61,7 @@ public class ShopMemberLevelServiceImpl extends SkyeyeBusinessServiceImpl