update 调整企标计划字段

This commit is contained in:
lijiarao
2024-09-19 15:56:31 +08:00
parent ea54febf1b
commit 1a658915f5
4 changed files with 27 additions and 7 deletions
@@ -73,16 +73,16 @@ public class EnterpriseStandardPlanController extends JeroController<EnterpriseS
@PostMapping(value = "/delete")
public Result<T> deleteEN(@RequestBody IdMapBody map) {
if (map.getId() == null || org.apache.commons.lang.StringUtils.isEmpty(map.getId())) {
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.PARAMETERS_CANNOT_BE_NULL));
throw new JeroBootException(ResultCommon.PARAMETERS_CANNOT_BE_NULL);
}
String id = map.getId();
EnterpriseStandardPlan esPlan = esPlanService.getById(id);
if (esPlan == null) {
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.NO_CORRESPONDING_RECORD_FOUND));
throw new JeroBootException(ResultCommon.NO_CORRESPONDING_RECORD_FOUND);
} else {
esPlanService.deleteById(id);
}
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
return Result.OK(ResultCommon.OK);
}
@RequiresPermissions("enterpriseStandardLibrary:plan:export")
@@ -1,9 +1,6 @@
package com.jero.modules.laws.enterprise.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jero.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
@@ -80,6 +77,11 @@ public class EnterpriseStandardPlan {
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date draftCompleteDate;
/**
* 初稿完成标识
*/
@ApiModelProperty(value = "初稿完成标识")
private Integer draftCompleteFlag;
/**
* 计划归档日期
*/
@@ -87,6 +89,11 @@ public class EnterpriseStandardPlan {
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date planArchivingDate;
/**
* 计划归档标识
*/
@ApiModelProperty(value = "计划归档标识")
private Integer planArchivingFlag;
/**
* 是否有英文版
*/
@@ -150,6 +157,7 @@ public class EnterpriseStandardPlan {
/**
* 删除状态(0-正常,1-删除)
*/
@TableLogic
@ApiModelProperty(value = "删除状态(0-正常,1-删除)")
private Integer delFlag;
@@ -70,6 +70,11 @@ public class EnterpriseStandardPlanVo {
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date draftCompleteDate;
/**
* 初稿完成标识
*/
@ApiModelProperty(value = "初稿完成标识")
private Integer draftCompleteFlag;
/**
* 计划归档日期
*/
@@ -78,6 +83,11 @@ public class EnterpriseStandardPlanVo {
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date planArchivingDate;
/**
* 计划归档标识
*/
@ApiModelProperty(value = "计划归档标识")
private Integer planArchivingFlag;
/**
* 是否有英文版
*/