Преглед на файлове

新增数据补录接口

songxinlu преди 3 години
родител
ревизия
9848e2ea3a

+ 32 - 0
common/src/main/java/com/lantone/common/vo/DataRepariVO.java

@@ -0,0 +1,32 @@
+package com.lantone.common.vo;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @Description: 数据补录-接口入参
+ * @author: songxl
+ * @time: 2022/2/28 11:15
+ */
+@ApiModel(value = "数据补录-接口入参")
+@Getter
+@Setter
+public class DataRepariVO implements Serializable {
+
+    private static final long serialVersionUID = 8436111449081669803L;
+
+    @ApiModelProperty(value = "开始日期")
+    private Date startDate;
+
+    @ApiModelProperty(value = "截止日期")
+    private Date endDate;
+
+    @ApiModelProperty(value = "住院序号")
+    private String behospitalCode;
+
+}

+ 13 - 0
daqe-center/src/main/java/com/lantone/daqe/facade/BlockLossManagementFacade.java

@@ -13,6 +13,7 @@ import com.lantone.common.util.ListUtil;
 import com.lantone.common.util.StringUtil;
 import com.lantone.common.util.SysUserUtils;
 import com.lantone.common.vo.BlockLossTypeGatherVO;
+import com.lantone.common.vo.DataRepariVO;
 import com.lantone.daqe.client.OperationLogService;
 import com.lantone.daqe.dto.BlockLossTypeGatherDTO;
 import com.lantone.daqe.dto.GetBlockLossPageDTO;
@@ -611,4 +612,16 @@ public class BlockLossManagementFacade {
         }
         return blockLossTypeGatherDTO;
     }
+
+    /**
+     * 数据补录
+     *
+     * @param dataRepariVO
+     * @Return boolean
+     */
+    public boolean dataRepari(DataRepariVO dataRepariVO) {
+        //调用数据补录服务
+
+        return false;
+    }
 }

+ 3 - 1
daqe-center/src/main/java/com/lantone/daqe/vo/AddRegularVO.java

@@ -6,7 +6,7 @@ import lombok.Getter;
 import lombok.Setter;
 
 import javax.validation.constraints.NotBlank;
-import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
 import java.io.Serializable;
 
 /**
@@ -23,6 +23,7 @@ public class AddRegularVO implements Serializable {
 
     @ApiModelProperty(value = "正则式名称", required = true)
     @NotBlank(message = "正则式名称不能为空")
+    @Size(min = 1, max = 30, message = ("正则式名称长度1-30"))
     private String name;
 
     @ApiModelProperty(value = "正则式值", required = true)
@@ -30,6 +31,7 @@ public class AddRegularVO implements Serializable {
     private String val;
 
     @ApiModelProperty(value = "描述")
+    @Size(min = 0, max = 200, message = ("说明长度1-30"))
     private String description;
 
 }

+ 10 - 1
daqe-center/src/main/java/com/lantone/daqe/web/BlockLossManagementController.java

@@ -3,11 +3,12 @@ package com.lantone.daqe.web;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.lantone.common.api.CommonResult;
 import com.lantone.common.vo.BlockLossTypeGatherVO;
+import com.lantone.common.vo.DataCompareVO;
+import com.lantone.common.vo.DataRepariVO;
 import com.lantone.daqe.dto.BlockLossTypeGatherDTO;
 import com.lantone.daqe.dto.GetBlockLossPageDTO;
 import com.lantone.daqe.dto.UpBlockLossByIdVO;
 import com.lantone.daqe.facade.BlockLossManagementFacade;
-import com.lantone.common.vo.DataCompareVO;
 import com.lantone.daqe.vo.GetBlockLossPageVO;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -59,4 +60,12 @@ public class BlockLossManagementController {
     public CommonResult<BlockLossTypeGatherDTO> blockLossTypeGather(@RequestBody @Valid BlockLossTypeGatherVO blockLossTypeGatherVO) {
         return CommonResult.success(blockLossManagementFacade.blockLossTypeGather(blockLossTypeGatherVO));
     }
+
+
+    @ApiOperation(value = "数据补录 [by:songxl]", notes = "数据补录")
+    @PostMapping("/dataRepari")
+    @Transactional
+    public CommonResult<Boolean> dataRepari(@RequestBody @Valid DataRepariVO dataRepariVO) {
+        return CommonResult.success(blockLossManagementFacade.dataRepari(dataRepariVO));
+    }
 }