|
@@ -392,6 +392,21 @@ public class ActBusinessController {
|
|
|
act.setTableId(tableId);
|
|
|
Map<String, Object> busiData = actBusinessService.getBaseMapper().getBusiData(tableId, tableName);
|
|
|
|
|
|
+ if(StringUtils.isNotBlank(tableName) && tableName.equals("incident_ticket")){
|
|
|
+
|
|
|
+ try {
|
|
|
+
|
|
|
+ int isConfirm = busiData.get("is_confirm") == null ? 0 : (Integer) busiData.get("is_confirm");
|
|
|
+ if(isConfirm != 1){
|
|
|
+ return Result.error("该事故单供应商还未确认,请确认后再次提交");
|
|
|
+ }
|
|
|
+ }catch (Exception e){
|
|
|
+ return Result.error("该事故单供应商还未确认,请确认后再次提交");
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
if (MapUtil.isNotEmpty(busiData)&&busiData.get(ActivitiConstant.titleKey)!=null){
|
|
|
//如果表单里有 标题 更新一下
|
|
|
actBusiness.setTitle(busiData.get(ActivitiConstant.titleKey)+"");
|