Commit 8aaf37f3 authored by Quxl's avatar Quxl

x

parent fa913769
......@@ -6,6 +6,7 @@ import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -18,6 +19,7 @@ import com.egolm.film.bean.Fc_user_group;
import com.egolm.film.bean.Fc_user_group_enroll;
import com.egolm.film.bean.Fc_user_group_funs;
import com.egolm.film.bean.Fc_user_group_round;
import com.egolm.film.config.XRException;
import com.egolm.film.util.Common;
import com.egolm.film.util.SqlWhere;
......@@ -57,7 +59,11 @@ public class AdminUserServiceImpl implements AdminUserService {
@Override
public void saveUser(Fc_user user) {
try {
jdbcTemplate.save(user);
} catch (DuplicateKeyException e) {
throw new XRException("用户已存在");
}
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment