Commit 216c6ee0 authored by 贾贺明's avatar 贾贺明 Committed by 贾贺明

update


(cherry picked from commit 939386f1)
parent 62531a14
......@@ -21,7 +21,7 @@ public class Material {
/**
* 用量
*/
private Integer amount;
private Double amount;
/**
* 图片
......
......@@ -331,7 +331,7 @@ public class CookbookDs {
List<Material> materials = JSON.parseArray(
j.getJSONObject("formula_detail").getString("materials"), Material.class);
if (!CollectionUtils.isEmpty(materials)) {
materials.get(0).setAmount(j.getInteger("amount"));
materials.get(0).setAmount(j.getDouble("amount"));
}
material.addAll(materials);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment