|
|
@@ -102,7 +102,7 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
|
|
|
//判断更新与保存动作
|
|
|
if (!StringUtils.isEmpty(pu_id)) {
|
|
|
//更新主表
|
|
|
- purchaseMapper.updateByPrimaryKey(purchase);
|
|
|
+ purchaseMapper.updateByPrimaryKeySelective(purchase);
|
|
|
//添加从表传输对象
|
|
|
for (PurchaseItemDTO item : items) {
|
|
|
PurchaseItem detail = BeanMapper.map(item, PurchaseItem.class);
|