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

121 lines
2.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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 com.zcloud.util.DateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
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);
}
@Override
public List<PageData> getPUNISHlist(Page page) throws Exception {
return outsourcedMapper.getPUNISHlistPage(page);
}
@Override
public PageData jieshuOutSourced(PageData pd) {
return outsourcedMapper.jieshuOutSourced(pd);
}
@Override
public void updateState(PageData pd) {
pd.put("OPERATTIME", DateUtil.date2Str(new Date()));
outsourcedMapper.updateState(pd);
}
@Override
public List<PageData> listHiddenOutsourced(Page page) throws Exception {
return outsourcedMapper.hiddenOutsourcedlistPage(page);
}
@Override
public List<PageData> outSouceslistPage(Page page) throws Exception {
return outsourcedMapper.outSouceslistPage(page);
}
}