wangzl 4 месяцев назад
Родитель
Сommit
0e612a749c

+ 0 - 80
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/controller/BizInfusionHistoryController.java

@@ -1,80 +0,0 @@
-package cn.tr.module.smart.common.controller;
-
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import cn.dev33.satoken.annotation.SaCheckPermission;
-import cn.tr.core.validation.Insert;
-import cn.tr.core.validation.Update;
-import cn.tr.core.pojo.CommonResult;
-import lombok.AllArgsConstructor;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RestController;
-import cn.tr.module.smart.common.dto.BizInfusionHistoryDTO;
-import cn.tr.module.smart.common.service.IBizInfusionHistoryService;
-import cn.tr.module.smart.common.dto.BizInfusionHistoryQueryDTO;
-import java.util.*;
-import cn.tr.plugin.mybatis.base.BaseController;
-import org.springframework.web.bind.annotation.*;
-import cn.tr.module.api.sys.log.annotation.OperateLog;
-import cn.tr.core.pojo.TableDataInfo;
-/**
- * 输注-输注历史记录表控制器
- *
- * @author lf
- * @date  2025/08/05 10:31
- */
-@Api(tags = "输注-输注历史记录表")
-@RestController
-@RequestMapping("/common/infusionHistory")
-@AllArgsConstructor
-public class BizInfusionHistoryController extends BaseController{
-
-    private final IBizInfusionHistoryService bizInfusionHistoryService;
-
-    @ApiOperationSupport(author = "lf",order = 1)
-    @ApiOperation(value="根据条件查询输注-输注历史记录表",notes = "权限: 无")
-    @PostMapping("/query/page")
-    public TableDataInfo<BizInfusionHistoryDTO> selectList(@RequestBody BizInfusionHistoryQueryDTO query) {
-        startPage();
-        return getDataTable(bizInfusionHistoryService.selectBizInfusionHistoryList(query));
-    }
-
-    @ApiOperationSupport(author = "lf",order = 2)
-    @ApiOperation(value = "根据id查询输注-输注历史记录表",notes = "权限: common:infusionHistory:query")
-    @GetMapping("/detail/{id}")
-    @SaCheckPermission("common:infusionHistory:query")
-    public CommonResult<BizInfusionHistoryDTO> findById(@PathVariable("id") String id){
-        return CommonResult.success(bizInfusionHistoryService.selectBizInfusionHistoryById(id));
-    }
-
-    @ApiOperationSupport(author = "lf",order = 3)
-    @ApiOperation(value="添加输注-输注历史记录表",notes = "权限: common:infusionHistory:add")
-    @PostMapping("/add")
-    @OperateLog
-    @SaCheckPermission("common:infusionHistory:add")
-    public CommonResult<Boolean> add(@RequestBody@Validated(Insert.class) BizInfusionHistoryDTO source) {
-        return CommonResult.success(bizInfusionHistoryService.insertBizInfusionHistory(source));
-    }
-
-    @ApiOperationSupport(author = "lf",order = 4)
-    @ApiOperation(value="通过主键id编辑输注-输注历史记录表",notes = "权限: common:infusionHistory:edit")
-    @PostMapping("/edit")
-    @OperateLog
-    @SaCheckPermission("common:infusionHistory:edit")
-    public CommonResult<Boolean> edit(@RequestBody@Validated(Update.class) BizInfusionHistoryDTO source) {
-        return CommonResult.success(bizInfusionHistoryService.updateBizInfusionHistoryById(source));
-    }
-
-    @ApiOperationSupport(author = "lf",order = 5)
-    @ApiOperation(value="删除输注-输注历史记录表",notes = "权限: common:infusionHistory:remove")
-    @PostMapping("/removeByIds")
-    @OperateLog
-    @SaCheckPermission("common:infusionHistory:remove")
-    public CommonResult<Integer> delete(@RequestBody Collection<String> ids) {
-        return CommonResult.success(bizInfusionHistoryService.removeBizInfusionHistoryByIds(ids));
-    }
-}

+ 0 - 144
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/dto/BizInfusionHistoryDTO.java

