package market.Lms.FixedAssets.impl;

import market.Lms.FixedAssets.mapper.LmsFixedAssetsChangeInfoMapper;
import market.Lms.FixedAssets.service.LmsFixedAssetsChangeInfoService;
import market.Lms.FixedAssets.vo.LmsFixedAssetsChangeInfo;

import com.hnshituo.basic.service.impl.BaseServiceImpl;
import com.hnshituo.basic.spring.remoting.annotation.RemoteService;

@RemoteService(path="LmsFixedAssetsChangeInfo")
public class LmsFixedAssetsChangeInfoServiceImpl extends BaseServiceImpl<LmsFixedAssetsChangeInfo,Object> implements LmsFixedAssetsChangeInfoService{

	//新增
	public String doAdd(LmsFixedAssetsChangeInfo change){
		String id = change.getChange_no();
		this.getMapper(LmsFixedAssetsChangeInfoMapper.class).insert(change);
		return id;
	}

	//删除
	public void doDelete(LmsFixedAssetsChangeInfo change){
		this.getMapper(LmsFixedAssetsChangeInfoMapper.class).delete(change.getChange_no());
	}

	//修改
	public void doUpdate(LmsFixedAssetsChangeInfo change){
		this.getMapper(LmsFixedAssetsChangeInfoMapper.class).update(change);
	}

	//查询
	public LmsFixedAssetsChangeInfo doQuery(String changeNo){
		LmsFixedAssetsChangeInfo change = new LmsFixedAssetsChangeInfo();
		change = this.getMapper(LmsFixedAssetsChangeInfoMapper.class).findById(changeNo);
		return change;
	}
}
