package cn.com.goldenwater.dcproj.service.impl.audit; import cn.com.goldenwater.dcproj.dao.BisInspSecsurveyVlgDao; import cn.com.goldenwater.dcproj.model.BisInspSecsurveyVlg; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; /** * @author lhc * @date 2019/11/14 15:08 */ @Service @Transactional public class VillUpdateState extends ObjUpdateState { @Autowired BisInspSecsurveyVlgDao bisInspSecsurveyVlgDao; @Override public void updatState(String regID, String state, String villType) { BisInspSecsurveyVlg bisInspSecsurveyVlg = bisInspSecsurveyVlgDao.get(regID); bisInspSecsurveyVlg.setStatus(state); bisInspSecsurveyVlgDao.update(bisInspSecsurveyVlg); } }