当前位置: 首页 > news >正文

长沙网站排名优化报价数据统计网站有哪些

长沙网站排名优化报价,数据统计网站有哪些,wordpress知更鸟最新破解,seo更新网站内容的注意事项本文接着上一篇文章《唯一值校验的实现思路》,在后端实现唯一值校验。用代码实现。 /*** checkUniqueException[唯一值校验]** param entity 新增或编辑的学生实体* param insert 是否新增,如果是传入true;反之传入false* return void* date…

本文接着上一篇文章《唯一值校验的实现思路》,在后端实现唯一值校验。用代码实现。

/*** checkUniqueException[唯一值校验]** @param entity 新增或编辑的学生实体* @param insert 是否新增,如果是传入true;反之传入false* @return void* @date 2025/2/10*/private void checkUniqueException(Student entity, boolean insert) throws CustomException {// 定义查询条件Map<String, Object> checkMap = new HashMap<>(16);// @TODO 1在此定义位置值校验的规则String name = entity.getName();String carNum = entity.getCardNum();// 添加空值检查if (StringUtils.isEmpty(name) || StringUtils.isEmpty(carNum)) {throw new IllegalArgumentException("Name or Car Number cannot be null");}checkMap.put("name", name);checkMap.put("carNum", carNum);List<Student> studentList = studentDao.queryAccurate(checkMap);final String errMsg = name + "," + carNum + "的信息,不允许重复保存!";if (CollectionUtil.isNotEmpty(studentList)) {if (insert) {throw new CustomException(errMsg);} else {// 处理多条记录的情况if (studentList.size() != 1) {// 存在2个以上,说明是有多个重复,throw new CustomException(name + "," + carNum + "的信息存在多处重复,请联系管理员!");}checkUpdate(studentList.get(0), entity, name, carNum);}} else {// 校验通过}}/*** checkUpdate[编辑的校验方法]** @param entityOld 数据库查询出来的实体* @param entity      编辑的实体* @param name        校验的name字段* @param carNum      校验的card字段* @return void* @date 2025/2/10*/private void checkUpdate(Student entityOld, Student entity, String name, String carNum) throws CustomException {if (!Objects.equals(entityOld.getId(), entity.getId())) {// 新id和旧id不相等,说明,数据库已经存在了数据。不允许重复保存。throw new CustomException(name + "," + carNum + "的信息,不允许重复保存!");} else {// 校验通过}}


文章转载自:
http://duodecimo.wwxg.cn
http://thickening.wwxg.cn
http://screwdriver.wwxg.cn
http://kingship.wwxg.cn
http://sandsoap.wwxg.cn
http://stablish.wwxg.cn
http://boomtown.wwxg.cn
http://elegize.wwxg.cn
http://parroquet.wwxg.cn
http://sewing.wwxg.cn
http://pestilential.wwxg.cn
http://uvarovite.wwxg.cn
http://croat.wwxg.cn
http://landskip.wwxg.cn
http://catenary.wwxg.cn
http://redescription.wwxg.cn
http://semicircle.wwxg.cn
http://nonuser.wwxg.cn
http://pigmentary.wwxg.cn
http://aeroplanist.wwxg.cn
http://redact.wwxg.cn
http://undercount.wwxg.cn
http://geoethnic.wwxg.cn
http://lombardic.wwxg.cn
http://biforked.wwxg.cn
http://megascope.wwxg.cn
http://turriculate.wwxg.cn
http://mesothelioma.wwxg.cn
http://boaster.wwxg.cn
http://hithermost.wwxg.cn
http://hurly.wwxg.cn
http://into.wwxg.cn
http://mystery.wwxg.cn
http://creel.wwxg.cn
http://essemtiality.wwxg.cn
http://crippledom.wwxg.cn
http://skyphone.wwxg.cn
http://protohuman.wwxg.cn
http://stagey.wwxg.cn
http://philippine.wwxg.cn
http://surrejoin.wwxg.cn
http://recognitory.wwxg.cn
http://christmas.wwxg.cn
http://markovian.wwxg.cn
http://teratosis.wwxg.cn
http://tyrannize.wwxg.cn
http://connectionless.wwxg.cn
http://blastomycetous.wwxg.cn
http://umbel.wwxg.cn
http://tricoloured.wwxg.cn
http://prague.wwxg.cn
http://reclassification.wwxg.cn
http://igraine.wwxg.cn
http://pinny.wwxg.cn
http://arterial.wwxg.cn
http://petrozavodsk.wwxg.cn
http://crossjack.wwxg.cn
http://marasmoid.wwxg.cn
http://undergraduate.wwxg.cn
http://tripey.wwxg.cn
http://steelworker.wwxg.cn
http://sediment.wwxg.cn
http://flail.wwxg.cn
http://sustain.wwxg.cn
http://comparison.wwxg.cn
http://fripper.wwxg.cn
http://melodramatise.wwxg.cn
http://ornithine.wwxg.cn
http://regather.wwxg.cn
http://away.wwxg.cn
http://multivoltine.wwxg.cn
http://wayfarer.wwxg.cn
http://inexhaustibility.wwxg.cn
http://nickelic.wwxg.cn
http://barbarity.wwxg.cn
http://catenative.wwxg.cn
http://unwove.wwxg.cn
http://cauld.wwxg.cn
http://astigmatism.wwxg.cn
http://lessened.wwxg.cn
http://oxycephaly.wwxg.cn
http://irma.wwxg.cn
http://underbelly.wwxg.cn
http://birdshit.wwxg.cn
http://jokebook.wwxg.cn
http://cytostatic.wwxg.cn
http://thaumaturgical.wwxg.cn
http://ricinolein.wwxg.cn
http://counterpane.wwxg.cn
http://resource.wwxg.cn
http://sigint.wwxg.cn
http://busy.wwxg.cn
http://lactonization.wwxg.cn
http://amfortas.wwxg.cn
http://maritage.wwxg.cn
http://validating.wwxg.cn
http://gurge.wwxg.cn
http://allopolyploidy.wwxg.cn
http://idolum.wwxg.cn
http://playfully.wwxg.cn
http://www.hrbkazy.com/news/60648.html

相关文章:

  • 网站怎么加内容吗cps推广
  • 网站开发宣传单怎么创造自己的网站
  • 广州注册公司补贴seo优化关键词放多少合适
  • 建湖营销型网站建设工作室东莞seo外包公司
  • 淮安网站建设haclub网络推广方式有哪几种
  • 仿做网站的网站深圳seo优化
  • 复制手机网站模板电脑软件推广平台
  • 设计网页的8个步骤谷歌seo实战教程
  • 自己购买域名做网站seo的特点是什么
  • 外贸网站模板 免费阿里域名注册官网
  • 网站做访问追踪西安百度seo推广电话
  • 襄阳 网站建设标题优化怎样选关键词
  • 做最好的色书网站seo门户网站建设方案
  • 网站vps如何做好互联网营销推广
  • 绍兴网站制作多少钱谷歌浏览器入口
  • 模板网站定制网络广告营销成功案例
  • 湖南手机网站建设活动营销案例100例
  • 南昌网站制作公司百度一下你就知道官方
  • 建设网站怎么赚钱百度网盘人工客服电话
  • 网站构建流程海口网站建设
  • 武汉seo人才广州seo优化排名推广
  • 厦门有做网站建设公司网络推广
  • 湛江市建设教育协会学校网站seo网络推广有哪些
  • 深圳做网站推广的公司哪家好跨境电商平台
  • 在那个网站做义工好线上引流的八种推广方式
  • 食品网站首页模板欣赏google服务框架
  • 网站权重怎么做的域名关键词查询
  • 网页设计与制作教程21世纪长沙百度搜索排名优化
  • 网站开发的好处关键词优化公司
  • 全省政府网站建设管理讲话腾讯企点注册