diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiResidentConfigController.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiResidentConfigController.java index 21291749..f923086d 100644 --- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiResidentConfigController.java +++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiResidentConfigController.java @@ -5,7 +5,6 @@ import com.elink.esua.epdc.dto.result.ResidentConfigResultDTO; import com.elink.esua.epdc.service.ResidentConfigService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -31,8 +30,8 @@ public class ApiResidentConfigController { * @Param [residentType] * @return com.elink.esua.epdc.commons.tools.utils.Result> **/ - @GetMapping("getResidentConfig/{residentType}") - public Result> getImgUrlList(@PathVariable("residentType") String residentType){ + @GetMapping("getResidentConfig") + public Result> getImgUrlList(String residentType){ return residentConfigService.listResidentConfig(residentType); } } diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/dao/ResidentConfigDao.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/dao/ResidentConfigDao.java index 61b8c3de..c87b05fc 100644 --- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/dao/ResidentConfigDao.java +++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/dao/ResidentConfigDao.java @@ -22,6 +22,7 @@ import com.elink.esua.epdc.dto.ResidentConfigDTO; import com.elink.esua.epdc.dto.result.ResidentConfigResultDTO; import com.elink.esua.epdc.entity.ResidentConfigEntity; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; @@ -51,7 +52,7 @@ public interface ResidentConfigDao extends BaseDao { * @Param [residentType] * @return java.util.List **/ - List selectListResidentConfigByResidentType(String residentType); + List selectListResidentConfigByResidentType(@Param(value = "residentType") String residentType); /** * @Description 根据类型和编码获取配置 * @Author songyunpeng