Please enter the commit message for your changes. Lines starting
with '#' will be ignored, and an empty message aborts the commit. On branch develop Your branch is ahead of 'goflyapp/develop' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: zlt-business/order-center/src/main/java/com/central/order/controller/OrderController.java modified: zlt-business/order-center/src/main/java/com/central/order/enums/MessageTemplateEnum.java modified: zlt-business/order-center/src/main/java/com/central/order/enums/OrderStatusChangeEnum.java modified: zlt-business/order-center/src/main/java/com/central/order/event/OrderStatusChangeEvent.java modified: zlt-business/order-center/src/main/java/com/central/order/listener/OrderStatusChangeListener.java modified: zlt-business/order-center/src/main/java/com/central/order/mapper/MessageMapper.java modified: zlt-business/order-center/src/main/java/com/central/order/service/impl/MessageServiceImpl.java modified: zlt-business/order-center/src/main/java/com/central/order/service/impl/OrderServiceImpl.java modified: zlt-business/order-center/src/main/resources/mapper/MessageMapper.xml modified: zlt-business/order-center/src/main/resources/mapper/OrderMapper.xml modified: zlt-web/react-web/src/main/frontend/src/services/message/api.ts
This commit is contained in:
@@ -3,19 +3,16 @@
|
||||
|
||||
<mapper namespace="com.central.order.mapper.MessageMapper">
|
||||
<sql id="Base_Column_List">
|
||||
id, title, content, type, status, create_time, read_time,
|
||||
id, title, content, type, status, create_time, read_time,
|
||||
related_id, extra, user_id, tenant_id
|
||||
</sql>
|
||||
|
||||
<!-- 消息列表查询 -->
|
||||
<select id="findList" resultType="com.central.order.model.Message">
|
||||
SELECT
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM sys_message
|
||||
<where>
|
||||
<if test="userId != null">
|
||||
AND user_id = #{userId}
|
||||
</if>
|
||||
<if test="tenantId != null and tenantId != ''">
|
||||
AND tenant_id = #{tenantId}
|
||||
</if>
|
||||
@@ -89,7 +86,7 @@
|
||||
|
||||
<!-- 按类型获取用户未读消息数量 -->
|
||||
<select id="getUnreadCountByType" resultType="java.util.Map">
|
||||
SELECT
|
||||
SELECT
|
||||
type,
|
||||
COUNT(1) as count
|
||||
FROM sys_message
|
||||
@@ -114,7 +111,7 @@
|
||||
|
||||
<!-- 根据关联ID查询消息 -->
|
||||
<select id="findByRelatedId" resultType="com.central.order.model.Message">
|
||||
SELECT
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM sys_message
|
||||
WHERE related_id = #{relatedId}
|
||||
@@ -125,4 +122,4 @@
|
||||
AND tenant_id = #{tenantId}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
@@ -60,9 +60,4 @@
|
||||
SELECT * FROM orders WHERE order_no = #{orderNumber}
|
||||
</select>
|
||||
|
||||
<!-- 根据订单编号查询订单信息 -->
|
||||
<select id="getOrderByNumber" resultMap="OrderResultMap">
|
||||
SELECT * FROM orders WHERE order_no = #{orderNumber}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user