|
|
@@ -23,6 +23,20 @@ import com.goafanti.common.utils.StringUtils;
|
|
|
public class AdminAchievementApiController extends CertifyApiController {
|
|
|
@Resource
|
|
|
private AchievementService achievementService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 详情
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/detail", method = RequestMethod.GET)
|
|
|
+ private Result detail(String id){
|
|
|
+ Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(id)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到成果ID", "成果ID"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ res.setData(achievementService.selectByPrimaryKey(id));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 成果列表
|