|
|
@@ -859,8 +859,10 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
if(p.getChooseType()==0) {
|
|
|
ThirdPartyCompany tpc=thirdPartyCompanyMapper.selectByPrimaryKey(p.getTpcId());
|
|
|
count=tpc.getUnitPrice().multiply(new BigDecimal(p.getQuantity()));
|
|
|
- }
|
|
|
- if (p.getChooseType()==2) {
|
|
|
+ } else if (p.getChooseType()==1) {
|
|
|
+ PaymentNode pn=paymentNodeMapper.selectByPrimaryKey(p.getNodeId());
|
|
|
+ count=pn.getUnitPrice().multiply(new BigDecimal(p.getQuantity()));
|
|
|
+ }else if (p.getChooseType()==2) {
|
|
|
OutThirdPartyCompany ot=thirdPartyCompanyMapper.selectByIdPuls(p.getTpcId());
|
|
|
if (ot.getCostReduction()==0) {
|
|
|
count=new BigDecimal(ot.getOfficialUnitPrice()).multiply(new BigDecimal(ot.getQuantity()));
|