Commit 2722224b authored by 王飞's avatar 王飞

Merge branch 'wangdingyi' into 'dev'

场景变更任务审核

See merge request !70
parents 24e31ca9 0f815c4e
...@@ -41,6 +41,19 @@ public class ReviewSceneChangeTask { ...@@ -41,6 +41,19 @@ public class ReviewSceneChangeTask {
@TableField(exist = false) @TableField(exist = false)
public static final String RESULT_REJECT = "REJECT"; public static final String RESULT_REJECT = "REJECT";
/**
* 前段传入审核结果(1:通过)
*/
@TableField(exist = false)
public static final String PASSED_PASS = "1";
/**
* 前段传入审核结果(0:不通过)
*/
@TableField(exist = false)
public static final String PASSED_REJECT = "0";
/** /**
* 参与审核的角色 * 参与审核的角色
*/ */
......
...@@ -100,9 +100,9 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha ...@@ -100,9 +100,9 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
@Override @Override
public void audit(ReviewSceneChangeTaskPassRequest request) { public void audit(ReviewSceneChangeTaskPassRequest request) {
if (request.getPassed().equals("0")) { if (request.getPassed().equals(ReviewSceneChangeTask.PASSED_REJECT)) {
doProcess(request.getTaskId(), request.getComment(), ReviewSceneChangeTask.RESULT_REJECT); doProcess(request.getTaskId(), request.getComment(), ReviewSceneChangeTask.RESULT_REJECT);
} else if(request.getPassed().equals("1")){ } else if(request.getPassed().equals(ReviewSceneChangeTask.PASSED_PASS)){
doProcess(request.getTaskId(), request.getComment(), ReviewSceneChangeTask.RESULT_PASS); doProcess(request.getTaskId(), request.getComment(), ReviewSceneChangeTask.RESULT_PASS);
} else { } else {
throw new ServiceException("审核状态不正确",HttpStatus.ERROR); throw new ServiceException("审核状态不正确",HttpStatus.ERROR);
......
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