Commit 749451db authored by wdy's avatar wdy

新增车企文件&保存细则

parent e8c38e0e
......@@ -19,7 +19,7 @@ public interface ReviewEnterpriseArchiveService extends IService<ReviewEnterpris
List<ReviewEnterpriseArchiveViewVO> view(Long taskId);
void addEnterpriseArchive(ReviewEnterpriseArchive reviewEnterpriseArchive);
Long addEnterpriseArchive(ReviewEnterpriseArchive reviewEnterpriseArchive);
/**
* 分页查询
......
......@@ -55,6 +55,8 @@ public class ReviewDetailsResultServiceImpl extends ServiceImpl<ReviewDetailsRes
ReviewDetailsResult reviewDetailsResult = new ReviewDetailsResult();
reviewDetailsResult.setTaskId(request.getTaskId());
reviewDetailsResult.setReviewDetailsId(request.getReviewDetailsId());
reviewDetailsResult.setReviewEnterpriseArchiveId(request.getReviewEnterpriseArchiveId());
reviewDetailsResult.setCatalogue(request.getCatalogue());
reviewDetailsResult.setPassed(request.getPassed());
reviewDetailsResult.setUserId(loginUser.getUserId());
reviewDetailsResult.setUserName(loginUser.getNickName());
......
......@@ -51,7 +51,7 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
}
@Override
public void addEnterpriseArchive(ReviewEnterpriseArchive reviewEnterpriseArchive) {
public Long addEnterpriseArchive(ReviewEnterpriseArchive reviewEnterpriseArchive) {
LoginUser loginUser = SecurityUtils.getLoginUser();
SysUser user = sysUserService.selectUserById(loginUser.getUserId());
......@@ -67,6 +67,8 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
reviewEnterpriseArchiveService.save(reviewEnterpriseArchive);
}
return reviewEnterpriseArchive.getId();
}
......
......@@ -62,9 +62,9 @@ public class ReviewEnterpriseArchiveController extends BaseController {
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@Log(title = "车企文件", businessType = BusinessType.INSERT)
@RequestMapping(method = RequestMethod.POST, value = "/add")
public R<String> addEnterpriseArchive(@Validated @RequestBody ReviewEnterpriseArchive reviewEnterpriseArchive) {
public R<Long> addEnterpriseArchive(@Validated @RequestBody ReviewEnterpriseArchive reviewEnterpriseArchive) {
reviewEnterpriseArchiveService.addEnterpriseArchive(reviewEnterpriseArchive);
return R.ok();
return R.ok(reviewEnterpriseArchive.getId());
}
@ApiOperation("编辑车企文件")
......
......@@ -25,4 +25,10 @@ public class ReviewDetailsResultSaveRequest {
*/
@ApiModelProperty("审核是否通过(0未通过、1通过)")
private Integer passed;
@ApiModelProperty("关联到车企留档文件")
private Long reviewEnterpriseArchiveId;
@ApiModelProperty("章节条目或范围")
private String catalogue;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment