56646 56632
This commit is contained in:
+4
@@ -13,6 +13,7 @@ import com.alibaba.excel.EasyExcel;
|
|||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -98,6 +99,9 @@ public class SarStandUnqualifiedController extends BaseController<SarStandUnqual
|
|||||||
@ApiOperation("分页查询未符合项")
|
@ApiOperation("分页查询未符合项")
|
||||||
@GetMapping
|
@GetMapping
|
||||||
public ResponseMessage<IPage<SarStandUnqualified>> getSarStandUnqualifiedPage(SarStandUnqualifiedPage sarStandUnqualifiedPage){
|
public ResponseMessage<IPage<SarStandUnqualified>> getSarStandUnqualifiedPage(SarStandUnqualifiedPage sarStandUnqualifiedPage){
|
||||||
|
if (StringUtils.isNotBlank(sarStandUnqualifiedPage.getProductName())) {
|
||||||
|
sarStandUnqualifiedPage.setProductName(sarStandUnqualifiedPage.getProductName().trim());
|
||||||
|
}
|
||||||
IPage<SarStandUnqualified> sarStandUnqualifiedIPage=sarStandUnqualifiedService.getSarStandUnqualifiedPage(sarStandUnqualifiedPage);
|
IPage<SarStandUnqualified> sarStandUnqualifiedIPage=sarStandUnqualifiedService.getSarStandUnqualifiedPage(sarStandUnqualifiedPage);
|
||||||
return Result.success(sarStandUnqualifiedIPage);
|
return Result.success(sarStandUnqualifiedIPage);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -48,7 +48,7 @@
|
|||||||
and sar_stand_unqualified.STAND_ID = #{sar.standId}
|
and sar_stand_unqualified.STAND_ID = #{sar.standId}
|
||||||
</if>
|
</if>
|
||||||
<if test="sar.productName != null and sar.productName != '' ">
|
<if test="sar.productName != null and sar.productName != '' ">
|
||||||
and sar_stand_unqualified.STAND_NAME like concat(concat('%',#{sar.productName}),'%')
|
and sar_stand_unqualified.PRODUCT_NAME like concat(concat('%',#{sar.productName}),'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="sar.responsibleUnit != null and sar.responsibleUnit != '' ">
|
<if test="sar.responsibleUnit != null and sar.responsibleUnit != '' ">
|
||||||
and ts_institution.name like concat('%',#{sar.responsibleUnit},'%')
|
and ts_institution.name like concat('%',#{sar.responsibleUnit},'%')
|
||||||
|
|||||||
Reference in New Issue
Block a user