Compare commits
2 Commits
666a84892e
...
e366b0dddf
Author | SHA1 | Date |
---|---|---|
|
e366b0dddf | |
|
b7dedca17e |
|
@ -41,13 +41,13 @@ public class AppJjrController {
|
|||
JjrApply entity = applyService.findByUserId(userId);
|
||||
if(entity!=null){
|
||||
if(entity.getStatus().equals(0)){
|
||||
return Result.success("申请审批中");
|
||||
return Result.error("申请审批中");
|
||||
}
|
||||
if(entity.getStatus().equals(1)){
|
||||
return Result.success("申请审批通过,请重新登录");
|
||||
return Result.error("申请审批通过,请重新登录");
|
||||
}
|
||||
if(entity.getStatus().equals(2)){
|
||||
return Result.success("申请审批被驳回,驳回原因如下:"+entity.getOpinion());
|
||||
return Result.error("申请审批被驳回,驳回原因如下:"+entity.getOpinion());
|
||||
}
|
||||
}
|
||||
JjrApply jjrApply = new JjrApply();
|
||||
|
@ -58,7 +58,7 @@ public class AppJjrController {
|
|||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
jjrApply.setCreateTime(sdf.format(new Date()));
|
||||
applyService.add(jjrApply);
|
||||
return Result.success();
|
||||
return Result.success("申请成功,等待审批");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue