|
@@ -156,6 +156,7 @@ public class TransferStoreFormServiceImpl extends BaseServiceImpl<TransferStoreF
|
|
|
detail.setOutId(outStoreForm.getId());
|
|
|
detail.setStoreId(outStoreForm.getStoreId());
|
|
|
detail.setOutNo(outStoreForm.getNo());
|
|
|
+ detail.setTotalPrice(detail.getNum().multiply(detail.getPrice()));
|
|
|
totalPrice = totalPrice.add(detail.getTotalPrice());
|
|
|
TransferStoreDetail storeDetail = new TransferStoreDetail();
|
|
|
BeanConverterUtil.copyObjectProperties(detail, storeDetail);
|
|
@@ -165,6 +166,7 @@ public class TransferStoreFormServiceImpl extends BaseServiceImpl<TransferStoreF
|
|
|
};
|
|
|
outStoreForm.setTotalPrice(totalPrice);
|
|
|
mapper.updateByPrimaryKey(outStoreForm);
|
|
|
+ updateStore(outStoreForm.getId());
|
|
|
return outStoreForm;
|
|
|
}
|
|
|
|
|
@@ -363,12 +365,14 @@ public class TransferStoreFormServiceImpl extends BaseServiceImpl<TransferStoreF
|
|
|
detail.setOutId(model.getId());
|
|
|
detail.setStoreId(model.getStoreId());
|
|
|
detail.setOutNo(model.getNo());
|
|
|
+ detail.setTotalPrice(detail.getNum().multiply(detail.getPrice()));
|
|
|
totalPrice = totalPrice.add(detail.getTotalPrice());
|
|
|
TransferStoreDetail storeDetail = new TransferStoreDetail();
|
|
|
BeanConverterUtil.copyObjectProperties(detail, storeDetail);
|
|
|
storeDetail.setId(IdGeneratorUtils.getObjectId());
|
|
|
addDetailList.add(storeDetail);
|
|
|
}else{
|
|
|
+ detail.setTotalPrice(detail.getNum().multiply(detail.getPrice()));
|
|
|
totalPrice = totalPrice.add(detail.getTotalPrice());
|
|
|
TransferStoreDetail storeDetail = new TransferStoreDetail();
|
|
|
BeanConverterUtil.copyObjectProperties(detail, storeDetail);
|