修改bug
This commit is contained in:
parent
0fb358ba4c
commit
d380981bcc
|
|
@ -137,7 +137,7 @@ public class OrgApplyInfoController extends JeecgController<OrgApplyInfo, IOrgAp
|
|||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody OrgApplyInfo orgApplyInfo) {
|
||||
orgApplyInfoService.audit(orgApplyInfo);
|
||||
return Result.OK("保存成功!");
|
||||
return Result.OK("审核完成!");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -235,6 +235,7 @@ public class OrgApplyInfo implements Serializable {
|
|||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "审核时间")
|
||||
private java.util.Date auditTime;
|
||||
private String auditBy;
|
||||
|
||||
/**加盟时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
|
|
|
|||
|
|
@ -181,9 +181,11 @@ public class OrgApplyInfoServiceImpl extends ServiceImpl<OrgApplyInfoMapper, Org
|
|||
|
||||
@Override
|
||||
public void audit(OrgApplyInfo orgApplyInfo) {
|
||||
LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
//机构加盟审核时传过来的status是2/3
|
||||
//机构信息变更时传过来的status是modifyPass和modifyFail
|
||||
orgApplyInfo.setAuditTime(new Date());
|
||||
orgApplyInfo.setAuditBy(user.getUsername());
|
||||
OrgApplyInfo usedData = new OrgApplyInfo();
|
||||
//机构信息变更审核通过
|
||||
if ("modifyPass".equals(orgApplyInfo.getStatus())) {
|
||||
|
|
@ -317,6 +319,9 @@ public class OrgApplyInfoServiceImpl extends ServiceImpl<OrgApplyInfoMapper, Org
|
|||
orgApplyInfoMQDto.setOperateBy(sysUser.getRealname());
|
||||
orgApplyInfoMQDto.setOperateTelephone(sysUser.getPhone());
|
||||
orgApplyInfoMQDto.setOperateEmail(sysUser.getEmail());
|
||||
orgApplyInfoMQDto.setAuditStatus("审核成功");
|
||||
// orgApplyInfoMQDto.setAuditBy(sysUser.getRealname());
|
||||
// orgApplyInfoMQDto.setAuditTime(orgApplyInfo.getAuditTime());
|
||||
//运维mq收到后 1、自动创建新的机构、机构附加信息 2、生成运维平台工单
|
||||
rabbitMQUtil.sendToExchange("hldy.orgApply.build", "hldy.orgApply.build", orgApplyInfoMQDto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -213,5 +213,8 @@ public class OrgApplyInfoMQDto implements Serializable {
|
|||
//加盟上传合同操作人邮箱
|
||||
private String operateEmail;
|
||||
|
||||
private String auditBy;
|
||||
private String auditStatus;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1950,7 +1950,7 @@ public class SysUserController {
|
|||
orgApplyInfo.setBuildStatus("5");
|
||||
orgApplyInfoService.updateById(orgApplyInfo);
|
||||
|
||||
result.success("添加成功!");
|
||||
result.success("初始化成功!账号:" + jsonObject.getString("userName") + " 密码:123456");
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
result.error500("操作失败");
|
||||
|
|
|
|||
Loading…
Reference in New Issue