|
|
@ -154,6 +154,7 @@ public class ZyAccessoriesController extends JeecgController<ZyAccessories, IZyA |
|
|
|
@GetMapping(value = "/queryById") |
|
|
|
@GetMapping(value = "/queryById") |
|
|
|
public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
|
|
|
public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
|
|
|
ZyAccessories zyAccessories = zyAccessoriesService.getById(id); |
|
|
|
ZyAccessories zyAccessories = zyAccessoriesService.getById(id); |
|
|
|
|
|
|
|
zyAccessories.setPicture("http://localhost:10085/jeecg-boot/sys/common/static/"+zyAccessories.getPicture()); |
|
|
|
if(zyAccessories==null) { |
|
|
|
if(zyAccessories==null) { |
|
|
|
return Result.error("未找到对应数据"); |
|
|
|
return Result.error("未找到对应数据"); |
|
|
|
} |
|
|
|
} |
|
|
|