31 lines
1.1 KiB
XML
31 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.ruoyi.index.mapper.BillStatusCountMapper">
|
|
|
|
<resultMap type="com.ruoyi.index.domain.BillStatusCount" id="BillStatusCountResult">
|
|
<result property="id" column="id"/>
|
|
<result property="status" column="status"/>
|
|
<result property="type" column="type"/>
|
|
</resultMap>
|
|
|
|
<select id="selectStockinStatusCount" resultMap="BillStatusCountResult">
|
|
select stockin_id as id, status, '1' as type
|
|
from in_stockin
|
|
where status in ('1', '2', '3')
|
|
</select>
|
|
|
|
<select id="selectStockoutStatusCount" resultMap="BillStatusCountResult">
|
|
select stockout_id as id, status, '2' as type
|
|
from out_stockout
|
|
where status in ('1', '2', '3')
|
|
</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')
|
|
</select>
|
|
|
|
</mapper> |