|
@@ -121,9 +121,19 @@ public class AssetsProductionServiceImpl extends ServiceImpl<AssetsProductionMap
|
|
|
return choiceLogService.saveBatch(choiceLogList);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 产品信息更新
|
|
|
+ * @param assetsProduction prod
|
|
|
+ * @return Boolean
|
|
|
+ */
|
|
|
@Override
|
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
public Boolean update(AssetsProduction assetsProduction) {
|
|
|
+ return this.updateById(assetsProduction);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public Boolean updateChoice(AssetsProduction assetsProduction) {
|
|
|
// 更新选择产品时给当前选择产品的评估对象更新选择产品记录
|
|
|
List<BusinessProductionChoiceLog> choiceLogList = new ArrayList<>();
|
|
|
for (Long targetId : assetsProduction.getTargetIdList()) {
|
|
@@ -490,7 +500,8 @@ public class AssetsProductionServiceImpl extends ServiceImpl<AssetsProductionMap
|
|
|
// 新增产品收款信息
|
|
|
OrderFund orderFund = orderFundService.getOne(new LambdaQueryWrapper<OrderFund>()
|
|
|
.select(OrderFund::getId)
|
|
|
- .eq(OrderFund::getBusinessId, assetsProduction.getBusinessId()));
|
|
|
+ .eq(OrderFund::getBusinessId, assetsProduction.getBusinessId())
|
|
|
+ .eq(OrderFund::getBusinessType, "ASSET_BUSINESS"));
|
|
|
ProductionFund productionFund = new ProductionFund();
|
|
|
productionFund.setBusinessType(ASSET_BUSINESS.getCode());
|
|
|
productionFund.setBusinessId(assetsProduction.getBusinessId());
|