基于web的ssm邮票鉴赏系统源码和论文

     网络的广泛应用给生活带来了十分的便利。所以把邮票鉴赏管理与现在网络相结合,利用java技术建设邮票鉴赏系统,实现邮票鉴赏的信息化。则对于进一步提高邮票鉴赏管理发展,丰富邮票鉴赏管理经验能起到不少的促进作用。

邮票鉴赏系统能够通过互联网得到广泛的、全面的宣传,让尽可能多的用户了解和熟知邮票鉴赏系统的便捷高效,不仅为群众提供了服务,而且也推广了自己。对于邮票鉴赏而言,若拥有自己的系统,通过系统得到更好的管理,同时提升了形象。

本系统设计的现状和趋势,从需求、结构、数据库等方面的设计到系统的实现,分别为管理员和用户实现。论文的内容从系统的设计、描述、实现、分析、测试方面来表明开发的过程。本系统根据现实情况来选择一种可行的开发方案,借助java编程语言和MySQL数据库等实现系统的全部功能,接下来对系统进行测试,测试系统是否有漏洞和测试用户权限来完善系统,最终系统完成达到相关标准。

基于web的ssm邮票鉴赏系统源码和论文740

关键字:邮票鉴赏javaMySQL数据库

演示视频:

基于web的ssm邮票鉴赏系统源码和论文

Abstract

The wide application of the network has brought great convenience to life. So combine the management of stamp appreciation with the current network, use java technology to build a stamp appreciation system, and realize the informatization of stamp appreciation. It can play a role in further improving the development of stamp appreciation management and enriching the experience of stamp appreciation management.

The stamp appreciation system can be widely and comprehensively publicized through the Internet, so that as many users as possible can understand and be familiar with the convenience and efficiency of the stamp appreciation system, which not only provides services for the masses, but also promotes itself. For stamp appreciation, if it has its own system, it can be better managed through the system, and its image will be improved at the same time.

The current situation and trend of the system design, from the design of requirements, structure, database, etc. to the realization of the system, are the realization of administrators and users. The content of the paper shows the development process from the aspects of system design, description, implementation, analysis and testing. The system selects a feasible development plan according to the actual situation, realizes all the functions of the system with the help of java programming language and MySQL database, etc., and then tests the system to test whether there are loopholes in the system and test user permissions to improve the system, and finally the system Complete to meet relevant standards.

Keywords: Stamp appreciation;Java;MySQL database

