feat: 导入License功能调整
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user