no message
This commit is contained in:
parent
f88d3a1673
commit
027e23e538
|
|
@ -1588,9 +1588,9 @@ public class OrderDetailController extends BaseController {
|
|||
|
||||
// 拒单
|
||||
|
||||
logger.info("师傅资料{}", masterWorker);
|
||||
// logger.info("师傅资料{}", masterWorker);
|
||||
WorkerCertification workerRealInfo = workerCertificationService.selectByWorkerId(od.getWorkerId());
|
||||
logger.info("认证师傅资料{}", workerRealInfo);
|
||||
// logger.info("认证师傅资料{}", workerRealInfo);
|
||||
try {
|
||||
// 推送公众号通知数据。
|
||||
// 消息组装。
|
||||
|
|
|
|||
|
|
@ -978,9 +978,18 @@
|
|||
$.modal.confirm("确定要退单吗?", function() {
|
||||
const url = "console/cancel";
|
||||
const data = { "id": id };
|
||||
$.operate.post(url, data);
|
||||
});
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
url: url,
|
||||
data: JSON.stringify(data),
|
||||
contentType: 'application/json',
|
||||
success: function (result) {
|
||||
$.operate.ajaxSuccess(result);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function changeConditionBtnChosenStyle(e) {
|
||||
$('.condition-btn .btn').removeClass('active-condition-btn');
|
||||
|
|
|
|||
|
|
@ -588,9 +588,18 @@
|
|||
$.modal.confirm("确定要退单吗?", function() {
|
||||
const url = "console/cancel";
|
||||
const data = { "id": id };
|
||||
$.operate.post(url, data);
|
||||
});
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
url: url,
|
||||
data: JSON.stringify(data),
|
||||
contentType: 'application/json',
|
||||
success: function (result) {
|
||||
$.operate.ajaxSuccess(result);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function changeConditionBtnChosenStyle(e) {
|
||||
$('.condition-btn .btn').removeClass('active-condition-btn');
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ public enum WxStatusEnum {
|
|||
|
||||
NORMAL_ORDER("", "/pages/order-manage/order-manage"),
|
||||
/** 拒单 **/
|
||||
REJECT_ORDER("", "lJUpyU7h6ipzjgBCdLW0vShjaG3uPxPZ4tQNwfv_XPM"),
|
||||
REJECT_ORDER("", "/pages/order-manage/order-manage"),
|
||||
/** 新工单 默认 **/
|
||||
DEFAULT_ORDER("", "/pages/order-manage/order-manage?stateCur=6"),
|
||||
/**售后工单待处理提醒**/
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ public class OrderServiceImpl implements OrderService {
|
|||
Date now = new Date();
|
||||
// 待接单状态的超时逻辑
|
||||
if (ZERO.equals(order.getOrderStatus())) {
|
||||
log.info("单号:{},状态:{},创建时间:{},更新时间:{}", order.getCode(), order.getOrderStatus(), order.getCreateTime(), order.getUpdateTime());
|
||||
log.info("单号:{},状态:{},创建时间:{},更新时间:{}是否超时:{}", order.getCode(), order.getOrderStatus(), order.getCreateTime(), order.getUpdateTime(),order.getTimeout());
|
||||
Date createTime = order.getCreateTime();
|
||||
Date overTime30min = getOverTime(createTime, 30 * 60 * 1000);
|
||||
Date overTime1h = getOverTime(createTime, 30 * 60 * 1000);
|
||||
|
|
@ -206,6 +206,7 @@ public class OrderServiceImpl implements OrderService {
|
|||
}
|
||||
// 是否已经超时
|
||||
boolean timeout = ONE.equals(order.getTimeout());
|
||||
log.info("是否超时:{}超时时间为{}", timeout,overTime30min);
|
||||
if (!timeout) {
|
||||
if (overTime30min.before(now)) {
|
||||
// 30min未接单为超时
|
||||
|
|
|
|||
Loading…
Reference in New Issue