id 수량 확인
This commit is contained in:
parent
9cc4630a5f
commit
3ce84199c1
@ -2596,7 +2596,16 @@ public class MjonMsgDataServiceImpl extends EgovAbstractServiceImpl implements M
|
|||||||
* 신규 IDgen 값 생성해주기
|
* 신규 IDgen 값 생성해주기
|
||||||
*
|
*
|
||||||
* */
|
* */
|
||||||
String subUserId = mjonMsgVO.getUserId().substring(0, 5).toUpperCase();
|
String subUserId = "";
|
||||||
|
if(mjonMsgVO.getUserId().length() < 5) {
|
||||||
|
int a = 5 - mjonMsgVO.getUserId().length();
|
||||||
|
subUserId = mjonMsgVO.getUserId();
|
||||||
|
for(int i=0; i < a; i++) {
|
||||||
|
subUserId += "0";
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
subUserId = mjonMsgVO.getUserId().substring(0, 5).toUpperCase();
|
||||||
|
}
|
||||||
mjonMsgVO.setSearchKeyword(subUserId);
|
mjonMsgVO.setSearchKeyword(subUserId);
|
||||||
System.out.println("+++++++++++ subUserId ::: "+subUserId);
|
System.out.println("+++++++++++ subUserId ::: "+subUserId);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user