mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 23:11:24 +08:00
Add affair management
This commit is contained in:
@@ -13,4 +13,10 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
*/
|
||||
public interface IAffairService extends IService<Affair> {
|
||||
|
||||
int insertAffair(Affair affair);
|
||||
int updateAffair_Yes(Affair affair);
|
||||
int updateAffair_No(Affair affair);
|
||||
|
||||
|
||||
int deleteAffair_ApprovedByID(Affair affair);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.cfive.pinnacle.entity.Affair;
|
||||
import com.cfive.pinnacle.mapper.AffairMapper;
|
||||
import com.cfive.pinnacle.service.IAffairService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
@@ -17,4 +18,26 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class AffairServiceImpl extends ServiceImpl<AffairMapper, Affair> implements IAffairService {
|
||||
|
||||
@Autowired
|
||||
private AffairMapper affairMapper;
|
||||
|
||||
@Override
|
||||
public int insertAffair(Affair affair) {
|
||||
return affairMapper.insertAffair(affair);
|
||||
}
|
||||
|
||||
public int updateAffair_Yes(Affair affair) {
|
||||
return affairMapper.updateAffairs_Yes(affair);
|
||||
}
|
||||
|
||||
public int updateAffair_No(Affair affair) {
|
||||
return affairMapper.updateAffairs_NO(affair);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteAffair_ApprovedByID(Affair affair) {
|
||||
return affairMapper.deleteAffairs(affair);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user