|
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import org.apache.http.HttpRequest;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.api.dto.message.TemplateMessageDTO;
|
|
|
+import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.config.mqtoken.UserTokenContext;
|
|
|
import org.jeecg.common.constant.CommonConstant;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
@@ -114,7 +115,7 @@ public class AppmanageServiceImpl implements AppmanageService {
|
|
|
AppBaseInfo appBaseInfo = appInfo.getAppBaseInfoDTO();
|
|
|
QueryWrapper<AppBaseInfo> appBaseInfoQueryWrapper = new QueryWrapper<>();
|
|
|
appBaseInfoQueryWrapper.eq("name", appBaseInfo.getName());
|
|
|
- if (baseInfoMapper.selectOne(appBaseInfoQueryWrapper) != null) return "应用名称已存在";
|
|
|
+ if (baseInfoMapper.selectOne(appBaseInfoQueryWrapper) != null) return"应用名称已存在";
|
|
|
|
|
|
// 创建人
|
|
|
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
@@ -125,9 +126,9 @@ public class AppmanageServiceImpl implements AppmanageService {
|
|
|
|
|
|
// 提交至工作流的表单信息(临时将用户id换成真名,字典值换成字典文本)
|
|
|
AppBaseInfo sendCheck_appBaseInfo = appBaseInfo;
|
|
|
- sendCheck_appBaseInfo.setAdmin(customMapper.queryRealnameByUserId(appBaseInfo.getAdmin()));
|
|
|
+// sendCheck_appBaseInfo.setAdmin(customMapper.queryRealnameByUserId(appBaseInfo.getAdmin()));
|
|
|
// if (appBaseInfo.getDevelopUser()!=null)
|
|
|
-// sendCheck_appBaseInfo.setDevelopUser(customMapper.queryRealnameByUserId(appBaseInfo.getDevelopUser()));
|
|
|
+ sendCheck_appBaseInfo.setDevelopUser(customMapper.queryRealnameByUserId(appBaseInfo.getDevelopUser()));
|
|
|
if (appBaseInfo.getOperationUser()!=null)
|
|
|
sendCheck_appBaseInfo.setOperationUser(customMapper.queryRealnameByUserId(appBaseInfo.getOperationUser()));
|
|
|
if (appBaseInfo.getRequirementUser()!=null)
|
|
@@ -141,8 +142,14 @@ public class AppmanageServiceImpl implements AppmanageService {
|
|
|
if (appInfo.getAppEnvInfoDTO()!=null) hasEnvInfo = appInfo.getAppEnvInfoDTO().size()>0;
|
|
|
// 简易注册模式下添加基础信息即可
|
|
|
if (appBaseInfo.getAddType().equals("easy")){
|
|
|
- appManageUtil.sendCheckWordFlow(sendCheck_appBaseInfo, "021",loginUser.getUsername(),"admin");
|
|
|
- return "提交成功";
|
|
|
+ boolean tag = appManageUtil.sendCheckWordFlow(sendCheck_appBaseInfo, "021", loginUser.getUsername(), "admin");
|
|
|
+ // 发起流程失败则删除数据库内数据
|
|
|
+ if (tag){
|
|
|
+ return "提交成功";
|
|
|
+ } else {
|
|
|
+ baseInfoMapper.deleteAppInfoNotLogic(appBaseInfo.getId());
|
|
|
+ return "提交失败";
|
|
|
+ }
|
|
|
}else {
|
|
|
APP_Register_workFlow_FormEntity appRegisterWorkFlowFormEntity = new APP_Register_workFlow_FormEntity();
|
|
|
BeanUtils.copyProperties(appRegisterWorkFlowFormEntity, appDocInfo);
|
|
@@ -659,7 +666,7 @@ public class AppmanageServiceImpl implements AppmanageService {
|
|
|
AppBaseInfo appBaseInfo = baseInfoMapper.queryAppBaseInfoById(appid);
|
|
|
appManageUtil.CompareOldAppBaseInfoAndNewAppBaseInfo(appBaseInfo, formData);
|
|
|
// 以通过审批的应用信息为准更新应用信息
|
|
|
- baseInfoMapper.undateBaseInfo(appBaseInfo);
|
|
|
+ int i = baseInfoMapper.updateBaseInfo(appBaseInfo);
|
|
|
// QueryWrapper<AppBaseInfo> appBaseInfoQueryWrapper = new QueryWrapper<>();
|
|
|
// appBaseInfoQueryWrapper.eq("id", appid);
|
|
|
// int i = baseInfoMapper.update(appBaseInfo, appBaseInfoQueryWrapper);
|