zhoutg 4 سال پیش
والد
کامیت
914956e10a

+ 17 - 0
src/main/java/com/diagbot/dto/BillDTO.java

@@ -0,0 +1,17 @@
+package com.diagbot.dto;
+
+import lombok.Data;
+
+/**
+ * @description: 开单合理性出参
+ * @author: zhoutg
+ * @time: 2020/7/29 9:57
+ */
+@Data
+public class BillDTO {
+    // 化验
+
+    // 辅检
+
+    // 药品
+}

+ 0 - 83
src/main/java/com/diagbot/entity/SysUser.java

@@ -1,83 +0,0 @@
-package com.diagbot.entity;
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import lombok.Data;
-
-import java.io.Serializable;
-import java.util.Date;
-
-/**
- * <p>
- * 系统用户表
- * </p>
- *
- * @author zhoutg
- * @since 2020-07-27
- */
-@Data
-public class SysUser implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 用户ID
-     */
-    @TableId(value = "id", type = IdType.AUTO)
-    private Long id;
-
-    /**
-     * 是否删除,N:未删除,Y:删除
-     */
-    private String isDeleted;
-
-    /**
-     * 记录创建时间
-     */
-    private Date gmtCreate;
-
-    /**
-     * 记录修改时间,如果时间是1970年则表示纪录未修改
-     */
-    private Date gmtModified;
-
-    /**
-     * 创建人,0表示无创建人值
-     */
-    private String creator;
-
-    /**
-     * 修改人,如果为0则表示纪录未修改
-     */
-    private String modifier;
-
-    /**
-     * 用户名
-     */
-    private String username;
-
-    /**
-     * 用户密码
-     */
-    private String password;
-
-    /**
-     * 联系人
-     */
-    private String linkman;
-
-    /**
-     * 是否启用(0:停用,1:启用)
-     */
-    private Integer status;
-
-    /**
-     * 1内部用户,0外部用户(默认0)
-     */
-    private Integer type;
-
-    /**
-     * 备注
-     */
-    private String remark;
-}

+ 35 - 0
src/main/java/com/diagbot/facade/BillFacade.java

@@ -0,0 +1,35 @@
+package com.diagbot.facade;
+
+import com.diagbot.dto.BillDTO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+/**
+ * @Description: 开单合理性facade
+ * @author: zhoutg
+ * @time: 2018/8/6 9:11
+ */
+@Component
+public class BillFacade {
+
+    @Autowired
+    NeoFacade neoFacade;
+    @Autowired
+    RuleFacade ruleFacade;
+
+    /**
+     * 开单合理性业务
+     * @param
+     * @return
+     */
+    public BillDTO billFac() {
+        // 模型处理数据 TODO
+
+        // 标准词转换 TODO
+
+        // 图谱接口调用 TODO
+
+        // 规则开发 TODO
+        return null;
+    }
+}

+ 29 - 0
src/main/java/com/diagbot/facade/NeoFacade.java

@@ -0,0 +1,29 @@
+package com.diagbot.facade;
+
+import com.diagbot.dto.BillDTO;
+import org.springframework.stereotype.Component;
+
+/**
+ * @Description: 图谱facade
+ * @author: zhoutg
+ * @time: 2018/8/6 9:11
+ */
+@Component
+public class NeoFacade {
+
+    /**
+     * 开单合理性业务
+     * @param
+     * @return
+     */
+    public BillDTO billFac() {
+        // 模型处理数据 TODO
+
+        // 标准词转换 TODO
+
+        // 图谱接口调用 TODO
+
+        // 规则开发 TODO
+        return null;
+    }
+}

+ 13 - 0
src/main/java/com/diagbot/facade/RuleFacade.java

@@ -0,0 +1,13 @@
+package com.diagbot.facade;
+
+import org.springframework.stereotype.Component;
+
+/**
+ * @Description: 规则facade
+ * @author: zhoutg
+ * @time: 2018/8/6 9:11
+ */
+@Component
+public class RuleFacade {
+
+}

+ 0 - 24
src/main/java/com/diagbot/facade/UserFacade.java

@@ -1,24 +0,0 @@
-package com.diagbot.facade;
-
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.diagbot.entity.SysUser;
-import com.diagbot.enums.IsDeleteEnum;
-import com.diagbot.service.impl.SysUserServiceImpl;
-import org.springframework.stereotype.Component;
-
-import java.util.List;
-
-/**
- * @Description: 用户日志业务层
- * @author: zhoutg
- * @time: 2018/8/6 9:11
- */
-@Component
-public class UserFacade extends SysUserServiceImpl {
-
-    public List<SysUser> getlist() {
-        QueryWrapper<SysUser> queryWrapper = new QueryWrapper<>();
-        queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
-        return this.list(queryWrapper);
-    }
-}

