Prechádzať zdrojové kódy

文物库模块搜索

wuweihao 2 rokov pred
rodič
commit
8427a3c528

+ 1 - 17
gis_application/src/main/java/com/fdage/controller/CollectionController.java

@@ -133,23 +133,7 @@ public class CollectionController {
         return AjaxJson.success(service.findById(bo.getId()));
     }
 
-//    @PostMapping("list")
-//    @ResponseBody
-//    @WebControllerLog(description = "文物库-获取文物列表")
-//    @ApiOperation("获取文物列表")
-//    @ApiImplicitParams({
-//            @ApiImplicitParam(name = "timeId", value = "年代id", dataType = "String"),
-//            @ApiImplicitParam(name = "typeId", value = "类型id", dataType = "String"),
-//            @ApiImplicitParam(name = "name", value = "文物名称", dataType = "String"),
-//            @ApiImplicitParam(name = "pageNum", value = "页码", dataType = "String"),
-//            @ApiImplicitParam(name = "pageSize", value = "每页数量", dataType = "String")})
-//    public AjaxJson list(@RequestBody RequestCollection bo){
-//        List<ResponCollection> list = service.findList(bo);
-//        PageInfo<ResponCollection> pageInfo = new PageInfo<>(list);
-//        return AjaxJson.success(pageInfo);
-//    }
-
-//    @ResponseBody
+
     @PostMapping("/list")
     @WebControllerLog(description = "文物库-获取文物列表")
     @ApiOperation("v2-获取文物列表")

+ 1 - 1
zhoushan-system-service/src/main/java/com/fdage/service/impl/CollectionServiceImpl.java

@@ -310,7 +310,7 @@ public class CollectionServiceImpl implements ICollectionService {
 
         String name = param.getName();
         if (StrUtil.isNotBlank(name)){
-            builder.append(" a.name like '%").append(name).append("%'");
+            builder.append(" and a.name like '%").append(name).append("%'");
         }
 
         Long sortType = param.getSortType();