feat: 项目的列表查询改用sql,并且查出sn

This commit is contained in:
caiyuchao
2025-08-28 12:06:33 +08:00
parent bafbbe7a3d
commit 4b8fedf1d9
6 changed files with 21 additions and 7 deletions

View File

@@ -11,6 +11,14 @@
</select>
<select id="queryPage" resultType="org.agt.module.license.controller.admin.project.vo.ProjectRespVO">
<include refid="queryProjects"></include>
</select>
<select id="queryList" resultType="org.agt.module.license.controller.admin.project.vo.ProjectRespVO">
<include refid="queryProjects"></include>
</select>
<sql id="queryProjects">
SELECT
p.*,
c.serial_no
@@ -64,10 +72,9 @@
OR p.technical_owner_b = #{query.technicalOwner}
OR p.technical_owner_c = #{query.technicalOwner})
</if>
ORDER BY
p.id DESC
</select>
</sql>
<select id="getLicenseProjects" resultType="org.agt.module.license.controller.admin.project.vo.ProjectRespVO">
SELECT