src/com/service/JunkService.java

(完整代码) 882B

package com.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Date;
import java.util.Objects;
import com.dao.JunkDao;
import com.entity.Junk;
@Service
public class   JunkService {
 	@Autowired
	private JunkDao junkDao;

	public boolean add(Junk junk)
	{
		return junkDao.insert(junk) > 0;
	}
	public boolean edit(Junk junk)
	{
		return junkDao.updateByPrimaryKeySelective(junk) > 0;
	}
	public List<Junk> getList(String where,int page, int size) 
	{
		return junkDao.getList(where,size*(page-1), size);
	}
	public boolean delete(int id) 
	{
		return junkDao.deleteByPrimaryKey(id) > 0;
	}
	public int getTotal(String where)
	{
 		return junkDao.getTotal(where);
	}
	public Junk junkbyid(int id) 
	{
		return junkDao.junkbyid(id);
	}
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。