|
|
<div>
|
|
|
<div class="pd_10 bg-ivory clearfix mt_10 mb_10">
|
|
|
<?php echo ZcHtmlHelper::drawForm('queueSearch', Zc::url(AdminRouteConst::moveQueueStatistics), 'get', 'class="form-inline"');?>
|
|
|
<div class="sub-menu clearfix">
|
|
|
<!-- Select Basic -->
|
|
|
<div class="inline form-inline mr_20">
|
|
|
<div class="form-group">
|
|
|
<label for="mallId">MallId:</label>
|
|
|
<input type="text" class="form-control span2" name="mallId" value="<?php echo $filter['mallId'];?>">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="inline form-inline ml_20">
|
|
|
<div class="form-group">
|
|
|
<label>优先级:</label>
|
|
|
<input type="text" class="form-control input-sm span1" name="startPriority" value="<?php echo $filter['startPriority'];?>">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="inline form-inline">
|
|
|
<div class="form-group">
|
|
|
<label for="J_shopCateList">至</label>
|
|
|
<input type="text" class="form-control input-sm span1" name="endPriority" value="<?php echo $filter['endPriority'];?>">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<button type="submit"
|
|
|
class="btn btn-sm btn-primary J_searchWareBtn">
|
|
|
<span class="glyphicon glyphicon-search"></span> 查询
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<?php echo '</form>'?>
|
|
|
</div>
|
|
|
|
|
|
<div class="opt-ware-filter mb_10">
|
|
|
<div class="title-opt">
|
|
|
<span class="mr_10">move_collect_goods_add_buffer数量:<?php echo (int)$listKeyLenMap['move_collect_goods_add_buffer'];?></span>
|
|
|
<span class="mr_10">move_collect_goods_add_buffer_self数量:<?php echo (int)$listKeyLenMap['move_collect_goods_add_buffer_self'];?></span>
|
|
|
<table class="data-table mb_10">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th class="text-left">priority</th>
|
|
|
<th class="text-left">总数量 (<?php echo $moveTotalArray['moveTotal']?>)</th>
|
|
|
<th class="text-left">buffer数量 (<?php echo $moveTotalArray['bufferTotal']?>)</th>
|
|
|
<th class="text-left">queue数量 (<?php echo $moveTotalArray['queueTotal']?>)</th>
|
|
|
<th class="text-left">锁数量(<?php echo $queueHasLockStatistic['total']?>)</th>
|
|
|
<th class="text-left">最小锁时间 </th>
|
|
|
<th class="text-left">最大锁时间</th>
|
|
|
<th class="text-left">notLocked数量(<?php echo $queueNotLockStatistic['total']?>)</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<?php
|
|
|
foreach ($priorityCountArray as $mallStatisticDetail){
|
|
|
$currPriority = $mallStatisticDetail['priority'];
|
|
|
?>
|
|
|
<tr>
|
|
|
<td class="force-middle text-left" style="line-height:20px;">
|
|
|
<?php echo $currPriority;?>
|
|
|
</td>
|
|
|
|
|
|
<td class="force-middle text-left" style="line-height:20px;">
|
|
|
<?php echo $mallStatisticDetail['total'];?>
|
|
|
</td>
|
|
|
<td class="force-middle text-left" style="line-height:20px;">
|
|
|
<?php echo $mallStatisticDetail['buffer_total'];?>
|
|
|
</td>
|
|
|
<td class="force-middle text-left" style="line-height:20px;">
|
|
|
<?php echo $mallStatisticDetail['queue_total'];?>
|
|
|
</td>
|
|
|
<td class="force-middle text-left" style="line-height:20px;">
|
|
|
<?php
|
|
|
$currPriorityLockTotal = $queueHasLockStatistic[$currPriority]['total'] > 0 ? $queueHasLockStatistic[$currPriority]['total'] : 0;
|
|
|
$currPriorityPercent = (int)($currPriorityLockTotal/$queueHasLockStatistic['total'] * 100);
|
|
|
echo sprintf('%s (%s%%)', $currPriorityLockTotal, $currPriorityPercent);
|
|
|
?>
|
|
|
</td>
|
|
|
<td class="force-middle text-left" style="line-height:20px;">
|
|
|
<?php
|
|
|
if ($queueHasLockStatistic[$currPriority]['gmt_locked_min'] < date('Y-m-d H:i:s', strtotime('-60 minute'))) {
|
|
|
$class = "text-danger";
|
|
|
} elseif ($queueHasLockStatistic[$currPriority]['gmt_locked_min'] < date('Y-m-d H:i:s', strtotime('-5 minute'))) {
|
|
|
$class = "text-warning";
|
|
|
} else {
|
|
|
$class = "text-success";
|
|
|
}
|
|
|
echo sprintf('<span class="%s">%s</span>', $class, $queueHasLockStatistic[$currPriority]['gmt_locked_min']);
|
|
|
?>
|
|
|
</td>
|
|
|
<td class="force-middle text-left" style="line-height:20px;">
|
|
|
<?php
|
|
|
if ($queueHasLockStatistic[$currPriority]['gmt_locked_max'] < date('Y-m-d H:i:s', strtotime('-5 minute'))) {
|
|
|
$class = "text-danger";
|
|
|
} elseif ($queueHasLockStatistic[$currPriority]['gmt_locked_max'] < date('Y-m-d H:i:s', strtotime('-3 minute'))) {
|
|
|
$class = "text-warning";
|
|
|
} else {
|
|
|
$class = "text-success";
|
|
|
}
|
|
|
echo sprintf('<span class="%s">%s</span>', $class, $queueHasLockStatistic[$currPriority]['gmt_locked_max']);
|
|
|
?>
|
|
|
</td>
|
|
|
<td class="force-middle text-left" style="line-height:20px;">
|
|
|
<?php
|
|
|
$currPriorityLockTotal = $queueNotLockStatistic[$currPriority]['total'] > 0 ? $queueNotLockStatistic[$currPriority]['total'] : 0;
|
|
|
$currPriorityPercent = (int)($currPriorityLockTotal/$queueNotLockStatistic['total'] * 100);
|
|
|
echo sprintf('%s (%s%%)', $currPriorityLockTotal, $currPriorityPercent);
|
|
|
?>
|
|
|
</td>
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
<?php }?>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
<table class="data-table">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th class="text-left ">MallId (<?php echo count($mallStatisticList)?>)</th>
|
|
|
<th class="text-left">搬家统计</th>
|
|
|
<th class="text-left">时间</th>
|
|
|
<th class="text-left">数量</th>
|
|
|
<th class="text-left">priority</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<?php
|
|
|
foreach ($mallStatisticList as $mallStatisticDetail){
|
|
|
$curMallId = CommonTool::decrypt($mallStatisticDetail['mall_id_s']);
|
|
|
?>
|
|
|
<tr>
|
|
|
<td class="force-middle text-left" style="line-height:20px;">
|
|
|
<a href="<?php echo Zc::url(AdminRouteConst::adminMallMock, array('mallIdS' => $mallStatisticDetail['mall_id_s'], 'appName' => AppConst::appPlds)); ?>" target="_blank"><?php echo $mallStatisticDetail['platform_inner_user_id'];?>
|
|
|
</a>
|
|
|
<br>
|
|
|
<a href="javascript:;" class="J_decryptSensitiveInfoBtn" data-field="mallId" data-sensitive-str="<?php echo $mallStatisticDetail['mall_id']; ?>" data-encrypt-str="<?php echo $mallStatisticDetail['mall_id_s']; ?>"><?php echo $mallStatisticDetail['mall_id']; ?></a>
|
|
|
<br>
|
|
|
<a href="javascript:;" class="J_decryptSensitiveInfoBtn" data-field="mallName" data-sensitive-str="<?php echo $mallStatisticDetail['mall_name']; ?>" data-encrypt-str="<?php echo $mallStatisticDetail['mall_name_s']; ?>"><?php echo $mallStatisticDetail['mall_name']; ?></a>
|
|
|
</td>
|
|
|
<td class="text-left">
|
|
|
总量:<?php echo $moveConfigList[$curMallId]['total'] + $moveConfigList[$curMallId]['attach_total']?><br />
|
|
|
已使用量:<?php echo $moveConfigList[$curMallId]['used_total']?><br />
|
|
|
24小时使用:<?php echo $mallPublishWareTotalList[$curMallId]['total']?><br />
|
|
|
小时跨度:<?php echo $mallPublishWareTotalList[$curMallId]['durationHour']?>
|
|
|
</td>
|
|
|
<td class="force-middle text-left" style="line-height:20px;">
|
|
|
<?php if (!empty($mallStatisticDetail['max_gmt_create'])){?>
|
|
|
最大时间:<?php echo $mallStatisticDetail['max_gmt_create'];?><br />
|
|
|
<?php }?>
|
|
|
<?php if(!empty($mallStatisticDetail['min_gmt_create'])){?>
|
|
|
最小时间:<?php echo $mallStatisticDetail['min_gmt_create'];?><br />
|
|
|
<?php }?>
|
|
|
</td>
|
|
|
<td class="force-middle text-left" style="line-height:20px;">
|
|
|
<?php echo $mallStatisticDetail['queue_total'] . '<br />';?>
|
|
|
<?php
|
|
|
if ($mallStatisticDetail['buffer_total'] > 0) {
|
|
|
echo '<span class="text-danger">(buf数量:' . $mallStatisticDetail['buffer_total'] . ',总数:' . $mallStatisticDetail['total'] . ')</span><br />';
|
|
|
}
|
|
|
?>
|
|
|
</td>
|
|
|
<td class="force-middle text-left" style="line-height:20px; position: relative;">
|
|
|
<div class="form-inline J_changeMoveQueuePriority">
|
|
|
<input type="text" class="form-control span2 J_openCoverBox" name="mallId" value="<?php echo $mallStatisticDetail['priority'];?>" style="cursor: pointer;" readonly>
|
|
|
<?php
|
|
|
if ($mallStatisticDetail['buffer_total'] > 0) {
|
|
|
echo '<br/><span class="text-danger">(buf_min:' . $mallStatisticDetail['min_buffer_priority'] . ',buf_max' . $mallStatisticDetail['max_buffer_priority'] . ')</span><br />';
|
|
|
}
|
|
|
?>
|
|
|
</div>
|
|
|
<div class="hide toogle-box J_adjustPriorityBox" data-mall-id-s="<?php echo $mallStatisticDetail['mall_id_s'];?>" style="width:283px;">
|
|
|
<button type="button" class="close btn-close J_closeCoverBox">×</button>
|
|
|
<div class="col-md-10 inline form-horizontal input-group">
|
|
|
<div class="form-group">
|
|
|
<label for="inputNewPriorityNum" class="col-sm-4 control-label">num</label>
|
|
|
<div class="col-sm-6">
|
|
|
<input type="text" class="form-control J_newPriorityNum" value="<?php echo $mallStatisticDetail['buffer_total'];?>">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label for="inputPriority" class="col-sm-4 control-label">fromPriority</label>
|
|
|
<div class="col-sm-6">
|
|
|
<input type="text" class="form-control J_fromPriorityValue" value="<?php echo $mallStatisticDetail['max_buffer_priority'];?>">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label for="inputPriority" class="col-sm-4 control-label">toPriority</label>
|
|
|
<div class="col-sm-6">
|
|
|
<input type="text" class="form-control J_toPriorityValue" value="<?php echo $mallStatisticDetail['min_buffer_priority'];?>">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="J_applyBtnBox">
|
|
|
<button type="button" class="btn btn-sm btn-primary J_savePriority" >
|
|
|
确定
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<?php }?>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<?php echo HtmlTool::getStaticFile(array('jquery-1.11.0.min.js', 'bootstrap.3.3.4.min.js', 'layer-1.8.5/layer.min.js')); ?>
|
|
|
<?php echo HtmlTool::getStaticCommonFile(array('biz/admin/admin_move.js?' . TsConst::jsAdminMove));?>
|
|
|
<?php echo HtmlTool::getStaticCommonFile( array('biz/admin/admin_sensitive.js'), TsConst::jsGlobal);?>
|