|
@ -102,7 +102,8 @@ public class PurchaseQuoteServiceImpl implements IPurchaseQuoteService |
|
|
String loginName = ShiroUtils.getLoginName(); |
|
|
String loginName = ShiroUtils.getLoginName(); |
|
|
purchaseQuote.setCreateBy(loginName); |
|
|
purchaseQuote.setCreateBy(loginName); |
|
|
purchaseQuote.setCreateTime(DateUtils.getNowDate()); |
|
|
purchaseQuote.setCreateTime(DateUtils.getNowDate()); |
|
|
int result = purchaseQuoteMapper.insertPurchaseQuote(purchaseQuote); |
|
|
//采购员
|
|
|
|
|
|
purchaseQuote.setPurchaseBuyer(loginName); |
|
|
Long id = purchaseQuote.getPurchaseQuoteId(); |
|
|
Long id = purchaseQuote.getPurchaseQuoteId(); |
|
|
String fileIdStr = purchaseQuote.getFileIdStr(); |
|
|
String fileIdStr = purchaseQuote.getFileIdStr(); |
|
|
if(StringUtils.isNotBlank(fileIdStr)){ |
|
|
if(StringUtils.isNotBlank(fileIdStr)){ |
|
@ -129,9 +130,12 @@ public class PurchaseQuoteServiceImpl implements IPurchaseQuoteService |
|
|
child.setSupplierName(purchaseQuote.getSupplierName()); |
|
|
child.setSupplierName(purchaseQuote.getSupplierName()); |
|
|
child.setCreateTime(DateUtils.getNowDate()); |
|
|
child.setCreateTime(DateUtils.getNowDate()); |
|
|
child.setTaxRate(purchaseQuote.getTaxRate()); |
|
|
child.setTaxRate(purchaseQuote.getTaxRate()); |
|
|
|
|
|
child.setDelFlag("0"); |
|
|
purchaseQuoteChildService.insertPurchaseQuoteChild(child); |
|
|
purchaseQuoteChildService.insertPurchaseQuoteChild(child); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
purchaseQuote.setMaterialAmount(String.valueOf(childResult)); |
|
|
|
|
|
int result = purchaseQuoteMapper.insertPurchaseQuote(purchaseQuote); |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -180,6 +184,7 @@ public class PurchaseQuoteServiceImpl implements IPurchaseQuoteService |
|
|
child.setSupplierCode(purchaseQuote.getSupplierQuoteCode()); |
|
|
child.setSupplierCode(purchaseQuote.getSupplierQuoteCode()); |
|
|
child.setSupplierName(purchaseQuote.getSupplierName()); |
|
|
child.setSupplierName(purchaseQuote.getSupplierName()); |
|
|
child.setCreateBy(loginName); |
|
|
child.setCreateBy(loginName); |
|
|
|
|
|
child.setDelFlag("0"); |
|
|
child.setCreateTime(DateUtils.getNowDate()); |
|
|
child.setCreateTime(DateUtils.getNowDate()); |
|
|
child.setTaxRate(purchaseQuote.getTaxRate()); |
|
|
child.setTaxRate(purchaseQuote.getTaxRate()); |
|
|
purchaseQuoteChildService.insertPurchaseQuoteChild(child); |
|
|
purchaseQuoteChildService.insertPurchaseQuoteChild(child); |
|
|