You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
package com.example.demo.serviceImpl;
|
|
|
|
import com.example.demo.domain.vo.GoldDetail;
|
|
import com.example.demo.domain.vo.Total;
|
|
import com.example.demo.mapper.GoldDetailMapper;
|
|
import com.example.demo.service.GoldDetailService;
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageInfo;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @program: GOLD
|
|
* @ClassName GoldDetailServiceImpl
|
|
* @description:
|
|
* @author: huangqizhen
|
|
* @create: 2025−06-23 13:44
|
|
* @Version 1.0
|
|
**/
|
|
@Service
|
|
public class GoldDetailServiceImpl implements GoldDetailService {
|
|
|
|
@Autowired
|
|
private GoldDetailMapper goldDetailMapper;
|
|
@Override
|
|
public PageInfo<GoldDetail> getGoldDetail(Integer pageNum, Integer pageSize, GoldDetail goldDetail) {
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
List<GoldDetail> list= goldDetailMapper.getGoldDetail(goldDetail);
|
|
return new PageInfo<>(list);
|
|
}
|
|
|
|
@Override
|
|
public Total getTotal(GoldDetail goldDetail) {
|
|
|
|
return goldDetailMapper.getTotal(goldDetail);
|
|
}
|
|
}
|