generated from root/miduo_server
生成时间添加
parent
05677941d1
commit
c4e6475c56
|
@ -131,6 +131,7 @@ public class CdkInfoController {
|
|||
cdkInfoVo.setPid(sCdkInfo.getPid());
|
||||
cdkInfoVo.setRoleUseNum(sCdkInfo.getRoleUseNum());
|
||||
cdkInfoVo.setServerId(sCdkInfo.getServerId());
|
||||
cdkInfoVo.setBuildTime(sCdkInfo.getBuildTime()==0?"0":JsonUtil.timeStamp2Date(String.valueOf(sCdkInfo.getBuildTime())));
|
||||
sCdkInfoListVo.add(cdkInfoVo);
|
||||
}
|
||||
map.put("sCdkInfoList",sCdkInfoListVo);
|
||||
|
@ -192,6 +193,7 @@ public class CdkInfoController {
|
|||
sCdkInfo.setPid(Integer.parseInt(pid));
|
||||
sCdkInfo.setRoleUseNum(Integer.parseInt(roleUseNum));
|
||||
sCdkInfo.setServerId(Integer.parseInt(serverId));
|
||||
sCdkInfo.setBuildTime(Calendar.getInstance().getTime().getTime());
|
||||
cdkInfoDao.addCDKGoodsInfo(sCdkInfo);
|
||||
return "redirect:/toCDKBuild";
|
||||
}
|
||||
|
|
|
@ -4,6 +4,8 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
import org.springframework.data.mongodb.core.mapping.Field;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Document(collection = "cdk_add_info")
|
||||
public class SCdkInfo {
|
||||
@Id
|
||||
|
@ -44,7 +46,8 @@ public class SCdkInfo {
|
|||
|
||||
@Field(value = "serverId")
|
||||
private int serverId;
|
||||
|
||||
@Field(value = "buildTime")
|
||||
private long buildTime;
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
@ -140,5 +143,13 @@ public class SCdkInfo {
|
|||
public void setServerId(int serverId) {
|
||||
this.serverId = serverId;
|
||||
}
|
||||
|
||||
public long getBuildTime() {
|
||||
return buildTime;
|
||||
}
|
||||
|
||||
public void setBuildTime(long buildTime) {
|
||||
this.buildTime = buildTime;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package com.jmfy.model.vo;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class CDKInfoVo {
|
||||
|
||||
public int id;
|
||||
|
@ -24,6 +26,8 @@ public class CDKInfoVo {
|
|||
|
||||
public int serverId;
|
||||
|
||||
public String buildTime;
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
@ -71,4 +75,12 @@ public class CDKInfoVo {
|
|||
public void setServerId(int serverId) {
|
||||
this.serverId = serverId;
|
||||
}
|
||||
|
||||
public String getBuildTime() {
|
||||
return buildTime;
|
||||
}
|
||||
|
||||
public void setBuildTime(String buildTime) {
|
||||
this.buildTime = buildTime;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<input type="text" class="input-text" style="width:250px" placeholder="序列号id" id="cdkNum" name="cdkNum"><br><br>
|
||||
<span class="CDKNUM"></span><br>
|
||||
<!--<input type="text" class="input-text" style="width:250px" placeholder="生成数量" name="num">-->
|
||||
<button type="submit" class="btn btn-success" ><i class="Hui-iconfont"></i> 序列號查询</button>
|
||||
<button type="submit" class="btn btn-success" ><i class="Hui-iconfont"></i> 序列号查询</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<body>
|
||||
<nav class="breadcrumb">
|
||||
<i class="Hui-iconfont"></i> 首页
|
||||
<span class="c-gray en">></span> 序列號管理 <span class="c-gray en">></span> 序列號生成
|
||||
<span class="c-gray en">></span> 序列号管理 <span class="c-gray en">></span> 序列号生成
|
||||
<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace('/toCDKBuild');" title="刷新" >
|
||||
<i class="Hui-iconfont"></i></a></nav>
|
||||
<div class="page-container" style="text-align: center">
|
||||
|
@ -43,6 +43,7 @@
|
|||
<th width="200">礼包类型</th>
|
||||
<th width="200">被使用数量</th>
|
||||
<th width="200">角色使用数量</th>
|
||||
<th width="200">生成时间</th>
|
||||
<th width="200">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -51,7 +52,7 @@
|
|||
<!--<td><input type="checkbox" value="" name=""/></td>-->
|
||||
<td th:text="${obj.goodsName}" style="text-align: center;"></td>
|
||||
<td th:text="${obj.id}" style="text-align: center;"></td>
|
||||
<td th:text="${obj.serverId==0?'全服邮件':obj.serverId}" style="text-align: center;"></td>
|
||||
<td th:text="${obj.serverId==0?'全服通用':obj.serverId}" style="text-align: center;"></td>
|
||||
<td th:text="${obj.pid}" style="text-align: center;"></td>
|
||||
<td th:text="${obj.goodsNum}" style="text-align: center;"></td>
|
||||
<td th:text="${obj.startTime}" style="text-align: center;"></td>
|
||||
|
@ -60,6 +61,7 @@
|
|||
<td th:text="${obj.type}" style="text-align: center;"></td>
|
||||
<td th:text="${obj.useNum}" style="text-align: center;"></td>
|
||||
<td th:text="${obj.roleUseNum}" style="text-align: center;"></td>
|
||||
<td th:text="${obj.buildTime=='0'?'暂未生成':obj.buildTime}" style="text-align: center;"></td>
|
||||
<td style="text-align: center; width: 300px">
|
||||
<button type="button" th:id="${obj.id}" class="btn btn-primary" onclick="return cdkAdd(this)"><i class="Hui-iconfont"></i> 序列號生成</button>
|
||||
<button type="button" th:id="${obj.id}" class="btn btn-success" onclick="return download(this)"><i class="Hui-iconfont"></i> 序列號导出</button>
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
<body>
|
||||
<nav class="breadcrumb">
|
||||
<a href="javascript:;" onclick="history.go(-1)"><i class="Hui-iconfont"></i> 首页</a>
|
||||
<span class="c-gray en">></span> 序列號管理
|
||||
<span class="c-gray en">></span> 序列號查询
|
||||
<span class="c-gray en">></span> 序列号管理
|
||||
<span class="c-gray en">></span> 序列号查询
|
||||
</nav>
|
||||
<div class="page-container" style="text-align: center">
|
||||
<h2><span style="color:red;">序列號使用信息</span></h2>
|
||||
|
|
Loading…
Reference in New Issue