From e900ccb94046eabeff772f51c9492c3d8cfa2941 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期一, 18 八月 2025 10:40:58 +0800 Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/PlayPai into 2.0 --- cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TVipController.java | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TVipController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TVipController.java index 08f1f7d..58c4f4e 100644 --- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TVipController.java +++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TVipController.java @@ -11,6 +11,7 @@ import com.dsh.guns.core.base.controller.BaseController; import com.dsh.guns.core.common.constant.factory.PageFactory; import com.dsh.guns.modular.system.model.*; +import com.dsh.guns.modular.system.service.IProtocolService; import com.dsh.guns.modular.system.service.IStoreService; import com.dsh.guns.modular.system.service.IVipService; import com.dsh.guns.modular.system.util.ResultUtil; @@ -440,6 +441,24 @@ } return list; } + @Autowired + private IProtocolService protocolService; + @ResponseBody + @PostMapping("/getAgreement") + public String getAgreement() { + Protocol one = protocolService.lambdaQuery().eq(Protocol::getType, 6).one(); + if (one==null){ + Protocol protocol = new Protocol(); + protocol.setType(6); + protocol.setContent(""); + protocol.setInsertTime(new Date()); + protocolService.save( protocol); + return ""; + }else{ + return one.getContent(); + + } + } @ResponseBody @PostMapping("/getVipByIds") -- Gitblit v1.7.1