From f03c9566f3e32c6be0b70319d8abd09d6a649d06 Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Fri, 12 Jul 2024 18:07:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=94=B3=E8=AF=B7=E5=8D=95?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=20Applyform=20=E7=9B=B8=E5=85=B3=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/applyform/ApplyformController.java | 77 +++++++++++++++++++ .../applyform/department/departmentVO.java | 14 ++++ .../admin/applyform/devicevo/DeviceVO.java | 76 ++++++++++++++++++ .../admin/applyform/devicevo/deviceupVO.java | 17 ++++ .../applyform/vo/ApplyformPageReqVO.java | 5 ++ .../admin/applyform/vo/ApplyformRespVO.java | 8 +- .../applyform/vo/ApplyformSaveReqVO.java | 5 ++ .../dal/dataobject/applyform/ApplyformDO.java | 4 +- .../dal/device/DeviceDO.java | 74 ++++++++++++++++++ .../dal/device/Mapper/DeviceMapper.java | 20 +++++ .../dal/mysql/applyform/ApplyformMapper.java | 2 + .../applyform/device/DeviceService.java | 13 ++++ .../applyform/device/DeviceServiceImpl.java | 25 ++++++ .../mapper/applyform/DeviceMapper.xml | 14 ++++ 14 files changed, 349 insertions(+), 5 deletions(-) create mode 100644 yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/department/departmentVO.java create mode 100644 yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/devicevo/DeviceVO.java create mode 100644 yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/devicevo/deviceupVO.java create mode 100644 yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/device/DeviceDO.java create mode 100644 yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/device/Mapper/DeviceMapper.java create mode 100644 yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/service/applyform/device/DeviceService.java create mode 100644 yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/service/applyform/device/DeviceServiceImpl.java create mode 100644 yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/resources/mapper/applyform/DeviceMapper.xml diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java index bbcbb45a4..bba1cd5d9 100644 --- a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java @@ -1,5 +1,11 @@ package cn.iocoder.yudao.module.applyregistration.controller.admin.applyform; +import cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.devicevo.DeviceVO; +import cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.devicevo.deviceupVO; +import cn.iocoder.yudao.module.applyregistration.dal.device.DeviceDO; +import cn.iocoder.yudao.module.applyregistration.service.applyform.device.DeviceService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.*; import org.springframework.validation.annotation.Validated; import org.springframework.security.access.prepost.PreAuthorize; @@ -8,6 +14,8 @@ import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.Operation; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; import java.util.*; import java.io.IOException; @@ -36,9 +44,13 @@ import javax.validation.Valid; @Validated public class ApplyformController { + private static final Logger log = LoggerFactory.getLogger(ApplyformController.class); @Resource private ApplyformService applyformService; + @Resource + private DeviceService DeviceService; + @PostMapping("/create") @Operation(summary = "创建申请登记记录") @PreAuthorize("@ss.hasPermission('applyregistration:applyform:create')") @@ -93,4 +105,69 @@ public class ApplyformController { BeanUtils.toBean(list, ApplyformRespVO.class)); } + @GetMapping("/getdevice") + @Operation(summary = "获取分诊设备列表") + @Parameter(name = "orgid", description = "机构ID", required = true, example = "1024") + @PreAuthorize("@ss.hasPermission('applyregistration:applyform:query')") + public CommonResult> getDevicelist(@RequestParam("orgId") String orgId) { + List devicelist = DeviceService.getDevicelist(orgId); + return success(BeanUtils.toBean(devicelist, DeviceVO.class)); + } + + @PostMapping("/updateapplyform") + @Operation(summary = "分检更新") + @Parameter(name = "id", description = "ID", required = true, example = "1024") + @Parameter(name = "device", description = "设备", required = true,example = "12121") + @PreAuthorize("@ss.hasPermission('applyregistration:applyform:query')") + public CommonResult updateFJApplyform(@Valid @RequestBody deviceupVO deviceVO) { + + if (deviceVO==null) + { + log.error("分检更新方法参数为空"); + return success(false); + } + String device= deviceVO.getDevice(); + if (!device.isEmpty()) + { + LocalDateTime dateTime= LocalDateTime.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")), + DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); + String[] result = device.split("\\|"); + ApplyformSaveReqVO updateReqVO=new ApplyformSaveReqVO(); + updateReqVO.setId(deviceVO.getID()); + updateReqVO.setDeviceName(result[0]) ; + updateReqVO.setDeviceId(result[1]); + updateReqVO.setSortDate(dateTime); + updateReqVO.setExamStatus("未检查"); + applyformService.updateApplyform(updateReqVO); + return success(true); + } + else + { + return success(false); + } + + } + + + @DeleteMapping("/cancel") + @Operation(summary = "申请单作废") + @Parameter(name = "id", description = "编号", required = true) + @PreAuthorize("@ss.hasPermission('applyregistration:applyform:delete')") + public CommonResult cancelApplyform(@RequestParam("id") String id) { + + ApplyformSaveReqVO updateReqVO=new ApplyformSaveReqVO(); + updateReqVO.setId(id); + updateReqVO.setExamStatus("已放弃"); + applyformService.updateApplyform(updateReqVO); + return success(true); + } + + @GetMapping("/applfmdeptlist") + @Operation(summary = "获取分诊设备列表") + @Parameter(name = "orgid", description = "机构ID", required = true, example = "1024") + @PreAuthorize("@ss.hasPermission('applyregistration:applyform:query')") + public CommonResult> getapplfmdeptlist(@RequestParam("orgId") String orgId) { + List devicelist = DeviceService.getDevicelist(orgId); + return success(BeanUtils.toBean(devicelist, DeviceVO.class)); + } } \ No newline at end of file diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/department/departmentVO.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/department/departmentVO.java new file mode 100644 index 000000000..b2c9c9828 --- /dev/null +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/department/departmentVO.java @@ -0,0 +1,14 @@ +package cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.department; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.ToString; + +@ToString(callSuper = true) +@Data +public class departmentVO { + + + @Schema(description = "主键") + private String ID; +} diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/devicevo/DeviceVO.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/devicevo/DeviceVO.java new file mode 100644 index 000000000..848309750 --- /dev/null +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/devicevo/DeviceVO.java @@ -0,0 +1,76 @@ +package cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.devicevo; + + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; + +@ToString(callSuper = true) +@Data +public class DeviceVO { + + @Schema(description = "主键") + private String ID; + + /** + * 设备名称 + */ + @Schema(description = "设备名称") + private String deviceName; + /** + * 设备唯一编号 + */ + @Schema(description = "设备唯一编号") + private String deviceId; + /** + * 设备型号 + */ + @Schema(description = "设备型号") + private String deviceModel; + + /** + * 设备生产商 + */ + @Schema(description = "设备生产商") + private String deviceMaker; + + /** + * DR CT MR 超声等类别 + */ + @Schema(description = "超声等类别") + private String deviceType; + + /** + * 设备状态:0:失效,1:正常,设备故障或者淘汰,此状态置为 0 + */ + @Schema(description = "设备状态") + private String deviceStatus; + + /** + * 设备归属科室 + */ + @Schema(description = "设备归属科室") + private String deviceDepartment; + + /** + * 机构ID + */ + @Schema(description = "机构ID") + private String orgId; + + /** + * 设备录入时间 + */ + @Schema(description = "设备录入时间") + private String createDate; + + /** + * 设备归属科室代码 + */ + @Schema(description = "设备归属科室代码") + private String departmentCode; +} diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/devicevo/deviceupVO.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/devicevo/deviceupVO.java new file mode 100644 index 000000000..afa27bb7c --- /dev/null +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/devicevo/deviceupVO.java @@ -0,0 +1,17 @@ +package cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.devicevo; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.ToString; + +@ToString(callSuper = true) +@Data +public class deviceupVO { + + + @Schema(description = "主键") + private String ID; + + @Schema(description = "设备内容") + private String device; +} diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformPageReqVO.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformPageReqVO.java index 8736a1534..804c74fcc 100644 --- a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformPageReqVO.java +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformPageReqVO.java @@ -79,4 +79,9 @@ public class ApplyformPageReqVO extends PageParam { @Schema(description = "分检医生") private String sortDoctor; + @Schema(description = "执行科室") + private String deviceDepartment; + @Schema(description = "执行科室代码") + private String deviceDepartmentCode; + } \ No newline at end of file diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformRespVO.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformRespVO.java index 872634667..0ddb11255 100644 --- a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformRespVO.java +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformRespVO.java @@ -14,7 +14,6 @@ import com.alibaba.excel.annotation.*; public class ApplyformRespVO { @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "20234") - @ExcelProperty("主键") private String id; @Schema(description = "登记单号", example = "10624") @@ -82,7 +81,6 @@ public class ApplyformRespVO { private String billDoctorDepartment; @Schema(description = "此条记录的创建时间") - @ExcelProperty("此条记录的创建时间") private LocalDateTime createDate; @Schema(description = "检查项目代码") @@ -90,11 +88,15 @@ public class ApplyformRespVO { private String examItemCode; @Schema(description = "机构ID", example = "31976") - @ExcelProperty("机构ID") private String orgId; @Schema(description = "分检医生") @ExcelProperty("分检医生") private String sortDoctor; + @Schema(description = "执行科室") + private String deviceDepartment; + @Schema(description = "执行科室代码") + private String deviceDepartmentCode; + } \ No newline at end of file diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformSaveReqVO.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformSaveReqVO.java index 51d543dd4..465bd6194 100644 --- a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformSaveReqVO.java +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/vo/ApplyformSaveReqVO.java @@ -73,4 +73,9 @@ public class ApplyformSaveReqVO { @Schema(description = "分检医生") private String sortDoctor; + @Schema(description = "执行科室") + private String deviceDepartment; + @Schema(description = "执行科室代码") + private String deviceDepartmentCode; + } \ No newline at end of file diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/dataobject/applyform/ApplyformDO.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/dataobject/applyform/ApplyformDO.java index 08dd319b2..e9ca819d6 100644 --- a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/dataobject/applyform/ApplyformDO.java +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/dataobject/applyform/ApplyformDO.java @@ -137,7 +137,7 @@ public class ApplyformDO { /** * 执行科室代码 */ - @TableField("departmentCode") - private String departmentCode; + @TableField("deviceDepartmentCode") + private String deviceDepartmentCode; } \ No newline at end of file diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/device/DeviceDO.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/device/DeviceDO.java new file mode 100644 index 000000000..845a70006 --- /dev/null +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/device/DeviceDO.java @@ -0,0 +1,74 @@ +package cn.iocoder.yudao.module.applyregistration.dal.device; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.*; + +@TableName("tb_device") +@Data +@ToString(callSuper = true) +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class DeviceDO { + + @TableId(type = IdType.INPUT) + private String ID; + + /** + * 设备名称 + */ + @TableField("deviceName") + private String deviceName; + /** + * 设备唯一编号 + */ + @TableField("deviceId") + private String deviceId; + /** + * 设备型号 + */ + @TableField("deviceModel") + private String deviceModel; + + /** + * 设备生产商 + */ + @TableField("deviceMaker") + private String deviceMaker; + + /** + * DR CT MR 超声等类别 + */ + @TableField("deviceType") + private String deviceType; + + /** + * 设备状态:0:失效,1:正常,设备故障或者淘汰,此状态置为 0 + */ + @TableField("deviceStatus") + private String deviceStatus; + + /** + * 设备归属科室 + */ + @TableField("deviceDepartment") + private String deviceDepartment; + + /** + * 机构ID + */ + @TableField("orgId") + private String orgId; + + /** + * 设备录入时间 + */ + @TableField("createDate") + private String createDate; + + /** + * 设备归属科室代码 + */ + @TableField("departmentCode") + private String departmentCode; +} diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/device/Mapper/DeviceMapper.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/device/Mapper/DeviceMapper.java new file mode 100644 index 000000000..193e7cceb --- /dev/null +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/device/Mapper/DeviceMapper.java @@ -0,0 +1,20 @@ +package cn.iocoder.yudao.module.applyregistration.dal.device.Mapper; + +import cn.iocoder.yudao.framework.common.pojo.CommonResult; +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; +import cn.iocoder.yudao.module.applyregistration.dal.device.DeviceDO; +import com.baomidou.mybatisplus.annotation.InterceptorIgnore; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +@Mapper +@InterceptorIgnore(tenantLine = "true") +public interface DeviceMapper extends BaseMapperX +{ + + //获取机构表里的上级机构 + List SelectDevice(@Param("orgId") String orgId); +} diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/mysql/applyform/ApplyformMapper.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/mysql/applyform/ApplyformMapper.java index d555d8f33..e8a873bff 100644 --- a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/mysql/applyform/ApplyformMapper.java +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/dal/mysql/applyform/ApplyformMapper.java @@ -41,6 +41,8 @@ public interface ApplyformMapper extends BaseMapperX { .eqIfPresent(ApplyformDO::getExamItemCode, reqVO.getExamItemCode()) .eqIfPresent(ApplyformDO::getOrgId, reqVO.getOrgId()) .eqIfPresent(ApplyformDO::getSortDoctor, reqVO.getSortDoctor()) + .eqIfPresent(ApplyformDO::getDeviceDepartment,reqVO.getDeviceDepartment()) + .eqIfPresent(ApplyformDO::getDeviceDepartmentCode,reqVO.getDeviceDepartmentCode()) .orderByDesc(ApplyformDO::getId)); } diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/service/applyform/device/DeviceService.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/service/applyform/device/DeviceService.java new file mode 100644 index 000000000..dd2f03d81 --- /dev/null +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/service/applyform/device/DeviceService.java @@ -0,0 +1,13 @@ +package cn.iocoder.yudao.module.applyregistration.service.applyform.device; + +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.vo.ApplyformPageReqVO; +import cn.iocoder.yudao.module.applyregistration.dal.dataobject.applyform.ApplyformDO; +import cn.iocoder.yudao.module.applyregistration.dal.device.DeviceDO; + +import java.util.List; + +public interface DeviceService { + + List getDevicelist(String orgId); +} diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/service/applyform/device/DeviceServiceImpl.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/service/applyform/device/DeviceServiceImpl.java new file mode 100644 index 000000000..9269bc38c --- /dev/null +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/service/applyform/device/DeviceServiceImpl.java @@ -0,0 +1,25 @@ +package cn.iocoder.yudao.module.applyregistration.service.applyform.device; + + +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.module.applyregistration.dal.device.DeviceDO; +import cn.iocoder.yudao.module.applyregistration.dal.device.Mapper.DeviceMapper; +import org.springframework.stereotype.Service; +import org.springframework.validation.annotation.Validated; + +import javax.annotation.Resource; +import java.util.List; + +@Service +@Validated +public class DeviceServiceImpl implements DeviceService { + + + @Resource + private DeviceMapper DeviceMapper; + @Override + public List getDevicelist(String orgId) { + + return DeviceMapper.SelectDevice(orgId); + } +} diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/resources/mapper/applyform/DeviceMapper.xml b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/resources/mapper/applyform/DeviceMapper.xml new file mode 100644 index 000000000..60a096824 --- /dev/null +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/resources/mapper/applyform/DeviceMapper.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file