代码提交
This commit is contained in:
parent
ecf9db93bd
commit
a569b1d758
|
|
@ -110,7 +110,7 @@
|
|||
<select id="getDeviceByDept" resultType="java.util.Map">
|
||||
SELECT
|
||||
sd.dept_id AS companyId,
|
||||
sd.dept_abbreviation AS companyName, -- 公司名称
|
||||
ifnull(sd.dept_abbreviation, sd.dept_name) AS companyName, -- 公司名称
|
||||
-- 工具数量:无数据则为0,取整
|
||||
ROUND(IFNULL(SUM(temp.toolNum), 0)) AS toolNum,
|
||||
-- 设备数量:无数据则为0,取整
|
||||
|
|
|
|||
Loading…
Reference in New Issue