From 5a34dde4cb94648b50397b0ef3e03a95c493e64a Mon Sep 17 00:00:00 2001 From: zxc <954985706@qq.com> Date: Thu, 11 Jun 2020 10:35:51 +0800 Subject: [PATCH] =?UTF-8?q?ERR10002=E9=94=99=E8=AF=AF=E7=A0=81=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E3=80=81=E5=88=9D=E5=A7=8B=E5=8C=96=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/epmet/commons/tools/exception/EpmetErrorCode.java | 2 ++ .../src/main/resources/mapper/TagCustomerDao.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/exception/EpmetErrorCode.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/exception/EpmetErrorCode.java index 89fdb4cf19..0df23a82f1 100644 --- a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/exception/EpmetErrorCode.java +++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/exception/EpmetErrorCode.java @@ -6,6 +6,8 @@ package com.epmet.commons.tools.exception; * @Description: */ public enum EpmetErrorCode { + + ERR10002( 10002,"数据库中已存在该记录"), /** * 账号或密码错误ACCOUNT_NOT_EXIST */ diff --git a/epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/TagCustomerDao.xml b/epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/TagCustomerDao.xml index f1a9ed06ca..b7db9517c9 100644 --- a/epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/TagCustomerDao.xml +++ b/epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/TagCustomerDao.xml @@ -33,6 +33,8 @@ #{tag.id},#{tag.customerId}, #{tag.tagName}, #{tag.useCount}, #{tag.delFlag}, #{tag.revision}, #{tag.createdBy}, NOW(), #{tag.updatedBy}, NOW() ) + ON DUPLICATE KEY UPDATE + UPDATED_TIME = NOW() \ No newline at end of file