记得上下班打卡 | git大法好,push需谨慎

Commit 61f8b718 authored by anjiabin's avatar anjiabin
parents 81f81c46 0ef1f56e
package com.liquidnet.service.adam.common;
import lombok.Data;
@Data
public class EmailEntity {
//发件人
private String fromPerson;
//收件人
private String toPerson;
// 收件人邮箱
private String targetMail;
//主题
private String subject;
//正文
private String content;
}
package com.liquidnet.service.adam.util;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.temporal.ChronoUnit;
import java.util.Date;
public class DateUtil {
/**
* 前端显示转换的时间戳
*
* @param now LocalDate
* LocalDateTime
*/
public static String getVoTimestamp(Object now) {
return getVoTimestamp(now, ZoneOffset.UTC);
}
public static String getVoTimestamp(Object now, ZoneOffset offset) {
if (now == null) {
return null;
}
if (offset == null) {
offset = ZoneOffset.UTC;
}
long l = 0;
if (now instanceof LocalDate) {
l = ((LocalDate) now).atStartOfDay(offset).toInstant().getEpochSecond();
} else if (now instanceof LocalDateTime) {
l = ((LocalDateTime) now).toEpochSecond(offset);
}
return String.valueOf(l);
}
/**
* 获取当天剩余秒数
*
* @param currentDate 当前时间
*/
public static Integer getRemainSecondsOneDay(Date currentDate) {
LocalDateTime midnight = LocalDateTime.ofInstant(currentDate.toInstant(),
ZoneId.systemDefault()).plusDays(1).withHour(0).withMinute(0)
.withSecond(0).withNano(0);
LocalDateTime currentDateTime = LocalDateTime.ofInstant(currentDate.toInstant(),
ZoneId.systemDefault());
long seconds = ChronoUnit.SECONDS.between(currentDateTime, midnight);
return (int) seconds;
}
}
package com.liquidnet.service.adam.util;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
/**
* 枚举工具类
*
* @author LiChen
* @date 2020/9/17 2:47 下午
*/
public class PageUtil {
public static Page transferFromPageInfo(PageInfo pageInfo) {
Page page = new Page();
page.setRecords(pageInfo.getList());
page.setTotal(pageInfo.getTotal());
page.setSize(pageInfo.getPageSize());
page.setCurrent(pageInfo.getPageNum());
return page;
}
}
package com.liquidnet.service.kylin.dto.param;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
/**
* <p>
* 退款申请参数
* </p>
*
* @author jiangxiulong
* @since 2021-06-02 11:19 上午
*/
@Data
public class RefundApplyParam implements Serializable {
private String orderTicketsId;
private String orderRefundBatchesId;
private String reason;
private double RefundPriceExpress;
private List<String> ticketEntityIds;
private List<String> ids;
private Integer status;
private String reject;
private String refuse;
}
...@@ -1008,11 +1008,13 @@ var table = { ...@@ -1008,11 +1008,13 @@ var table = {
return url; return url;
}, },
// 删除信息 // 删除信息
remove: function(id, message) { remove: function(id, message, url) {
table.set(); table.set();
message = message ?? "确定删除该条" + table.options.modalName + "信息吗?"; message = message ?? "确定删除该条" + table.options.modalName + "信息吗?";
$.modal.confirm(message, function() { $.modal.confirm(message, function() {
var url = $.common.isEmpty(id) ? table.options.removeUrl : table.options.removeUrl.replace("{id}", id); if (!url) {
url = $.common.isEmpty(id) ? table.options.urls : table.options.urls.replace("{id}", id);
}
if(table.options.type == table_type.bootstrapTreeTable) { if(table.options.type == table_type.bootstrapTreeTable) {
$.operate.get(url); $.operate.get(url);
} else { } else {
...@@ -1022,7 +1024,7 @@ var table = { ...@@ -1022,7 +1024,7 @@ var table = {
}); });
}, },
// 批量删除信息 // 批量删除信息
removeAll: function(message) { removeAll: function(message, url) {
table.set(); table.set();
var rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId); var rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId);
message = message ?? "确认要删除选中的" + rows.length + "条数据吗?"; message = message ?? "确认要删除选中的" + rows.length + "条数据吗?";
...@@ -1031,7 +1033,9 @@ var table = { ...@@ -1031,7 +1033,9 @@ var table = {
return; return;
} }
$.modal.confirm(message, function() { $.modal.confirm(message, function() {
var url = table.options.removeUrl; if (!url) {
url = table.options.removeUrl;
}
var data = { "ids": rows.join() }; var data = { "ids": rows.join() };
$.operate.submit(url, "post", "json", data); $.operate.submit(url, "post", "json", data);
}); });
......
...@@ -7,17 +7,12 @@ ...@@ -7,17 +7,12 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m-t" id="signupForm"> <form class="form-horizontal m-t" id="signupForm">
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label">tetete</label> <label class="col-sm-2 control-label">退款单id</label>
<div class="form-control-static" th:text="${KylinOrderRefundsVo.orderRefundsId}"> <div class="form-control-static" th:text="${KylinOrderRefundsVo.orderRefundsId}">
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<script th:inline="javascript">
$(function() {
});
</script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -42,39 +42,78 @@ ...@@ -42,39 +42,78 @@
</div> </div>
<div class="btn-group-sm" id="toolbar" role="group"> <div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="kylin:performances:add"> <a class="btn btn-success multiple disabled" onclick="review()" shiro:hasPermission="kylin:refund:review">
<i class="fa fa-plus"></i> 批量一审 批量一审
</a> </a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="kylin:performances:edit"> <a class="btn btn-primary multiple disabled" onclick="execute()" shiro:hasPermission="kylin:refund:execute">
<i class="fa fa-edit"></i> 批量二审 批量二审
</a> </a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="kylin:performances:remove"> <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll('确定取消选中的退款申请吗?', '/cancel')" shiro:hasPermission="kylin:refund:cancel">
<i class="fa fa-remove"></i> 批量取消 批量取消
</a> </a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="kylin:performances:export"> <a class="btn btn-warning multiple disabled" onclick="$.operate.removeAll('确定重新提交选中的退款审核吗?', '/reapply')" shiro:hasPermission="kylin:refund:reapply">
<i class="fa fa-download"></i> 批量重新提交 批量重新提交
</a> </a>
</div> </div>
<div class="col-sm-12 select-table table-bordered"> <div class="col-sm-12 select-table table-bordered">
<table id="bootstrap-table"></table> <table id="bootstrap-table"></table>
</div> </div>
<form id="appTest">
<div class="select-list">
<ul>
<li>
<input type="text" name="orderTicketsId" th:value="71619365224734720"/>
<input type="text" name="orderRefundBatchesId" th:value="222"/>
<input type="text" name="RefundPriceExpress" th:value="0"/>
<input type="text" name="reason" th:value="备注"/>
</li>
<li>
<div class="form-group">
<div class="col-sm-8">
<label class="check-box">
<input checked name="ticketEntityIds" type="checkbox" value="69485706304757740">展开/折叠
</label>
<label class="check-box">
<input checked name="ticketEntityIds" type="checkbox" value="69485706304757739">全选/全不选
</label>
</div>
</div>
</li>
</ul>
</div>
</form>
</div> </div>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<script th:inline="javascript"> <script th:inline="javascript">
var detailFlag = [[${@permission.hasPermi('kylin:performances:detail')}]]; var detailFlag = [[${@permission.hasPermi('kylin:refund:detail')}]];
var reviewFlag = [[${@permission.hasPermi('kylin:refund:review')}]];
var executeFlag = [[${@permission.hasPermi('kylin:refund:execute')}]];
var cancelFlag = [[${@permission.hasPermi('kylin:refund:cancel')}]];
var reapplyFlag = [[${@permission.hasPermi('kylin:refund:reapply')}]];
var detailFlag = [[${@permission.hasPermi('kylin:performances:detail')}]];
var detailFlag = [[${@permission.hasPermi('kylin:performances:detail')}]];
var detailFlag = [[${@permission.hasPermi('kylin:performances:detail')}]];
var detailFlag = [[${@permission.hasPermi('kylin:performances:detail')}]];
var prefix = ctx + "kylin/refund"; var prefix = ctx + "kylin/refund";
function apply() {
var data = $('#appTest').serializeArray();
$.operate.save(prefix + "/apply", data);
}
function review() {
alert(1)
}
function execute() {
alert(2)
}
$(function() { $(function() {
var options = { var options = {
url: prefix + "/list", url: prefix + "/list",
detailUrl: prefix + "/details/{id}", detailUrl: prefix + "/details/{id}",
modalName: "退款详情", cancelUrl: prefix + "/cancel",
reapplyUrl: prefix + "/reapply",
columns: [{ columns: [{
checkbox: true checkbox: true
}, },
...@@ -103,17 +142,22 @@ ...@@ -103,17 +142,22 @@
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.orderRefundsId + '\')"><i class="fa fa-edit"></i>查看</a> '); actions.push('<a class="btn btn-info btn-xs' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.orderRefundsId + '\')"></i>查看</a> ');
actions.push('<a class="btn btn-success btn-xs ' + reviewFlag + '" href="javascript:void(0)" onclick="review(\'' + row.orderRefundsId + '\')"></i>一审</a> ');
actions.push('<a class="btn btn-primary btn-xs ' + executeFlag + '" href="javascript:void(0)" onclick="execute(\'' + row.orderRefundsId + '\')"></i>二审</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderRefundsId + '\', \'确定取消退款申请吗?\', table.options.cancelUrl)"></i>取消</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + reapplyFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderRefundsId + '\', \'确定重新提交退款审核吗?\', table.options.reapplyUrl)"></i>重新提交</a> ');
actions.push('<a class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="apply()"></i>提交申请</a> ');
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.orderRefundsId + '\')"><i class="fa fa-edit"></i>一审</a> ');
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.orderRefundsId + '\')"><i class="fa fa-edit"></i>二审</a> ');
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.orderRefundsId + '\')"><i class="fa fa-edit"></i>取消</a> ');
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.orderRefundsId + '\')"><i class="fa fa-edit"></i>重新提交</a> ');
return actions.join(''); return actions.join('');
} }
}] }]
}; };
$.table.init(options); $.table.init(options);
}); });
</script> </script>
</body> </body>
......
...@@ -20,6 +20,7 @@ liquidnet: ...@@ -20,6 +20,7 @@ liquidnet:
url-pay: url-pay:
pay: "http://testpay.zhengzai.tv/" pay: "http://testpay.zhengzai.tv/"
check: "http://testpay.zhengzai.tv/order/verify" check: "http://testpay.zhengzai.tv/order/verify"
localUrl: "https://zuul.zhengzai.tv/kylin/order/syncOrder"
#以下为spring各环境个性配置 #以下为spring各环境个性配置
spring: spring:
......
...@@ -20,6 +20,7 @@ liquidnet: ...@@ -20,6 +20,7 @@ liquidnet:
url-pay: url-pay:
pay: "http://testpay.zhengzai.tv/" pay: "http://testpay.zhengzai.tv/"
check: "http://testpay.zhengzai.tv/order/verify" check: "http://testpay.zhengzai.tv/order/verify"
localUrl: "https://zuul.zhengzai.tv/kylin/order/syncOrder"
#以下为spring各环境个性配置 #以下为spring各环境个性配置
spring: spring:
......
...@@ -59,6 +59,9 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM ...@@ -59,6 +59,9 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
private String payUrl; private String payUrl;
@Value("${liquidnet.url-pay.check}") @Value("${liquidnet.url-pay.check}")
private String checkUrl; private String checkUrl;
@Value("${liquidnet.url-pay.localUrl}")
private String synUrl;
@Autowired @Autowired
private DataUtils dataUtils; private DataUtils dataUtils;
@Autowired @Autowired
...@@ -454,7 +457,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM ...@@ -454,7 +457,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
httpData.add("detail", performanceData.getTitle() + "-" + ticketData.getTitle() + "-" + ticketData.getUseStart()); httpData.add("detail", performanceData.getTitle() + "-" + ticketData.getTitle() + "-" + ticketData.getUseStart());
httpData.add("order_code", orderTickets.getOrderCode()); httpData.add("order_code", orderTickets.getOrderCode());
httpData.add("client_ip", "127.0.0.1"); httpData.add("client_ip", "127.0.0.1");
httpData.add("notify_url", "http://www.baidu.com"); httpData.add("notify_url", synUrl);
httpData.add("create_date", orderTickets.getCreatedAt().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); httpData.add("create_date", orderTickets.getCreatedAt().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
httpData.add("expire_time", orderTickets.getPayCountdownMinute().toString()); httpData.add("expire_time", orderTickets.getPayCountdownMinute().toString());
...@@ -531,7 +534,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM ...@@ -531,7 +534,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
httpData.add("detail", entitiesData.getPerformanceTitle() + "-" + entitiesData.getTicketTitle() + "-" + entitiesData.getUseStart()); httpData.add("detail", entitiesData.getPerformanceTitle() + "-" + entitiesData.getTicketTitle() + "-" + entitiesData.getUseStart());
httpData.add("order_code", orderTicketData.getOrderCode()); httpData.add("order_code", orderTicketData.getOrderCode());
httpData.add("client_ip", "127.0.0.1"); httpData.add("client_ip", "127.0.0.1");
httpData.add("notify_url", "http://www.baidu.com"); httpData.add("notify_url", synUrl);
httpData.add("create_date", orderTicketData.getCreatedAt()); httpData.add("create_date", orderTicketData.getCreatedAt());
httpData.add("expire_time", orderTicketData.getPayCountdownMinute().toString()); httpData.add("expire_time", orderTicketData.getPayCountdownMinute().toString());
......
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