diff --git a/sino-activity/src/main/java/com/sinosoft/activity/domain/DrawRule.java b/sino-activity/src/main/java/com/sinosoft/activity/domain/DrawRule.java index 466c45693..756df3a46 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/domain/DrawRule.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/domain/DrawRule.java @@ -34,12 +34,10 @@ public class DrawRule extends BaseEntity private String DAILYFLAG; /** 日抽奖限制开始时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") - private Date DAILYSTARTTIME; + private String DAILYSTARTTIME; /** 日抽奖限制结束时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") - private Date DAILYENDTIME; + private String DAILYENDTIME; /** 日抽奖限制次数 */ private Long DAILYNUMBER; @@ -90,19 +88,19 @@ public class DrawRule extends BaseEntity this.DRAWRULEID = DRAWRULEID; } - public Date getDAILYSTARTTIME() { + public String getDAILYSTARTTIME() { return DAILYSTARTTIME; } - public void setDAILYSTARTTIME(Date DAILYSTARTTIME) { + public void setDAILYSTARTTIME(String DAILYSTARTTIME) { this.DAILYSTARTTIME = DAILYSTARTTIME; } - public Date getDAILYENDTIME() { + public String getDAILYENDTIME() { return DAILYENDTIME; } - public void setDAILYENDTIME(Date DAILYENDTIME) { + public void setDAILYENDTIME(String DAILYENDTIME) { this.DAILYENDTIME = DAILYENDTIME; } diff --git a/sino-activity/src/main/resources/mapper/activity/DrawInfoMapper.xml b/sino-activity/src/main/resources/mapper/activity/DrawInfoMapper.xml index 126ce3df1..6689c1e38 100644 --- a/sino-activity/src/main/resources/mapper/activity/DrawInfoMapper.xml +++ b/sino-activity/src/main/resources/mapper/activity/DrawInfoMapper.xml @@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT i.DRAWID, i.DRAWNAME, - i. STATUS, + i.STATUS, i.EXPENO, i.EXPENOVALUE, i.STARTTIME, diff --git a/sino-activity/src/main/resources/templates/activity/info/add.html b/sino-activity/src/main/resources/templates/activity/info/add.html index bc881c168..05d644826 100644 --- a/sino-activity/src/main/resources/templates/activity/info/add.html +++ b/sino-activity/src/main/resources/templates/activity/info/add.html @@ -232,7 +232,7 @@ $('#smartwizard').smartWizard({
-
@@ -242,7 +242,7 @@ $('#smartwizard').smartWizard({
-
@@ -254,7 +254,7 @@ $('#smartwizard').smartWizard({
-
@@ -264,7 +264,7 @@ $('#smartwizard').smartWizard({
- +
@@ -275,7 +275,7 @@ $('#smartwizard').smartWizard({
- +
@@ -286,7 +286,7 @@ $('#smartwizard').smartWizard({
- +
@@ -301,7 +301,7 @@ $('#smartwizard').smartWizard({
-
@@ -311,7 +311,7 @@ $('#smartwizard').smartWizard({
- +
@@ -322,7 +322,7 @@ $('#smartwizard').smartWizard({
-
@@ -374,6 +374,42 @@ $('#smartwizard').smartWizard({ $.operate.saveModal(prefix+"/add", data); } + //时间段抽奖配置 + function dailyflag(){ + var DAILYFLAG = $("#DAILYFLAG").val(); + if (DAILYFLAG==1){ + $('#dailynumber').removeAttr('disabled'); + $('#dailystarttime').removeAttr('disabled'); + $('#dailyendtime').removeAttr('disabled'); + }else if(DAILYFLAG==0){ + $("#dailynumber").attr('disabled','true'); + $("#dailystarttime").attr('disabled','true'); + $("#dailyendtime").attr('disabled','true'); + } + } + //抽奖必中配置 + function willdrawflag(){ + var WILLDRAWFLAG = $("#WILLDRAWFLAG").val(); + if (WILLDRAWFLAG==1){ + $('#willdrawawardnumber').removeAttr('disabled'); + $('#willdrawawardprize').removeAttr('disabled'); + }else if(WILLDRAWFLAG==0){ + $("#willdrawawardnumber").attr('disabled','true'); + $("#willdrawawardprize").attr('disabled','true'); + + } + } + + //首次中奖配置 + function firstflag(){ + var FIRSTFLAG = $("#FIRSTFLAG").val(); + if (FIRSTFLAG==1){ + $('#firstawardprize').removeAttr('disabled'); + }else if(FIRSTFLAG==0){ + $("#firstawardprize").attr('disabled','true'); + } + + } $("input[name='STARTTIME']").datetimepicker({ weekStart: 1, @@ -405,7 +441,7 @@ $('#smartwizard').smartWizard({ startView: 2, forceParse: 0, showMeridian: 1, - format: 'yyyy-mm-dd hh:ii:ss' + format: 'hh:ii:ss' }); $("input[name='DAILYENDTIME']").datetimepicker({ @@ -416,7 +452,7 @@ $('#smartwizard').smartWizard({ startView: 2, forceParse: 0, showMeridian: 1, - format: 'yyyy-mm-dd hh:ii:ss' + format: 'hh:ii:ss' });