1234567891011121314151617181920212223242526272829303132 |
- package com.sinosoft.lz.common.origin.service;
- import java.util.ArrayList;
- import javax.ws.rs.GET;
- import javax.ws.rs.Path;
- import javax.ws.rs.PathParam;
- import javax.ws.rs.ProduceMime;
- import com.sinosoft.lz.common.origin.OriginImpl;
- import com.sinosoft.lz.common.origin.Originable;
- import com.sinosoft.lz.common.origin.vo.Origin;
- import com.sinosoft.lz.common.origin.vo.OriginConection;
- @Path("/OriginService/")
- public class OriginServiceImpl implements OriginServiceable{
- @ProduceMime("application/json")
- @GET
- @Path("/getOriginInfoById/{fd_objectid},{type}")
- // http://localhost:8090/bjglweb/ws/origin/OriginService/getOriginInfoById/482122985207871800000096110109,482
- public OriginConection getOriginInfoById(@PathParam("fd_objectid") String fd_objectid,
- @PathParam("type") String type) {
- Originable originable = new OriginImpl();
- OriginConection originConection = new OriginConection();
- ArrayList<Origin> origins = originable.getOriginInfoById(fd_objectid, type);
- originConection.setOrigins(origins);
- return originConection;
- }
- }
|