|
@@ -18,6 +18,7 @@ import com.boman.domain.dto.RoleMenuDto;
|
|
import com.boman.domain.exception.NoSuchFunctionException;
|
|
import com.boman.domain.exception.NoSuchFunctionException;
|
|
import com.boman.gen.api.RemoteGenTableColumnService;
|
|
import com.boman.gen.api.RemoteGenTableColumnService;
|
|
import com.boman.gen.api.RemoteGenTableService;
|
|
import com.boman.gen.api.RemoteGenTableService;
|
|
|
|
+import com.boman.jflow.api.RemoteJflowService;
|
|
import com.boman.system.api.RemoteMenuService;
|
|
import com.boman.system.api.RemoteMenuService;
|
|
import com.boman.system.api.domain.SysMenu;
|
|
import com.boman.system.api.domain.SysMenu;
|
|
import com.boman.web.core.domain.ActionType;
|
|
import com.boman.web.core.domain.ActionType;
|
|
@@ -86,6 +87,8 @@ public class TableServiceCmdService {
|
|
private RemoteGenTableColumnService remoteGenTableColumnService;
|
|
private RemoteGenTableColumnService remoteGenTableColumnService;
|
|
@Resource
|
|
@Resource
|
|
private RemoteMenuService remoteMenuService;
|
|
private RemoteMenuService remoteMenuService;
|
|
|
|
+ @Resource
|
|
|
|
+ private RemoteJflowService remoteJflowService;
|
|
|
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(TableServiceCmdService.class);
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(TableServiceCmdService.class);
|
|
|
|
|
|
@@ -105,7 +108,7 @@ public class TableServiceCmdService {
|
|
AjaxResult result;
|
|
AjaxResult result;
|
|
// 新增
|
|
// 新增
|
|
if (ActionType.INSERT.equals(context.getActionType())) {
|
|
if (ActionType.INSERT.equals(context.getActionType())) {
|
|
- Integer maxId = IdUtils.getMaxId(dto.getTable(), pkName);
|
|
|
|
|
|
+ Long maxId = IdUtils.getMaxId(dto.getTable(), pkName);
|
|
RowResult rowResult = saveService.insertRow(context, maxId);
|
|
RowResult rowResult = saveService.insertRow(context, maxId);
|
|
if (RowResult.checkSuccess(rowResult)) {
|
|
if (RowResult.checkSuccess(rowResult)) {
|
|
LOGGER.info("保存成功,封装到数据库的数据为: {}", JSON.toJSONString(rowResult.getData()));
|
|
LOGGER.info("保存成功,封装到数据库的数据为: {}", JSON.toJSONString(rowResult.getData()));
|
|
@@ -543,6 +546,15 @@ public class TableServiceCmdService {
|
|
// 先去查出之前的状态
|
|
// 先去查出之前的状态
|
|
List<Long> idList = map(commitData, jsonObject -> jsonObject.getLong(FormDataConstant.ID));
|
|
List<Long> idList = map(commitData, jsonObject -> jsonObject.getLong(FormDataConstant.ID));
|
|
|
|
|
|
|
|
+// for (Long id : idList) {
|
|
|
|
+// ProcessDto dto = new ProcessDto();
|
|
|
|
+// dto.setDbname(condition.getTable());
|
|
|
|
+// dto.setBusinessCode(id);
|
|
|
|
+// JSONObject process = remoteJflowService.createProcess(dto);
|
|
|
|
+//
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+
|
|
List<JSONObject> beforeList = selectService.selectByIdList(tableName, pkName, idList, Lists.newArrayList(pkName, STATUS));
|
|
List<JSONObject> beforeList = selectService.selectByIdList(tableName, pkName, idList, Lists.newArrayList(pkName, STATUS));
|
|
requireNonNull(beforeList, "beforeList is empty");
|
|
requireNonNull(beforeList, "beforeList is empty");
|
|
|
|
|