From 30cbab2c55b557b95d5469e1ad14ebdd2324e7bf Mon Sep 17 00:00:00 2001 From: cuibaocheng Date: Fri, 4 Jun 2021 15:29:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8C=85=E5=90=8D=E5=86=B2?= =?UTF-8?q?=E7=AA=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/TemplatePersonServiceImpl.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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); }