|
|
@@ -508,14 +508,14 @@
|
|
|
<select id="selectByTid" resultType="com.goafanti.organization.bo.OutThirdPartyCompany">
|
|
|
select a.id,a.tid,a.company_name companyName,a.unit_price unitPrice,a.quantity,a.total_amount totalAmount,a.material,a.urgent,
|
|
|
a.patent_name_type patentNameType,a.audit,a.assets,a.income,a.remarks,a.cid,b.cost_reduction costReduction,b.official_cost officialCost,
|
|
|
- a.type,a.party_amount partyAmount ,op.amount officialUnitPrice,op.proportion85 reductionAmount
|
|
|
+ a.type,a.party_amount partyAmount ,op.amount officialUnitPrice,op.proportion85 reductionAmount,a.start_type startType
|
|
|
from third_party_company a left join t_order_task b on a.tid=b.id left join official_fee_price op on a.patent_name_type=op.`type`
|
|
|
where tid= #{tid}
|
|
|
</select>
|
|
|
<select id="selectByIdPuls" resultType="com.goafanti.organization.bo.OutThirdPartyCompany">
|
|
|
select a.id,a.tid,a.company_name companyName,a.unit_price unitPrice,a.quantity,a.total_amount totalAmount,a.material,a.urgent,
|
|
|
a.patent_name_type patentNameType,a.audit,a.assets,a.income,a.remarks,a.cid,b.cost_reduction costReduction,b.official_cost officialCost,
|
|
|
- a.type,a.party_amount partyAmount ,op.amount officialUnitPrice,op.proportion85 reductionAmount
|
|
|
+ a.type,a.party_amount partyAmount ,op.amount officialUnitPrice,op.proportion85 reductionAmount,a.start_type startType
|
|
|
from third_party_company a left join t_order_task b on a.tid=b.id left join official_fee_price op on a.patent_name_type=op.`type`
|
|
|
where a.id= #{id}
|
|
|
</select>
|