Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
T
tongmeng-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
林海冰
tongmeng-app
Commits
25605d81
提交
25605d81
authored
3月 11, 2019
作者:
Mangostiffy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增续费日志、抽奖次数
上级
a58acfc8
显示空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
1052 行增加
和
30 行删除
+1052
-30
LotteryApi.java
src/main/java/com/mall/controller/api/LotteryApi.java
+35
-1
StoreApiController.java
...main/java/com/mall/controller/api/StoreApiController.java
+1
-0
RenewalfeeController.java
.../controller/tongmeng/renewalfee/RenewalfeeController.java
+211
-0
StoreController.java
...a/com/mall/controller/tongmeng/store/StoreController.java
+5
-1
RenewalfeeManager.java
...m/mall/service/mengbeng/renewalfee/RenewalfeeManager.java
+57
-0
RenewalfeeService.java
...l/service/mengbeng/renewalfee/impl/RenewalfeeService.java
+82
-0
LotteryMapper.xml
src/main/resources/mybatis1/tongmeng/LotteryMapper.xml
+1
-0
RenewalfeeMapper.xml
src/main/resources/mybatis1/tongmeng/RenewalfeeMapper.xml
+107
-0
StoreManager.xml
src/main/resources/mybatis1/tongmeng/StoreManager.xml
+5
-0
renewalfee_edit.jsp
...ebapp/WEB-INF/jsp/tongmeng/renewalfee/renewalfee_edit.jsp
+135
-0
renewalfee_list.jsp
...ebapp/WEB-INF/jsp/tongmeng/renewalfee/renewalfee_list.jsp
+379
-0
store_edit.jsp
src/main/webapp/WEB-INF/jsp/tongmeng/store/store_edit.jsp
+27
-23
store_list.jsp
src/main/webapp/WEB-INF/jsp/tongmeng/store/store_list.jsp
+7
-5
没有找到文件。
src/main/java/com/mall/controller/api/LotteryApi.java
浏览文件 @
25605d81
...
...
@@ -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
,
"奖品不存在"
);
...
...
src/main/java/com/mall/controller/api/StoreApiController.java
浏览文件 @
25605d81
...
...
@@ -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
();
...
...
src/main/java/com/mall/controller/tongmeng/renewalfee/RenewalfeeController.java
0 → 100644
浏览文件 @
25605d81
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
));
}
}
src/main/java/com/mall/controller/tongmeng/store/StoreController.java
浏览文件 @
25605d81
...
...
@@ -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
;
...
...
src/main/java/com/mall/service/mengbeng/renewalfee/RenewalfeeManager.java
0 → 100644
浏览文件 @
25605d81
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
;
}
src/main/java/com/mall/service/mengbeng/renewalfee/impl/RenewalfeeService.java
0 → 100644
浏览文件 @
25605d81
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
);
}
}
src/main/resources/mybatis1/tongmeng/LotteryMapper.xml
浏览文件 @
25605d81
...
...
@@ -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
src/main/resources/mybatis1/tongmeng/RenewalfeeMapper.xml
0 → 100644
浏览文件 @
25605d81
<?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
src/main/resources/mybatis1/tongmeng/StoreManager.xml
浏览文件 @
25605d81
...
...
@@ -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}
...
...
src/main/webapp/WEB-INF/jsp/tongmeng/renewalfee/renewalfee_edit.jsp
0 → 100644
浏览文件 @
25605d81
<%@ 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
src/main/webapp/WEB-INF/jsp/tongmeng/renewalfee/renewalfee_list.jsp
0 → 100644
浏览文件 @
25605d81
<%@ 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"
%>
<%
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/list.do"
method=
"post"
name=
"Form"
id=
"Form"
>
<table
style=
"margin-top:5px;"
>
<tr>
<td>
<div
class=
"nav-search"
>
<span
class=
"input-icon"
>
<input
type=
"text"
placeholder=
"这里输入关键词"
class=
"nav-search-input"
id=
"nav-search-input"
autocomplete=
"off"
name=
"keywords"
value=
"${pd.keywords }"
placeholder=
"这里输入关键词"
/>
<i
class=
"ace-icon fa fa-search nav-search-icon"
></i>
</span>
</div>
</td>
<%--<td style="padding-left:2px;"><input class="span10 date-picker" name="lastStart" id="lastStart" value="" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="开始日期" title="开始日期"/></td>
<td style="padding-left:2px;"><input class="span10 date-picker" name="lastEnd" name="lastEnd" value="" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="结束日期" title="结束日期"/></td>
<td style="vertical-align:top;padding-left:2px;">
<select class="chosen-select form-control" name="name" id="id" data-placeholder="请选择" style="vertical-align:top;width: 120px;">
<option value=""></option>
<option value="">全部</option>
<option value="">1</option>
<option value="">2</option>
</select>
</td>--%>
<c:if
test=
"
${
QX
.
cha
==
1
}
"
>
<td
style=
"vertical-align:top;padding-left:2px"
><a
class=
"btn btn-light btn-xs"
onclick=
"tosearch();"
title=
"检索"
><i
id=
"nav-search-icon"
class=
"ace-icon fa fa-search bigger-110 nav-search-icon blue"
></i></a></td>
</c:if>
<%--
<c:if test="${QX.toExcel == 1 }"><td style="vertical-align:top;padding-left:2px;"><a class="btn btn-light btn-xs" onclick="toExcel();" title="导出到EXCEL"><i id="nav-search-icon" class="ace-icon fa fa-download bigger-110 nav-search-icon blue"></i></a></td></c:if>
--%>
</tr>
</table>
<!-- 检索 -->
<table
id=
"simple-table"
class=
"table table-striped table-bordered table-hover"
style=
"margin-top:5px;"
>
<thead>
<tr>
<th
class=
"center"
style=
"width:35px;"
>
<label
class=
"pos-rel"
><input
type=
"checkbox"
class=
"ace"
id=
"zcheckbox"
/><span
class=
"lbl"
></span></label>
</th>
<th
class=
"center"
style=
"width:50px;"
>
序号
</th>
<th
class=
"center"
>
续费店铺
</th>
<th
class=
"center"
>
续费月数
</th>
<th
class=
"center"
>
续费时间
</th>
<th
class=
"center"
>
续费类型
</th>
<th
class=
"center"
>
操作
</th>
</tr>
</thead>
<tbody>
<!-- 开始循环 -->
<c:choose>
<c:when
test=
"
${
not
empty
varList
}
"
>
<c:if
test=
"
${
QX
.
cha
==
1
}
"
>
<c:forEach
items=
"
${
varList
}
"
var=
"var"
varStatus=
"vs"
>
<tr>
<td
class=
'center'
>
<label
class=
"pos-rel"
><input
type=
'checkbox'
name=
'ids'
value=
"${var.RENEWALFEE_ID}"
class=
"ace"
/><span
class=
"lbl"
></span></label>
</td>
<td
class=
'center'
style=
"width: 30px;"
>
${vs.index+1}
</td>
<td
class=
'center'
>
${var.RENEWALFEE_STORENAME}
</td>
<td
class=
'center'
>
${var.RENEWALFEE_MONTHS}
</td>
<td
class=
'center'
>
${var.RENEWALFEE_TIME}
</td>
<td
class=
'center'
>
<c:if
test=
"
${
var
.
RENEWALFEE_TYPE
==
1
}
"
>
充值
</c:if>
<c:if
test=
"
${
var
.
RENEWALFEE_TYPE
==
2
}
"
>
抽奖
</c:if>
</td>
<td
class=
"center"
>
<c:if
test=
"
${
QX
.
edit
!=
1
&&
QX
.
del
!=
1
}
"
>
<span
class=
"label label-large label-grey arrowed-in-right arrowed-in"
><i
class=
"ace-icon fa fa-lock"
title=
"无权限"
></i></span>
</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.RENEWALFEE_ID}');">
<i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i>
</a>--%>
</c:if>
<c:if
test=
"
${
QX
.
del
==
1
}
"
>
<a
class=
"btn btn-xs btn-danger"
onclick=
"del('${var.RENEWALFEE_ID}');"
>
<i
class=
"ace-icon fa fa-trash-o bigger-120"
title=
"删除"
></i>
</a>
</c:if>
</div>
<div
class=
"hidden-md hidden-lg"
>
<div
class=
"inline pos-rel"
>
<button
class=
"btn btn-minier btn-primary dropdown-toggle"
data-toggle=
"dropdown"
data-position=
"auto"
>
<i
class=
"ace-icon fa fa-cog icon-only bigger-110"
></i>
</button>
<ul
class=
"dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close"
>
<c:if
test=
"
${
QX
.
edit
==
1
}
"
>
<li>
<%--<a style="cursor:pointer;" onclick="edit('${var.RENEWALFEE_ID}');" class="tooltip-success" data-rel="tooltip" title="修改">
<span class="green">
<i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
</span>
</a>--%>
</li>
</c:if>
<c:if
test=
"
${
QX
.
del
==
1
}
"
>
<li>
<a
style=
"cursor:pointer;"
onclick=
"del('${var.RENEWALFEE_ID}');"
class=
"tooltip-error"
data-rel=
"tooltip"
title=
"删除"
>
<span
class=
"red"
>
<i
class=
"ace-icon fa fa-trash-o bigger-120"
></i>
</span>
</a>
</li>
</c:if>
</ul>
</div>
</div>
</td>
</tr>
</c:forEach>
</c:if>
<c:if
test=
"
${
QX
.
cha
==
0
}
"
>
<tr>
<td
colspan=
"100"
class=
"center"
>
您无权查看
</td>
</tr>
</c:if>
</c:when>
<c:otherwise>
<tr
class=
"main_info"
>
<td
colspan=
"100"
class=
"center"
>
没有相关数据
</td>
</tr>
</c:otherwise>
</c:choose>
</tbody>
</table>
<div
class=
"page-header position-relative"
>
<table
style=
"width:100%;"
>
<tr>
<td
style=
"vertical-align:top;"
>
<c:if
test=
"
${
QX
.
add
==
1
}
"
>
<a
class=
"btn btn-mini btn-success"
onclick=
"add();"
>
新增
</a>
</c:if>
<c:if
test=
"
${
QX
.
del
==
1
}
"
>
<a
class=
"btn btn-mini btn-danger"
onclick=
"makeAll('确定要删除选中的数据吗?');"
title=
"批量删除"
><i
class=
'ace-icon fa fa-trash-o bigger-120'
></i></a>
</c:if>
</td>
<td
style=
"vertical-align:top;"
><div
class=
"pagination"
style=
"float: right;padding-top: 0px;margin-top: 0px;"
>
${page.pageStr}
</div></td>
</tr>
</table>
</div>
</form>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.page-content -->
</div>
</div>
<!-- /.main-content -->
<!-- 返回顶部 -->
<a
href=
"#"
id=
"btn-scroll-up"
class=
"btn-scroll-up btn btn-sm btn-inverse"
>
<i
class=
"ace-icon fa fa-angle-double-up icon-only bigger-110"
></i>
</a>
</div>
<!-- /.main-container -->
<!-- basic scripts -->
<!-- 页面底部js¨ -->
<%@ include
file=
"../../system/index/foot.jsp"
%>
<!-- 删除时确认窗口 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/bootbox.js"
></script>
<!-- ace scripts -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/ace/ace.js"
></script>
<!-- 下拉框 -->
<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
tosearch
(){
top
.
jzts
();
$
(
"#Form"
).
submit
();
}
$
(
function
()
{
//日期框
$
(
'.date-picker'
).
datepicker
({
autoclose
:
true
,
todayHighlight
:
true
});
//下拉框
if
(
!
ace
.
vars
[
'touch'
])
{
$
(
'.chosen-select'
).
chosen
({
allow_single_deselect
:
true
});
$
(
window
)
.
off
(
'resize.chosen'
)
.
on
(
'resize.chosen'
,
function
()
{
$
(
'.chosen-select'
).
each
(
function
()
{
var
$this
=
$
(
this
);
$this
.
next
().
css
({
'width'
:
$this
.
parent
().
width
()});
});
}).
trigger
(
'resize.chosen'
);
$
(
document
).
on
(
'settings.ace.chosen'
,
function
(
e
,
event_name
,
event_val
)
{
if
(
event_name
!=
'sidebar_collapsed'
)
return
;
$
(
'.chosen-select'
).
each
(
function
()
{
var
$this
=
$
(
this
);
$this
.
next
().
css
({
'width'
:
$this
.
parent
().
width
()});
});
});
$
(
'#chosen-multiple-style .btn'
).
on
(
'click'
,
function
(
e
){
var
target
=
$
(
this
).
find
(
'input[type=radio]'
);
var
which
=
parseInt
(
target
.
val
());
if
(
which
==
2
)
$
(
'#form-field-select-4'
).
addClass
(
'tag-input-style'
);
else
$
(
'#form-field-select-4'
).
removeClass
(
'tag-input-style'
);
});
}
//复选框全选控制
var
active_class
=
'active'
;
$
(
'#simple-table > thead > tr > th input[type=checkbox]'
).
eq
(
0
).
on
(
'click'
,
function
(){
var
th_checked
=
this
.
checked
;
//checkbox inside "TH" table header
$
(
this
).
closest
(
'table'
).
find
(
'tbody > tr'
).
each
(
function
(){
var
row
=
this
;
if
(
th_checked
)
$
(
row
).
addClass
(
active_class
).
find
(
'input[type=checkbox]'
).
eq
(
0
).
prop
(
'checked'
,
true
);
else
$
(
row
).
removeClass
(
active_class
).
find
(
'input[type=checkbox]'
).
eq
(
0
).
prop
(
'checked'
,
false
);
});
});
});
//新增
function
add
(){
top
.
jzts
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Title
=
"新增"
;
diag
.
URL
=
'${pageContext.request.contextPath}/renewalfee/goAdd.do'
;
diag
.
Width
=
450
;
diag
.
Height
=
355
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
ShowMaxButton
=
true
;
//最大化按钮
diag
.
ShowMinButton
=
true
;
//最小化按钮
diag
.
CancelEvent
=
function
(){
//关闭事件
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'zhongxin'
).
style
.
display
==
'none'
){
if
(
'${page.currentPage}'
==
'0'
){
tosearch
();
}
else
{
tosearch
();
}
}
diag
.
close
();
};
diag
.
show
();
}
//删除
function
del
(
Id
){
bootbox
.
confirm
(
"确定要删除吗?"
,
function
(
result
)
{
if
(
result
)
{
top
.
jzts
();
var
url
=
"${pageContext.request.contextPath}/renewalfee/delete.do?RENEWALFEE_ID="
+
Id
+
"&tm="
+
new
Date
().
getTime
();
$
.
get
(
url
,
function
(
data
){
tosearch
();
});
}
});
}
//修改
function
edit
(
Id
){
top
.
jzts
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Title
=
"编辑"
;
diag
.
URL
=
'${pageContext.request.contextPath}/renewalfee/goEdit.do?RENEWALFEE_ID='
+
Id
;
diag
.
Width
=
450
;
diag
.
Height
=
355
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
ShowMaxButton
=
true
;
//最大化按钮
diag
.
ShowMinButton
=
true
;
//最小化按钮
diag
.
CancelEvent
=
function
(){
//关闭事件
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'zhongxin'
).
style
.
display
==
'none'
){
tosearch
();
}
diag
.
close
();
};
diag
.
show
();
}
//批量操作
function
makeAll
(
msg
){
bootbox
.
confirm
(
msg
,
function
(
result
)
{
if
(
result
)
{
var
str
=
''
;
for
(
var
i
=
0
;
i
<
document
.
getElementsByName
(
'ids'
).
length
;
i
++
){
if
(
document
.
getElementsByName
(
'ids'
)[
i
].
checked
){
if
(
str
==
''
)
str
+=
document
.
getElementsByName
(
'ids'
)[
i
].
value
;
else
str
+=
','
+
document
.
getElementsByName
(
'ids'
)[
i
].
value
;
}
}
if
(
str
==
''
){
bootbox
.
dialog
({
message
:
"<span class='bigger-110'>您没有选择任何内容!</span>"
,
buttons
:
{
"button"
:{
"label"
:
"确定"
,
"className"
:
"btn-sm btn-success"
}}
});
$
(
"#zcheckbox"
).
tips
({
side
:
1
,
msg
:
'点这里全选'
,
bg
:
'#AE81FF'
,
time
:
8
});
return
;
}
else
{
if
(
msg
==
'确定要删除选中的数据吗?'
){
top
.
jzts
();
$
.
ajax
({
type
:
"POST"
,
url
:
'${pageContext.request.contextPath}/renewalfee/deleteAll.do?tm='
+
new
Date
().
getTime
(),
data
:
{
DATA_IDS
:
str
},
dataType
:
'json'
,
//beforeSend: validateData,
cache
:
false
,
success
:
function
(
data
){
$
.
each
(
data
.
list
,
function
(
i
,
list
){
tosearch
();
});
}
});
}
}
}
});
};
//导出excel
function
toExcel
(){
window
.
location
.
href
=
'${pageContext.request.contextPath}/renewalfee/excel.do'
;
}
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/WEB-INF/jsp/tongmeng/store/store_edit.jsp
浏览文件 @
25605d81
...
...
@@ -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.open
id}"
/>
<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>
<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
());
//保存
...
...
src/main/webapp/WEB-INF/jsp/tongmeng/store/store_list.jsp
浏览文件 @
25605d81
...
...
@@ -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.
open
id}');">
<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?
open
id='
+
Id
;
diag
.
URL
=
'${pageContext.request.contextPath}/store/goEdit.do?
store_
id='
+
Id
;
diag
.
Width
=
900
;
diag
.
Height
=
710
;
diag
.
Modal
=
true
;
//有无遮罩窗口
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论