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