|
@@ -204,7 +204,7 @@
|
|
|
|
|
|
|
|
<select id="selectHomePageList" resultMap="homePageList">
|
|
<select id="selectHomePageList" resultMap="homePageList">
|
|
|
select *,
|
|
select *,
|
|
|
- case WHEN pi_class='出货单' then pd_outqty when pi_class='销售退货单' then pd_inqty else 0 end qty
|
|
|
|
|
|
|
+ case WHEN pi_class='出货单' then ifnull(pd_outqty,0) when pi_class='销售退货单' then ifnull(pd_inqty,0) else 0 end qty
|
|
|
from prodinout left join prodiodetail on pi_id = pd_piid left join product on pr_id = pd_prodid
|
|
from prodinout left join prodiodetail on pi_id = pd_piid left join product on pr_id = pd_prodid
|
|
|
left join customer on pi_custid=cu_id
|
|
left join customer on pi_custid=cu_id
|
|
|
<where>
|
|
<where>
|