Compare commits
3 Commits
19791eb436
...
78e2a37c9c
| Author | SHA1 | Date |
|---|---|---|
|
|
78e2a37c9c | |
|
|
11b34a6424 | |
|
|
bfb47f02dd |
|
|
@ -286,7 +286,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
bp.pro_center as proCenter,
|
bp.pro_center as proCenter,
|
||||||
bp.actual_end_date as actualEndDate,
|
bp.actual_end_date as actualEndDate,
|
||||||
DATEDIFF(NOW(), bp.actual_end_date) as daysDiff,
|
DATEDIFF(NOW(), bp.actual_end_date) as daysDiff,
|
||||||
sum(sai.num) num,
|
sai.num num,
|
||||||
mt.type_name as typeModelName,
|
mt.type_name as typeModelName,
|
||||||
mt.unit_name as unit,
|
mt.unit_name as unit,
|
||||||
mt2.type_name as typeName,
|
mt2.type_name as typeName,
|
||||||
|
|
@ -298,7 +298,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join ma_type mt on sai.type_id = mt.type_id
|
left join ma_type mt on sai.type_id = mt.type_id
|
||||||
left join ma_type mt2 on mt.parent_id = mt2.type_id
|
left join ma_type mt2 on mt.parent_id = mt2.type_id
|
||||||
where sai.is_slt = 0 and sai.end_time is null and bp.actual_end_date is not null
|
where sai.is_slt = 0 and sai.end_time is null and bp.actual_end_date is not null
|
||||||
and sd.dept_id = #{deptId}
|
and sd.dept_id = #{deptId} and bp.pro_center is not null
|
||||||
<if test="proId != null">
|
<if test="proId != null">
|
||||||
AND bp.pro_id = #{proId}
|
AND bp.pro_id = #{proId}
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -317,7 +317,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="typeModelName != null and typeModelName !=''">
|
<if test="typeModelName != null and typeModelName !=''">
|
||||||
AND mt.type_name like concat ('%', #{typeModelName}, '%')
|
AND mt.type_name like concat ('%', #{typeModelName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="getInventoryAlert" resultType="com.bonus.material.push.domain.InventoryAlertBean">
|
<select id="getInventoryAlert" resultType="com.bonus.material.push.domain.InventoryAlertBean">
|
||||||
select
|
select
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue