fix: 修复

dev_no_inv
chenhc 10 months ago
parent 6981fba035
commit 80a1f3be28

@ -51,7 +51,7 @@
<if test="documentTypeCode != '' and documentTypeCode != null"> <if test="documentTypeCode != '' and documentTypeCode != null">
AND sys_workplace_document.documentTypeCode = #{documentTypeCode} AND sys_workplace_document.documentTypeCode = #{documentTypeCode}
</if> </if>
<if test="isPopular >= 0 and isPopular != null"> <if test="isPopular != null and isPopular > 0">
AND sys_workplace_document.isPopular = #{isPopular} AND sys_workplace_document.isPopular = #{isPopular}
</if> </if>
<if test="busKey != null and busKey != ''"> <if test="busKey != null and busKey != ''">
@ -60,6 +60,7 @@
) )
</if> </if>
</where> </where>
ORDER BY sys_workplace_document.isPopular desc ,sys_workplace_document.number,sys_workplace_document.createTime
</select> </select>
<select id="findMaxNumberByWorkplaceCode" resultType="java.lang.Integer"> <select id="findMaxNumberByWorkplaceCode" resultType="java.lang.Integer">
SELECT MAX(number) AS maxNumber SELECT MAX(number) AS maxNumber

Loading…
Cancel
Save