Newer
Older
huludao / src / main / java / com / newfiber / api / mobile / dao / PatrolProblemStateDao.java
@新烽开发者 新烽开发者 on 22 Jul 794 bytes init
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);
}