package cn.com.countrygarden.bi.main.service.dup.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.com.countrygarden.bi.main.core.Response;
import cn.com.countrygarden.bi.main.core.Result;
import cn.com.countrygarden.bi.main.dao.dup.CaseFieldMapper;
import cn.com.countrygarden.bi.main.model.AccessToken;
import cn.com.countrygarden.bi.main.model.dup.CaseField;
import cn.com.countrygarden.bi.main.service.dup.ApprovalInfoService;

@Service
@Transactional
public class AprovalInfoServiceImpl implements ApprovalInfoService{
	@Autowired
	private CaseFieldMapper approvalInfoMapper;
	
	@Override
	public Result queryApprovalById(Integer id) {
		return Response.response(approvalInfoMapper.selectByPrimaryKey(id));
	}
	/**
	 * 审批信息的提交
	 */
	@Override
	public Result eidtApproval(CaseField caseField, AccessToken accessToken){
		approvalInfoMapper.updateByPrimaryKeySelective(caseField);
		
		
		return Response.response();
	}

}
