提交 25605d81 authored 作者: Mangostiffy's avatar Mangostiffy

新增续费日志、抽奖次数

上级 a58acfc8
......@@ -2,6 +2,8 @@ package com.mall.controller.api;
import com.mall.controller.base.BaseController;
import com.mall.service.mengbeng.lottery.LotteryManager;
import com.mall.service.mengbeng.renewalfee.RenewalfeeManager;
import com.mall.service.mengbeng.store.StoreManager;
import com.mall.util.PageData;
import com.mall.util.ResultOutDto;
import org.springframework.stereotype.Controller;
......@@ -18,6 +20,10 @@ import java.util.*;
public class LotteryApi extends BaseController {
@Resource(name="lotteryService")
private LotteryManager lotteryService;
@Resource(name="renewalfeeService")
private RenewalfeeManager renewalfeeService;
@Resource(name="storeService")
private StoreManager storeService;
/**
* 抽奖
......@@ -30,6 +36,22 @@ public class LotteryApi extends BaseController {
if(null==store_id){
return ResultOutDto.err(null,"店铺id为空");
}
//TODO:减少抽奖次数
PageData storepd=new PageData();
storepd.put("store_id",store_id);
storepd=storeService.findById(storepd);
if(null!=storepd){
if((int)storepd.get("lottery_num")<1){
return ResultOutDto.err(null,"抽奖次数已用完");
}
storepd.put("lottery_num",(int)storepd.get("lottery_num")-1);
storeService.edit(storepd);
}else{
return ResultOutDto.err(null,"店铺不存在");
}
PageData pd=new PageData();
List<PageData> list=lotteryService.listAll(pd);
List resultnumberlist=new ArrayList();
......@@ -42,7 +64,8 @@ public class LotteryApi extends BaseController {
PageData lotteryresult=new PageData();
lotteryresult.put("store_id",store_id);
DateFormat df=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
lotteryresult.put("createtime",df.format(new Date()));
String createtime=df.format(new Date());
lotteryresult.put("createtime",createtime);
if(resultnumberlist.get(0)==resultnumberlist.get(1)&&resultnumberlist.get(1)==resultnumberlist.get(2)){
pd.put("c_lottery_number",resultnumberlist.get(0));
......@@ -57,6 +80,17 @@ public class LotteryApi extends BaseController {
//保存中奖记录
lotteryresult.put("reward",pd.get("c_lottery_reward"));
lotteryService.saveLotterylog(lotteryresult);
//保存续费记录
PageData renewalfeepd=new PageData();
renewalfeepd.put("RENEWALFEE_ID",this.get32UUID());
renewalfeepd.put("RENEWALFEE_STOREID",store_id);
renewalfeepd.put("RENEWALFEE_MONTHS",pd.get("c_lottery_reward"));
renewalfeepd.put("RENEWALFEE_TIME",createtime);
renewalfeepd.put("RENEWALFEE_TYPE",2);
renewalfeeService.save(renewalfeepd);
return ResultOutDto.ok(resultmap);
}else{
return ResultOutDto.err(null,"奖品不存在");
......
......@@ -79,6 +79,7 @@ public class StoreApiController {
pd.put("gender", 0);// 性别
pd.put("create_time", DateUtil.getDay()); // 创建时间
pd.put("end_valid_time", 0); // 到期时间
pd.put("lottery_num",0);
// pd.put("payType", payType);
storeService.save(pd);
return ResultOutDto.ok();
......
package com.mall.controller.tongmeng.renewalfee;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import com.mall.service.mengbeng.renewalfee.RenewalfeeManager;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import com.mall.controller.base.BaseController;
import com.mall.entity.Page;
import com.mall.util.AppUtil;
import com.mall.util.ObjectExcelView;
import com.mall.util.PageData;
import com.mall.util.Jurisdiction;
import com.mall.util.Tools;
/**
* 说明:续费日志
* 创建时间:2019-03-11
*/
@Controller
@RequestMapping(value="/renewalfee")
public class RenewalfeeController extends BaseController {
String menuUrl = "renewalfee/list.do"; //菜单地址(权限用)
@Resource(name="renewalfeeService")
private RenewalfeeManager renewalfeeService;
/**保存
* @param
* @throws Exception
*/
@RequestMapping(value="/save")
public ModelAndView save() throws Exception{
logBefore(logger, Jurisdiction.getUsername()+"新增Renewalfee");
if(!Jurisdiction.buttonJurisdiction(menuUrl, "add")){return null;} //校验权限
ModelAndView mv = this.getModelAndView();
PageData pd = new PageData();
pd = this.getPageData();
pd.put("RENEWALFEE_ID", this.get32UUID()); //主键
renewalfeeService.save(pd);
mv.addObject("msg","success");
mv.setViewName("save_result");
return mv;
}
/**删除
* @param out
* @throws Exception
*/
@RequestMapping(value="/delete")
public void delete(PrintWriter out) throws Exception{
logBefore(logger, Jurisdiction.getUsername()+"删除Renewalfee");
if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return;} //校验权限
PageData pd = new PageData();
pd = this.getPageData();
renewalfeeService.delete(pd);
out.write("success");
out.close();
}
/**修改
* @param
* @throws Exception
*/
@RequestMapping(value="/edit")
public ModelAndView edit() throws Exception{
logBefore(logger, Jurisdiction.getUsername()+"修改Renewalfee");
if(!Jurisdiction.buttonJurisdiction(menuUrl, "edit")){return null;} //校验权限
ModelAndView mv = this.getModelAndView();
PageData pd = new PageData();
pd = this.getPageData();
renewalfeeService.edit(pd);
mv.addObject("msg","success");
mv.setViewName("save_result");
return mv;
}
/**列表
* @param page
* @throws Exception
*/
@RequestMapping(value="/list")
public ModelAndView list(Page page) throws Exception{
logBefore(logger, Jurisdiction.getUsername()+"列表Renewalfee");
//if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} //校验权限(无权查看时页面会有提示,如果不注释掉这句代码就无法进入列表页面,所以根据情况是否加入本句代码)
ModelAndView mv = this.getModelAndView();
PageData pd = new PageData();
pd = this.getPageData();
String keywords = pd.getString("keywords"); //关键词检索条件
if(null != keywords && !"".equals(keywords)){
pd.put("keywords", keywords.trim());
}
page.setPd(pd);
List<PageData> varList = renewalfeeService.list(page); //列出Renewalfee列表
mv.setViewName("tongmeng/renewalfee/renewalfee_list");
mv.addObject("varList", varList);
mv.addObject("pd", pd);
mv.addObject("QX",Jurisdiction.getHC()); //按钮权限
return mv;
}
/**去新增页面
* @param
* @throws Exception
*/
@RequestMapping(value="/goAdd")
public ModelAndView goAdd()throws Exception{
ModelAndView mv = this.getModelAndView();
PageData pd = new PageData();
pd = this.getPageData();
mv.setViewName("tongmeng/renewalfee/renewalfee_edit");
mv.addObject("msg", "save");
mv.addObject("pd", pd);
return mv;
}
/**去修改页面
* @param
* @throws Exception
*/
@RequestMapping(value="/goEdit")
public ModelAndView goEdit()throws Exception{
ModelAndView mv = this.getModelAndView();
PageData pd = new PageData();
pd = this.getPageData();
pd = renewalfeeService.findById(pd); //根据ID读取
mv.setViewName("tongmeng/renewalfee/renewalfee_edit");
mv.addObject("msg", "edit");
mv.addObject("pd", pd);
return mv;
}
/**批量删除
* @param
* @throws Exception
*/
@RequestMapping(value="/deleteAll")
@ResponseBody
public Object deleteAll() throws Exception{
logBefore(logger, Jurisdiction.getUsername()+"批量删除Renewalfee");
if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限
PageData pd = new PageData();
Map<String,Object> map = new HashMap<String,Object>();
pd = this.getPageData();
List<PageData> pdList = new ArrayList<PageData>();
String DATA_IDS = pd.getString("DATA_IDS");
if(null != DATA_IDS && !"".equals(DATA_IDS)){
String ArrayDATA_IDS[] = DATA_IDS.split(",");
renewalfeeService.deleteAll(ArrayDATA_IDS);
pd.put("msg", "ok");
}else{
pd.put("msg", "no");
}
pdList.add(pd);
map.put("list", pdList);
return AppUtil.returnObject(pd, map);
}
/**导出到excel
* @param
* @throws Exception
*/
@RequestMapping(value="/excel")
public ModelAndView exportExcel() throws Exception{
logBefore(logger, Jurisdiction.getUsername()+"导出Renewalfee到excel");
if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;}
ModelAndView mv = new ModelAndView();
PageData pd = new PageData();
pd = this.getPageData();
Map<String,Object> dataMap = new HashMap<String,Object>();
List<String> titles = new ArrayList<String>();
titles.add("续费店铺"); //1
titles.add("续费月数"); //2
titles.add("续费时间"); //3
titles.add("续费类型"); //4
dataMap.put("titles", titles);
List<PageData> varOList = renewalfeeService.listAll(pd);
List<PageData> varList = new ArrayList<PageData>();
for(int i=0;i<varOList.size();i++){
PageData vpd = new PageData();
vpd.put("var1", varOList.get(i).getString("RENEWALFEE_STOREID")); //1
vpd.put("var2", varOList.get(i).get("RENEWALFEE_MONTHS").toString()); //2
vpd.put("var3", varOList.get(i).getString("RENEWALFEE_TIME")); //3
vpd.put("var4", varOList.get(i).get("RENEWALFEE_TYPE").toString()); //4
varList.add(vpd);
}
dataMap.put("varList", varList);
ObjectExcelView erv = new ObjectExcelView();
mv = new ModelAndView(erv,dataMap);
return mv;
}
@InitBinder
public void initBinder(WebDataBinder binder){
DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
binder.registerCustomEditor(Date.class, new CustomDateEditor(format,true));
}
}
......@@ -90,7 +90,11 @@ public class StoreController extends BaseController {
ModelAndView mv = this.getModelAndView();
PageData pd = new PageData();
pd = this.getPageData();
storeService.edit(pd);
PageData storepd=storeService.findById(pd);
if(null!=storepd){
storepd.put("lottery_num",pd.getString("lottery_num"));
storeService.edit(storepd);
}
mv.addObject("msg","success");
mv.setViewName("save_result");
return mv;
......
package com.mall.service.mengbeng.renewalfee;
import java.util.List;
import com.mall.entity.Page;
import com.mall.util.PageData;
/**
* 说明: 续费日志接口
* 创建时间:2019-03-11
* @version
*/
public interface RenewalfeeManager{
/**新增
* @param pd
* @throws Exception
*/
public void save(PageData pd)throws Exception;
/**删除
* @param pd
* @throws Exception
*/
public void delete(PageData pd)throws Exception;
/**修改
* @param pd
* @throws Exception
*/
public void edit(PageData pd)throws Exception;
/**列表
* @param page
* @throws Exception
*/
public List<PageData> list(Page page)throws Exception;
/**列表(全部)
* @param pd
* @throws Exception
*/
public List<PageData> listAll(PageData pd)throws Exception;
/**通过id获取数据
* @param pd
* @throws Exception
*/
public PageData findById(PageData pd)throws Exception;
/**批量删除
* @param ArrayDATA_IDS
* @throws Exception
*/
public void deleteAll(String[] ArrayDATA_IDS)throws Exception;
}
package com.mall.service.mengbeng.renewalfee.impl;
import java.util.List;
import javax.annotation.Resource;
import com.mall.service.mengbeng.renewalfee.RenewalfeeManager;
import org.springframework.stereotype.Service;
import com.mall.dao.DaoSupport;
import com.mall.entity.Page;
import com.mall.util.PageData;
/**
* 说明: 续费日志
* 创建时间:2019-03-11
* @version
*/
@Service("renewalfeeService")
public class RenewalfeeService implements RenewalfeeManager {
@Resource(name = "daoSupport")
private DaoSupport dao;
/**新增
* @param pd
* @throws Exception
*/
public void save(PageData pd)throws Exception{
dao.save("RenewalfeeMapper.save", pd);
}
/**删除
* @param pd
* @throws Exception
*/
public void delete(PageData pd)throws Exception{
dao.delete("RenewalfeeMapper.delete", pd);
}
/**修改
* @param pd
* @throws Exception
*/
public void edit(PageData pd)throws Exception{
dao.update("RenewalfeeMapper.edit", pd);
}
/**列表
* @param page
* @throws Exception
*/
@SuppressWarnings("unchecked")
public List<PageData> list(Page page)throws Exception{
return (List<PageData>)dao.findForList("RenewalfeeMapper.datalistPage", page);
}
/**列表(全部)
* @param pd
* @throws Exception
*/
@SuppressWarnings("unchecked")
public List<PageData> listAll(PageData pd)throws Exception{
return (List<PageData>)dao.findForList("RenewalfeeMapper.listAll", pd);
}
/**通过id获取数据
* @param pd
* @throws Exception
*/
public PageData findById(PageData pd)throws Exception{
return (PageData)dao.findForObject("RenewalfeeMapper.findById", pd);
}
/**批量删除
* @param ArrayDATA_IDS
* @throws Exception
*/
public void deleteAll(String[] ArrayDATA_IDS)throws Exception{
dao.delete("RenewalfeeMapper.deleteAll", ArrayDATA_IDS);
}
}
......@@ -145,6 +145,7 @@
<if test="pd.keywords!= null and pd.keywords != ''">
and c_store.store_name LIKE CONCAT(CONCAT('%', #{pd.keywords}),'%')
</if>
order by createtime desc
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="RenewalfeeMapper">
<!--表名 -->
<sql id="tableName">
C_RENEWALFEE
</sql>
<!-- 字段 -->
<sql id="Field">
RENEWALFEE_STOREID,
RENEWALFEE_MONTHS,
RENEWALFEE_TIME,
RENEWALFEE_TYPE,
RENEWALFEE_ID
</sql>
<!-- 字段值 -->
<sql id="FieldValue">
#{RENEWALFEE_STOREID},
#{RENEWALFEE_MONTHS},
#{RENEWALFEE_TIME},
#{RENEWALFEE_TYPE},
#{RENEWALFEE_ID}
</sql>
<!-- 新增-->
<insert id="save" parameterType="pd">
insert into
<include refid="tableName"></include>
(
<include refid="Field"></include>
) values (
<include refid="FieldValue"></include>
)
</insert>
<!-- 删除-->
<delete id="delete" parameterType="pd">
delete from
<include refid="tableName"></include>
where
RENEWALFEE_ID = #{RENEWALFEE_ID}
</delete>
<!-- 修改 -->
<update id="edit" parameterType="pd">
update
<include refid="tableName"></include>
set
RENEWALFEE_STOREID = #{RENEWALFEE_STOREID},
RENEWALFEE_MONTHS = #{RENEWALFEE_MONTHS},
RENEWALFEE_TIME = #{RENEWALFEE_TIME},
RENEWALFEE_TYPE = #{RENEWALFEE_TYPE},
RENEWALFEE_ID = RENEWALFEE_ID
where
RENEWALFEE_ID = #{RENEWALFEE_ID}
</update>
<!-- 通过ID获取数据 -->
<select id="findById" parameterType="pd" resultType="pd">
select
<include refid="Field"></include>
from
<include refid="tableName"></include>
where
RENEWALFEE_ID = #{RENEWALFEE_ID}
</select>
<!-- 列表 -->
<select id="datalistPage" parameterType="page" resultType="pd">
select
<include refid="Field"></include>,c_store.store_name as RENEWALFEE_STORENAME
from
<include refid="tableName"></include>
inner join c_store on c_store.store_id=<include refid="tableName"></include>.renewalfee_storeid
where 1=1
<if test="pd.keywords!= null and pd.keywords != ''"><!-- 关键词检索 -->
and
(
c_store.store_name LIKE CONCAT(CONCAT('%', #{pd.keywords}),'%')
)
</if>
order by renewalfee_time desc
</select>
<!-- 列表(全部) -->
<select id="listAll" parameterType="pd" resultType="pd">
select
<include refid="Field"></include>
from
<include refid="tableName"></include>
</select>
<!-- 批量删除 -->
<delete id="deleteAll" parameterType="String">
delete from
<include refid="tableName"></include>
where
RENEWALFEE_ID in
<foreach item="item" index="index" collection="array" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
</mapper>
\ No newline at end of file
......@@ -24,6 +24,7 @@
one_classfy_id,
store_view_number,
view_number,
lottery_num,
show_id
</sql>
......@@ -45,6 +46,7 @@
#{one_classfy_id},
#{store_view_number},
#{view_number},
#{lottery_num},
#{show_id}
</sql>
......@@ -64,6 +66,7 @@
wx_muner,
qq_munber,
one_classfy_id,
lottery_num,
show_id
)
values (
......@@ -79,6 +82,7 @@
#{wx_muner},
#{qq_munber},
#{one_classfy_id},
#{lottery_num},
#{show_id}
)
</insert>
......@@ -127,6 +131,7 @@
wx_muner= #{wx_muner},
qq_munber= #{qq_munber},
one_classfy_id= #{one_classfy_id},
lottery_num = #{lottery_num},
telephone = #{telephone}
where
store_id = #{store_id}
......
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 下拉框 -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/ace/css/chosen.css" />
<!-- jsp文件头和头部 -->
<%@ include file="../../system/index/top.jsp"%>
<!-- 日期框 -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/ace/css/datepicker.css" />
</head>
<body class="no-skin">
<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">
<!-- /section:basics/sidebar -->
<div class="main-content">
<div class="main-content-inner">
<div class="page-content">
<div class="row">
<div class="col-xs-12">
<form action="${pageContext.request.contextPath}/renewalfee/${msg }.do" name="Form" id="Form" method="post">
<input type="hidden" name="RENEWALFEE_ID" id="RENEWALFEE_ID" value="${pd.RENEWALFEE_ID}"/>
<div id="zhongxin" style="padding-top: 13px;">
<table id="table_report" class="table table-striped table-bordered table-hover">
<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">续费店铺:</td>
<td><input type="text" name="RENEWALFEE_STOREID" id="RENEWALFEE_STOREID" value="${pd.RENEWALFEE_STOREID}" maxlength="50" placeholder="这里输入续费店铺" title="续费店铺" style="width:98%;"/></td>
</tr>
<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">续费月数:</td>
<td><input type="number" name="RENEWALFEE_MONTHS" id="RENEWALFEE_MONTHS" value="${pd.RENEWALFEE_MONTHS}" maxlength="32" placeholder="这里输入续费月数" title="续费月数" style="width:98%;"/></td>
</tr>
<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">续费时间:</td>
<td><input type="text" name="RENEWALFEE_TIME" id="RENEWALFEE_TIME" value="${pd.RENEWALFEE_TIME}" maxlength="30" placeholder="这里输入续费时间" title="续费时间" style="width:98%;"/></td>
</tr>
<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">续费类型:</td>
<td><input type="number" name="RENEWALFEE_TYPE" id="RENEWALFEE_TYPE" value="${pd.RENEWALFEE_TYPE}" maxlength="32" placeholder="这里输入续费类型" title="续费类型" style="width:98%;"/></td>
</tr>
<tr>
<td style="text-align: center;" colspan="10">
<a class="btn btn-mini btn-primary" onclick="save();">保存</a>
<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
</td>
</tr>
</table>
</div>
<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
</form>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.page-content -->
</div>
</div>
<!-- /.main-content -->
</div>
<!-- /.main-container -->
<!-- 页面底部js¨ -->
<%@ include file="../../system/index/foot.jsp"%>
<!-- 下拉框 -->
<script src="${pageContext.request.contextPath}/static/ace/js/chosen.jquery.js"></script>
<!-- 日期框 -->
<script src="${pageContext.request.contextPath}/static/ace/js/date-time/bootstrap-datepicker.js"></script>
<!--提示框-->
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery.tips.js"></script>
<script type="text/javascript">
$(top.hangge());
//保存
function save(){
if($("#RENEWALFEE_STOREID").val()==""){
$("#RENEWALFEE_STOREID").tips({
side:3,
msg:'请输入续费店铺',
bg:'#AE81FF',
time:2
});
$("#RENEWALFEE_STOREID").focus();
return false;
}
if($("#RENEWALFEE_MONTHS").val()==""){
$("#RENEWALFEE_MONTHS").tips({
side:3,
msg:'请输入续费月数',
bg:'#AE81FF',
time:2
});
$("#RENEWALFEE_MONTHS").focus();
return false;
}
if($("#RENEWALFEE_TIME").val()==""){
$("#RENEWALFEE_TIME").tips({
side:3,
msg:'请输入续费时间',
bg:'#AE81FF',
time:2
});
$("#RENEWALFEE_TIME").focus();
return false;
}
if($("#RENEWALFEE_TYPE").val()==""){
$("#RENEWALFEE_TYPE").tips({
side:3,
msg:'请输入续费类型',
bg:'#AE81FF',
time:2
});
$("#RENEWALFEE_TYPE").focus();
return false;
}
$("#Form").submit();
$("#zhongxin").hide();
$("#zhongxin2").show();
}
$(function() {
//日期框
$('.date-picker').datepicker({autoclose: true,todayHighlight: true});
});
</script>
</body>
</html>
\ No newline at end of file
......@@ -10,11 +10,11 @@
<html lang="en">
<head>
<!-- 下拉框 -->
<link rel="stylesheet" href="static/ace/css/chosen.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/ace/css/chosen.css" />
<!-- jsp文件头和头部 -->
<%@ include file="../../system/index/top.jsp"%>
<!-- 日期框 -->
<link rel="stylesheet" href="static/ace/css/datepicker.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/ace/css/datepicker.css" />
</head>
<body class="no-skin">
<!-- /section:basics/navbar.layout -->
......@@ -26,44 +26,48 @@
<div class="row">
<div class="col-xs-12">
<form action="${msg }.do" name="Form" id="Form" method="post">
<input type="hidden" name="OPENID" id="OPENID" value="${pd.openid}"/>
<form action="${pageContext.request.contextPath}/store/${msg }.do" name="Form" id="Form" method="post">
<input type="hidden" name="store_id" id="store_id" value="${pd.store_id}"/>
<div id="zhongxin" style="padding-top: 13px;">
<table id="table_report" class="table table-striped table-bordered table-hover">
<tr>
<%--<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">头像:</td>
<td><input type="text" name="HEADPORTRAIT" id="HEADPORTRAIT" value="${pd.headportrait}" maxlength="255" placeholder="这里输入头像" title="头像" style="width:98%;"/></td>
</tr>
<tr>
</tr>--%>
<%--<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">昵称:</td>
<td><input type="text" name="NICKNAME" id="NICKNAME" value="${pd.nickname}" maxlength="50" placeholder="这里输入昵称" title="昵称" style="width:98%;"/></td>
</tr>
<tr>
</tr>--%>
<%--<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">性别:</td>
<td><input type="number" name="GENDER" id="GENDER" value="${pd.gender}" maxlength="32" placeholder="这里输入性别" title="性别" style="width:98%;"/></td>
</tr>
<tr>
</tr>--%>
<%--<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">手机号:</td>
<td><input type="text" name="MOBILE" id="MOBILE" value="${pd.mobile}" maxlength="11" placeholder="这里输入手机号" title="手机号" style="width:98%;"/></td>
</tr>
<tr>
</tr>--%>
<%--<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">真实名字:</td>
<td><input type="text" name="NAME" id="NAME" value="${pd.name}" maxlength="50" placeholder="这里输入名称" title="名称" style="width:98%;"/></td>
</tr>
</tr>--%>
<tr>
<%--<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">身份证:</td>
<td><input type="text" name="ID_CARD" id="ID_CARD" value="${pd.id_card}" maxlength="50" placeholder="这里输入身份证" title="身份证" style="width:98%;"/></td>
</tr>
<tr>
</tr>--%>
<%--<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">生日:</td>
<td><input type="text" name="BIRTHDAY" id="BIRTHDAY" value="${pd.birthday}" maxlength="30" placeholder="这里输入生日" title="生日" style="width:98%;"/></td>
</tr>
</tr>--%>
<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">抽奖次数:</td>
<td><input type="number" name="lottery_num" id="lottery_num" value="${pd.lottery_num}" maxlength="30" placeholder="这里输入抽奖次数" title="抽奖次数" style="width:98%;"/></td>
</tr>
<tr>
<%--<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">创建的时间:</td>
<td><input type="text" name="CREATE_TIME" id="CREATE_TIME" value="${pd.create_time}" maxlength="50" placeholder="这里输入创建的时间" title="创建的时间" style="width:98%;"/></td>
</tr>
</tr>--%>
<tr>
<td style="text-align: center;" colspan="10">
<a class="btn btn-mini btn-primary" onclick="save();">保存</a>
......@@ -90,11 +94,11 @@
<!-- 页面底部js¨ -->
<%@ include file="../../system/index/foot.jsp"%>
<!-- 下拉框 -->
<script src="static/ace/js/chosen.jquery.js"></script>
<script src="${pageContext.request.contextPath}/static/ace/js/chosen.jquery.js"></script>
<!-- 日期框 -->
<script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
<script src="${pageContext.request.contextPath}/static/ace/js/date-time/bootstrap-datepicker.js"></script>
<!--提示框-->
<script type="text/javascript" src="static/js/jquery.tips.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery.tips.js"></script>
<script type="text/javascript">
$(top.hangge());
//保存
......
......@@ -30,7 +30,7 @@
<div class="col-xs-12">
<!-- 检索 -->
<form action="list.do" method="post" name="Form" id="Form">
<form action="${pageContext.request.contextPath}/store/list.do" method="post" name="Form" id="Form">
<table style="margin-top:5px;">
<tr>
<td>
......@@ -76,6 +76,7 @@
<th class="center">手机号</th>
<%--<th class="center">用户openID</th>--%>
<th class="center">名称</th>
<th class="center">抽奖次数</th>
<%-- <th class="center">生日</th>--%>
<th class="center">创建的时间</th>
<th class="center">操作</th>
......@@ -114,6 +115,7 @@
<td class='center'>${var.mobile}</td>
<%-- <td class='center'>${var.openid}</td>--%>
<td class='center'>${var.real_name}</td>
<td class="center">${var.lottery_num}</td>
<%--<td class='center'>${var.birthday}</td>--%>
<td class='center'>${var.create_time}</td>
<%-- <td class='center'><fmt:formatDate value="${var.create_time}" pattern="yyyy-MM-dd"/> </td>
......@@ -124,12 +126,12 @@
</c:if>
-->
<div class="hidden-sm hidden-xs btn-group">
<%--
<c:if test="${QX.edit == 1 }">
<a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.openid}');">
<a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.store_id}');">
<i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i>
</a>
</c:if> --%>
</c:if>
<c:if test="${QX.del == 1 }">
<a class="btn btn-xs btn-danger" onclick="del('${var.store_id}');">
<i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i>
......@@ -302,7 +304,7 @@
var diag = new top.Dialog();
diag.Drag=true;
diag.Title ="编辑";
diag.URL = '${pageContext.request.contextPath}/store/goEdit.do?openid='+Id;
diag.URL = '${pageContext.request.contextPath}/store/goEdit.do?store_id='+Id;
diag.Width = 900;
diag.Height = 710;
diag.Modal = true; //有无遮罩窗口
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论