<commit_before><%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>快餐柜管理管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function () {

        });
        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/cabinet/cabinet/">快餐柜管理列表</a></li>
    <shiro:hasPermission name="cabinet:cabinet:edit">
        <li><a href="${ctx}/cabinet/cabinet/form">快餐柜管理添加</a></li>
    </shiro:hasPermission>
</ul>
<form:form id="searchForm" modelAttribute="cabinet" action="${ctx}/cabinet/cabinet/" method="post"
           class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <ul class="ul-form">
        <li><label>柜子名称：</label>
            <form:input path="cabinetName" htmlEscape="false" maxlength="50" class="input-medium"/>
        </li>
        <li><label>省：</label>
            <sys:treeselect id="province" name="province" value="${cabinet.province}" labelName=""
                            labelValue="${cabinet.province1}"
                            title="区域" url="/sys/area/treeData" cssClass="input-small" allowClear="true"
                            notAllowSelectParent="true"/>
        </li>
        <li><label>市：</label>
            <sys:treeselect id="city" name="city" value="${cabinet.city}" labelName="" labelValue="${cabinet.city1}"
                            title="区域" url="/sys/area/treeData" cssClass="input-small" allowClear="true"
                            notAllowSelectParent="true"/>
        </li>
        <li><label>区：</label>
            <sys:treeselect id="area" name="area" value="${cabinet.area}" labelName="" labelValue="${cabinet.area1}"
                            title="区域" url="/sys/area/treeData" cssClass="input-small" allowClear="true"
                            notAllowSelectParent="true"/>
        </li>
        <li><label>柜子状态：</label>
            <form:select path="cabinetStatus" class="input-medium">
                <form:option value="" label=""/>
                <form:options items="${fns:getDictList('cabinet_status')}" itemLabel="label" itemValue="value"
                              htmlEscape="false"/>
            </form:select>
        </li>
        <li><label>柜子编号：</label>
            <form:input path="cabinetNos" htmlEscape="false" maxlength="50" class="input-medium"/>
        </li>
        <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
        <li class="clearfix"></li>
    </ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>柜子名称</th>
        <th>省</th>
        <th>市</th>
        <th>区</th>
        <th>详细地址</th>
        <th>通信状态</th>
        <th>创建时间</th>
        <th>柜子编号</th>
        <th>菜品统计</th>
        <th>抽屉放餐情况</th>
        <th>补换货预警</th>
        <shiro:hasPermission name="cabinet:cabinet:edit">
            <th>操作</th>
        </shiro:hasPermission>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${page.list}" var="cabinet">
        <tr>
            <td><a href="${ctx}/cabinet/cabinet/form?id=${cabinet.id}">
                    ${cabinet.cabinetName}
            </a></td>
            <td>
                    ${cabinet.province1}
            </td>
            <td>
                    ${cabinet.city1}
            </td>
            <td>
                    ${cabinet.area1}
            </td>
            <td>
                    ${cabinet.address}
            </td>
            <td>
                    ${fns:getDictLabel(cabinet.cabinetStatus, 'cabinet_status', '')}
            </td>
            <td>
                <fmt:formatDate value="${cabinet.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
            </td>
            <td>
                    ${cabinet.cabinetNos}
            </td>
            <td>
                <c:forEach items="${groupByCabinet}"  var="groupcabinet">
                    <c:if test="${groupcabinet.cabinetNos==cabinet.cabinetNos}">
                        ${groupcabinet.province}
                    </c:if>
                </c:forEach>
            </td>
            <td>
                未放餐数量:
                <c:forEach items="${food0}"  var="food00">
                    <c:if test="${food00.cabinetNos==cabinet.cabinetNos}">
                     ${food00.total}
                        <%--补货预警判断--%>
                        <c:if test="${cabinetFullNum!=null}">
                            <c:if test="${food00.total!=null && food00.total>cabinet.cabinetFullNum}">
                                <c:set var="tipFull" value="补货预警：${cabinetFullNum},空余抽屉:${food00.total}&nbsp" scope="page"></c:set>
                            </c:if>
                        </c:if>
                    </c:if>
                </c:forEach>
                ,放餐数量:
                <c:forEach items="${food1}"  var="food01">

                    <c:if test="${food01.cabinetNos==cabinet.cabinetNos}">
                        ${food01.total}
                    </c:if>
                </c:forEach>
                ,过期数量:
                <c:forEach items="${food2}"  var="food02">

                    <c:if test="${food02.cabinetNos==cabinet.cabinetNos}">
                        ${food02.total}
                        <%--换货预警判断--%>
                        <c:if test="${cabinetReplaceNum!=null}">
                            <c:if test="${food02.total!=null && food02.total>cabinet.cabinetReplaceNum}">
                                <c:set var="tipReplace" value="换货预警：${cabinetFullNum},需换抽屉:${food02.total}" scope="page"></c:set>
                            </c:if>
                        </c:if>
                    </c:if>
                </c:forEach>

            </td>
            <th>

                <c:out value="${tipFull}" escapeXml="false"></c:out>
                <c:out value="${tipReplace}" escapeXml="false"></c:out>
                <%--每行完毕删除一次,否则提示信息不正确--%>
                <c:set scope="page" var="tipFull" value=""></c:set>
                <c:set scope="page" var="tipReplace" value=""></c:set>
            </th>
            <shiro:hasPermission name="cabinet:cabinet:edit">
            <td>
                <a href="${ctx}/cabinet/cabinet/form?id=${cabinet.id}">修改</a>
                <a href="${ctx}/cabinet/cabinet/updatePassword?id=${cabinet.id}">设置密码</a>
                <a href="${ctx}/cabinet/cabinet/delete?id=${cabinet.id}"
                   onclick="return confirmx('确认要删除该快餐柜管理吗？', this.href)">删除</a>
                </shiro:hasPermission>
                <%--<shiro:hasPermission name="cabinetproductrelaction:cabinetProductRelaction:edit">--%>
                    <%--<a href="${ctx}/cabinetproductrelaction/cabinetProductRelaction/form?id=${cabinet.id}">配置商品</a>--%>
                <%--</shiro:hasPermission>--%>

            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html><commit_msg>柜子预警信息bug修改<commit_after><%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>快餐柜管理管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function () {

        });
        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/cabinet/cabinet/">快餐柜管理列表</a></li>
    <shiro:hasPermission name="cabinet:cabinet:edit">
        <li><a href="${ctx}/cabinet/cabinet/form">快餐柜管理添加</a></li>
    </shiro:hasPermission>
