diff --git a/src/main/java/cn/com/tenlion/service/templateperson/impl/TemplatePersonServiceImpl.java b/src/main/java/cn/com/tenlion/service/templateperson/impl/TemplatePersonServiceImpl.java index 4339bf2..800eaf6 100644 --- a/src/main/java/cn/com/tenlion/service/templateperson/impl/TemplatePersonServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/templateperson/impl/TemplatePersonServiceImpl.java @@ -139,10 +139,10 @@ public class TemplatePersonServiceImpl extends DefaultBaseService implements ITe createImageBean.setType("2"); } createImageBean.setContent(contentData); - createImageBean.setHeight(Integer.valueOf(obj.getString("templateAreaHeight"))); - createImageBean.setWidth(Integer.valueOf(obj.getString("templateAreaWidth"))); - createImageBean.setX(Integer.valueOf(obj.getString("templateAreaLeft"))); - createImageBean.setY(Integer.valueOf(obj.getString("templateAreaTop"))); + createImageBean.setHeight(Double.valueOf(obj.getString("templateAreaHeight")).intValue()); + createImageBean.setWidth(Double.valueOf(obj.getString("templateAreaWidth")).intValue()); + createImageBean.setX(Double.valueOf(obj.getString("templateAreaLeft")).intValue()); + createImageBean.setY(Double.valueOf(obj.getString("templateAreaTop")).intValue()); list.add(createImageBean); } @@ -303,10 +303,10 @@ public class TemplatePersonServiceImpl extends DefaultBaseService implements ITe createImageBean.setType("2"); } createImageBean.setContent(contentData); - createImageBean.setHeight(Integer.valueOf(obj.getString("templateAreaHeight"))); - createImageBean.setWidth(Integer.valueOf(obj.getString("templateAreaWidth"))); - createImageBean.setX(Integer.valueOf(obj.getString("templateAreaLeft"))); - createImageBean.setY(Integer.valueOf(obj.getString("templateAreaTop"))); + createImageBean.setHeight(Double.valueOf(obj.getString("templateAreaHeight")).intValue()); + createImageBean.setWidth(Double.valueOf(obj.getString("templateAreaWidth")).intValue()); + createImageBean.setX(Double.valueOf(obj.getString("templateAreaLeft")).intValue()); + createImageBean.setY(Double.valueOf(obj.getString("templateAreaTop")).intValue()); list.add(createImageBean); }