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

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

View File

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

View File

@ -66,17 +66,17 @@ public class AddWorkFlowVersion {
@ApiModelProperty("删除标志0代表存在 2代表删除") @ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
/** // /**
* 0 1- 2- 3 4 // * 审核状态0全部状态 1已发布-公开 2已发布-仅自己可见 3审核中 4审核未通过
*/ // */
@ApiModelProperty("审核状态0全部状态 1已发布-公开 2已发布-仅自己可见 3审核中 4审核未通过") // @ApiModelProperty("审核状态0全部状态 1已发布-公开 2已发布-仅自己可见 3审核中 4审核未通过")
private Integer auditStatus = 3; // private Integer auditStatus = 3;
//
/** // /**
* // * 审核失败原因
*/ // */
@ApiModelProperty("审核失败原因") // @ApiModelProperty("审核失败原因")
private String auditText; // private String auditText;
/** /**
* ID * 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.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mcwl.common.constant.DictConstants; import com.mcwl.common.constant.DictConstants;
import com.mcwl.common.constant.HttpStatus; 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.R;
import com.mcwl.common.core.domain.entity.SysUser; import com.mcwl.common.core.domain.entity.SysUser;
import com.mcwl.common.core.page.TableDataInfo; import com.mcwl.common.core.page.TableDataInfo;
@ -318,7 +317,6 @@ public class WorkFlowServiceImpl extends ServiceImpl<WorkFlowMapper, WorkFlow> i
//批量修改 //批量修改
for (WorkFlowVersion workFlowVersion : requestWorkFlow.getWorkFlowVersionList()) { for (WorkFlowVersion workFlowVersion : requestWorkFlow.getWorkFlowVersionList()) {
workFlowVersion.setAuditStatus(3);
// workFlowVersionMapper.updateWorkFlowVersion(workFlowVersion); // workFlowVersionMapper.updateWorkFlowVersion(workFlowVersion);
if (workFlowVersion.getId() != null){ if (workFlowVersion.getId() != null){
workFlowVersionMapper.updateById(workFlowVersion); workFlowVersionMapper.updateById(workFlowVersion);