添加出库时开启序列号的商品强制附加使用序列号
This commit is contained in:
@@ -78,8 +78,13 @@ public class SupplierService {
|
||||
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
||||
public int updateAdvanceIn(Long supplierId, BigDecimal advanceIn){
|
||||
Supplier supplier = supplierMapper.selectByPrimaryKey(supplierId);
|
||||
supplier.setAdvancein(supplier.getAdvancein().add(advanceIn)); //增加预收款的金额,可能增加的是负值
|
||||
return supplierMapper.updateByPrimaryKeySelective(supplier);
|
||||
if(supplier!=null){
|
||||
supplier.setAdvancein(supplier.getAdvancein().add(advanceIn)); //增加预收款的金额,可能增加的是负值
|
||||
return supplierMapper.updateByPrimaryKeySelective(supplier);
|
||||
}else{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public List<Supplier> findBySelectCus() {
|
||||
|
||||
Reference in New Issue
Block a user