From 827d7b6c45708e63a2717eb173ecb7a2f62ba170 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Mon, 11 Jul 2022 17:29:25 +0900 Subject: [PATCH] fix: sql log format fix CUD return int fix local yml fix --- .../v2/controller/CtgyFileMgtController.java | 4 +- .../config/database/BaseMpowerDaoSupport.java | 7 +-- .../resources/config/application-local.yml | 54 +++---------------- 3 files changed, 13 insertions(+), 52 deletions(-) diff --git a/src/main/java/com/xit/biz/ctgy/v2/controller/CtgyFileMgtController.java b/src/main/java/com/xit/biz/ctgy/v2/controller/CtgyFileMgtController.java index 4ee454e..ded33c3 100644 --- a/src/main/java/com/xit/biz/ctgy/v2/controller/CtgyFileMgtController.java +++ b/src/main/java/com/xit/biz/ctgy/v2/controller/CtgyFileMgtController.java @@ -82,7 +82,7 @@ public class CtgyFileMgtController { String absFile = ""; - if (Arrays.asList(env.getActiveProfiles()).contains("prod")) + if (Arrays.asList(env.getActiveProfiles()).contains("local")) absFile = dto.getInFileurl() + File.separator + dto.getInFilename(); else absFile = rootPath + dto.getInFileurl().split(serviceUrl)[1] + File.separator + dto.getInFilename(); @@ -129,7 +129,7 @@ public class CtgyFileMgtController { String absFile = ""; - if (Arrays.asList(env.getActiveProfiles()).contains("prod")) + if (Arrays.asList(env.getActiveProfiles()).contains("local")) absFile = entity.getInFileurl() + File.separator + entity.getInFilename(); else absFile = rootPath + entity.getInFileurl().split(serviceUrl)[1] + File.separator + entity.getInFilename(); diff --git a/src/main/java/com/xit/core/config/database/BaseMpowerDaoSupport.java b/src/main/java/com/xit/core/config/database/BaseMpowerDaoSupport.java index 656bbb5..ebda94a 100644 --- a/src/main/java/com/xit/core/config/database/BaseMpowerDaoSupport.java +++ b/src/main/java/com/xit/core/config/database/BaseMpowerDaoSupport.java @@ -334,7 +334,7 @@ public abstract class BaseMpowerDaoSupport { } private String getQueryXml(String syntax, String sql){ - log.info(sql); + log.info("\n{}",sql); return String.format( "%s%s%s%s%s%s%s", "\n