吴门医述-学术传承-人员地址展示
This commit is contained in:
@@ -9,9 +9,6 @@ import com.peanut.modules.book.service.MedicinalDrugService;
|
|||||||
import com.peanut.modules.book.service.MedicinalMaterialsService;
|
import com.peanut.modules.book.service.MedicinalMaterialsService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.jsoup.Jsoup;
|
|
||||||
import org.jsoup.nodes.Document;
|
|
||||||
import org.jsoup.select.Elements;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
@@ -47,9 +44,15 @@ public class MedicinalMaterialsController {
|
|||||||
if (StringUtils.isNotEmpty(params.get("effect").toString())){
|
if (StringUtils.isNotEmpty(params.get("effect").toString())){
|
||||||
wrapper.like(MedicinalMaterials::getEffect,params.get("effect"));
|
wrapper.like(MedicinalMaterials::getEffect,params.get("effect"));
|
||||||
}
|
}
|
||||||
wrapper.and(t->t.like(MedicinalMaterials::getProperty,params.get("taste"))
|
if (StringUtils.isNotEmpty(params.get("taste").toString())){
|
||||||
.or().like(MedicinalMaterials::getProperty,params.get("property"))
|
wrapper.like(MedicinalMaterials::getTaste,params.get("taste"));
|
||||||
.or().like(MedicinalMaterials::getProperty,params.get("tropism")));
|
}
|
||||||
|
if (StringUtils.isNotEmpty(params.get("property").toString())){
|
||||||
|
wrapper.like(MedicinalMaterials::getProperty,params.get("property"));
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotEmpty(params.get("tropism").toString())){
|
||||||
|
wrapper.like(MedicinalMaterials::getTropism,params.get("tropism"));
|
||||||
|
}
|
||||||
wrapper.orderByAsc(MedicinalMaterials::getSort);
|
wrapper.orderByAsc(MedicinalMaterials::getSort);
|
||||||
wrapper.orderByDesc(MedicinalMaterials::getHits);
|
wrapper.orderByDesc(MedicinalMaterials::getHits);
|
||||||
Page<MedicinalMaterials> page = materialsService.page(new Page<>(
|
Page<MedicinalMaterials> page = materialsService.page(new Page<>(
|
||||||
|
|||||||
Reference in New Issue
Block a user