首页2,权限修改

This commit is contained in:
猫猫guowen
2025-06-18 17:12:49 +08:00
parent 3d9a6064f4
commit 8f1e944602
22 changed files with 91 additions and 40 deletions

View File

@@ -14,18 +14,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select stockin_id as id, status, '1' as type
from in_stockin
where status in ('1', '2', '3')
${params.warehouseDataScope}
</select>
<select id="selectStockoutStatusCount" resultMap="BillStatusCountResult">
select stockout_id as id, status, '2' as type
from out_stockout
where status in ('1', '2', '3')
${params.warehouseDataScope}
</select>
<select id="selectStockcheckStatusCount" resultMap="BillStatusCountResult">
select stock_check_id as id, status, '3' as type
from check_stockin
where status in ('1', '2', '3')
${params.warehouseDataScope}
</select>
</mapper>

View File

@@ -8,6 +8,7 @@
SELECT status, COUNT(*) as count
FROM bas_cargo_space
WHERE status IN ('1', '2', '3', '4', '5', '6')
${params.warehouseDataScope}
GROUP BY status
ORDER BY status
</select>

View File

@@ -7,16 +7,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!-- 查询已完成入库单数量 -->
<select id="selectStockinFinishCount" resultType="Integer">
select count(1) from in_stockin_finish
where 1=1
${params.warehouseDataScope}
</select>
<!-- 查询已完成出库单数量 -->
<select id="selectStockoutFinishCount" resultType="Integer">
select count(1) from out_stockout_finish
where 1=1
${params.warehouseDataScope}
</select>
<!-- 查询已完成盘点单数量 -->
<select id="selectStockcheckFinishCount" resultType="Integer">
select count(1) from check_stockin_finish
where 1=1
${params.warehouseDataScope}
</select>
</mapper>

View File

@@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
in_or_out,
priority
from view_index_job
${params.warehouseDataScope}
</select>
</mapper>

View File

@@ -17,6 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
CAST(create_time AS DATE)
ORDER BY
CAST(create_time AS DATE)
${arg2.params.warehouseDataScope}
</select>
<!-- 查询指定日期范围内每天的出库作业数量 -->
@@ -26,12 +27,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM
mydo_job_finish
WHERE
in_or_out &gt;= 20
in_or_out >= 20
AND CAST(create_time AS DATE) BETWEEN #{startDate} AND #{endDate}
GROUP BY
CAST(create_time AS DATE)
ORDER BY
CAST(create_time AS DATE)
${arg2.params.warehouseDataScope}
</select>
</mapper>