| | |
| | | public void fcmNFTExchangeMsg(String cnt) { |
| | | //销毁数量 |
| | | BigDecimal destoryCnt = new BigDecimal(cnt); |
| | | //更新总销毁数量 |
| | | DataDictionaryCustom fcmDestoryTotalDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.FCM_DESTORY_TOTAL.getType(), |
| | | DataDictionaryEnum.FCM_DESTORY_TOTAL.getCode() |
| | | ); |
| | | BigDecimal fcmDestoryTotal = new BigDecimal(fcmDestoryTotalDic.getValue()); |
| | | fcmDestoryTotal = fcmDestoryTotal.add(destoryCnt); |
| | | commonService.updateDataDic( |
| | | DataDictionaryEnum.FCM_DESTORY_TOTAL.getType(), |
| | | DataDictionaryEnum.FCM_DESTORY_TOTAL.getCode(), |
| | | fcmDestoryTotal.toString()); |
| | | |
| | | DataDictionaryCustom fcmDestoryCntDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.FCM_DESTORY_CNT.getType(), |
| | | DataDictionaryEnum.FCM_DESTORY_CNT.getCode() |
| | |
| | | DataDictionaryEnum.FCM_DESTORY_CNT.getType(), |
| | | DataDictionaryEnum.FCM_DESTORY_CNT.getCode(), |
| | | fcmDestoryCntReal.toString()); |
| | | |
| | | //更新总销毁数量 |
| | | DataDictionaryCustom fcmDestoryTotalDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.FCM_DESTORY_TOTAL.getType(), |
| | | DataDictionaryEnum.FCM_DESTORY_TOTAL.getCode() |
| | | ); |
| | | BigDecimal fcmDestoryTotal = new BigDecimal(fcmDestoryTotalDic.getValue()); |
| | | fcmDestoryTotal = fcmDestoryTotal.add(destoryCnt); |
| | | commonService.updateDataDic( |
| | | DataDictionaryEnum.FCM_DESTORY_TOTAL.getType(), |
| | | DataDictionaryEnum.FCM_DESTORY_TOTAL.getCode(), |
| | | fcmDestoryTotal.toString()); |
| | | //更新价格 |
| | | DataDictionaryCustom fcmPriceDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.FCM_PRICE.getType(), |