修改批量出入库
This commit is contained in:
@@ -217,6 +217,7 @@ public class TbConsInfoServiceImpl implements TbConsInfoService {
|
|||||||
suppFlow.setShopId(resources.getShopId());
|
suppFlow.setShopId(resources.getShopId());
|
||||||
suppFlow.setSupplierId(resources.getSupplierId());
|
suppFlow.setSupplierId(resources.getSupplierId());
|
||||||
suppFlow.setType(resources.getType());
|
suppFlow.setType(resources.getType());
|
||||||
|
suppFlow.setStockNumber(conInfos.getStockNumber());
|
||||||
|
|
||||||
|
|
||||||
if ("in".equals(resources.getType())) {
|
if ("in".equals(resources.getType())) {
|
||||||
@@ -263,6 +264,7 @@ public class TbConsInfoServiceImpl implements TbConsInfoService {
|
|||||||
} else {
|
} else {
|
||||||
purveyorTransact.setStatus(0);
|
purveyorTransact.setStatus(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
purveyorTransact.setPaidAt(System.currentTimeMillis());
|
purveyorTransact.setPaidAt(System.currentTimeMillis());
|
||||||
|
|
||||||
purveyorTransactRepository.save(purveyorTransact);
|
purveyorTransactRepository.save(purveyorTransact);
|
||||||
@@ -272,8 +274,6 @@ public class TbConsInfoServiceImpl implements TbConsInfoService {
|
|||||||
|
|
||||||
|
|
||||||
tbConsInfoRepository.save(info);
|
tbConsInfoRepository.save(info);
|
||||||
|
|
||||||
|
|
||||||
tbConsSuppFlowRepository.save(suppFlow);
|
tbConsSuppFlowRepository.save(suppFlow);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user