package cn.com.goldenwater.dcproj.service.impl.audit; import cn.com.goldenwater.dcproj.dao.BisInspFscRgstrDao; import cn.com.goldenwater.dcproj.model.BisInspFscRgstr; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; /** * Created by lhc on 2019/11/1 14:08 */ @Service @Transactional public class FscRegUpdateState extends ObjUpdateState { @Autowired private BisInspFscRgstrDao bisInspFscRgstrDao; @Override public void updatState(String regID, String state, String villType) { BisInspFscRgstr bisInspFscRgstr = bisInspFscRgstrDao.get(regID); bisInspFscRgstr.setState(state); bisInspFscRgstrDao.update(bisInspFscRgstr); } }