package cn.com.goldenwater.dcproj.service.impl.audit; import cn.com.goldenwater.dcproj.dao.BisInspWiuRgstrDao; import cn.com.goldenwater.dcproj.model.BisInspWiuRgstr; 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:28 */ @Service @Transactional public class WiuRegUpdateState extends ObjUpdateState { @Autowired BisInspWiuRgstrDao bisInspWiuRgstrDao; @Override public void updatState(String regID, String state, String villType) { BisInspWiuRgstr bisInspWiuRgstr = bisInspWiuRgstrDao.get(regID); bisInspWiuRgstr.setState(state); bisInspWiuRgstrDao.update(bisInspWiuRgstr); } }