|
|
@@ -486,8 +486,6 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
|
|
|
purchasedetailMapper.updateByPrimaryKeySelective(purchaseDetail);
|
|
|
}
|
|
|
}
|
|
|
- //更新默认仓库
|
|
|
-// prodInOutService.getDefaultWarehouseByProduct(pi_id);
|
|
|
//采购验收单相关计算
|
|
|
prodInOutService.calcProdInout(pi_id,"采购验收单");
|
|
|
DocBaseDTO baseDTO = new DocBaseDTO(pi_id, piInoutno, BillCodeSeq.PURCHASEIN.getName());
|
|
|
@@ -510,7 +508,7 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
|
|
|
purchase.setPu_acceptstatuscode(Status.UNAUDITED.name());
|
|
|
purchase.setUpdateTime(new Date());
|
|
|
purchase.setUpdaterId(BaseContextHolder.getUserId());
|
|
|
- getMapper().updateByPrimaryKey(purchase);
|
|
|
+ getMapper().updateByPrimaryKeySelective(purchase);
|
|
|
//更新存在字段
|
|
|
//日志
|
|
|
messageLogService.audit(docBaseDTO);
|