후불제 정산처리 스케줄러 테스트용 컨트롤러 생성
@96a6ae2b0b132e08f429ccc04fbd55a9553fe203
--- src/main/java/itn/let/mjo/test/web/TestController.java
+++ src/main/java/itn/let/mjo/test/web/TestController.java
... | ... | @@ -3,11 +3,8 @@ |
| 3 | 3 |
import java.awt.image.BufferedImage; |
| 4 | 4 |
import java.io.File; |
| 5 | 5 |
import java.io.IOException; |
| 6 |
-import java.io.UnsupportedEncodingException; |
|
| 7 | 6 |
import java.math.BigDecimal; |
| 8 | 7 |
import java.math.RoundingMode; |
| 9 |
-import java.net.URLEncoder; |
|
| 10 |
-import java.nio.charset.StandardCharsets; |
|
| 11 | 8 |
import java.nio.file.Files; |
| 12 | 9 |
import java.nio.file.Path; |
| 13 | 10 |
import java.nio.file.Paths; |
... | ... | @@ -23,7 +20,6 @@ |
| 23 | 20 |
|
| 24 | 21 |
import javax.annotation.Resource; |
| 25 | 22 |
import javax.imageio.ImageIO; |
| 26 |
-import javax.mail.internet.ContentDisposition; |
|
| 27 | 23 |
import javax.servlet.http.HttpServletRequest; |
| 28 | 24 |
import javax.servlet.http.HttpServletResponse; |
| 29 | 25 |
import javax.servlet.http.HttpSession; |
... | ... | @@ -36,7 +32,6 @@ |
| 36 | 32 |
import org.slf4j.LoggerFactory; |
| 37 | 33 |
import org.springframework.beans.factory.annotation.Autowired; |
| 38 | 34 |
import org.springframework.beans.factory.annotation.Value; |
| 39 |
-import org.springframework.core.env.SystemEnvironmentPropertySource; |
|
| 40 | 35 |
import org.springframework.core.io.ByteArrayResource; |
| 41 | 36 |
import org.springframework.core.io.FileSystemResource; |
| 42 | 37 |
import org.springframework.http.HttpEntity; |
... | ... | @@ -223,6 +218,10 @@ |
| 223 | 218 |
/** 등급제 관리 서비스 */ |
| 224 | 219 |
@Resource(name = "mberGrdService") |
| 225 | 220 |
MberGrdService mberGrdService; |
| 221 |
+ |
|
| 222 |
+ /** 후불제 자동 충전 서비스 */ |
|
| 223 |
+ @Resource (name = "userManageService") |
|
| 224 |
+ private EgovUserManageService egovUserManageService; |
|
| 226 | 225 |
|
| 227 | 226 |
private static final Logger logger = LoggerFactory.getLogger(TestController.class); |
| 228 | 227 |
|
... | ... | @@ -3276,4 +3275,20 @@ |
| 3276 | 3275 |
} |
| 3277 | 3276 |
|
| 3278 | 3277 |
|
| 3278 |
+ @RequestMapping(value="/web/mjon/test/insertAfterPayCashChargeSchedulerAjax.do") |
|
| 3279 |
+ public void testAfterPayCashCharge() throws Exception{
|
|
| 3280 |
+ |
|
| 3281 |
+ System.out.println("=================================testAfterPayCashCharge Start==========================================");
|
|
| 3282 |
+ |
|
| 3283 |
+ try {
|
|
| 3284 |
+ |
|
| 3285 |
+ egovUserManageService.updateUserCashByAutoCash(); |
|
| 3286 |
+ |
|
| 3287 |
+ } catch (Exception e) {
|
|
| 3288 |
+ System.out.println("++++++++++++++ testAfterPayCashCharge Error!!! "+e);
|
|
| 3289 |
+ } |
|
| 3290 |
+ |
|
| 3291 |
+ } |
|
| 3292 |
+ |
|
| 3293 |
+ |
|
| 3279 | 3294 |
} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?