@@ -1,144 +0,0 @@
-package cn.tr.module.smart.common.dto;
-
-import cn.tr.plugin.mybatis.pojo.BaseDTO;
-import lombok.EqualsAndHashCode;
-import lombok.ToString;
-import cn.tr.core.validation.Insert;
-import cn.tr.core.validation.Update;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import javax.validation.constraints.*;
-import java.io.Serializable;
-import java.math.BigDecimal;
-import java.util.*;
-/**
- * 输注-输注历史记录表传输对象
- *
- * @author lf
- * @date  2025/08/05 10:31
- **/
-@Data
-@ApiModel("输注-输注历史记录表传输对象")
-@ToString
-public class BizInfusionHistoryDTO implements Serializable {
-    private static final long serialVersionUID = 1L;
-    @ApiModelProperty(value = "主键", position = 1)
-     @NotBlank  (message = "主键不能为空",groups = {Update.class})
-    private String id;
-
-    @ApiModelProperty(value = "设备唯一编码", position = 2)
-    private String deviceId;
-
-    @ApiModelProperty(value = "设备数据标识", position = 3)
-    private String classification;
-
-    @ApiModelProperty(value = "输注过程中的数据编号", position = 4)
-    private Integer dataNumber;
-
-    @ApiModelProperty(value = "住院号(设备上传的住院号)", position = 5)
-    private String patientCode;
-
-    @ApiModelProperty(value = "总量", position = 6)
-    private Integer totalDose;
-
-    @ApiModelProperty(value = "公共-首次量", position = 7)
-    private Integer firstDose;
-
-    @ApiModelProperty(value = "公共-剩余量", position = 8)
-    private BigDecimal remainDose;
-
-    @ApiModelProperty(value = "公共-已输入量", position = 9)
-    private BigDecimal inputDose;
-
-    @ApiModelProperty(value = "公共-追加量", position = 10)
-    private BigDecimal appendDose;
-
-    @ApiModelProperty(value = "公共-追加锁时", position = 11)
-    private BigDecimal appendLockTime;
-
-    @ApiModelProperty(value = "公共-极限量", position = 12)
-    private BigDecimal maxDose;
-
-    @ApiModelProperty(value = "公共-自控次数", position = 13)
-    private Integer selfControlCount;
-
-    @ApiModelProperty(value = "公共-自控锁时", position = 14)
-    private BigDecimal selfControlLockTime;
-
-    @ApiModelProperty(value = "公共-有效次数", position = 15)
-    private Integer pcaValidCount;
-
-    @ApiModelProperty(value = "公共-无效次数", position = 16)
-    private Integer pcaInvalidCount;
-
-    @ApiModelProperty(value = "公共-总按次数", position = 17)
-    private Integer pcaTotalCount;
-
-    @ApiModelProperty(value = "持续-持续量", position = 18)
-    private BigDecimal continueDose;
-
-    @ApiModelProperty(value = "脉冲-脉冲量", position = 19)
-    private Integer pulseDose;
-
-    @ApiModelProperty(value = "脉冲-脉冲锁时", position = 20)
-    private Integer pulseLockTime;
-
-    @ApiModelProperty(value = "脉冲-脉冲首次锁时", position = 21)
-    private Integer pulseFirstLockTime;
-
-    @ApiModelProperty(value = "智能-加档周期", position = 22)
-    private BigDecimal flowUpCycle;
-
-    @ApiModelProperty(value = "智能-减档周期", position = 23)
-    private BigDecimal flowDownCycle;
-
-    @ApiModelProperty(value = "智能-计次", position = 24)
-    private Integer flowCount;
-
-    @ApiModelProperty(value = "智能-上限", position = 25)
-    private BigDecimal flowUpLimit;
-
-    @ApiModelProperty(value = "智能-下限", position = 26)
-    private BigDecimal flowDownLimit;
-
-    @ApiModelProperty(value = "智能-自调比例", position = 27)
-    private BigDecimal flowAdjustRate;
-
-    @ApiModelProperty(value = "智能-输注过程中是否出现过加档受限", position = 28)
-    private String flowRestricted;
-
-    @ApiModelProperty(value = "智能-加减档提示", position = 29)
-    private Integer warnFlow;
-
-    @ApiModelProperty(value = "电量", position = 30)
-    private Integer electricQuantity;
-
-    @ApiModelProperty(value = "镇痛泵运行状态", position = 31)
-    private Integer deviceRunState;
-
-    @ApiModelProperty(value = "输液将结束(0:否,1:是)", position = 32)
-    private String warnWillFinished;
-
-    @ApiModelProperty(value = "镇痛不足(0:否,1:是)", position = 33)
-    private String warnAnalgesicPoor;
-
-    @ApiModelProperty(value = "电量偏低(0:否,1:是)", position = 34)
-    private String warnLowBattery;
-
-    @ApiModelProperty(value = "报警信息", position = 35)
-    private Integer deviceAlarm;
-
-    @ApiModelProperty(value = "开始时间", position = 36)
-    private Date infusionStartTime;
-
-    @ApiModelProperty(value = "一次输注最后上传时间", position = 37)
-    private Date lastUploadTime;
-
-    @ApiModelProperty(value = "设备类型", position = 38)
-    private Integer type;
-
-    @ApiModelProperty(value = "医院编码", position = 40)
-    private String hospitalCode;
-
-}

