完善社交应用审核通过、取消审核通过界面端功能逻辑。
This commit is contained in:
@@ -247,7 +247,13 @@ public class AppCfgController extends BaseController {
|
||||
}else if(cfg.getIsAudit()==Constants.AUDIT_YES){//审核通过,设置有效标志为1
|
||||
cfg.setIsValid(Constants.VALID_YES);
|
||||
}
|
||||
int result=appCfgService.auditAppCfg(cfg);
|
||||
try {
|
||||
int result=appCfgService.auditAppCfg(cfg);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
logger.error("配置下发maat失败,"+e.getMessage());
|
||||
addMessage(model,"配置审核下发失败!");
|
||||
}
|
||||
model.addAttribute("serviceId", cfg.getServiceId());
|
||||
model.addAttribute("action", cfg.getAction());
|
||||
}
|
||||
@@ -264,11 +270,11 @@ public class AppCfgController extends BaseController {
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@RequestMapping(value = {"deleteCfg"})
|
||||
public String deleteAppCfg(int action,long cfgId,String cfgName,Integer serviceId,Model model) {
|
||||
public String deleteAppCfg(int action,long cfgId,Integer compileId,String cfgName,Integer serviceId,Model model) {
|
||||
model.addAttribute("serviceId", serviceId);
|
||||
model.addAttribute("cfgName", cfgName);
|
||||
model.addAttribute("action", action);
|
||||
model.addAttribute("cfgType","complex");
|
||||
model.addAttribute("cfgType","app");
|
||||
model.addAttribute("audit", Constants.CFG_PAGE);
|
||||
int audit=appCfgService.getIsAudit(cfgId);
|
||||
//未审核时可删除
|
||||
@@ -278,6 +284,7 @@ public class AppCfgController extends BaseController {
|
||||
cfg.setEditorId(cfg.getCurrentUser().getId());
|
||||
cfg.setEditTime(new Date());
|
||||
cfg.setIsValid(Constants.VALID_DEL);
|
||||
cfg.setCompileId(compileId);
|
||||
int result=appCfgService.deleteAppCfg(cfg);
|
||||
addMessage(model,"删除成功,正在为您跳转页面...");
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user