feat: 导入license功能调整

This commit is contained in:
caiyuchao
2025-08-25 11:18:57 +08:00
parent 7bbc455395
commit cb27b4e005
7 changed files with 253 additions and 106 deletions

View File

@@ -6,13 +6,17 @@
SELECT max(`code` + 0) from crm_project;
</select>
<select id="selectOldMaxCode" resultType="Integer">
SELECT max(`code` + 0) from crm_project where `code` + 0 &lt; 2000
</select>
<select id="queryPage" resultType="org.agt.module.license.controller.admin.project.vo.ProjectRespVO">
SELECT
p.*,
CONCAT( c.`code`, p.`code` ) serial_no
c.serial_no
FROM
crm_project p
LEFT JOIN crm_customer c ON p.customer_id = c.id
LEFT JOIN crm_license_server c ON p.id = c.project_id
AND c.deleted = 0
WHERE
p.deleted = 0
@@ -53,7 +57,7 @@
AND p.env_info LIKE CONCAT('%',#{query.envInfo},'%')
</if>
<if test="query.serialNo != null and query.serialNo != ''">
AND CONCAT( c.`code`, p.`code` ) LIKE CONCAT('%',#{query.serialNo},'%')
AND c.serial_no LIKE CONCAT('%',#{query.serialNo},'%')
</if>
<if test="query.technicalOwner != null">
AND (p.technical_owner_a = #{query.technicalOwner}