+ 0 - 8
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/mapper/BizInfusionHistoryMapper.java

@@ -2,7 +2,6 @@ package cn.tr.module.smart.common.mapper;
 
 
 import cn.tr.module.smart.common.dto.NbPumpInfusionDTO;
 import cn.tr.module.smart.common.dto.NbPumpInfusionDTO;
 import cn.tr.module.smart.common.po.BizInfusionHistoryPO;
 import cn.tr.module.smart.common.po.BizInfusionHistoryPO;
-import cn.tr.module.smart.common.dto.BizInfusionHistoryDTO;
 import org.mapstruct.Mapper;
 import org.mapstruct.Mapper;
 import org.mapstruct.Mapping;
 import org.mapstruct.Mapping;
 import org.mapstruct.Mappings;
 import org.mapstruct.Mappings;
@@ -26,12 +25,5 @@ public interface BizInfusionHistoryMapper {
     )
     )
     BizInfusionHistoryPO convertPO(NbPumpInfusionDTO source);
     BizInfusionHistoryPO convertPO(NbPumpInfusionDTO source);
 
 
-    BizInfusionHistoryPO convertPO(BizInfusionHistoryDTO source);
-
-    BizInfusionHistoryDTO convertDto(BizInfusionHistoryPO source);
-
-    List<BizInfusionHistoryDTO> convertDtoList(List<BizInfusionHistoryPO> source);
-
-    List<BizInfusionHistoryPO> convertPOList(List<BizInfusionHistoryDTO> source);
 
 
 }
 }

+ 0 - 54
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/service/IBizInfusionHistoryService.java

@@ -1,54 +0,0 @@
-package cn.tr.module.smart.common.service;
-
-import cn.tr.module.smart.common.dto.BizInfusionHistoryDTO;
-import cn.tr.module.smart.common.dto.BizInfusionHistoryQueryDTO;
-import java.util.*;
-
-/**
- * 输注-输注历史记录表Service接口
- *
- * @author lf
- * @date  2025/08/05 10:31
- **/
-public interface IBizInfusionHistoryService{
-
-    /**
-     * 根据条件查询输注-输注历史记录表
-     * @param    query 查询参数
-     * @author   lf
-     * @date      2025/08/05 10:31
-     */
-    List<BizInfusionHistoryDTO> selectBizInfusionHistoryList(BizInfusionHistoryQueryDTO query);
-
-    /**
-     * 根据id查询输注-输注历史记录表
-     * @param    id 主键id
-     * @author   lf
-     * @date      2025/08/05 10:31
-     */
-    BizInfusionHistoryDTO selectBizInfusionHistoryById(String id);
-
-    /**
-     * 编辑输注-输注历史记录表
-     * @param   source 编辑实体类
-     * @author  lf
-     * @date     2025/08/05 10:31
-     */
-    boolean updateBizInfusionHistoryById(BizInfusionHistoryDTO source);
-
-    /**
-     * 新增输注-输注历史记录表
-     * @param   source 新增实体类
-     * @author lf
-     * @date  2025/08/05 10:31
-     */
-    boolean insertBizInfusionHistory(BizInfusionHistoryDTO source);
-
-    /**
-     * 删除输注-输注历史记录表详情
-     * @param  ids 删除主键集合
-     * @author lf
-     * @date    2025/08/05 10:31
-     */
-    int removeBizInfusionHistoryByIds(Collection<String> ids);
-}

