qa-prevention-gwj/src/main/java/com/zcloud/service/keyProjects/impl/OutSourcedServiceImpl.java

94 lines
1.9 KiB
Java
Raw Normal View History

2023-11-07 09:32:12 +08:00
package com.zcloud.service.keyProjects.impl;
import com.zcloud.entity.Page;
import com.zcloud.entity.PageData;
import com.zcloud.mapper.dsno2.keyProjects.OutSourcedMapper;
import com.zcloud.service.keyProjects.OutSourcedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
*
* luoxiaobao
* 2022-06-14
* www.zcloudchina.com
*/
@Service
@Transactional //开启事物
public class OutSourcedServiceImpl implements OutSourcedService {
@Autowired
private OutSourcedMapper outsourcedMapper;
/**
* @param pd
* @throws Exception
*/
public void save(PageData pd)throws Exception{
outsourcedMapper.save(pd);
}
/**
* @param pd
* @throws Exception
*/
public void delete(PageData pd)throws Exception{
outsourcedMapper.delete(pd);
}
/**
* @param pd
* @throws Exception
*/
public void edit(PageData pd)throws Exception{
outsourcedMapper.edit(pd);
}
/**
* @param page
* @throws Exception
*/
public List<PageData> list(Page page)throws Exception{
return outsourcedMapper.datalistPage(page);
}
/**()
* @param pd
* @throws Exception
*/
public List<PageData> listAll(PageData pd)throws Exception{
return outsourcedMapper.listAll(pd);
}
/**id
* @param pd
* @throws Exception
*/
public PageData findById(PageData pd)throws Exception{
return outsourcedMapper.findById(pd);
}
/**
* @param ArrayDATA_IDS
* @throws Exception
*/
public void deleteAll(String[] ArrayDATA_IDS)throws Exception{
outsourcedMapper.deleteAll(ArrayDATA_IDS);
}
@Override
public String getDeptId(String userId) {
return outsourcedMapper.getDeptId(userId);
}
@Override
public void jie(PageData pd) throws Exception {
outsourcedMapper.jie(pd);
}
}