+ 0 - 18
src/main/java/com/diagbot/mapper/SysUserMapper.java

@@ -1,18 +0,0 @@
-package com.diagbot.mapper;
-
-import com.baomidou.dynamic.datasource.annotation.DS;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.diagbot.entity.SysUser;
-
-/**
- * <p>
- * 系统用户表 Mapper 接口
- * </p>
- *
- * @author zhoutg
- * @since 2020-07-27
- */
-@DS("mysql")
-public interface SysUserMapper extends BaseMapper<SysUser> {
-
-}

+ 0 - 16
src/main/java/com/diagbot/service/SysUserService.java

@@ -1,16 +0,0 @@
-package com.diagbot.service;
-
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.diagbot.entity.SysUser;
-
-/**
- * <p>
- * 系统用户表 服务类
- * </p>
- *
- * @author zhoutg
- * @since 2020-07-27
- */
-public interface SysUserService extends IService<SysUser> {
-
-}

+ 0 - 20
src/main/java/com/diagbot/service/impl/SysUserServiceImpl.java

@@ -1,20 +0,0 @@
-package com.diagbot.service.impl;
-
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.diagbot.entity.SysUser;
-import com.diagbot.mapper.SysUserMapper;
-import com.diagbot.service.SysUserService;
-import org.springframework.stereotype.Service;
-
-/**
- * <p>
- * 系统用户表 服务实现类
- * </p>
- *
- * @author zhoutg
- * @since 2020-07-27
- */
-@Service
-public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {
-
-}

+ 0 - 21
src/main/java/com/diagbot/vo/SysLogVo.java

@@ -1,21 +0,0 @@
-package com.diagbot.vo;
-
-import lombok.Getter;
-import lombok.Setter;
-
-import java.util.Date;
-
-/**
- * @Description:
- * @author: zhoutg
- * @time: 2018/8/6 10:16
- */
-@Getter
-@Setter
-public class SysLogVo {
-    private Date createDate;
-    private String ip;
-    private String method;
-    private String operation;
-    private String params;
-}

+ 33 - 0
src/main/java/com/diagbot/web/CoreController.java

@@ -0,0 +1,33 @@
+package com.diagbot.web;
+
+import com.diagbot.dto.BillDTO;
+import com.diagbot.dto.RespDTO;
+import com.diagbot.facade.BillFacade;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Description: CDSS核心API控制层
+ * @author: zhoutg
+ * @time: 2018/8/30 10:12
+ */
+@RestController
+@RequestMapping("/core")
+@Api(value = "CDSS核心API", tags = { "CDSS核心API" })
+@SuppressWarnings("unchecked")
+public class CoreController {
+
+    @Autowired
+    private BillFacade billFacade;
+
+    @ApiOperation(value = "开单合理性API[zhoutg]", notes = "")
+    @PostMapping("/bill")
+    public RespDTO<BillDTO> bill() {
+        return RespDTO.onSuc(billFacade.billFac());
+    }
+}
+

+ 0 - 41
src/main/java/com/diagbot/web/UserController.java

@@ -1,41 +0,0 @@
-package com.diagbot.web;
-
-
-import com.diagbot.dto.RespDTO;
-import com.diagbot.entity.SysUser;
-import com.diagbot.facade.UserFacade;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import java.util.List;
-
-/**
- * @Description: 日志操作控制层
- * @author: zhoutg
- * @time: 2018/8/30 10:12
- */
-@RestController
-@RequestMapping("/user")
-@Api(value = "用户API", tags = { "用户API" })
-@SuppressWarnings("unchecked")
-public class UserController {
-
-    @Autowired
-    private UserFacade userFacade;
-
-    /**
-     * 获取用户列表
-     *
-     * @return 日志列信息
-     */
-    @ApiOperation(value = "获取用户列表", notes = "获取用户列表")
-    @PostMapping("/list")
-    public RespDTO<List<SysUser>> getlist() {
-        return RespDTO.onSuc(userFacade.getlist());
-    }
-}
-

+ 0 - 21
src/main/resources/mapper/SysUserMapper.xml

@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.diagbot.mapper.SysUserMapper">
-
-    <!-- 通用查询映射结果 -->
-    <resultMap id="BaseResultMap" type="com.diagbot.entity.SysUser">
-        <id column="id" property="id" />
-        <result column="is_deleted" property="isDeleted" />
-        <result column="gmt_create" property="gmtCreate" />
-        <result column="gmt_modified" property="gmtModified" />
-        <result column="creator" property="creator" />
-        <result column="modifier" property="modifier" />
-        <result column="username" property="username" />
-        <result column="password" property="password" />
-        <result column="linkman" property="linkman" />
-        <result column="status" property="status" />
-        <result column="type" property="type" />
-        <result column="remark" property="remark" />
-    </resultMap>
-
-</mapper>