package com.newfiber.api.mobile.dao; import com.newfiber.api.core.base.BaseDao; import com.newfiber.api.mobile.model.domain.PatrolProblemState; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; /** * patrolProblemState model层 * * @author luzhan */ @Repository public interface PatrolProblemStateDao extends BaseDao<PatrolProblemState> { /** * 通过名称和任务编号查询 * @param userName * @param patrolProblemNo * @return */ PatrolProblemState selectByNameAndNo(@Param("userName") String userName, @Param("patrolProblemNo") String patrolProblemNo); int updateByUserNameAndNo(@Param("userName") String userName, @Param("patrolProblemNo") String patrolProblemNo,@Param("state")Integer state); }