package com.goldenwater.hzz.service;
import com.goldenwater.hzz.domain.SupervisionInfoDTO;
import com.goldenwater.hzz.mapper.SupervisionMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class SupervisionService {
    @Autowired private SupervisionMapper mapper;
    public List<SupervisionInfoDTO> getSupervisionList(int p, int s) { PageHelper.startPage(p,s); return mapper.getSupervisionList(); }
    public List<SupervisionInfoDTO> getAttachmentByGuid(String g) { return mapper.getAttachmentByGuid(g); }
    public List<SupervisionInfoDTO> getDivisionByGuid(String g) { return mapper.getDivisionByGuid(g); }
    public List<SupervisionInfoDTO> getResultByGuid(String g) { return mapper.getResultByGuid(g); }
    public int audit(String g, String a, String ai) { return mapper.audit(g,a,ai); }
}
