|
|
@ -133,7 +133,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectNumByContractNo" resultType="int"> |
|
|
|
select sum(bddd.giveNum) from bus_delivered_details_discount bddd left join bus_delivered bd on bd.sid = bddd.applySid |
|
|
|
select IFNULL(sum(bddd.giveNum),0) from bus_delivered_details_discount bddd left join bus_delivered bd on bd.sid = bddd.applySid |
|
|
|
where contractNo = #{contractId} and (bd.state =2 or bd.state = 3) |
|
|
|
</select> |
|
|
|
</mapper> |