주소록 단일등록시 번호중복 체크로직 보완
@82c908e1d1a8add330976ac5b09cf1c968db251f
--- src/main/resources/egovframework/sqlmap/let/fax/addr/Fax_Addr_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/fax/addr/Fax_Addr_SQL_Mysql.xml
... | ... | @@ -744,6 +744,14 @@ |
| 744 | 744 |
MBER_ID = #mberId# |
| 745 | 745 |
AND |
| 746 | 746 |
ADDR_PHONE_NO = #addrPhoneNo# |
| 747 |
+ <isNotEmpty property="bookmark"> |
|
| 748 |
+ <isEqual property="bookmark" compareValue="Y"> |
|
| 749 |
+ AND IFNULL(BOOKMARK, 'N') = 'Y' |
|
| 750 |
+ </isEqual> |
|
| 751 |
+ </isNotEmpty> |
|
| 752 |
+ <isEmpty property="bookmark"> |
|
| 753 |
+ AND IFNULL(BOOKMARK, 'N') = 'N' |
|
| 754 |
+ </isEmpty> |
|
| 747 | 755 |
</select> |
| 748 | 756 |
|
| 749 | 757 |
|
--- src/main/resources/egovframework/sqlmap/let/mjo/addr/Addr_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/mjo/addr/Addr_SQL_Mysql.xml
... | ... | @@ -817,10 +817,16 @@ |
| 817 | 817 |
MJ_ADDR |
| 818 | 818 |
WHERE |
| 819 | 819 |
ADDR_GRP_ID = #addrGrpId# |
| 820 |
- AND |
|
| 821 |
- MBER_ID = #mberId# |
|
| 822 |
- AND |
|
| 823 |
- ADDR_PHONE_NO = #addrPhoneNo# |
|
| 820 |
+ AND MBER_ID = #mberId# |
|
| 821 |
+ AND ADDR_PHONE_NO = #addrPhoneNo# |
|
| 822 |
+ <isNotEmpty property="bookmark"> |
|
| 823 |
+ <isEqual property="bookmark" compareValue="Y"> |
|
| 824 |
+ AND IFNULL(BOOKMARK, 'N') = 'Y' |
|
| 825 |
+ </isEqual> |
|
| 826 |
+ </isNotEmpty> |
|
| 827 |
+ <isEmpty property="bookmark"> |
|
| 828 |
+ AND IFNULL(BOOKMARK, 'N') = 'N' |
|
| 829 |
+ </isEmpty> |
|
| 824 | 830 |
</select> |
| 825 | 831 |
|
| 826 | 832 |
|
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?