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
+2
View File
@@ -10,7 +10,9 @@ create table laws_enterprise_standard_plan
depart_id varchar(50) comment '所在部门id', depart_id varchar(50) comment '所在部门id',
professional_module varchar(30) comment '专业模块', professional_module varchar(30) comment '专业模块',
draft_complete_date datetime comment '初稿完成日期', draft_complete_date datetime comment '初稿完成日期',
draft_complete_flag tinyint default 0 comment '初稿完成标识',
plan_archiving_date datetime comment '计划归档日期', plan_archiving_date datetime comment '计划归档日期',
plan_archiving_flag tinyint default 0 comment '计划归档标识',
have_english_version varchar(50) comment '是否有英文版', have_english_version varchar(50) comment '是否有英文版',
committee varchar(500) comment '所属技术委员会', committee varchar(500) comment '所属技术委员会',
actual_archiving_date datetime comment '实际归档日期', actual_archiving_date datetime comment '实际归档日期',
@@ -73,16 +73,16 @@ public class EnterpriseStandardPlanController extends JeroController<EnterpriseS
@PostMapping(value = "/delete") @PostMapping(value = "/delete")
public Result<T> deleteEN(@RequestBody IdMapBody map) { public Result<T> deleteEN(@RequestBody IdMapBody map) {
if (map.getId() == null || org.apache.commons.lang.StringUtils.isEmpty(map.getId())) { 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(); String id = map.getId();
EnterpriseStandardPlan esPlan = esPlanService.getById(id); EnterpriseStandardPlan esPlan = esPlanService.getById(id);
if (esPlan == null) { if (esPlan == null) {
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.NO_CORRESPONDING_RECORD_FOUND)); throw new JeroBootException(ResultCommon.NO_CORRESPONDING_RECORD_FOUND);
} else { } else {
esPlanService.deleteById(id); esPlanService.deleteById(id);
} }
return Result.OK(MessageUtils.getMessage(ResultCommon.OK)); return Result.OK(ResultCommon.OK);
} }
@RequiresPermissions("enterpriseStandardLibrary:plan:export") @RequiresPermissions("enterpriseStandardLibrary:plan:export")
@@ -1,9 +1,6 @@
package com.jero.modules.laws.enterprise.entity; package com.jero.modules.laws.enterprise.entity;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.jero.common.aspect.annotation.Dict; import com.jero.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
@@ -80,6 +77,11 @@ public class EnterpriseStandardPlan {
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date draftCompleteDate; 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") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date planArchivingDate; private Date planArchivingDate;
/**
* 计划归档标识
*/
@ApiModelProperty(value = "计划归档标识")
private Integer planArchivingFlag;
/** /**
* 是否有英文版 * 是否有英文版
*/ */
@@ -150,6 +157,7 @@ public class EnterpriseStandardPlan {
/** /**
* 删除状态(0-正常,1-删除) * 删除状态(0-正常,1-删除)
*/ */
@TableLogic
@ApiModelProperty(value = "删除状态(0-正常,1-删除)") @ApiModelProperty(value = "删除状态(0-正常,1-删除)")
private Integer delFlag; private Integer delFlag;
@@ -70,6 +70,11 @@ public class EnterpriseStandardPlanVo {
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date draftCompleteDate; private Date draftCompleteDate;
/**
* 初稿完成标识
*/
@ApiModelProperty(value = "初稿完成标识")
private Integer draftCompleteFlag;
/** /**
* 计划归档日期 * 计划归档日期
*/ */
@@ -78,6 +83,11 @@ public class EnterpriseStandardPlanVo {
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date planArchivingDate; private Date planArchivingDate;
/**
* 计划归档标识
*/
@ApiModelProperty(value = "计划归档标识")
private Integer planArchivingFlag;
/** /**
* 是否有英文版 * 是否有英文版
*/ */