chenjiasheng 3 年之前
父节点
当前提交
a25493163b

+ 2 - 2
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/adv/AdvertisementPuttingAdminEndPoint.java

@ -43,8 +43,8 @@ public class AdvertisementPuttingAdminEndPoint extends EnvelopRestEndpoint {
    @ApiOperation(value = "获取单条广告信息")
    public Envelop doctorHosplist(
            @ApiParam(name = "id", value = "广告id")
            @RequestParam(value = "id", required = true) String doctorId) throws Exception {
        JSONObject jsonObject = advrtisementService.getOneAdvInfo(doctorId);
            @RequestParam(value = "id", required = true) String id) throws Exception {
        JSONObject jsonObject = advrtisementService.getOneAdvInfo(id);
        if (jsonObject.getString("response").equalsIgnoreCase(ConstantUtils.FAIL)) {
            return failed(jsonObject.getString("msg"));
        }

+ 0 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/advrtisement/AdvrtisementService.java

@ -124,7 +124,6 @@ public class AdvrtisementService extends BaseJpaService<AdvertisementPuttingAdmi
            result.put("response", ConstantUtils.FAIL);
            return result;
        }
        AdvertisementPuttingAdminDO adminDO = advertisementPuttingAdminDAO.findOne(id);
        if(null == adminDO){
            result.put("msg","广告不存在:" + id);