generated from root/miduo_server
datetime-local类型无法输出00秒,故弃用
parent
4d57b0fa7c
commit
ac9f8bfd17
|
@ -5,10 +5,10 @@ import com.alibaba.fastjson.JSONObject;
|
|||
import com.jmfy.WebSecurityConfig;
|
||||
import com.jmfy.dao.*;
|
||||
import com.jmfy.model.*;
|
||||
import com.jmfy.model.config.SRechargeCommodityConfig;
|
||||
import com.jmfy.model.vo.OrderExcelVo;
|
||||
import com.jmfy.redisProperties.RedisUserKey;
|
||||
import com.jmfy.utils.*;
|
||||
import config.SRechargeCommodityConfig;
|
||||
import org.apache.poi.hssf.usermodel.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -174,18 +174,13 @@ public class OrderInfoController {
|
|||
|
||||
/**
|
||||
* 查询订单
|
||||
* @param startTime
|
||||
* @param endTime
|
||||
* @param userId
|
||||
* @param packId
|
||||
* @param serverId
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
private List<Corder> findOrders(HashMap<String, String> parameterMap) throws Exception {
|
||||
// 参数
|
||||
long startTime = DateUtil.timeToStamp2(parameterMap.get("startTime").replace("T"," "));
|
||||
long endTime = DateUtil.timeToStamp2(parameterMap.get("endTime").replace("T"," "));
|
||||
long startTime = DateUtil.timeToStamp2(parameterMap.get("startTime"));
|
||||
long endTime = DateUtil.timeToStamp2(parameterMap.get("endTime"));
|
||||
String serverId = parameterMap.get("serverId");
|
||||
String userId = parameterMap.get("userId");
|
||||
String packId = parameterMap.get("packId");
|
||||
|
|
|
@ -3,10 +3,10 @@ package com.jmfy.controller;
|
|||
import com.jmfy.WebSecurityConfig;
|
||||
import com.jmfy.dao.*;
|
||||
import com.jmfy.model.*;
|
||||
import com.jmfy.model.config.SRechargeCommodityConfig;
|
||||
import com.jmfy.model.vo.PowersEnum;
|
||||
import com.jmfy.redisProperties.RedisUserKey;
|
||||
import com.jmfy.utils.*;
|
||||
import config.SRechargeCommodityConfig;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package config;
|
||||
package com.jmfy.model.config;
|
||||
|
||||
import com.jmfy.utils.FileCacheUtils;
|
||||
import com.jmfy.utils.JsonUtil;
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
package com.jmfy.utils;
|
||||
|
||||
import config.SItemConfig;
|
||||
import config.SRechargeCommodityConfig;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.jmfy.model.config.SRechargeCommodityConfig;
|
||||
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.*;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
package com.jmfy.utils;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import config.SRechargeCommodityConfig;
|
||||
import com.jmfy.model.config.SRechargeCommodityConfig;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -66,12 +66,12 @@
|
|||
<td th:text="${obj.getTypeDescription()}" style="text-align: center;"></td>
|
||||
<td th:text="${obj.getServerNames()}" style="text-align: center;"></td>
|
||||
<td style="text-align: center;">
|
||||
<button type="button" th:id="${obj.getId()}" class="btn btn-success radius" onclick="return jumpActivityMissionInfo(this)">
|
||||
档位
|
||||
</button>
|
||||
<button type="button" th:id="${obj.getId()}" class="btn btn-primary radius" onclick="return jumpUpdateActivity(this)">
|
||||
修改
|
||||
</button>
|
||||
<button type="button" th:id="${obj.getId()}" class="btn btn-success radius" onclick="return jumpActivityMissionInfo(this)">
|
||||
档位
|
||||
</button>
|
||||
<button type="button" th:id="${obj.getId()}" th:name="${obj.getName()}" class="btn btn-danger radius" onclick="return deleteActivity(this)">
|
||||
删除
|
||||
</button>
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
<span class="c-red">*</span>
|
||||
开始时间:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<input type="datetime-local" name="startTime" class="input-text" style="width: 210px" step="1">
|
||||
<input type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" id="startTime" class="input-text Wdate" style="width:180px;" name="startTime">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row cl">
|
||||
|
@ -56,7 +56,7 @@
|
|||
<span class="c-red">*</span>
|
||||
结束时间:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<input type="datetime-local" name="endTime" class="input-text" style="width: 210px" step="1">
|
||||
<input type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" id="endTime" class="input-text Wdate" style="width:180px;" name="endTime">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row cl">
|
||||
|
|
|
@ -78,8 +78,8 @@
|
|||
<input type="radio" th:id="always" name="effectTime" th:value="always"> <span>常驻</span>
|
||||
<input type="radio" style="margin-left: 30px;" th:id="custom" name="effectTime" th:value="custom"> <span>自定义</span>
|
||||
<div th:id="times" style="display: none;margin-top: 10px;">
|
||||
<input type="datetime-local" th:id="startTime" class="input-text" style="width: 210px" step="1">
|
||||
<input type="datetime-local" th:id="endTime" class="input-text" style="width: 210px;margin-left: 10px;" step="1">
|
||||
<input type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" id="startTime" class="input-text Wdate" style="width:180px;" name="startTime">
|
||||
<input type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" id="endTime" class="input-text Wdate" style="width:180px;" name="endTime">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -256,8 +256,6 @@
|
|||
if (activity == null){
|
||||
getFormat();
|
||||
document.getElementById("always").checked = true;
|
||||
document.getElementById("startTime").value = format;//赋初始值
|
||||
document.getElementById("endTime").value = format;//赋初始值
|
||||
}else {
|
||||
// 时间
|
||||
var timeType = activity.timeType;
|
||||
|
@ -266,8 +264,8 @@
|
|||
}else {
|
||||
document.getElementById("custom").checked = true;
|
||||
$("#times").css("display","block");
|
||||
document.getElementById("startTime").value = activity.startTime.replace(" ","T");//赋初始值
|
||||
document.getElementById("endTime").value = activity.endTime.replace(" ","T");//赋初始值
|
||||
document.getElementById("startTime").value = activity.startTime;//赋初始值
|
||||
document.getElementById("endTime").value = activity.endTime;//赋初始值
|
||||
}
|
||||
// 类型
|
||||
typeInfos.update({ disabled: true });
|
||||
|
@ -310,8 +308,8 @@
|
|||
let startTime = "2000-01-01 00:00:00", endTime = "3000-01-01 00:00:00";
|
||||
let effectTime = $("input[name='effectTime']:checked").val();
|
||||
if (effectTime === "custom") {
|
||||
startTime = document.getElementById("startTime").value.replace("T"," ");
|
||||
endTime = document.getElementById("endTime").value.replace("T"," ");
|
||||
startTime = document.getElementById("startTime").value;
|
||||
endTime = document.getElementById("endTime").value;
|
||||
}
|
||||
|
||||
let DateStart = new Date(startTime);
|
||||
|
|
Loading…
Reference in New Issue