sql 不想删了,暂时保留,这个是前端bug,只需去掉control层代码即可
This commit is contained in:
+3
-3
@@ -50,9 +50,9 @@ public class SarStandardComplianceAssessResultController {
|
||||
@ApiOperation(value = "条件查询标准清单")
|
||||
@GetMapping("/standard")
|
||||
public ResponseMessage<Object> selectStandard(SarStandardsInfoEO eo) throws Exception {
|
||||
if(StringUtils.isNotBlank(eo.getStandNumber())){
|
||||
eo.setStandNumber(eo.getStandNumber().replace(" "," "));
|
||||
}
|
||||
// if(StringUtils.isNotBlank(eo.getStandNumber())){
|
||||
// eo.setStandNumber(eo.getStandNumber().replace(" "," "));
|
||||
// }
|
||||
if (eo.getStandApplicationType() == 1) {
|
||||
QueryWrapper<SarStandardComplianceProductAssess> queryWrapper = new QueryWrapper<>();
|
||||
IPage<SarStandardComplianceProductAssess> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
||||
|
||||
+4
@@ -24,4 +24,8 @@ public interface SarStandardComplianceProductAssessDao extends BaseMapper<SarSta
|
||||
|
||||
List<Integer> selectPagesCount(@Param("product")unCountDTO productAssess);
|
||||
|
||||
List<SarStandardComplianceProductAssess> selectByPages(@Param("page")Long page,@Param("pageSize")Long size,@Param("product") SarStandardComplianceProductAssess productAssess);
|
||||
|
||||
List<Integer> selectByPagesCount(@Param("product")SarStandardComplianceProductAssess productAssess);
|
||||
|
||||
}
|
||||
|
||||
+34
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user