id 수량 확인
@3ce84199c118424a77e4acd284dc7f20409c6109
--- src/main/java/itn/let/mjo/msgdata/service/impl/MjonMsgDataServiceImpl.java
+++ src/main/java/itn/let/mjo/msgdata/service/impl/MjonMsgDataServiceImpl.java
... | ... | @@ -2596,7 +2596,16 @@ |
| 2596 | 2596 |
* 신규 IDgen 값 생성해주기 |
| 2597 | 2597 |
* |
| 2598 | 2598 |
* */ |
| 2599 |
- String subUserId = mjonMsgVO.getUserId().substring(0, 5).toUpperCase(); |
|
| 2599 |
+ String subUserId = ""; |
|
| 2600 |
+ if(mjonMsgVO.getUserId().length() < 5) {
|
|
| 2601 |
+ int a = 5 - mjonMsgVO.getUserId().length(); |
|
| 2602 |
+ subUserId = mjonMsgVO.getUserId(); |
|
| 2603 |
+ for(int i=0; i < a; i++) {
|
|
| 2604 |
+ subUserId += "0"; |
|
| 2605 |
+ } |
|
| 2606 |
+ }else {
|
|
| 2607 |
+ subUserId = mjonMsgVO.getUserId().substring(0, 5).toUpperCase(); |
|
| 2608 |
+ } |
|
| 2600 | 2609 |
mjonMsgVO.setSearchKeyword(subUserId); |
| 2601 | 2610 |
System.out.println("+++++++++++ subUserId ::: "+subUserId);
|
| 2602 | 2611 |
|
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?