|
@@ -268,7 +268,7 @@ select
|
|
) and (i.cInvCcode like '03%' or i.cInvCcode like '04%') and i.cInvCCode != '0399' and i.cInvCCode != '0499' and i.cInvCCode != '0299' and i.cInvName = #{goodName}
|
|
) and (i.cInvCcode like '03%' or i.cInvCcode like '04%') and i.cInvCCode != '0399' and i.cInvCCode != '0499' and i.cInvCCode != '0299' and i.cInvName = #{goodName}
|
|
and rs.cBatch like CONCAT(#{code},'%')
|
|
and rs.cBatch like CONCAT(#{code},'%')
|
|
GROUP BY rs.cFree1
|
|
GROUP BY rs.cFree1
|
|
- )tab1 on tab1.cInvName=tab.goodsName
|
|
+ )tab1 on tab1.cInvName=tab.goodsName and tab1.color = tab.color
|
|
|
|
|
|
|
|
|
|
union all
|
|
union all
|
|
@@ -302,7 +302,7 @@ select
|
|
) and (i.cInvCcode like '03%' or i.cInvCcode like '04%') and i.cInvCCode != '0399' and i.cInvCCode != '0499' and i.cInvCCode != '0299' and i.cInvName = #{goodName}
|
|
) and (i.cInvCcode like '03%' or i.cInvCcode like '04%') and i.cInvCCode != '0399' and i.cInvCCode != '0499' and i.cInvCCode != '0299' and i.cInvName = #{goodName}
|
|
and rs.cBatch like CONCAT(#{code},'%')
|
|
and rs.cBatch like CONCAT(#{code},'%')
|
|
GROUP BY rs.cFree1
|
|
GROUP BY rs.cFree1
|
|
- )tab1 on tab1.cInvName=tab.goodsName
|
|
+ )tab1 on tab1.cInvName=tab.goodsName and tab1.color = tab.color
|
|
|
|
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|