tms查询客户状态和订单状态接口 优化

This commit is contained in:
caojia
2026-09-23 15:09:28 +08:00
parent 8522201248
commit 72e1ec463a
6 changed files with 146 additions and 34 deletions
@@ -94,6 +94,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where c.customer_id = #{customerId} and c.del_flag = '0'
</select>
<!-- TMS 实时状态接口只读取客户ID和启用状态,避免加载客户完整资料和额度汇总。 -->
<select id="selectCustomerStatusByCustomerId" parameterType="Long" resultMap="BmsCustomerResult">
select customer_id, is_enable
from bms_customer
where customer_id = #{customerId}
and del_flag = '0'
</select>
<resultMap type="com.ruoyi.customer.customerinfo.domain.BmsCustomerAttachment" id="BmsCustomerAttachmentResult">
<result property="attachmentId" column="attachment_id" />
<result property="customerId" column="customer_id" />
@@ -661,4 +669,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<delete id="deleteBmsCustomerContactByContactId" parameterType="Long">
update bms_customer_contact set del_flag = '2' where contact_id = #{contactId}
</delete>
</mapper>
</mapper>