package com.chenyang.nse.bussiness.service.core.api.impl;

import com.chenyang.nse.bussiness.dao.table.core.api.AccountabilityAPIDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.duty.DutyTableInfo;
import com.chenyang.nse.bussiness.entity.vo.api.AccountabilityVO;
import com.chenyang.nse.bussiness.service.core.api.AccountabilityAPIService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccountabilityAPIServiceImpl implements AccountabilityAPIService {
   @Autowired
   private AccountabilityAPIDao accountabilityAPIDao;

   public List<AccountabilityVO> selectAccountabilityInfo(DutyTableInfo obj) {
      return obj.getProjectid() == null ? this.accountabilityAPIDao.selectAccountabilityInfo(obj.getDatasystemid()) : this.accountabilityAPIDao.selectAccountabilityInfo(obj.getProjectid(), obj.getDatasystemid(), obj.getId());
   }
}
