KKSU
2024-02-21 0bc524c2ad75096ab88b6fc5d5725012020b3ea9
src/main/java/cc/mrbird/febs/mall/service/impl/CJServiceImpl.java
@@ -178,7 +178,16 @@
        if(ObjectUtil.isEmpty(kjRecord)){
            return;
        }
        DataDictionaryCustom openPriceDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.OPEN_PRICE.getType(),
                DataDictionaryEnum.OPEN_PRICE.getCode()
        );
        int randomInt = RandomUtil.randomInt(1, 25);
        if(StrUtil.isNotEmpty(openPriceDic.getValue())){
            randomInt = Integer.parseInt(openPriceDic.getValue());
            openPriceDic.setValue("");
            dataDictionaryCustomMapper.updateById(openPriceDic);
        }
        kjRecord.setKjNum( String.valueOf(randomInt));
        kjRecordMapper.updateById(kjRecord);