Authored by caoyan

二手

... ... @@ -70,5 +70,18 @@ public class SecondhandProductController {
return new ApiResponse.ApiResponseBuilder().code(200).data(result).build();
}
@IgnoreSession
@RequestMapping(params = "method=ufo.secondhand.copyInfo")
public ApiResponse copyInfo(Integer oldSkup, Integer newSkup) {
LOG.info("ufo.secondhand.copyInfo in. oldSkup is {}, newSkup is {}", oldSkup, newSkup);
int result = secondhandProductService.copySkupInfo(oldSkup, newSkup);
if(result > 0) {
return new ApiResponse.ApiResponseBuilder().data(true).code(200).message("copyInfo success.").build();
}else {
return new ApiResponse.ApiResponseBuilder().data(false).code(500).message("copyInfo fail.").build();
}
}
}
\ No newline at end of file
... ...
... ... @@ -15,4 +15,6 @@ public interface SecondhandProductService {
List<SecondhandImagesBo> list, List<SecondhandImagesBo> flawImageList);
SecondDetailResp getSecondDetailBySkupEx(Integer skup);
int copySkupInfo(Integer oldSkup, Integer newSkup);
}
... ...
... ... @@ -110,5 +110,10 @@ public class SecondhandProductServiceImpl implements SecondhandProductService {
resp.setImageInfoList(infos);
return resp;
}
@Override
public int copySkupInfo(Integer oldSkup, Integer newSkup) {
return 1;
}
}
... ...