|
@@ -116,6 +116,7 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public int addCompany(ThirdPartyCompany t,Integer calculation,Integer type) {
|
|
public int addCompany(ThirdPartyCompany t,Integer calculation,Integer type) {
|
|
|
|
|
+
|
|
|
CompanyLibrary c=new CompanyLibrary();
|
|
CompanyLibrary c=new CompanyLibrary();
|
|
|
String aid=TokenManager.getAdminId();
|
|
String aid=TokenManager.getAdminId();
|
|
|
if(calculation==0) {
|
|
if(calculation==0) {
|
|
@@ -131,7 +132,7 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
}
|
|
}
|
|
|
t.setTotalAmount(t.getUnitPrice().multiply(new BigDecimal(t.getQuantity())));
|
|
t.setTotalAmount(t.getUnitPrice().multiply(new BigDecimal(t.getQuantity())));
|
|
|
}
|
|
}
|
|
|
- if (type==1) {
|
|
|
|
|
|
|
+ if (type!=null&&type==1) {
|
|
|
tOrderTaskMapper.updateAddCostAmount(t.getTid(), t.getTotalAmount());
|
|
tOrderTaskMapper.updateAddCostAmount(t.getTid(), t.getTotalAmount());
|
|
|
tOrderMidMapper.updateAddCostAmount(t.getTid(), t.getTotalAmount());
|
|
tOrderMidMapper.updateAddCostAmount(t.getTid(), t.getTotalAmount());
|
|
|
}
|
|
}
|