1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| <?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.management.mapper.SlVolumeProductionRkMapper">
|
|
| <select id="getManagementInventoryList" resultType="java.lang.Integer">
| SELECT ifnull(COUNT(*), 0) FROM sl_volume_production_rk sl
| WHERE
| sl.management_id = #{id}
| AND sl.del_flag=0
| GROUP BY sl.materials_id
|
| </select>
|
| <select id="getStoreManagementGoodSmaterialsOne" resultType="java.lang.Double">
| SELECT ifnull(ROUND(AVG(sl.rk_pice),2), 0.0) FROM sl_volume_production_rk sl
| WHERE
| sl.materials_id = #{id}
| AND sl.del_flag=0
| GROUP BY sl.materials_id
|
| </select>
|
|
|
| </mapper>
|
|