parent
1f9bbe96bc
commit
7e6b38c828
12 changed files with 113 additions and 30 deletions
@ -0,0 +1,13 @@ |
|||||||
|
package com.huoran.iasf.common.exception; |
||||||
|
|
||||||
|
import com.huoran.iasf.common.exception.code.BaseResponseCode; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.Getter; |
||||||
|
import lombok.NoArgsConstructor; |
||||||
|
|
||||||
|
@Getter |
||||||
|
@NoArgsConstructor |
||||||
|
@AllArgsConstructor |
||||||
|
public class UnauthorizedException extends RuntimeException { |
||||||
|
private BaseResponseCode baseResponseCode; |
||||||
|
} |
@ -0,0 +1,49 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="com.huoran.iasf.mapper.SysFilesMapper"> |
||||||
|
|
||||||
|
<select id="fileList" resultType="com.huoran.iasf.entity.SysFilesEntity" |
||||||
|
parameterType="com.huoran.iasf.entity.SysFilesEntity"> |
||||||
|
SELECT |
||||||
|
f.id, |
||||||
|
f.url, |
||||||
|
f.file_name, |
||||||
|
f.format, |
||||||
|
f.file_path, |
||||||
|
f.file_size, |
||||||
|
f.type, |
||||||
|
f.deleted, |
||||||
|
f.quote, |
||||||
|
f.site, |
||||||
|
f.is_release, |
||||||
|
f.is_del, |
||||||
|
f.quote_id, |
||||||
|
f.quote_type, |
||||||
|
f.create_date, |
||||||
|
u.real_name AS uploader |
||||||
|
FROM |
||||||
|
sys_files f |
||||||
|
LEFT JOIN sys_user u ON f.uploader = u.id |
||||||
|
WHERE |
||||||
|
|
||||||
|
AND f.site = 1 |
||||||
|
AND f.deleted = 1 |
||||||
|
AND f.is_release = 1 |
||||||
|
AND f.is_del = 0 |
||||||
|
and f.quote is not null |
||||||
|
<if test="req.type != '' and req.type != null"> |
||||||
|
AND f.type = #{req.type} |
||||||
|
</if> |
||||||
|
<if test="req.fileName != '' and req.fileName != null"> |
||||||
|
AND f.file_name LIKE '%' #{req.fileName} '%' |
||||||
|
</if> |
||||||
|
<if test="req.uploader != '' and req.uploader != null"> |
||||||
|
AND u.real_name LIKE '%' #{req.uploader} '%' |
||||||
|
</if> |
||||||
|
<if test="req.quote != '' and req.quote != null"> |
||||||
|
AND f.quote LIKE '%' #{req.quote} '%' |
||||||
|
</if> |
||||||
|
ORDER BY |
||||||
|
f.create_date DESC |
||||||
|
</select> |
||||||
|
</mapper> |
Loading…
Reference in new issue