此处以实际开发中的代码为例
Map<String,Object> map = iaShopManagementRightMapper.queryDetail(id);
if (!map.isEmpty()) {
String [] keys=new String[map.size()];
int i = 0;
for (Map.Entry<String,Object>entry:map.entrySet()) {
String key = entry.getKey();
String value = entry.getValue().toString();
keys[i] =key;
System.out.println("kk"+key+"==="+value);
if (key.equals("price_pre_mu")){
String va = entry.getValue().toString();
String [] str = va.split("[.]");
BigDecimal num = NumberUtils.createBigDecimal(str[0]);
ConvertUpMoney.micrometer(num);
entry.setValue(ConvertUpMoney.micrometer(num)).toString();
}
i++;
}