feat: 导入License功能调整

This commit is contained in:
caiyuchao
2025-08-26 18:59:55 +08:00
parent 48e247047a
commit c30714033a
10 changed files with 161 additions and 43 deletions

View File

@@ -83,4 +83,27 @@
</if>
AND l.id IS NULL
</select>
<select id="getBySnAndProjectAndCustomer" resultType="org.agt.module.license.dal.dataobject.project.ProjectDO">
SELECT
p.*
FROM
crm_project p
LEFT JOIN crm_customer c ON p.customer_id = c.id
AND c.deleted = 0
LEFT JOIN crm_license_server l ON l.project_id = p.id
AND l.deleted = 0
WHERE
p.deleted = 0
<if test="serialNo != null and serialNo != ''">
AND l.serial_no = #{serialNo}
</if>
<if test="customerName != null and customerName != ''">
AND c.name = #{customerName}
</if>
<if test="projectName != null and projectName != ''">
AND p.name = #{projectName}
</if>
limit 1
</select>
</mapper>