|
@@ -6,6 +6,7 @@ import com.baomidou.dynamic.datasource.annotation.DS;
|
|
import com.dayou.common.BaseEntity;
|
|
import com.dayou.common.BaseEntity;
|
|
import com.dayou.dto.*;
|
|
import com.dayou.dto.*;
|
|
import com.dayou.entity.*;
|
|
import com.dayou.entity.*;
|
|
|
|
+import com.dayou.enums.MainBusinessEnum;
|
|
import com.dayou.exception.ErrorCode;
|
|
import com.dayou.exception.ErrorCode;
|
|
import com.dayou.mapper.AssetsProductionMapper;
|
|
import com.dayou.mapper.AssetsProductionMapper;
|
|
import com.dayou.mapper.OrderFundMapper;
|
|
import com.dayou.mapper.OrderFundMapper;
|
|
@@ -215,7 +216,13 @@ public class AssetsProductionServiceImpl extends ServiceImpl<AssetsProductionMap
|
|
if (!assetsProduction.getProductionType().equals(STATEMENT.getCode())) {
|
|
if (!assetsProduction.getProductionType().equals(STATEMENT.getCode())) {
|
|
addAssetsProShouldAmount(assetsProduction);
|
|
addAssetsProShouldAmount(assetsProduction);
|
|
}
|
|
}
|
|
- return assetsProductionMapper.writeAssetsProduction(assetsProduction);
|
|
|
|
|
|
+ assetsProductionMapper.writeAssetsProduction(assetsProduction);
|
|
|
|
+ AssetsProduction validateCodeProInfo = this.getOne(new LambdaQueryWrapper<AssetsProduction>()
|
|
|
|
+ .eq(AssetsProduction::getBusinessId, assetsProduction.getBusinessId())
|
|
|
|
+ .eq(AssetsProduction::getProductionNo, assetsProduction.getProductionNo())
|
|
|
|
+ .eq(BaseEntity::getDeleted, 0));
|
|
|
|
+ // 生成防伪验证二维码
|
|
|
|
+ return this.update(new LambdaUpdateWrapper<AssetsProduction>().eq(BaseEntity::getId,validateCodeProInfo.getId()).set(AssetsProduction::getValidateCode, businessProductionService.doCreateValidateCode(ASSET_BUSINESS,validateCodeProInfo.getId(),validateCodeProInfo.getProductionNo())));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|