sql 不想删了,暂时保留,这个是前端bug,只需去掉control层代码即可

This commit is contained in:
zhangjun
2022-10-08 17:42:01 +08:00
parent d4e592e21f
commit 3f5515b77b
3 changed files with 41 additions and 3 deletions
@@ -88,4 +88,38 @@
ORDER BY
sar_stand_project_library.project_name ASC
</select>
<select id="selectByPages"
resultType="com.adc.da.slrs.sarStandardComplianceAssessResult.entity.SarStandardComplianceProductAssess">
SELECT
STAND_ID,ANY_VALUE(STAND_NUMBER) as STAND_NUMBER, STAND_NAME, STAND_TYPE
FROM sar_standard_compliance_product_assess
WHERE 1=1
<if test="null != product.standNumber and '' != product.standNumber">
and REPLACE(STAND_NUMBER,' ',' ') like CONCAT('%',#{product.standNumber},'%')
</if>
<if test="null != product.standName and '' != product.standName">
and STAND_NAME like CONCAT('%',#{product.standName},'%')
</if>
<if test="null != product.type and '' != product.type">
and type like CONCAT('%',#{product.type},'%')
</if>
limit ${(page-1)*pageSize},${pageSize}
</select>
<select id="selectByPagesCount" resultType="java.lang.Integer">
SELECT
STAND_ID,ANY_VALUE(STAND_NUMBER) as STAND_NUMBER, STAND_NAME, STAND_TYPE
FROM sar_standard_compliance_product_assess
WHERE 1=1
<if test="null != product.standNumber and '' != product.standNumber">
and standNumber like CONCAT('%',#{product.standNumber},'%')
</if>
<if test="null != product.standName and '' != product.standName">
and standName like CONCAT('%',#{product.standName},'%')
</if>
<if test="null != product.type and '' != product.type">
and type like CONCAT('%',#{product.type},'%')
</if>
</select>
</mapper>