Commit a08fff5d by chongli

券修改截止时间精确到秒

parent 61f0c1e5
...@@ -216,6 +216,7 @@ public class VoucherRuleController { ...@@ -216,6 +216,7 @@ public class VoucherRuleController {
if (!StringUtils.isEmpty(resourceIds)) { if (!StringUtils.isEmpty(resourceIds)) {
vo.setResourceIds(resourceIds.replace(",", ",")); vo.setResourceIds(resourceIds.replace(",", ","));
} }
vo.setEndUseDate(DateUtil.getEndTime4Day(vo.getEndUseDate()));
boolean modifyVoucherRule = voucherRuleService.modifyVoucherRule("", vo); boolean modifyVoucherRule = voucherRuleService.modifyVoucherRule("", vo);
String message = modifyVoucherRule ? "现金券修改成功!" : "现金券修改失败!"; String message = modifyVoucherRule ? "现金券修改成功!" : "现金券修改失败!";
redirectAttributes.addFlashAttribute(FlashMessageDirective.FLASH_MESSAGE_ATTRIBUTE_NAME, redirectAttributes.addFlashAttribute(FlashMessageDirective.FLASH_MESSAGE_ATTRIBUTE_NAME,
......
...@@ -558,9 +558,8 @@ function getResourceList(page){ ...@@ -558,9 +558,8 @@ function getResourceList(page){
<td style="text-align:left">有效期</td> <td style="text-align:left">有效期</td>
<td style="text-align:left"> <td style="text-align:left">
<input type="text" id="startUseDate" name="startUseDate" value="${dto.startUseDate?string("yyyy-MM-dd")}" placeholder="${dto.startUseDate?string("yyyy-MM-dd")}" class="input-medium datetime"> <@form.textInputTwoDate path1="dto.startUseDate" path2="dto.endUseDate" attributes="" label="" required = true/>
~
<input type="text" id="endUseDate" name="endUseDate" value="${dto.endUseDate?string("yyyy-MM-dd")}" placeholder="${dto.endUseDate?string("yyyy-MM-dd")}" class="input-medium datetime">
</td> </td>
</tr> </tr>
<#if dto.voucherRuleType == 2> <#if dto.voucherRuleType == 2>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment