我的--完成--编辑作品
This commit is contained in:
parent
e0b5bd1bbc
commit
da20b7f48b
@ -11,6 +11,7 @@ import com.ruoyi.common.utils.uuid.IdUtils;
|
||||
import com.ruoyi.common.utils.uuid.UUID;
|
||||
import com.ruoyi.framework.manager.AsyncManager;
|
||||
import com.ruoyi.framework.manager.factory.AsyncFactory;
|
||||
import com.ruoyi.framework.web.domain.server.Sys;
|
||||
import com.ruoyi.system.domain.*;
|
||||
import com.ruoyi.common.config.RuoYiConfig;
|
||||
import com.ruoyi.common.constant.Constants;
|
||||
@ -79,6 +80,9 @@ public class AppSystemController extends BaseController {
|
||||
@Autowired
|
||||
private IUserWorkService userWorkService;
|
||||
|
||||
@Autowired
|
||||
private IWorkReviewService workReviewService;
|
||||
|
||||
@Autowired
|
||||
private ISysSourceService sysSourceService;
|
||||
|
||||
@ -1163,17 +1167,27 @@ public class AppSystemController extends BaseController {
|
||||
return error("非法操作, 请不要编辑不是自己的作品");
|
||||
}
|
||||
|
||||
// 清空审核记录
|
||||
userWork.setAuditOpinion("");
|
||||
userWorkService.updateUserWork(userWork);
|
||||
|
||||
// 编辑作品后,这个作品就需要重新审核, 所以有关他的审核记录要删掉
|
||||
WorkReview workReview = new WorkReview();
|
||||
workReview.setWorkId(workId);
|
||||
workReview.setDeleteFlag("1");
|
||||
|
||||
// 根据workId 修改删除flag
|
||||
workReviewService.setWorkReviewDeleteFlag(workReview);
|
||||
|
||||
System.out.println("更新审核数据");
|
||||
|
||||
return success();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// 获取系统资源位列表, 附带搜索功能
|
||||
@GetMapping("/getAllSource")
|
||||
public AjaxResult getAllSource(SysSource sysSource) {
|
||||
|
||||
@ -58,4 +58,6 @@ public interface WorkReviewMapper
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWorkReviewByReviewIds(Long[] reviewIds);
|
||||
|
||||
public int setWorkReviewDeleteFlag(WorkReview workReview);
|
||||
}
|
||||
|
||||
@ -58,4 +58,6 @@ public interface IWorkReviewService
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWorkReviewByReviewId(Long reviewId);
|
||||
|
||||
public int setWorkReviewDeleteFlag(WorkReview workReview);
|
||||
}
|
||||
|
||||
@ -92,4 +92,9 @@ public class WorkReviewServiceImpl implements IWorkReviewService
|
||||
{
|
||||
return workReviewMapper.deleteWorkReviewByReviewId(reviewId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int setWorkReviewDeleteFlag(WorkReview workReview){
|
||||
return workReviewMapper.setWorkReviewDeleteFlag(workReview);
|
||||
}
|
||||
}
|
||||
|
||||
@ -72,6 +72,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</trim>
|
||||
where review_id = #{reviewId}
|
||||
</update>
|
||||
<update id="setWorkReviewDeleteFlag" parameterType="WorkReview">
|
||||
update work_review set delete_flag = "1" where work_id = #{workId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWorkReviewByReviewId" parameterType="Long">
|
||||
delete from work_review where review_id = #{reviewId}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user