package com.controller;import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;import com.entity.YoupiaoxinxiEntity;
import com.entity.view.YoupiaoxinxiView;import com.service.YoupiaoxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import com.service.StoreupService;
import com.entity.StoreupEntity;/*** 邮票信息* 后端接口* @author * @email * @date 2022-04-06 10:33:30*/
@RestController
@RequestMapping("/youpiaoxinxi")
public class YoupiaoxinxiController {@Autowiredprivate YoupiaoxinxiService youpiaoxinxiService;@Autowiredprivate StoreupService storeupService;/*** 后端列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,YoupiaoxinxiEntity youpiaoxinxi, HttpServletRequest request){EntityWrapper<YoupiaoxinxiEntity> ew = new EntityWrapper<YoupiaoxinxiEntity>();PageUtils page = youpiaoxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, youpiaoxinxi), params), params));return R.ok().put("data", page);}/*** 前端列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params,YoupiaoxinxiEntity youpiaoxinxi, HttpServletRequest request){EntityWrapper<YoupiaoxinxiEntity> ew = new EntityWrapper<YoupiaoxinxiEntity>();PageUtils page = youpiaoxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, youpiaoxinxi), params), params));return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/lists")public R list( YoupiaoxinxiEntity youpiaoxinxi){EntityWrapper<YoupiaoxinxiEntity> ew = new EntityWrapper<YoupiaoxinxiEntity>();ew.allEq(MPUtil.allEQMapPre( youpiaoxinxi, "youpiaoxinxi")); return R.ok().put("data", youpiaoxinxiService.selectListView(ew));}/*** 查询*/@RequestMapping("/query")public R query(YoupiaoxinxiEntity youpiaoxinxi){EntityWrapper< YoupiaoxinxiEntity> ew = new EntityWrapper< YoupiaoxinxiEntity>();ew.allEq(MPUtil.allEQMapPre( youpiaoxinxi, "youpiaoxinxi")); YoupiaoxinxiView youpiaoxinxiView =  youpiaoxinxiService.selectView(ew);return R.ok("查询邮票信息成功").put("data", youpiaoxinxiView);}/*** 后端详情*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") Long id){YoupiaoxinxiEntity youpiaoxinxi = youpiaoxinxiService.selectById(id);youpiaoxinxi.setClicktime(new Date());youpiaoxinxiService.updateById(youpiaoxinxi);return R.ok().put("data", youpiaoxinxi);}/*** 前端详情*/@IgnoreAuth@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Long id){YoupiaoxinxiEntity youpiaoxinxi = youpiaoxinxiService.selectById(id);youpiaoxinxi.setClicktime(new Date());youpiaoxinxiService.updateById(youpiaoxinxi);return R.ok().put("data", youpiaoxinxi);}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody YoupiaoxinxiEntity youpiaoxinxi, HttpServletRequest request){youpiaoxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(youpiaoxinxi);youpiaoxinxiService.insert(youpiaoxinxi);return R.ok();}/*** 前端保存*/@RequestMapping("/add")public R add(@RequestBody YoupiaoxinxiEntity youpiaoxinxi, HttpServletRequest request){youpiaoxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(youpiaoxinxi);youpiaoxinxiService.insert(youpiaoxinxi);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody YoupiaoxinxiEntity youpiaoxinxi, HttpServletRequest request){//ValidatorUtils.validateEntity(youpiaoxinxi);youpiaoxinxiService.updateById(youpiaoxinxi);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){youpiaoxinxiService.deleteBatchIds(Arrays.asList(ids));return R.ok();}/*** 提醒接口*/@RequestMapping("/remind/{columnName}/{type}")public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map<String, Object> map) {map.put("column", columnName);map.put("type", type);if(type.equals("2")) {SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");Calendar c = Calendar.getInstance();Date remindStartDate = null;Date remindEndDate = null;if(map.get("remindstart")!=null) {Integer remindStart = Integer.parseInt(map.get("remindstart").toString());c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindStart);remindStartDate = c.getTime();map.put("remindstart", sdf.format(remindStartDate));}if(map.get("remindend")!=null) {Integer remindEnd = Integer.parseInt(map.get("remindend").toString());c.setTime(new Date());c.add(Calendar.DAY_OF_MONTH,remindEnd);remindEndDate = c.getTime();map.put("remindend", sdf.format(remindEndDate));}}Wrapper<YoupiaoxinxiEntity> wrapper = new EntityWrapper<YoupiaoxinxiEntity>();if(map.get("remindstart")!=null) {wrapper.ge(columnName, map.get("remindstart"));}if(map.get("remindend")!=null) {wrapper.le(columnName, map.get("remindend"));}int count = youpiaoxinxiService.selectCount(wrapper);return R.ok().put("count", count);}/*** 前端智能排序*/@IgnoreAuth@RequestMapping("/autoSort")public R autoSort(@RequestParam Map<String, Object> params,YoupiaoxinxiEntity youpiaoxinxi, HttpServletRequest request,String pre){EntityWrapper<YoupiaoxinxiEntity> ew = new EntityWrapper<YoupiaoxinxiEntity>();Map<String, Object> newMap = new HashMap<String, Object>();Map<String, Object> param = new HashMap<String, Object>();Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();while (it.hasNext()) {Map.Entry<String, Object> entry = it.next();String key = entry.getKey();String newKey = entry.getKey();if (pre.endsWith(".")) {newMap.put(pre + newKey, entry.getValue());} else if (StringUtils.isEmpty(pre)) {newMap.put(newKey, entry.getValue());} else {newMap.put(pre + "." + newKey, entry.getValue());}}params.put("sort", "clicktime");params.put("order", "desc");PageUtils page = youpiaoxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, youpiaoxinxi), params), params));return R.ok().put("data", page);}/*** 协同算法(按收藏推荐)*/@RequestMapping("/autoSort2")public R autoSort2(@RequestParam Map<String, Object> params,YoupiaoxinxiEntity youpiaoxinxi, HttpServletRequest request){String userId = request.getSession().getAttribute("userId").toString();String inteltypeColumn = "youpiaofenlei";List<StoreupEntity> storeups = storeupService.selectList(new EntityWrapper<StoreupEntity>().eq("type", 1).eq("userid", userId).eq("tablename", "youpiaoxinxi").orderBy("addtime", false));List<String> inteltypes = new ArrayList<String>();Integer limit = params.get("limit")==null?10:Integer.parseInt(params.get("limit").toString());List<YoupiaoxinxiEntity> youpiaoxinxiList = new ArrayList<YoupiaoxinxiEntity>();//去重if(storeups!=null && storeups.size()>0) {for(StoreupEntity s : storeups) {youpiaoxinxiList.addAll(youpiaoxinxiService.selectList(new EntityWrapper<YoupiaoxinxiEntity>().eq(inteltypeColumn, s.getInteltype())));}}EntityWrapper<YoupiaoxinxiEntity> ew = new EntityWrapper<YoupiaoxinxiEntity>();params.put("sort", "id");params.put("order", "desc");PageUtils page = youpiaoxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, youpiaoxinxi), params), params));List<YoupiaoxinxiEntity> pageList = (List<YoupiaoxinxiEntity>)page.getList();if(youpiaoxinxiList.size()<limit) {int toAddNum = (limit-youpiaoxinxiList.size())<=pageList.size()?(limit-youpiaoxinxiList.size()):pageList.size();for(YoupiaoxinxiEntity o1 : pageList) {boolean addFlag = true;for(YoupiaoxinxiEntity o2 : youpiaoxinxiList) {if(o1.getId().intValue()==o2.getId().intValue()) {addFlag = false;break;}}if(addFlag) {youpiaoxinxiList.add(o1);if(--toAddNum==0) break;}}}page.setList(youpiaoxinxiList);return R.ok().put("data", page);}/*** (按值统计)*/@RequestMapping("/value/{xColumnName}/{yColumnName}")public R value(@PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName,HttpServletRequest request) {Map<String, Object> params = new HashMap<String, Object>();params.put("xColumn", xColumnName);params.put("yColumn", yColumnName);EntityWrapper<YoupiaoxinxiEntity> ew = new EntityWrapper<YoupiaoxinxiEntity>();List<Map<String, Object>> result = youpiaoxinxiService.selectValue(params, ew);SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");for(Map<String, Object> m : result) {for(String k : m.keySet()) {if(m.get(k) instanceof Date) {m.put(k, sdf.format((Date)m.get(k)));}}}return R.ok().put("data", result);}/*** (按值统计)时间统计类型*/@RequestMapping("/value/{xColumnName}/{yColumnName}/{timeStatType}")public R valueDay(@PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName, @PathVariable("timeStatType") String timeStatType,HttpServletRequest request) {Map<String, Object> params = new HashMap<String, Object>();params.put("xColumn", xColumnName);params.put("yColumn", yColumnName);params.put("timeStatType", timeStatType);EntityWrapper<YoupiaoxinxiEntity> ew = new EntityWrapper<YoupiaoxinxiEntity>();List<Map<String, Object>> result = youpiaoxinxiService.selectTimeStatValue(params, ew);SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");for(Map<String, Object> m : result) {for(String k : m.keySet()) {if(m.get(k) instanceof Date) {m.put(k, sdf.format((Date)m.get(k)));}}}return R.ok().put("data", result);}/*** 分组统计*/@RequestMapping("/group/{columnName}")public R group(@PathVariable("columnName") String columnName,HttpServletRequest request) {Map<String, Object> params = new HashMap<String, Object>();params.put("column", columnName);EntityWrapper<YoupiaoxinxiEntity> ew = new EntityWrapper<YoupiaoxinxiEntity>();List<Map<String, Object>> result = youpiaoxinxiService.selectGroup(params, ew);SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");for(Map<String, Object> m : result) {for(String k : m.keySet()) {if(m.get(k) instanceof Date) {m.put(k, sdf.format((Date)m.get(k)));}}}return R.ok().put("data", result);}
}

 

