|
@@ -3,7 +3,7 @@
|
|
|
<mapper namespace="org.jeecg.modules.documents.orderData.mapper.SySOAndOMMapper">
|
|
|
|
|
|
<select id="querySOList" resultType="org.jeecg.modules.documents.orderData.entity.SySOAndOM" >
|
|
|
- <if test="sy.account !='901'">
|
|
|
+ <if test="sy.account =='901'">
|
|
|
select
|
|
|
sm.cSOCode as orderNumber,sd.iRowNo,sd.cInvCode AS inventoryCode,c.cInvCcode AS inventoryCcode,
|
|
|
c.cInvName AS inventoryName,sd.cFree1 AS colour,c.cInvStd as specificationAndModel,901 as account
|
|
@@ -12,7 +12,7 @@
|
|
|
join UFDATA_901_2021.dbo.Inventory c on c.cInvCode=sd.cInvCode
|
|
|
where sm.csocode=#{sy.orderNumber}
|
|
|
</if>
|
|
|
- <if test="sy.account !='902'">
|
|
|
+ <if test="sy.account =='902'">
|
|
|
select
|
|
|
sm.cSOCode as orderNumber,sd.iRowNo,sd.cInvCode AS inventoryCode,c.cInvCcode AS inventoryCcode,
|
|
|
c.cInvName AS inventoryName,sd.cFree1 AS colour,c.cInvStd as specificationAndModel,902 as account
|
|
@@ -21,7 +21,7 @@
|
|
|
join UFDATA_902_2021.dbo.Inventory c on c.cInvCode=sd.cInvCode
|
|
|
where sm.csocode=#{sy.orderNumber}
|
|
|
</if>
|
|
|
- <if test="sy.account !='903'">
|
|
|
+ <if test="sy.account =='903'">
|
|
|
select
|
|
|
sm.cSOCode as orderNumber,sd.iRowNo,sd.cInvCode AS inventoryCode,c.cInvCcode AS inventoryCcode,
|
|
|
c.cInvName AS inventoryName,sd.cFree1 AS colour,c.cInvStd as specificationAndModel,903 as account
|