package cn.com.goldenwater.dcproj.service.impl.audit; import cn.com.goldenwater.dcproj.dao.BisInspOtherRgstrDao; import cn.com.goldenwater.dcproj.model.BisInspOtherRgstr; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; /** * @author lhc * @date 2019/11/16 11:11 */ @Service @Transactional public class OtherUpdateState extends ObjUpdateState { @Autowired BisInspOtherRgstrDao bisInspOtherRgstrDao; @Override public void updatState(String regID, String state, String villType) { BisInspOtherRgstr bisInspOtherRgstr = bisInspOtherRgstrDao.get(regID); bisInspOtherRgstr.setState(state); bisInspOtherRgstrDao.update(bisInspOtherRgstr); } }