feat:任务执行创建算例
This commit is contained in:
@@ -24,6 +24,7 @@ import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -259,6 +260,8 @@ public class SimulationSystemConfigServiceImpl extends BaseService implements IS
|
||||
* 添加系统表单配置
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public SdmResponse addSystemFormConfigure(FormConfigure configure) {
|
||||
SdmResponse response = SdmResponse.success();
|
||||
if (CollectionUtils.isNotEmpty(formConfigureService.lambdaQuery().eq(SysFormConfigure::getFormName, configure.formName).list())) {
|
||||
@@ -278,6 +281,8 @@ public class SimulationSystemConfigServiceImpl extends BaseService implements IS
|
||||
/**
|
||||
* 更新系统表单配置 将原先新增和更新在一起的方法拆开,因为新增重复表单要提示
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public SdmResponse updateSystemFormConfigure(FormConfigure configure) {
|
||||
SdmResponse response = SdmResponse.success();
|
||||
if (CollectionUtils.isNotEmpty(formConfigureService.lambdaQuery().eq(SysFormConfigure::getFormName, configure.formName).list())) {
|
||||
@@ -299,6 +304,8 @@ public class SimulationSystemConfigServiceImpl extends BaseService implements IS
|
||||
/**
|
||||
* 删除系统表单配置
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public SdmResponse deleteFormConfigure(FormConfigure configure) {
|
||||
if(!formConfigureService.removeById(configure.id)) {
|
||||
return SdmResponse.failed("删除表单配置失败");
|
||||
|
||||
Reference in New Issue
Block a user