删除工作流版本审核相关属性

master
Diyu0904 2025-02-14 15:38:09 +08:00
parent 57bdbdca3b
commit 3859feb21d
4 changed files with 24 additions and 26 deletions

View File

@ -93,7 +93,7 @@ public class MallProductController extends BaseController {
@ApiOperation(value = "添加模型")
@PostMapping("/insert")
public AjaxResult addupdateModel(@RequestBody RequestModel requestModel) {
public R<String> addupdateModel(@RequestBody RequestModel requestModel) {
ModelProduct modelProduct = requestModel.getModelProduct();
Long userId = SecurityUtils.getUserId();
modelProduct.setUserId(userId);
@ -130,7 +130,7 @@ public class MallProductController extends BaseController {
*/
@ApiOperation(value = "查询模型详情")
@GetMapping("/selectModelById")
public AjaxResult selectModelById(@Valid @NotNull(message = "模型id不能为空") @RequestParam Long id) {
public R<ModelProduct> selectModelById(@Valid @NotNull(message = "模型id不能为空") @RequestParam Long id) {
return modelService.selectModelById(id);
}

View File

@ -60,17 +60,17 @@ public class WorkFlowVersion {
@ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag;
/**
* 0 1- 2- 3 4
*/
@ApiModelProperty("审核状态0全部状态 1已发布-公开 2已发布-仅自己可见 3审核中 4审核未通过")
private Integer auditStatus = 3;
/**
*
*/
@ApiModelProperty("审核失败原因")
private String auditText;
// /**
// * 审核状态0全部状态 1已发布-公开 2已发布-仅自己可见 3审核中 4审核未通过
// */
// @ApiModelProperty("审核状态0全部状态 1已发布-公开 2已发布-仅自己可见 3审核中 4审核未通过")
// private Integer auditStatus = 3;
//
// /**
// * 审核失败原因
// */
// @ApiModelProperty("审核失败原因")
// private String auditText;
/**
* ID

View File

@ -66,17 +66,17 @@ public class AddWorkFlowVersion {
@ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag;
/**
* 0 1- 2- 3 4
*/
@ApiModelProperty("审核状态0全部状态 1已发布-公开 2已发布-仅自己可见 3审核中 4审核未通过")
private Integer auditStatus = 3;
/**
*
*/
@ApiModelProperty("审核失败原因")
private String auditText;
// /**
// * 审核状态0全部状态 1已发布-公开 2已发布-仅自己可见 3审核中 4审核未通过
// */
// @ApiModelProperty("审核状态0全部状态 1已发布-公开 2已发布-仅自己可见 3审核中 4审核未通过")
// private Integer auditStatus = 3;
//
// /**
// * 审核失败原因
// */
// @ApiModelProperty("审核失败原因")
// private String auditText;
/**
* ID

View File

@ -11,7 +11,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mcwl.common.constant.DictConstants;
import com.mcwl.common.constant.HttpStatus;
import com.mcwl.common.core.domain.AjaxResult;
import com.mcwl.common.core.domain.R;
import com.mcwl.common.core.domain.entity.SysUser;
import com.mcwl.common.core.page.TableDataInfo;
@ -318,7 +317,6 @@ public class WorkFlowServiceImpl extends ServiceImpl<WorkFlowMapper, WorkFlow> i
//批量修改
for (WorkFlowVersion workFlowVersion : requestWorkFlow.getWorkFlowVersionList()) {
workFlowVersion.setAuditStatus(3);
// workFlowVersionMapper.updateWorkFlowVersion(workFlowVersion);
if (workFlowVersion.getId() != null){
workFlowVersionMapper.updateById(workFlowVersion);