|
|
@ -5,6 +5,7 @@ import com.shxy.xymanager_common.base.BaseController;
|
|
|
|
import com.shxy.xymanager_common.base.ResponseReult;
|
|
|
|
import com.shxy.xymanager_common.base.ResponseReult;
|
|
|
|
import com.shxy.xymanager_common.bean.ServiceBody;
|
|
|
|
import com.shxy.xymanager_common.bean.ServiceBody;
|
|
|
|
import com.shxy.xymanager_common.bean.ServiceStatus;
|
|
|
|
import com.shxy.xymanager_common.bean.ServiceStatus;
|
|
|
|
|
|
|
|
import com.shxy.xymanager_common.entity.TerminalPhoto;
|
|
|
|
import com.shxy.xymanager_common.model.TerminalPhotoListModel;
|
|
|
|
import com.shxy.xymanager_common.model.TerminalPhotoListModel;
|
|
|
|
import com.shxy.xymanager_common.vo.TerminalAndChannelIdAndTimeVo;
|
|
|
|
import com.shxy.xymanager_common.vo.TerminalAndChannelIdAndTimeVo;
|
|
|
|
import com.shxy.xymanager_common.vo.TerminalPhotoVo;
|
|
|
|
import com.shxy.xymanager_common.vo.TerminalPhotoVo;
|
|
|
@ -19,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -71,4 +73,17 @@ public class TerminalPhotoController extends BaseController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "最新图片查询", notes = "图片查询接口", httpMethod = "POST")
|
|
|
|
|
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
|
|
|
|
|
|
|
@RequestMapping("/getReturnedPhoto")
|
|
|
|
|
|
|
|
@Log(title = "最新图片查询", type = "查询")
|
|
|
|
|
|
|
|
public ResponseReult<TerminalPhoto> getReturnedPhoto(@RequestParam("termId")String termId) {
|
|
|
|
|
|
|
|
ServiceBody<TerminalPhoto> serviceBody = terminalPhotoService.getReturnedPhoto(termId);
|
|
|
|
|
|
|
|
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
|
|
|
|
|
|
|
return ResponseReult.success(serviceBody.getData());
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|