package com.moon.server.mapper.show;
|
|
import com.moon.server.entity.show.ApplyEntity;
|
import com.moon.server.entity.show.FlowEntity;
|
import com.moon.server.entity.sys.UserEntity;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.springframework.stereotype.Repository;
|
|
import java.sql.Timestamp;
|
import java.util.List;
|
|
@Mapper
|
@Repository
|
@SuppressWarnings("ALL")
|
public interface ApplyMapper {
|
public Integer selectCount(String uname, Integer status, Timestamp start, Timestamp end);
|
|
public List<ApplyEntity> selectByPage(Integer userid, String uname, Integer status, Timestamp start, Timestamp end, Integer limit, Integer offset);
|
|
public List<ApplyEntity> selectAll();
|
|
public ApplyEntity selectById(int id);
|
|
public UserEntity selectUserByDepcode(String depcode);
|
|
public Integer selectSubmits(Integer userid);
|
|
public List<FlowEntity> selectFlows(Integer applyid);
|
|
public Integer insert(ApplyEntity entity);
|
|
public Integer inserts(List<ApplyEntity> list);
|
|
public Integer delete(int id);
|
|
public Integer deletes(List<Integer> ids);
|
|
public Integer update(ApplyEntity entity);
|
|
public Integer updates(List<ApplyEntity> list);
|
|
public Integer updateForDiscard(Integer userid, Integer id);
|
|
public Integer updateForResubmit(Integer userid, Integer id);
|
|
public Integer updateForSubmit(Integer userid, Integer applyid, Integer flowId);
|
|
public Integer updateForReject(Integer userid, Integer applyid, Integer flowId);
|
}
|