领料接口优化
This commit is contained in:
parent
cb4bf886df
commit
22cf285bd2
|
|
@ -458,7 +458,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select DISTINCT m.type_id, m.type_name, m.parent_id, m.unit_id, m.unit_name, m.manage_type,
|
select DISTINCT m.type_id, m.type_name, m.parent_id, m.unit_id, m.unit_name, m.manage_type,
|
||||||
m.lease_price,m.eff_time, m.rent_price, m.buy_price, m.pay_price, m.level, m.rated_load, m.test_load,
|
m.lease_price,m.eff_time, m.rent_price, m.buy_price, m.pay_price, m.level, m.rated_load, m.test_load,
|
||||||
m.holding_time, m.warn_num,
|
m.holding_time, m.warn_num,
|
||||||
mpi.prop_name, m.del_flag, m.create_by, m.create_time,
|
m.del_flag, m.create_by, m.create_time,
|
||||||
m.remark,m.type_id id , m.type_name label,
|
m.remark,m.type_id id , m.type_name label,
|
||||||
CASE m.manage_type
|
CASE m.manage_type
|
||||||
WHEN 0 THEN
|
WHEN 0 THEN
|
||||||
|
|
@ -467,8 +467,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
IFNULL(m.storage_num, 0)
|
IFNULL(m.storage_num, 0)
|
||||||
END as storage_num
|
END as storage_num
|
||||||
from ma_type m
|
from ma_type m
|
||||||
left join ma_prop_set mps on m.type_id = mps.type_id and mps.`status`='0' and mps.del_flag='0'
|
|
||||||
left join ma_prop_info mpi on mps.prop_id = mpi.prop_id and mpi.`status`='0' and mpi.del_flag='0'
|
|
||||||
left join (SELECT mt.type_id,
|
left join (SELECT mt.type_id,
|
||||||
mt2.type_name AS typeName,
|
mt2.type_name AS typeName,
|
||||||
mt.type_name AS typeModelName,
|
mt.type_name AS typeModelName,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue