基于ssm vue前后端分离流浪动物救助平台源码和论文

21世纪的今天,随着社会的不断发展与进步,人们对于信息科学化的认识,已由低层次向高层次发展,由原来的感性认识向理性认识提高,管理工作的重要性已逐渐被人们所认识,科学化的管理,使信息存储达到准确、快速、完善,并能提高工作管理效率,促进其发展。

本流浪动物救助及领养管理系统以SSM作为框架,VUE技术,B/S模式以及MySql作为后台运行的数据库。本系统主要包括以下功能模块:宠物商店、宠物领养、宠物挂失、论坛信息、宠物资讯、 个人中心、 购物车、 客服等模块,通过这些模块的实现能够基本满足日常流浪动物救助及领养管理系统的操作。本文着重阐述了流浪动物救助及领养管理系统的分析、设计与实现,首先介绍开发系统和环境配置、数据库的设计,接着说明功能模块的详细实现,最后进行了总结。

关键词:流浪动物救助平台; SSM框架;MySql;VUE技术

【696】基于ssm vue前后端分离流浪动物救助平台源码和论文含代码讲解视频

ABSTRACT

Today in the 21st century, with the continuous development and progress of society, people's understanding of information science has developed from a low level to a high level, from the original perceptual knowledge to rational knowledge. The importance of management has gradually been recognized by people. Scientific management makes information storage accurate, fast and perfect, and can improve the efficiency of work management and promote its development.

This stray animal rescue and adoption management system takes SSM as the framework, VUE technology, B/S mode and MySql as the database running in the background. The system mainly includes the following functional modules: pet shop, pet adoption, pet loss reporting, forum information, pet information, personal center, shopping cart, customer service and other modules. The implementation of these modules can basically meet the operation of the daily stray animal rescue and adoption management system. This paper focuses on the analysis, design and implementation of the stray animal rescue and adoption management system. First, it introduces the development system, environmental configuration, and database design. Then it describes the detailed implementation of the functional modules. Finally, it summarizes.

Keywords: stray animal rescue platform; SSM framework; MySql; VUE technology
 

在程序运行当中每一个数据库它都是区分开的,我们想要哪部分的数据就选择相应的选项,然后相应的数据就会以表格的形式展现出来,本系统采用了MYSQL数据库作为该系统的数据存储一下是本宠物管理系统中数据库的详细信息内容。各个表的设计结果如下。

  1. 用户领养表yonghulingyang

用于保存用户领养的相关基本信息,如表4.1所示。

序号

列名

数据类型

长度

不为空

注释

1

id

bigint

20

True

主键

2

addtime

timestamp

0

True

创建时间

3

lingyangbiaoti

varchar

200

True

领养标题

4

chongwumingcheng

varchar

200

False

宠物名称

5

fenlei

varchar

200

False

分类

6

chongwuzhuangtai

varchar

200

False

宠物状态

7

tupian

varchar

200

False

图片

8

nianling

varchar

200

False

年龄

9

lingyangfeiyong

varchar

200

False

领养费用

10

shenqingneirong

longtext

0

True

申请内容

11

shenqingriqi

date

0

False

申请日期

12

shenqingbeizhu

varchar

200

False

申请备注

13

yonghuming

varchar

200

False

用户名

14

shouji

varchar

200

False

手机

15

sfsh

varchar

200

False

是否审核

16

shhf

longtext

0

False

审核回复

17

ispay

varchar

200

False

是否支付

(2)用户信息表(yonghu)

用于保存用户的相关基本信息,如表4.2所示。

序号

列名

数据类型

长度

不为空

注释

1

id

bigint

20

True

主键

2

addtime

timestamp

0

True

创建时间

3

yonghuming

varchar

200

True

用户名

4

mima

varchar

200

True

密码

5

xingming

varchar

200

True

姓名

6

xingbie

varchar

200

False

性别

7

touxiang

varchar

200

False

头像

8

shouji

varchar

200

False

手机

9

money

float

0

False

余额

(3)论坛信息表(forum)

用于保存资讯论坛的相关基本信息,如表4.3所示。

序号

列名

数据类型

长度

不为空

注释

1

id

bigint

20

True

主键

2

addtime

timestamp

0

True

创建时间

3

title

varchar

200

False

帖子标题

4

content

longtext

0

True

帖子内容

5

parentid

bigint

20

False

父节点id

(4)宠物用品表(chongwuyongpin)

表(emp_health)用于保存疫情防控宠物用品的相关基本信息,如表4.4所示。

序号

列名

数据类型

长度

不为空

注释

1

id

bigint

20

True

主键

2

addtime

timestamp

0

True

创建时间

3

shangpinmingcheng

varchar

200

True

商品名称

4

fenlei

varchar

200

False

分类

5

tupian

varchar

200

False

图片

6

guige

varchar

200

False

规格

7

pinpai

varchar

200

False

品牌

8

baozhiqi

varchar

200

False

保质期

9

shangpinxiangqing

longtext

0

False

商品详情

10

shengchanriqi

date

0

False

生产日期

11

clicktime

datetime

0

False

最近点击时间

12

clicknum

int

11

False

点击次数

13

price

float

0

True

价格

(5)宠物商店信息表()

用于保存用户请假的相关基本信息,如表4.5所示。

序号

列名

数据类型

长度

不为空

注释

1

id

bigint

20

True

主键

2

addtime

timestamp

0

True

创建时间

3

shangdianbianhao

varchar

200

True

商店编号

4

shangdianmingcheng

varchar

200

True

商店名称

5

tupian

varchar

200

False

图片

6

jingyingfanwei

varchar

200

False

经营范围

7

lianxiren

varchar

200

False

联系人

8

lianxidianhua

varchar

200

False

联系电话

9

shangdiandizhi

varchar

200

False

商店地址

10

shangdianjieshao

longtext

0

False

商店介绍

(6)宠物领养信息表(chongwulingyang)

用于保存宠物领养的相关基本信息,如表4.6所示。

序号

列名

数据类型

长度

不为空

注释

1

id

bigint

20

True

主键

2

addtime

timestamp

0

True

创建时间

3

chongwumingcheng

varchar

200

True

宠物名称

4

fenlei

varchar

200

True

分类

5

tupian

varchar

200

False

图片

6

zhonglei

varchar

200

True

种类

7

nianling

varchar

200

False

年龄

8

xingbie

varchar

200

False

性别

9

xingqing

varchar

200

False

性情

10

chongwuzhuangtai

varchar

200

False

宠物状态

11

yimiaoqingkuang

varchar

200

False

疫苗情况

12

lingyangfeiyong

int

11

True

领养费用

(7)宠物寄存表(chongwujicun)

用于保存宠物寄存的相关基本信息,如表4.7所示:

序号

列名

数据类型

长度

不为空

注释

1

id

bigint

20

True

主键

2

addtime

timestamp

0

True

创建时间

3

jicunbiaoti

varchar

200

True

寄存标题

4

chongwumingcheng

varchar

200

True

宠物名称

5

fenlei

varchar

200

False

分类

6

tupian

varchar

200

False

图片

7

xingbie

varchar

200

False

性别

8

nianling

varchar

200

False

年龄

9

jicunneirong

longtext

0

False

寄存内容

10

shangdianbianhao

varchar

200

False

商店编号

11

shangdianmingcheng

varchar

200

False

商店名称

12

lianxidianhua

varchar

200

False

联系电话

13

jicunriqi

date

0

False

寄存日期

14

beizhu

varchar

200

False

备注

15

yonghuming

varchar

200

False

用户名

16

shouji

varchar

200

False

手机

17

sfsh

varchar

200

False

是否审核

18

shhf

longtext

0

False

审核回复

 

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 com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
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.YonghuEntity;
import com.entity.view.YonghuView;

import com.service.YonghuService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 用户
 * 后端接口
 * @author 
 * @email 
 * @date 201-16 09:02:05
 */
@RestController
@RequestMapping("/yonghu")
public class YonghuController {
    @Autowired
    private YonghuService yonghuService;
    
	@Autowired
	private TokenService tokenService;
	
	/**
	 * 登录
	 */
	@IgnoreAuth
	@RequestMapping(value = "/login")
	public R login(String username, String password, String captcha, HttpServletRequest request) {
		YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", username));
		if(user==null || !user.getMima().equals(password)) {
			return R.error("账号或密码不正确");
		}
		String token = tokenService.generateToken(user.getId(), username,"yonghu",  "用户" );
		return R.ok().put("token", token);
	}
	
	/**
     * 注册
     */
	@IgnoreAuth
    @RequestMapping("/register")
    public R register(@RequestBody YonghuEntity yonghu){
    	//ValidatorUtils.validateEntity(yonghu);
    	YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", yonghu.getYonghuming()));
		if(user!=null) {
			return R.error("注册用户已存在");
		}
		Long uId = new Date().getTime();
		yonghu.setId(uId);
        yonghuService.insert(yonghu);
        return R.ok();
    }
	
	/**
	 * 退出
	 */
	@RequestMapping("/logout")
	public R logout(HttpServletRequest request) {
		request.getSession().invalidate();
		return R.ok("退出成功");
	}
	
	/**
     * 获取用户的session用户信息
     */
    @RequestMapping("/session")
    public R getCurrUser(HttpServletRequest request){
    	Long id = (Long)request.getSession().getAttribute("userId");
        YonghuEntity user = yonghuService.selectById(id);
        return R.ok().put("data", user);
    }
    