</ul>
<form:form id="searchForm" modelAttribute="cabinet" action="${ctx}/cabinet/cabinet/" method="post"
           class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <ul class="ul-form">
        <li><label>柜子名称：</label>
            <form:input path="cabinetName" htmlEscape="false" maxlength="50" class="input-medium"/>
        </li>
        <li><label>省：</label>
            <sys:treeselect id="province" name="province" value="${cabinet.province}" labelName=""
                            labelValue="${cabinet.province1}"
                            title="区域" url="/sys/area/treeData" cssClass="input-small" allowClear="true"
                            notAllowSelectParent="true"/>
        </li>
        <li><label>市：</label>
            <sys:treeselect id="city" name="city" value="${cabinet.city}" labelName="" labelValue="${cabinet.city1}"
                            title="区域" url="/sys/area/treeData" cssClass="input-small" allowClear="true"
                            notAllowSelectParent="true"/>
        </li>
        <li><label>区：</label>
            <sys:treeselect id="area" name="area" value="${cabinet.area}" labelName="" labelValue="${cabinet.area1}"
                            title="区域" url="/sys/area/treeData" cssClass="input-small" allowClear="true"
                            notAllowSelectParent="true"/>
        </li>
        <li><label>柜子状态：</label>
            <form:select path="cabinetStatus" class="input-medium">
                <form:option value="" label=""/>
                <form:options items="${fns:getDictList('cabinet_status')}" itemLabel="label" itemValue="value"
                              htmlEscape="false"/>
            </form:select>
        </li>
        <li><label>柜子编号：</label>
            <form:input path="cabinetNos" htmlEscape="false" maxlength="50" class="input-medium"/>
        </li>
        <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
        <li class="clearfix"></li>
    </ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>柜子名称</th>
        <th>省</th>
        <th>市</th>
        <th>区</th>
        <th>详细地址</th>
        <th>通信状态</th>
        <th>创建时间</th>
        <th>柜子编号</th>
        <th>菜品统计</th>
        <th>抽屉放餐情况</th>
        <th>补换货预警</th>
        <shiro:hasPermission name="cabinet:cabinet:edit">
            <th>操作</th>
        </shiro:hasPermission>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${page.list}" var="cabinet">
        <tr>
            <td><a href="${ctx}/cabinet/cabinet/form?id=${cabinet.id}">
                    ${cabinet.cabinetName}
            </a></td>
            <td>
                    ${cabinet.province1}
            </td>
            <td>
                    ${cabinet.city1}
            </td>
            <td>
                    ${cabinet.area1}
            </td>
            <td>
                    ${cabinet.address}
            </td>
            <td>
                    ${fns:getDictLabel(cabinet.cabinetStatus, 'cabinet_status', '')}
            </td>
            <td>
                <fmt:formatDate value="${cabinet.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
            </td>
            <td>
                    ${cabinet.cabinetNos}
            </td>
            <td>
                <c:forEach items="${groupByCabinet}"  var="groupcabinet">
                    <c:if test="${groupcabinet.cabinetNos==cabinet.cabinetNos}">
                        ${groupcabinet.province}
                    </c:if>
                </c:forEach>
            </td>
            <td>
                未放餐数量:
                <c:forEach items="${food0}"  var="food00">
                    <c:if test="${food00.cabinetNos==cabinet.cabinetNos}">
                     ${food00.total}
                        <%--补货预警判断--%>
                            <c:if test="${food00.total!=null && food00.total>cabinet.cabinetFullNum}">
                                <c:set var="tipFull" value="补货预警：${cabinet.cabinetFullNum},空余抽屉:${food00.total}&nbsp" scope="page"></c:set>
                            </c:if>
                    </c:if>
                </c:forEach>
                ,放餐数量:
                <c:forEach items="${food1}"  var="food01">

                    <c:if test="${food01.cabinetNos==cabinet.cabinetNos}">
                        ${food01.total}
                    </c:if>
                </c:forEach>
                ,过期数量:
                <c:forEach items="${food2}"  var="food02">

                    <c:if test="${food02.cabinetNos==cabinet.cabinetNos}">
                        ${food02.total}
                        <%--换货预警判断--%>
                            <c:if test="${food02.total!=null && food02.total>cabinet.cabinetReplaceNum}">
                                <c:set var="tipReplace" value="换货预警：${cabinet.cabinetReplaceNum},需换抽屉:${food02.total}" scope="page"></c:set>
                            </c:if>
                    </c:if>
                </c:forEach>

            </td>
            <th>

                <c:out value="${tipFull}" escapeXml="false"></c:out>
                <c:out value="${tipReplace}" escapeXml="false"></c:out>
                <%--每行完毕删除一次,否则提示信息不正确--%>
                <c:set scope="page" var="tipFull" value=""></c:set>
                <c:set scope="page" var="tipReplace" value=""></c:set>
            </th>
            <shiro:hasPermission name="cabinet:cabinet:edit">
            <td>
                <a href="${ctx}/cabinet/cabinet/form?id=${cabinet.id}">修改</a>
                <a href="${ctx}/cabinet/cabinet/updatePassword?id=${cabinet.id}">设置密码</a>
                <a href="${ctx}/cabinet/cabinet/delete?id=${cabinet.id}"
                   onclick="return confirmx('确认要删除该快餐柜管理吗？', this.href)">删除</a>
                </shiro:hasPermission>
                <%--<shiro:hasPermission name="cabinetproductrelaction:cabinetProductRelaction:edit">--%>
                    <%--<a href="${ctx}/cabinetproductrelaction/cabinetProductRelaction/form?id=${cabinet.id}">配置商品</a>--%>
                <%--</shiro:hasPermission>--%>

            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>
{'fraction_non_alphanumeric': 0.1840912213216101, 'fraction_numerical': 0.006044786371754362, 'mean_word_length': 1.7177524733992906, 'pattern_counts': {'":': 0, '<': 381, '<?xml version=': 0, '>': 385, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5324086', 'n_tokens_mistral': 4952, 'n_tokens_neox': 4921, 'n_words': 597}