Commit 0d7b9734 authored by 谢希宇's avatar 谢希宇

Submit by Strive

Date 2021/04/09
Project End
parent 5dd42d97
...@@ -1105,8 +1105,8 @@ ...@@ -1105,8 +1105,8 @@
"aTargets": [3], "aTargets": [3],
"mData": "userName", "mData": "userName",
"mRender": function (a, b, c, d) { "mRender": function (a, b, c, d) {
if (c) { if (a) {
return c.userName.slice(0, 1) + '*' + c.userName.slice(2, c.userName.length); return a.slice(0, 1) + '*' + a.slice(2, a.length);
} else { } else {
return null; return null;
} }
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<div class="col-xs-12"> <div class="col-xs-12">
<div class="box"> <div class="box">
<div class="box-header"> <div class="box-header">
<form id="seachTableForm" action="#springUrl('/a/couponrecord/list')" method="get"> <form id="seachTableForm" action="#springUrl('/a/couponrecord/exportExcel')" method="get">
<div class="col-xs-2"> <div class="col-xs-2">
<input type="text" class="form-control" <input type="text" class="form-control"
name="number" placeholder="检测券编码"> name="number" placeholder="检测券编码">
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<div class="col-xs-5"> <div class="col-xs-5">
<button type="button" class="search btn btn-primary">搜索</button> <button type="button" class="search btn btn-primary">搜索</button>
#if($shiro.hasPermission("qy:couponrecord:edit")) #if($shiro.hasPermission("qy:couponrecord:edit"))
<a href="#springUrl('/a/couponrecord/exportExcel')" class="btn btn-primary">导出</a> <button type="submit" class="btn btn-primary">导出</button>
#end #end
</div> </div>
</form> </form>
......
...@@ -140,10 +140,11 @@ ...@@ -140,10 +140,11 @@
<select id="fetchSearchByPage" parameterType="java.util.Map" resultMap="resultMap"> <select id="fetchSearchByPage" parameterType="java.util.Map" resultMap="resultMap">
SELECT SELECT
<include refid="sqlColumns"/>, c.name couponName, f.nickname nickName <include refid="sqlColumns"/>, c.name couponName, f.nickname nickName, h.name hospitalName
FROM t_aidea_coupon_record t FROM t_aidea_coupon_record t
LEFT JOIN t_aidea_check_coupon c ON t.coupon_id = c.id LEFT JOIN t_aidea_check_coupon c ON t.coupon_id = c.id
LEFT JOIN wx_mp_fanss f ON f.openid = t.openid AND f.delflag = '0' LEFT JOIN wx_mp_fanss f ON f.openid = t.openid AND f.delflag = '0'
LEFT JOIN t_aidea_hospital h ON t.hospital_id = h.id AND h.del_flag = '0'
<include refid="sqlWhere"/> <include refid="sqlWhere"/>
<if test="sort!=null">ORDER BY ${sort.param} ${sort.type}</if> <if test="sort!=null">ORDER BY ${sort.param} ${sort.type}</if>
<if test="limit>0">limit #{offset},#{limit}</if> <if test="limit>0">limit #{offset},#{limit}</if>
......
...@@ -62,8 +62,10 @@ public class Couponrecord implements Serializable { ...@@ -62,8 +62,10 @@ public class Couponrecord implements Serializable {
/* 删除标识 */ /* 删除标识 */
private boolean delFlag; private boolean delFlag;
/* 状态 */ /* 状态 */
@ExportConfig(value = "状态", width = 100, showLevel = 1)
private String status; private String status;
/* 创建时间 */ /* 创建时间 */
@ExportConfig(value = "发放日期", width = 100, showLevel = 1, dateFormat = "yyyy-MM-dd")
private Date createTime; private Date createTime;
/* 更新时间 */ /* 更新时间 */
private Date updateTime; private Date updateTime;
...@@ -78,7 +80,9 @@ public class Couponrecord implements Serializable { ...@@ -78,7 +80,9 @@ public class Couponrecord implements Serializable {
//未映射字段 //未映射字段
private String couponName; private String couponName;
@ExportConfig(value = "粉丝昵称", width = 100, showLevel = 1)
private String nickName; private String nickName;
@ExportConfig(value = "核销医院", width = 100, showLevel = 1)
private String hospitalName; private String hospitalName;
public Couponrecord() { public Couponrecord() {
......
...@@ -159,6 +159,24 @@ public class CouponrecordController { ...@@ -159,6 +159,24 @@ public class CouponrecordController {
conds.equal("t.status", couponrecord.getStatus()); conds.equal("t.status", couponrecord.getStatus());
} }
List<Couponrecord> list = couponrecordService.fetchSearchByPage(conds, sort, 0, 0); List<Couponrecord> list = couponrecordService.fetchSearchByPage(conds, sort, 0, 0);
for (Couponrecord c : list) {
switch (c.getStatus()) {
case "0":
c.setStatus("未激活");
break;
case "1":
c.setStatus("待核销");
break;
case "2":
c.setStatus("已核销");
break;
case "3":
c.setStatus("已过期");
break;
default:
c.setStatus("");
}
}
ExcelKit.$Export(Couponrecord.class, response).toExcel(list, "发券信息管理信息"); ExcelKit.$Export(Couponrecord.class, response).toExcel(list, "发券信息管理信息");
} }
......
...@@ -543,8 +543,8 @@ public class OrderServiceImpl extends GenericServiceImpl<Order> implements Order ...@@ -543,8 +543,8 @@ public class OrderServiceImpl extends GenericServiceImpl<Order> implements Order
order.setStatus("2");//待发货 order.setStatus("2");//待发货
order.setTradeNo(transaction_id); order.setTradeNo(transaction_id);
//现金支付总金额 //现金支付总金额
if (StringUtils.isNoneBlank(map.get("cash_fee"))) { if (StringUtils.isNoneBlank(map.get("total_fee"))) {
order.setPayAmount(Double.parseDouble(map.get("cash_fee"))); order.setPayAmount(Double.parseDouble(map.get("total_fee")));
} }
//支付完成时间 //支付完成时间
if (StringUtils.isNoneBlank(time_end)) { if (StringUtils.isNoneBlank(time_end)) {
......
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
CONVERT ( AES_DECRYPT( consult.phone, 'aideakey' ) USING UTF8 ) phone, CONVERT ( AES_DECRYPT( consult.phone, 'aideakey' ) USING UTF8 ) phone,
qyuser.`name` cfDoctor, qyuser.`name` cfDoctor,
org1.org_name cfHospital, org1.org_name cfHospital,
ord.create_time fkTime, ord.pay_time fkTime,
waybill.send_express_date fhTime, waybill.send_express_date fhTime,
waybill.accept_express_date sjTime, waybill.accept_express_date sjTime,
ord.openid openId ord.openid openId
......
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 to comment