Browse Source

获取居民端接口bug修改

feature/syp_points
songyunpeng 5 years ago
parent
commit
c8975b1010
  1. 5
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiResidentConfigController.java
  2. 3
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/dao/ResidentConfigDao.java

5
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<java.util.List<com.elink.esua.epdc.dto.result.ResidentConfigResultDTO>>
**/
@GetMapping("getResidentConfig/{residentType}")
public Result<List<ResidentConfigResultDTO>> getImgUrlList(@PathVariable("residentType") String residentType){
@GetMapping("getResidentConfig")
public Result<List<ResidentConfigResultDTO>> getImgUrlList(String residentType){
return residentConfigService.listResidentConfig(residentType);
}
}

3
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<ResidentConfigEntity> {
* @Param [residentType]
* @return java.util.List<com.elink.esua.epdc.dto.ResidentConfigDTO>
**/
List<ResidentConfigResultDTO> selectListResidentConfigByResidentType(String residentType);
List<ResidentConfigResultDTO> selectListResidentConfigByResidentType(@Param(value = "residentType") String residentType);
/**
* @Description 根据类型和编码获取配置
* @Author songyunpeng

Loading…
Cancel
Save