+ 0 - 92
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/service/impl/BizInfusionHistoryServiceImpl.java

@@ -1,92 +0,0 @@
-package cn.tr.module.smart.common.service.impl;
-
-import cn.tr.core.exception.TRExcCode;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-import cn.hutool.core.collection.CollectionUtil;
-import org.springframework.transaction.annotation.Transactional;
-import cn.tr.core.exception.ServiceException;
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
-import cn.tr.module.smart.common.repository.BizInfusionHistoryRepository;
-import cn.tr.module.smart.common.po.BizInfusionHistoryPO;
-import cn.tr.module.smart.common.dto.BizInfusionHistoryDTO;
-import cn.tr.module.smart.common.dto.BizInfusionHistoryQueryDTO;
-import java.util.*;
-import cn.tr.module.smart.common.service.IBizInfusionHistoryService;
-import cn.tr.module.smart.common.mapper.BizInfusionHistoryMapper;
-/**
- * 输注-输注历史记录表Service接口实现类
- *
- * @author lf
- * @date  2025/08/05 10:31
- **/
-@Service
-public class BizInfusionHistoryServiceImpl implements IBizInfusionHistoryService {
-    @Autowired
-    private BizInfusionHistoryRepository baseRepository;
-
-
-    /**
-    * 根据条件查询输注-输注历史记录表
-    * @param    query 查询参数
-    * @author   lf
-    * @date      2025/08/05 10:31
-    */
-    @Override
-    public List<BizInfusionHistoryDTO> selectBizInfusionHistoryList(BizInfusionHistoryQueryDTO query){
-        return BizInfusionHistoryMapper.INSTANCE.convertDtoList(
-                baseRepository.selectList(new LambdaQueryWrapper<BizInfusionHistoryPO>()
-                )
-        );
-    };
-
-    /**
-    * 根据id查询输注-输注历史记录表
-    * @param    id 主键id
-    * @author   lf
-    * @date      2025/08/05 10:31
-    */
-    @Override
-    public BizInfusionHistoryDTO selectBizInfusionHistoryById(String id){
-        return BizInfusionHistoryMapper.INSTANCE.convertDto(baseRepository.selectById(id));
-    };
-
-    /**
-    * 编辑输注-输注历史记录表
-    * @param   source 编辑实体类
-    * @author  lf
-    * @date     2025/08/05 10:31
-    */
-    @Transactional(rollbackFor = Exception.class)
-    @Override
-    public boolean updateBizInfusionHistoryById(BizInfusionHistoryDTO source){
-            return baseRepository.updateById(BizInfusionHistoryMapper.INSTANCE.convertPO(source))!=0;
-    };
-
-    /**
-    * 新增输注-输注历史记录表
-    * @param   source 新增实体类
-    * @author lf
-    * @date  2025/08/05 10:31
-    */
-    @Override
-    @Transactional(rollbackFor = Exception.class)
-    public boolean insertBizInfusionHistory(BizInfusionHistoryDTO source){
-        return baseRepository.insert(BizInfusionHistoryMapper.INSTANCE.convertPO(source))!=0;
-    };
-
-    /**
-    * 删除输注-输注历史记录表详情
-    * @param  ids 删除主键集合
-    * @author lf
-    * @date    2025/08/05 10:31
-    */
-    @Override
-    @Transactional(rollbackFor = Exception.class)
-    public int removeBizInfusionHistoryByIds(Collection<String> ids){
-        if(CollectionUtil.isEmpty(ids)){
-            throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"请选择要删除的数据");
-        }
-        return baseRepository.deleteBatchIds(ids);
-    };
-}