Commit adfc28888d95f39eb810df9342de69e01b1ee395

Authored by jiangchengyong
1 parent 713cde38

收货信息接口 update

myapp-sdk/src/main/java/com/b2c/myapp/sdk/service/PickingInfoService.java
... ... @@ -49,4 +49,11 @@ public interface PickingInfoService extends BaseService {
49 49 */
50 50 public BaseOutput<Boolean> delPickingInfoById(Long id);
51 51  
  52 + /**
  53 + * 根据收货信息ID查收货信息详情
  54 + * @param id
  55 + * @return
  56 + */
  57 + BaseOutput<PickingInfoOutput> getPickingInfoById(Long id);
  58 +
52 59 }
... ...
myapp-sdk/src/main/java/com/b2c/myapp/sdk/service/impl/PickingInfoInfoServiceImpl.java
... ... @@ -75,4 +75,16 @@ public class PickingInfoInfoServiceImpl extends BaseServiceImpl implements Picki
75 75 paramMap.put("id",id);
76 76 return super.httpPost("/api/pickingInfo/delPickingInfoById",paramMap,new TypeReference<BaseOutput<Boolean>>(){});
77 77 }
  78 +
  79 + /**
  80 + * 根据收货信息ID查收货信息详情
  81 + *
  82 + * @param id
  83 + * @return
  84 + */
  85 + @Override
  86 + public BaseOutput<PickingInfoOutput> getPickingInfoById(Long id) {
  87 + Map<String,Long> paramMap = Maps.newHashMap();
  88 + paramMap.put("id",id);
  89 + return super.httpPost("/api/pickingInfo/getPickingInfoById",paramMap,new TypeReference<BaseOutput<PickingInfoOutput>>(){}); }
78 90 }
... ...
myapp-web/src/main/java/com/b2c/myapp/api/PickingInfoApi.java
... ... @@ -50,6 +50,20 @@ public class PickingInfoApi extends BaseRestFulApi {
50 50 }
51 51 return output;
52 52 }
  53 + @ApiOperation(value ="根据收货信息ID查收货信息详情", notes = "根据收货信息ID查收货信息详情")
  54 + @ApiImplicitParam(paramType = "query",name = "id",dataType = "Long", required = true, value = "收货信息id")
  55 + @RequestMapping(value = "/getPickingInfoById", method = RequestMethod.POST)
  56 + @ResponseBody
  57 + public BaseOutput<PickingInfoOutput> getPickingInfoById(Long id){
  58 + BaseOutput<PickingInfoOutput> output = BaseOutput.success();
  59 + try {
  60 + PickingInfo pickingInfo = pickingInfoService.get(id);
  61 + output.setData(BeanConver.copeBean(pickingInfo,PickingInfoOutput.class));
  62 + } catch (Exception e) {
  63 + handleException(output, e);
  64 + }
  65 + return output;
  66 + }
53 67  
54 68 @ApiOperation(value ="修改收货人信息", notes = "修改收货人信息")
55 69 @RequestMapping(value = "/modify", method = RequestMethod.POST)
... ...