From 01ed6b9da1fa061e29cf4d1f23dd2fc3a1a9b997 Mon Sep 17 00:00:00 2001 From: cuibaocheng Date: Fri, 3 Sep 2021 15:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=87=E5=AD=97=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E8=87=AA=E5=8A=A8=E8=AE=BE=E7=BD=AE/=E6=A0=8F?= =?UTF-8?q?=E7=9B=AE=E5=A2=9E=E5=8A=A0=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CardConfigColumnGroupAppController.java | 1 + .../cn/com/tenlion/systemcard/util/PayUtil.java | 13 +++++-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/java/cn/com/tenlion/systemcard/controller/app/api/cardconfigcolumngroup/CardConfigColumnGroupAppController.java b/src/main/java/cn/com/tenlion/systemcard/controller/app/api/cardconfigcolumngroup/CardConfigColumnGroupAppController.java index 71026aa..ae44cc0 100644 --- a/src/main/java/cn/com/tenlion/systemcard/controller/app/api/cardconfigcolumngroup/CardConfigColumnGroupAppController.java +++ b/src/main/java/cn/com/tenlion/systemcard/controller/app/api/cardconfigcolumngroup/CardConfigColumnGroupAppController.java @@ -93,6 +93,7 @@ public class CardConfigColumnGroupAppController extends DefaultBaseController { break; case "2" : // 企业普通版 // 查询公司表 , 判断是否为公司负责人 , 如果只是公司员工则不显示 + params.put("configColumnRole", "2"); params.put("configColumnGroupRole", "2"); break; case "3" : diff --git a/src/main/java/cn/com/tenlion/systemcard/util/PayUtil.java b/src/main/java/cn/com/tenlion/systemcard/util/PayUtil.java index 72f7812..64d6f76 100644 --- a/src/main/java/cn/com/tenlion/systemcard/util/PayUtil.java +++ b/src/main/java/cn/com/tenlion/systemcard/util/PayUtil.java @@ -2,6 +2,7 @@ package cn.com.tenlion.systemcard.util; import cn.com.tenlion.projectconfig.util.ProjectConfigUtil; import ink.wgink.interfaces.consts.ISystemConstant; +import ink.wgink.util.verification.share.ShareCodeUtil; import org.joda.time.DateTime; import org.joda.time.Days; import org.joda.time.format.DateTimeFormat; @@ -18,13 +19,9 @@ public class PayUtil { } public static void main(String[] args) { - String registerTime = "2021-08-31 08:09:09"; - DateTime registerDateTime = DateTime.parse(registerTime, DateTimeFormat.forPattern(ISystemConstant.DATE_FORMATTER_YYYY_MM_DD_HH_MM_SS)); - // DateTime withdrawDateTime = registerDateTime.plusDays(3); - int lastDay = Days.daysBetween(registerDateTime , DateTime.now()).getDays(); - System.out.println(lastDay); - if(lastDay > 0) { - // 可以提现 - } + + for(long i = 1 ; i < 13 ; i++) { + System.out.println( ShareCodeUtil.gen(i)); + } } }