| | |
| | | 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); |
| | | |