...
|
...
|
@@ -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 |
...
|
...
|
|