-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
liuyudong
committed
Aug 8, 2023
1 parent
58f179c
commit 0e45336
Showing
17 changed files
with
234 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...-attachment/src/main/java/com/simple/keen/attachment/controller/AttachmentController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
keen-attachment/src/main/java/com/simple/keen/attachment/mapper/AttachmentStorageMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,10 @@ | ||
package com.simple.keen.attachment.mapper; | ||
|
||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
import com.simple.keen.attachment.model.dto.AttachmentInfoDTO; | ||
import com.simple.keen.attachment.model.entity.AttachmentStorage; | ||
import com.simple.keen.attachment.model.query.AttachmentQuery; | ||
import java.util.List; | ||
import org.apache.ibatis.annotations.Mapper; | ||
import org.apache.ibatis.annotations.Select; | ||
|
||
@Mapper | ||
public interface AttachmentStorageMapper extends BaseMapper<AttachmentStorage> { | ||
|
||
@Select("<script> " | ||
+ "select * from (" | ||
+ "select " | ||
+ "a.*, b.nickname 'fromName', c.nickname 'toName' " | ||
+ "from " | ||
+ "t_message_chat a " | ||
+ "left join t_user b on a.from_id = b.id " | ||
+ "left join t_user c on a.to_id = c.id " | ||
+ ")a" | ||
+ "<where>" | ||
+ "<if test=\"fromName != null and fromName != ''\">" | ||
+ "and fromName like concat('%', #{fromName}, '%') " | ||
+ "</if>" | ||
+ "</where>" | ||
+ "</script>") | ||
List<AttachmentInfoDTO> selectAttachmentList(AttachmentQuery attachmentQuery); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...nt/src/main/java/com/simple/keen/attachment/model/enums/AttachmentUploadPlatformType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.simple.keen.attachment.model.enums; | ||
|
||
import com.simple.keen.common.base.enums.ValueEnum; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* 附件上传平台类型 | ||
* | ||
* @author SinceNovember | ||
* @date 2023/08/07 | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
public enum AttachmentUploadPlatformType implements ValueEnum<Integer> { | ||
|
||
DATABASE(1, "数据库存储"), | ||
ALIYUN(2, "阿里云存储"); | ||
|
||
private final Integer code; | ||
private final String msg; | ||
|
||
|
||
@Override | ||
public Integer getValue() { | ||
return code; | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
keen-attachment/src/main/java/com/simple/keen/attachment/model/query/AttachmentQuery.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.