|
|
|
@ -306,5 +306,45 @@ |
|
|
|
<select id="searchBIBoardAddress" resultType="BIBoardAddressData"> |
|
|
|
select address from BIBoardAddress where reportId=#{reportId} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getPackagePrintDataList" resultType="com.heai.modules.production.entity.PackagePrintData"> |
|
|
|
Select |
|
|
|
SO.PartNo,dbo.Get_PartDesc(T.Site,SO.PartNo) as PartDesc, |
|
|
|
dbo.Get_Part_Spec(T.Site,SO.PartNo) as PartSpec, |
|
|
|
dbo.Get_Part_UMID(T.Site,SO.PartNo) as umid ,T.WorkCenterNo,T.Site, |
|
|
|
T.AssJobSeqNo as SeqNo, |
|
|
|
T.Remark,CH.CustomerPONo as OrderRef4, |
|
|
|
Convert(Datetime,Convert(Integer,Convert(Float,T.StatisticDate))) as ReceiveDate, |
|
|
|
isnull((Select OurVendorCode from Customer as C Where C.Site=CH.Site and C.CustomerID=CH.CustomerID),'') as SiteName, |
|
|
|
t.OrderNo as BatchNo, |
|
|
|
T.OperatorID as Inspector, |
|
|
|
s1.Address_E as siteAdress , |
|
|
|
'Phone:'+s1.PhoneNo+' Email:'+s1.Email as sitePhone, |
|
|
|
1 as printQty, |
|
|
|
convert(varchar(100),isnull(V.TextValue,'')) as bilNote |
|
|
|
from SFDC as T |
|
|
|
,ShopOrder as SO |
|
|
|
Left Join COHeader as CH On CH.Site=SO.Site and CH.OrderNo=SO.OrderRef1 |
|
|
|
left join site s1 on s1.SiteID=SO.Site,Part as P |
|
|
|
Left Join PartSubPropertiesValue as V |
|
|
|
On P.Site=V.Site and P.PartNo=V.PartNo and P.CodeNo=V.CodeNo and V.SubCodeSeqNo=1 and V.RecordType='P' and V.PropertiesItemNo='BILNOTE' |
|
|
|
,Site as S |
|
|
|
Where T.Site=S.SiteID and T.Site=SO.Site and T.OrderNo=SO.OrderNo |
|
|
|
and SO.Site=P.Site and SO.PartNo=P.PartNo and t.SeqNo = #{seqNo,jdbcType=INTEGER} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getCustomerInfo" resultType="java.util.HashMap"> |
|
|
|
Select isnull((Select C.CustomerGroup from Customer as C Where C.Site=CH.Site and C.CustomerID=CH.CustomerID),'') as CustomerGroup, |
|
|
|
isnull((Select C.ABC from Customer as C Where C.Site=CH.Site and C.CustomerID=CH.CustomerID),'') as ABC, |
|
|
|
isnull((Select C.ShortCustomerName from Customer as C Where C.Site=CH.Site and C.CustomerID=CH.CustomerID),'') as CustomerDesc, |
|
|
|
isnull((Select C.LogoFileName from Customer as C Where C.Site=CH.Site and C.CustomerID=CH.CustomerID),'') as LogoFileName |
|
|
|
from ShopOrder as SO |
|
|
|
Left Join COHeader as CH On CH.Site=SO.Site and CH.OrderNo=SO.OrderRef1 |
|
|
|
Where SO.Site = #{site} and SO.OrderNo = #{orderNo} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getWorkCenterProLineNo" resultType="java.lang.String"> |
|
|
|
select dbo.Get_WorkCenter_ProLineNo(#{site},#{workCenterNo}) |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
|