1. notice module
This commit is contained in:
2026-02-12 14:41:17 +08:00
parent 7f941fab86
commit b92b1eaf2c
3 changed files with 17 additions and 8 deletions

View File

@@ -48,6 +48,8 @@ public class CommonUserNoticeApiVO implements Serializable {
*/
private String title;
private String content;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;

View File

@@ -27,6 +27,13 @@ public interface AppCommonConvert {
List<AppCommonRegionsInfoVO> convertRegionsInfoListVO(List<CommonRegionsInfoEntity> list);
@Mapping(target = "id", ignore = true)
@Mapping(target = "createTime", ignore = true)
@Mapping(target = "createUser", ignore = true)
@Mapping(target = "createDept", ignore = true)
@Mapping(target = "updateTime", ignore = true)
@Mapping(target = "updateUser", ignore = true)
@Mapping(target = "status", ignore = true)
@Mapping(target = "isDeleted", ignore = true)
@Mapping(target = "consigneePhone", source = "request.consigneePhone")
@Mapping(target = "consignee", source = "request.consignee")
@Mapping(target = "itemCode", source = "request.itemCode")

View File

@@ -26,16 +26,16 @@
select * from user_notice where is_deleted = 0
</select>
<select id="selectAppSystemNoticeVOList" resultType="org.springblade.modules.common.pojo.vo.CommonUserNoticeVO">
select id, module_type, has_read, title, create_time
<select id="selectAppSystemNoticeVOList" resultType="org.springblade.modules.api.vo.CommonUserNoticeApiVO">
select id, module_type, has_read, title, content, create_time
from user_notice
where notice_type in (0, 1)
and is_deleted = 0
order by create_time desc
</select>
<select id="selectAppUserNoticeApiPage" resultType="org.springblade.modules.common.pojo.vo.CommonUserNoticeVO">
select id, module_type, has_read, title, create_time
<select id="selectAppUserNoticeApiPage" resultType="org.springblade.modules.api.vo.CommonUserNoticeApiVO">
select id, module_type, has_read, title, content, create_time
from user_notice
where user_id = #{userId}
and notice_type = 3
@@ -43,16 +43,16 @@
order by has_read asc, create_time desc
</select>
<select id="selectMarketSystemNoticeVOList" resultType="org.springblade.modules.common.pojo.vo.CommonUserNoticeVO">
select id, module_type, has_read, title, create_time
<select id="selectMarketSystemNoticeVOList" resultType="org.springblade.modules.api.vo.CommonUserNoticeApiVO">
select id, module_type, has_read, title, content, create_time
from user_notice
where notice_type in (0, 2)
and is_deleted = 0
order by create_time desc
</select>
<select id="selectMarketUserNoticeApiPage" resultType="org.springblade.modules.common.pojo.vo.CommonUserNoticeVO">
select id, module_type, has_read, title, create_time
<select id="selectMarketUserNoticeApiPage" resultType="org.springblade.modules.api.vo.CommonUserNoticeApiVO">
select id, module_type, has_read, title, content, create_time
from user_notice
where user_id = #{userId}
and notice_type = 4