3.14优化
This commit is contained in:
@ -4,11 +4,13 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.wgz.bo.req.WgzAppLeaveHistoryListPageReq;
|
||||
import com.ruoyi.wgz.bo.res.WgzAppLeaveHistoryListPageRes;
|
||||
import com.ruoyi.wgz.bo.res.WgzAppUserLeaveDetailsRes;
|
||||
import com.ruoyi.wgz.domain.WgzLeave;
|
||||
import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus;
|
||||
import com.ruoyi.common.core.mybatisplus.cache.MybatisPlusRedisCache;
|
||||
import org.apache.ibatis.annotations.CacheNamespace;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* 请假Mapper接口
|
||||
@ -27,4 +29,22 @@ public interface WgzLeaveMapper extends BaseMapperPlus<WgzLeave> {
|
||||
*/
|
||||
Page<WgzAppLeaveHistoryListPageRes> userLeaveHistoryListPage(@Param("page") Page<WgzAppLeaveHistoryListPageReq> page);
|
||||
|
||||
|
||||
@Select("SELECT\n" +
|
||||
" a.*,\n" +
|
||||
" b.username AS username,\n" +
|
||||
" b.avatar_name AS avatarName,\n" +
|
||||
" c.username AS auditorname,\n" +
|
||||
" c.avatar_name AS auditorHead \n" +
|
||||
"FROM\n" +
|
||||
" wgz_leave a\n" +
|
||||
" LEFT JOIN wgz_user b ON ( a.user_id = b.user_id) \n" +
|
||||
" LEFT JOIN bgt_user c ON ( a.auditor_user_id = c.user_id) \n" +
|
||||
"WHERE\n" +
|
||||
" a.id = #{id} and \n" +
|
||||
" a.del_flag = 0 \n" +
|
||||
"ORDER BY\n" +
|
||||
" a.id DESC")
|
||||
WgzAppUserLeaveDetailsRes userLeaveDetails(@Param("id") Long id);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user