package com.controller;import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;import com.entity.WenzhangxinxiEntity;
import com.entity.view.WenzhangxinxiView;import com.service.WenzhangxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import com.service.StoreupService;
import com.entity.StoreupEntity;/*** 文章信息* 后端接口* @author * @email * @date 2022-04-06 10:33:30*/
@RestController
@RequestMapping("/wenzhangxinxi")
public class WenzhangxinxiController {@Autowiredprivate WenzhangxinxiService wenzhangxinxiService;@Autowiredprivate StoreupService storeupService;/*** 后端列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,WenzhangxinxiEntity wenzhangxinxi, HttpServletRequest request){EntityWrapper<WenzhangxinxiEntity> ew = new EntityWrapper<WenzhangxinxiEntity>();PageUtils page = wenzhangxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, wenzhangxinxi), params), params));return R.ok().put("data", page);}/*** 前端列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params,WenzhangxinxiEntity wenzhangxinxi, HttpServletRequest request){EntityWrapper<WenzhangxinxiEntity> ew = new EntityWrapper<WenzhangxinxiEntity>();PageUtils page = wenzhangxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, wenzhangxinxi), params), params));return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/lists")public R list( WenzhangxinxiEntity wenzhangxinxi){EntityWrapper<WenzhangxinxiEntity> ew = new EntityWrapper<WenzhangxinxiEntity>();ew.allEq(MPUtil.allEQMapPre( wenzhangxinxi, "wenzhangxinxi")); return R.ok().put("data", wenzhangxinxiService.selectListView(ew));}/*** 查询*/@RequestMapping("/query")public R query(WenzhangxinxiEntity wenzhangxinxi){EntityWrapper< WenzhangxinxiEntity> ew = new EntityWrapper< WenzhangxinxiEntity>();ew.allEq(MPUtil.allEQMapPre( wenzhangxinxi, "wenzhangxinxi")); WenzhangxinxiView wenzhangxinxiView =  wenzhangxinxiService.selectView(ew);return R.ok("查询文章信息成功").put("data", wenzhangxinxiView);}/*** 后端详情*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") Long id){WenzhangxinxiEntity wenzhangxinxi = wenzhangxinxiService.selectById(id);wenzhangxinxi.setClicktime(new Date());wenzhangxinxiService.updateById(wenzhangxinxi);return R.ok().put("data", wenzhangxinxi);}/*** 前端详情*/@IgnoreAuth@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Long id){WenzhangxinxiEntity wenzhangxinxi = wenzhangxinxiService.selectById(id);wenzhangxinxi.setClicktime(new Date());wenzhangxinxiService.updateById(wenzhangxinxi);return R.ok().put("data", wenzhangxinxi);}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody WenzhangxinxiEntity wenzhangxinxi, HttpServletRequest request){wenzhangxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(wenzhangxinxi);wenzhangxinxiService.insert(wenzhangxinxi);return R.ok();}/*** 前端保存*/@RequestMapping("/add")public R add(@RequestBody WenzhangxinxiEntity wenzhangxinxi, HttpServletRequest request){wenzhangxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(wenzhangxinxi);wenzhangxinxiService.insert(wenzhangxinxi);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody WenzhangxinxiEntity wenzhangxinxi, HttpServletRequest request){//ValidatorUtils.validateEntity(wenzhangxinxi);wenzhangxinxiService.updateById(wenzhangxinxi);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){wenzhangxinxiService.deleteBatchIds(Arrays.asList(ids));return R.ok();}/*** 提醒接口*/@RequestMapping("/remind/{columnName}/{type}")public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map<String, Object> map) {map.put("column", columnName);map.put("type", type);if(type.equals("2")) {SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");Calendar c = Calendar.getInstance();Date remindStartDate = null;Date remindEndDate = null;if(map.get("remindstart")!=null) {Integer remindStart = Integer.parseInt(map.get("remindstart").toString());c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindStart);remindStartDate = c.getTime();map.put("remindstart", sdf.format(remindStartDate));}if(map.get("remindend")!=null) {Integer remindEnd = Integer.parseInt(map.get("remindend").toString());c.setTime(new Date());c.add(Calendar.DAY_OF_MONTH,remindEnd);remindEndDate = c.getTime();map.put("remindend", sdf.format(remindEndDate));}}Wrapper<WenzhangxinxiEntity> wrapper = new EntityWrapper<WenzhangxinxiEntity>();if(map.get("remindstart")!=null) {wrapper.ge(columnName, map.get("remindstart"));}if(map.get("remindend")!=null) {wrapper.le(columnName, map.get("remindend"));}int count = wenzhangxinxiService.selectCount(wrapper);return R.ok().put("count", count);}/*** 前端智能排序*/@IgnoreAuth@RequestMapping("/autoSort")public R autoSort(@RequestParam Map<String, Object> params,WenzhangxinxiEntity wenzhangxinxi, HttpServletRequest request,String pre){EntityWrapper<WenzhangxinxiEntity> ew = new EntityWrapper<WenzhangxinxiEntity>();Map<String, Object> newMap = new HashMap<String, Object>();Map<String, Object> param = new HashMap<String, Object>();Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();while (it.hasNext()) {Map.Entry<String, Object> entry = it.next();String key = entry.getKey();String newKey = entry.getKey();if (pre.endsWith(".")) {newMap.put(pre + newKey, entry.getValue());} else if (StringUtils.isEmpty(pre)) {newMap.put(newKey, entry.getValue());} else {newMap.put(pre + "." + newKey, entry.getValue());}}params.put("sort", "clicktime");params.put("order", "desc");PageUtils page = wenzhangxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, wenzhangxinxi), params), params));return R.ok().put("data", page);}/*** 协同算法(按收藏推荐)*/@RequestMapping("/autoSort2")public R autoSort2(@RequestParam Map<String, Object> params,WenzhangxinxiEntity wenzhangxinxi, HttpServletRequest request){String userId = request.getSession().getAttribute("userId").toString();String inteltypeColumn = "youpiaofenlei";List<StoreupEntity> storeups = storeupService.selectList(new EntityWrapper<StoreupEntity>().eq("type", 1).eq("userid", userId).eq("tablename", "wenzhangxinxi").orderBy("addtime", false));List<String> inteltypes = new ArrayList<String>();Integer limit = params.get("limit")==null?10:Integer.parseInt(params.get("limit").toString());List<WenzhangxinxiEntity> wenzhangxinxiList = new ArrayList<WenzhangxinxiEntity>();//去重if(storeups!=null && storeups.size()>0) {for(StoreupEntity s : storeups) {wenzhangxinxiList.addAll(wenzhangxinxiService.selectList(new EntityWrapper<WenzhangxinxiEntity>().eq(inteltypeColumn, s.getInteltype())));}}EntityWrapper<WenzhangxinxiEntity> ew = new EntityWrapper<WenzhangxinxiEntity>();params.put("sort", "id");params.put("order", "desc");PageUtils page = wenzhangxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, wenzhangxinxi), params), params));List<WenzhangxinxiEntity> pageList = (List<WenzhangxinxiEntity>)page.getList();if(wenzhangxinxiList.size()<limit) {int toAddNum = (limit-wenzhangxinxiList.size())<=pageList.size()?(limit-wenzhangxinxiList.size()):pageList.size();for(WenzhangxinxiEntity o1 : pageList) {boolean addFlag = true;for(WenzhangxinxiEntity o2 : wenzhangxinxiList) {if(o1.getId().intValue()==o2.getId().intValue()) {addFlag = false;break;}}if(addFlag) {wenzhangxinxiList.add(o1);if(--toAddNum==0) break;}}}page.setList(wenzhangxinxiList);return R.ok().put("data", page);}}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/201200.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【Backbone】TransNeXt:最新ViT模型(原理+常用神经网络汇总)

文章目录 一、近几年神经网络 Backbone 回顾1.Densenet 与 Resnet2.CBP3.SENet4.GCNet5.DANet6.PANet 与 FPN7.ASPP8.SPP-net9.PSP-net10.ECA-Net 二、TransNeXt&#xff08;2023&#xff09;1.提出问题2.Aggregated Pixel-focused Attention2.1 Pixel-focused Attention&#…

Ant Design Vue(v1.7.8)a-table组件的插槽功能

<template slot"unitShow" slot-scope"text, record"> slot"unitShow" 表示插槽名&#xff08;见具名插槽&#xff09; slot-scope"text, record" 表示作用域插槽接收从<a-table>组件传递进来的两个参数&#xff0c;其中…

CentOS8下的JDK安装

一、JDK简介 &#xff08;一&#xff09;JDK、JRE、JVM、JIT 1、JDK&#xff08;Java Development kit&#xff09;&#xff0c;针对Java开发人员的产品&#xff0c;它包括了Java运行环境JRE、Java工具和Java基础类库&#xff0c;是java开发工具包。 java标准版开发工具包&am…

机器连接和工业边缘计算

软件应用和IT创新是制造业投资的主要驱动力。解决方案架构应围绕特定标准进行整合&#xff0c;并采用架构蓝图和最佳实践来满足最终用户的需求。此外&#xff0c;边缘计算&#xff08;Edge Computing&#xff09;也将在制造业中加速部署。 边缘计算是制造业的下一个变革驱动力。…

电商系统重要概念SPU、SKU、基本属性、销售属性

1. 什么是SPU&#xff1f;什么是SKU&#xff1f; SPU 和 SKU 是两个常用于零售和库存管理的术语&#xff0c;它们分别代表了不同的商品分类层次。 SPU&#xff08;Standard Product Unit&#xff0c;标准产品单元&#xff09;&#xff1a;SPU 指的是一种基于其功能或属性进行分…

解决vue ssr服务端渲染运行时报错:net::ERR_PROXY_CONNECTION_FAILED

现象&#xff1a; 从代码里找了半天也没有找到问题&#xff0c;但是由于ssr服务端渲染配置本身非常复杂&#xff0c;步骤又繁琐&#xff0c; 而且报错又很多&#xff0c;不知道哪里出了问题。 感觉是header或者cookie丢失造成的&#xff0c;因为据说ssr本身有这样的缺陷&…

Python---对象的属性添加与获取

1、什么是属性 在Python中&#xff0c;任何一个对象都应该由两部分组成&#xff1a;属性 方法 属性即是特征&#xff0c;比如&#xff1a;人的姓名、年龄、身高、体重…都是对象的属性。 车的品牌、型号、颜色、载重量...都是对象的属性。 对象属性既可以在类外面添加和获…

CCKS2023-面向金融领域的主体事件检测-亚军方案分享

赛题分析 大赛地址 https://tianchi.aliyun.com/competition/entrance/532098/introduction?spma2c22.12281925.0.0.52b97137bpVnmh 任务描述 主体事件检测是语言文本分析和金融领域智能应用的重要任务之一&#xff0c;如在金融风控领域往往会对公司主体进行风险事件的检测…

uniapp的subnvue苹果适配(ios)谷歌地图问题

谷歌地图&#xff0c;google地图&#xff0c;调整宽度。这个适配花了点时间&#xff0c;苹果IOS宽度一直无效失灵&#xff0c;赶紧记录分享&#xff0c;很坑。可能所有的ios的subnvue适配都这样。看了网上很多方法无效&#xff0c;最终找到试出答案。 pages.json的配置宽度无效…

logging 日志完整应用实例

日志文件函数&#xff1a;日志相关设置 logfile.py import logging def logg():# LOG_FORMAT "%(asctime)s - %(levelname)s - %(message)s"LOG_FORMAT "%(asctime)s - %(levelname)s - %(filename)s, line:%(lineno)d - %(message)s" # 带有文件名、行…

Linux使用root用户安装完MySQL软件后,配置MySQL这个普通用户登录

在 Linux 系统中&#xff0c;当您使用 root 用户安装 MySQL 后&#xff0c;系统会自动创建一个名为 mysql 的系统用户。这个 mysql 用户主要用于管理 MySQL 服务的运行&#xff0c;通常是没有登录系统的权限的。如果您希望使这个 mysql 用户能够登录到系统&#xff0c;您需要设…

解决ssr服务端渲染程序启动报错: ReferenceError: location is not defined

现象&#xff1a; 原因&#xff1a;chatgpt给出的解释很到位&#xff1a; 该错误表明代码尝试访问 location 对象&#xff0c;该对象通常在浏览器环境中可用。 然而&#xff0c;你的服务器端代码正在 Node.js 环境中运行&#xff0c;而在这个环境中 location 对象未定义。 问…

【总结】ES 7.x 配置用户名和密码访问(亲测可用)

目录 1.关闭es分片迁移2.修改配置文件,开启x-pack验证3.重启elasticsearch服务4.生成CA授权证书,配置certs5.修改es配置文件,追加以下内容6.再次重启ES每个节点。7.执行设置用户名和密码的命令8.最后放开es分片迁移9.FQA9.1 Postman 访问不了ES9.2 curl 访问不了ES9.3 elast…

踩坑记录:uniapp中scroll-view的scroll-top不生效问题;

情景描述&#xff1a; 最近在uniapp项目中用到scroll-view内置组件&#xff0c;有需求是在页面下拉刷新后&#xff0c;让scroll-view组件区域的显示内容置顶&#xff0c;也就是scroll-view区域的内容恢复不滑动的状态&#xff1b; 补充&#xff1a;下拉刷新操作scroll-view组件…

案例046:基于微信小程序的云上考场

文末获取源码 开发语言&#xff1a;Java 框架&#xff1a;SSM JDK版本&#xff1a;JDK1.8 数据库&#xff1a;mysql 5.7 开发软件&#xff1a;eclipse/myeclipse/idea Maven包&#xff1a;Maven3.5.4 小程序框架&#xff1a;uniapp 小程序开发软件&#xff1a;HBuilder X 小程序…

22.括号生成

​题目来源&#xff1a; leetcode题目&#xff0c;网址&#xff1a;22. 括号生成 - 力扣&#xff08;LeetCode&#xff09; 解题思路&#xff1a; 当只有一对括号时&#xff0c;结果为 "()"&#xff0c;当有 n(n>1) 对括号时&#xff0c;其结果是在 n-1 对括号的…

DNS协议(DNS规范、DNS报文、DNS智能选路)

目录 DNS协议基本概念 DNS相关规范 DNS服务器的记录 DNS报文 DNS域名查询的两种方式 DNS工作过程 DNS智能选路 DNS协议基本概念 DNS的背景 我们知道主机通信需要依靠IP地址&#xff0c;但是每次通过输入对方的IP地址和对端通信不够方便&#xff0c;IP地址不好记忆 因此提…

java实现根据远程url下载文件到浏览器

本文提供 java实现根据远程url下载文件到浏览器片段代码&#xff0c;仅供参考。 可以实现&#xff0c;根据远程url地址下载推送至浏览器下载&#xff0c;这个方法可以解决因前端直接调用远程url下载出现的跨域问题。 /*** 根据远程url下载文件* param url 远程URL* param resp…

pytorch学习5-最大池化层的使用

系列文章目录 pytorch学习1-数据加载以及Tensorboard可视化工具pytorch学习2-Transforms主要方法使用pytorch学习3-torchvisin和Dataloader的使用pytorch学习4-简易卷积实现pytorch学习5-最大池化层的使用pytorch学习6-非线性变换&#xff08;ReLU和sigmoid&#xff09;pytorc…

如何零成本创建微信公众号版的自助查券返利机器人?

如何零成本创建微信公众号版的自助查券返利机器人&#xff1f; 在当今的电商时代&#xff0c;网购已经成为人们日常生活中不可或缺的一部分。然而&#xff0c;寻找商品优惠券和返利却是一件让人头疼的事情。为了解决这个问题&#xff0c;我们可以借助微信公众号和微赚淘客系统…