Newer
Older
huludao / src / main / java / com / newfiber / api / pc / service / PatrolManageUserStateService.java
package com.newfiber.api.pc.service;

import com.baomidou.mybatisplus.service.IService;
import com.github.pagehelper.PageInfo;
import com.newfiber.api.pc.model.River.PatrolManageProcess;
import com.newfiber.api.pc.model.River.PatrolManageUserState;

/**
 * patrolManageUser 业务层
 *
 * @author luzhan
 * @date 2021-07-15
 */
public interface PatrolManageUserStateService extends IService<PatrolManageUserState> {

    /**
    * patrolManageUser 分页列表
    * @param searchStr
    * @param pageNo
    * @param pageSize
    * @return
    */
    PageInfo<PatrolManageUserState> listForPage(String searchStr, Integer pageNo, Integer pageSize);

    /**
     * 添加或保存
     * @param userNo
     * @param state
     * @return
     */
    int insertOrupdateByName(PatrolManageProcess process, String userNo, Integer state);

    /**
     * 删除任务用户的状态
     * @param id
     * @param patrolType
     * @param userNo
     * @return
     */
    int deleteStateByName(Long id, Integer patrolType, String userNo);

    /**
     * 添加或编辑任务状态
     * @param id
     * @param patrolType
     * @param operatorNo
     * @param i
     */
    void addOrUpdateUserState(Long id, Integer patrolType, String operatorNo, int i);

    /**
     * 修稿任务用户的操作状态
     * @param
     * @param id
     * @param patrolType
     * @return
     */
    int updateByProblemId(Long id, Integer patrolType);

}