    /**
     * 密码重置
     */
    @IgnoreAuth
	@RequestMapping(value = "/resetPass")
    public R resetPass(String username, HttpServletRequest request){
    	YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", username));
    	if(user==null) {
    		return R.error("账号不存在");
    	}
    	user.setMima("123456");
        yonghuService.updateById(user);
        return R.ok("密码已重置为:123456");
    }


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,YonghuEntity yonghu, HttpServletRequest request){

        EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
		PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,YonghuEntity yonghu, HttpServletRequest request){
        EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
		PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( YonghuEntity yonghu){
       	EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
      	ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu")); 
        return R.ok().put("data", yonghuService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(YonghuEntity yonghu){
        EntityWrapper< YonghuEntity> ew = new EntityWrapper< YonghuEntity>();
 		ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu")); 
		YonghuView yonghuView =  yonghuService.selectView(ew);
		return R.ok("查询用户成功").put("data", yonghuView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        YonghuEntity yonghu = yonghuService.selectById(id);
        return R.ok().put("data", yonghu);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        YonghuEntity yonghu = yonghuService.selectById(id);
        return R.ok().put("data", yonghu);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
    	yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(yonghu);
    	YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", yonghu.getYonghuming()));
		if(user!=null) {
			return R.error("用户已存在");
		}

		yonghu.setId(new Date().getTime());
        yonghuService.insert(yonghu);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
    	yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(yonghu);
    	YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", yonghu.getYonghuming()));
		if(user!=null) {
			return R.error("用户已存在");
		}

		yonghu.setId(new Date().getTime());
        yonghuService.insert(yonghu);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
        //ValidatorUtils.validateEntity(yonghu);
        yonghuService.updateById(yonghu);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        yonghuService.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<YonghuEntity> wrapper = new EntityWrapper<YonghuEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}


		int count = yonghuService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	


}
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 com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
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.ChongwuyongpinEntity;
import com.entity.view.ChongwuyongpinView;

import com.service.ChongwuyongpinService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 宠物用品
 * 后端接口
 * @author 
 * @email 
 * @date 201-16 09:02:05
 */
@RestController
@RequestMapping("/chongwuyongpin")
public class ChongwuyongpinController {
    @Autowired
    private ChongwuyongpinService chongwuyongpinService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,ChongwuyongpinEntity chongwuyongpin, HttpServletRequest request){

        EntityWrapper<ChongwuyongpinEntity> ew = new EntityWrapper<ChongwuyongpinEntity>();
		PageUtils page = chongwuyongpinService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chongwuyongpin), params), params));
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,ChongwuyongpinEntity chongwuyongpin, HttpServletRequest request){
        EntityWrapper<ChongwuyongpinEntity> ew = new EntityWrapper<ChongwuyongpinEntity>();
		PageUtils page = chongwuyongpinService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chongwuyongpin), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( ChongwuyongpinEntity chongwuyongpin){
       	EntityWrapper<ChongwuyongpinEntity> ew = new EntityWrapper<ChongwuyongpinEntity>();
      	ew.allEq(MPUtil.allEQMapPre( chongwuyongpin, "chongwuyongpin")); 
        return R.ok().put("data", chongwuyongpinService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(ChongwuyongpinEntity chongwuyongpin){
        EntityWrapper< ChongwuyongpinEntity> ew = new EntityWrapper< ChongwuyongpinEntity>();
 		ew.allEq(MPUtil.allEQMapPre( chongwuyongpin, "chongwuyongpin")); 
		ChongwuyongpinView chongwuyongpinView =  chongwuyongpinService.selectView(ew);
		return R.ok("查询宠物用品成功").put("data", chongwuyongpinView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        ChongwuyongpinEntity chongwuyongpin = chongwuyongpinService.selectById(id);
		chongwuyongpin.setClicknum(chongwuyongpin.getClicknum()+1);
		chongwuyongpin.setClicktime(new Date());
		chongwuyongpinService.updateById(chongwuyongpin);
        return R.ok().put("data", chongwuyongpin);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        ChongwuyongpinEntity chongwuyongpin = chongwuyongpinService.selectById(id);
		chongwuyongpin.setClicknum(chongwuyongpin.getClicknum()+1);
		chongwuyongpin.setClicktime(new Date());
		chongwuyongpinService.updateById(chongwuyongpin);
        return R.ok().put("data", chongwuyongpin);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody ChongwuyongpinEntity chongwuyongpin, HttpServletRequest request){
    	chongwuyongpin.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(chongwuyongpin);

        chongwuyongpinService.insert(chongwuyongpin);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody ChongwuyongpinEntity chongwuyongpin, HttpServletRequest request){
    	chongwuyongpin.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(chongwuyongpin);

        chongwuyongpinService.insert(chongwuyongpin);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody ChongwuyongpinEntity chongwuyongpin, HttpServletRequest request){
        //ValidatorUtils.validateEntity(chongwuyongpin);
        chongwuyongpinService.updateById(chongwuyongpin);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        chongwuyongpinService.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<ChongwuyongpinEntity> wrapper = new EntityWrapper<ChongwuyongpinEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}


		int count = chongwuyongpinService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	
	/**
     * 前端智能排序
     */
	@IgnoreAuth
    @RequestMapping("/autoSort")
    public R autoSort(@RequestParam Map<String, Object> params,ChongwuyongpinEntity chongwuyongpin, HttpServletRequest request,String pre){
        EntityWrapper<ChongwuyongpinEntity> ew = new EntityWrapper<ChongwuyongpinEntity>();
        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", "clicknum");
        
        params.put("order", "desc");
		PageUtils page = chongwuyongpinService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chongwuyongpin), params), params));
        return R.ok().put("data", page);
    }


}

  • 9
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序猿毕业分享网

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值