|
|
@@ -412,9 +412,13 @@ public class TsaSystemService {
|
|
|
*/
|
|
|
@Transactional("shopTxnManager")
|
|
|
public void saveCommonCode(CommonCode commoncode) {
|
|
|
+ if (systemDao.getCommonCodePrimaryKeyCount(commoncode) > 0) {
|
|
|
+ throw new IllegalStateException("이미 등록된 코드가 있습니다.(코드구분: " + commoncode.getCdGb() + ", 코드: " + commoncode.getCd() + ")");
|
|
|
+ }
|
|
|
+
|
|
|
commoncode.setRegNo(TsaSession.getInfo().getUserNo());
|
|
|
commoncode.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
|
- commoncode.setCdNm(commoncode.getCdNm().replace(">", ">"));
|
|
|
+// commoncode.setCdNm(commoncode.getCdNm().replace(">", ">"));
|
|
|
systemDao.saveCommonCode(commoncode);
|
|
|
}
|
|
|
|