药柜第三方接口

hlfyyy
qiuyt 1 month ago
parent 082c99f3e4
commit 35fddf6682

@ -0,0 +1,17 @@
package com.glxp.mipsdl.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* /
*/
//此注解只能修饰方法
@Target(ElementType.METHOD)
//当前注解如何去保持
@Retention(RetentionPolicy.RUNTIME)
public @interface AuthRuleAnnotation {
String value();
}

@ -0,0 +1,82 @@
package com.glxp.mipsdl.aspect;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.mipsdl.annotation.AuthRuleAnnotation;
import com.glxp.mipsdl.dao.auth.AuthLicenseDao;
import com.glxp.mipsdl.entity.auth.AuthLicense;
import com.glxp.mipsdl.enums.ResultEnum;
import com.glxp.mipsdl.exception.JsonException;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.lang.reflect.Method;
import java.util.Enumeration;
/**
* AOP
*/
@Aspect
@Component
@Slf4j
public class AuthorizeAspect {
@Resource
private AuthLicenseDao authLicenseDao;
@Pointcut("@annotation(com.glxp.mipsdl.annotation.AuthRuleAnnotation)")
public void adminLoginVerify() {
}
/**
*
*
* @param joinPoint
*/
@Before("adminLoginVerify()")
public void doAdminAuthVerify(JoinPoint joinPoint) {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
if (attributes == null) {
throw new JsonException(ResultEnum.NOT_NETWORK);
}
HttpServletRequest request = attributes.getRequest();
String apiKey = request.getHeader("api_key");
String secretKey = request.getHeader("secret_key");
AuthLicense authLicense = authLicenseDao.keyGet(apiKey);
if (authLicense != null && authLicense.getSecretKey().equals(secretKey)) {
} else {
throw new JsonException(ResultEnum.AUTH_FAILED);
}
// 进行权限验证
// authRuleVerify(action.value(), adminId);
}
public String getAdminId(HttpServletRequest request) {
String id = request.getHeader("ADMINID");
if (StrUtil.isBlank(id)) {
id = request.getHeader("ADMIN_ID");
}
return id;
}
public String getToken(HttpServletRequest request) {
String token = request.getHeader("ADMINTOKEN");
if (StrUtil.isBlank(token)) {
token = request.getHeader("ADMIN_TOKEN");
}
return token;
}
}

@ -0,0 +1,206 @@
package com.glxp.mipsdl.controller;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.glxp.mipsdl.annotation.AuthRuleAnnotation;
import com.glxp.mipsdl.entity.drugcabinet.A001;
import com.glxp.mipsdl.entity.drugcabinet.A002;
import com.glxp.mipsdl.entity.drugcabinet.A002Mx;
import com.glxp.mipsdl.entity.drugcabinet.B003;
import com.glxp.mipsdl.req.drugCabinet.*;
import com.glxp.mipsdl.res.BaseResponse;
import com.glxp.mipsdl.res.drugCabinet.A002Response;
import com.glxp.mipsdl.thirddao.drugcabinet.A001Mapper;
import com.glxp.mipsdl.thirddao.drugcabinet.A002Mapper;
import com.glxp.mipsdl.thirddao.drugcabinet.A002MxMapper;
import com.glxp.mipsdl.thirddao.drugcabinet.B003Mapper;
import com.glxp.mipsdl.util.ResultVOUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.*;
/**
*
*/
@RestController
@Slf4j
public class DrugCabinetController {
@Resource
private A001Mapper a001Mapper;
@Resource
private A002Mapper a002Mapper;
@Resource
private B003Mapper b003Mapper;
@Resource
private A002MxMapper a002MxMapper;
@Value("${DRUG_MACHINE_URL:http://127.0.0.1:9997}")
private String drugMachineUrl;
@PostMapping("/udiwms/drug/filter/view")
@AuthRuleAnnotation("")
public BaseResponse drugFilterView(@RequestBody DrugMachineA001Request drugMachineA001Request) {
if (StrUtil.isEmpty(drugMachineA001Request.getCode()) && StrUtil.isEmpty(drugMachineA001Request.getName()) &&
StrUtil.isEmpty(drugMachineA001Request.getNameCode())&&
StrUtil.isEmpty(drugMachineA001Request.getYbbm())&&
StrUtil.isEmpty(drugMachineA001Request.getManufactory())
) {
return ResultVOUtils.error(500,"查询参数不能为空");
}
List<A001> list = a001Mapper.selectList(
new LambdaQueryWrapper<A001>()
.eq(StringUtils.isNotEmpty(drugMachineA001Request.getCode()),A001::getCode, drugMachineA001Request.getCode())
.like(StringUtils.isNotEmpty(drugMachineA001Request.getName()),A001::getName, drugMachineA001Request.getName())
.eq(StringUtils.isNotEmpty(drugMachineA001Request.getNameCode()),A001::getNameCode, drugMachineA001Request.getNameCode())
.eq(StringUtils.isNotEmpty(drugMachineA001Request.getYbbm()),A001::getYbbm, drugMachineA001Request.getYbbm())
.like(StringUtils.isNotEmpty(drugMachineA001Request.getManufactory()),A001::getManufactory, drugMachineA001Request.getManufactory()
));
return ResultVOUtils.success(list);
}
@PostMapping("/udiwms/drug/filter/interface")
@AuthRuleAnnotation("")
public BaseResponse drugFilterInterface(@RequestBody DrugMachineA001Request drugMachineA001Request) {
if (StrUtil.isEmpty(drugMachineA001Request.getCode()) && StrUtil.isEmpty(drugMachineA001Request.getName()) &&
StrUtil.isEmpty(drugMachineA001Request.getNameCode())&&
StrUtil.isEmpty(drugMachineA001Request.getYbbm())&&
StrUtil.isEmpty(drugMachineA001Request.getManufactory())
) {
return ResultVOUtils.error(500,"查询参数不能为空");
}
Map headersMap = new HashMap();
headersMap.put("api_key","1101");
headersMap.put("secret_key","zBITspLNvuoEd4FaamlSoqxRHmNsmQ6L");
HttpRequest request = HttpRequest.post(drugMachineUrl+"/udiwms/drug/filter/view")
.addHeaders(headersMap)
.body(JSONUtil.toJsonStr(drugMachineA001Request));
String body = request.execute().body();
BaseResponse<List<A001>> listBaseResponse =
JSONObject.parseObject(body, new TypeReference<BaseResponse<List<A001>>>() {
});
return listBaseResponse;
}
@PostMapping("/udiwms/order/filter/view")
@AuthRuleAnnotation("")
public BaseResponse orderFilterView(@RequestBody OrderMachineA002Request orderMachineA002Request) {
if (StrUtil.isEmpty(orderMachineA002Request.getCode()) && StrUtil.isEmpty(orderMachineA002Request.getSickName()) && StrUtil.isEmpty(orderMachineA002Request.getSickCode()) &&
StrUtil.isEmpty(orderMachineA002Request.getPrescribeStartDate())&&
StrUtil.isEmpty(orderMachineA002Request.getPrescribeEndDate())
) {
return ResultVOUtils.error(500,"查询参数不能为空");
}
List<A002> list = a002Mapper.selectList(
new LambdaQueryWrapper<A002>()
.eq(StringUtils.isNotEmpty(orderMachineA002Request.getCode()),A002::getCode, orderMachineA002Request.getCode())
.eq(StringUtils.isNotEmpty(orderMachineA002Request.getSickCode()),A002::getCode, orderMachineA002Request.getSickCode())
.like(StringUtils.isNotEmpty(orderMachineA002Request.getSickName()),A002::getSickname, orderMachineA002Request.getSickName())
.between((StringUtils.isNotEmpty(orderMachineA002Request.getPrescribeStartDate()) && StringUtils.isNotEmpty(orderMachineA002Request.getPrescribeStartDate())),
A002::getPrescribedate, orderMachineA002Request.getPrescribeStartDate(),orderMachineA002Request.getPrescribeEndDate())
);
List<A002Response> a002ResponseList = new ArrayList<>();
if(CollUtil.isNotEmpty(list)){
for (A002 a002 : list) {
A002Response a002Response = new A002Response();
BeanUtils.copyProperties(a002,a002Response);
List<A002Mx> a002MxList = a002MxMapper.selectList(
new LambdaQueryWrapper<A002Mx>()
.eq(StringUtils.isNotEmpty(orderMachineA002Request.getCode()),A002Mx::getCodefk, a002.getCode())
);
a002Response.setList(a002MxList);
a002ResponseList.add(a002Response);
}
}
return ResultVOUtils.success(a002ResponseList);
}
@PostMapping("/udiwms/order/filter/interface")
@AuthRuleAnnotation("")
public BaseResponse orderFilterInterface(@RequestBody OrderMachineA002Request orderMachineA002Request) {
if (StrUtil.isEmpty(orderMachineA002Request.getCode()) && StrUtil.isEmpty(orderMachineA002Request.getSickName()) &&
StrUtil.isEmpty(orderMachineA002Request.getPrescribeStartDate())&&
StrUtil.isEmpty(orderMachineA002Request.getPrescribeEndDate())
) {
return ResultVOUtils.error(500,"查询参数不能为空");
}
Map headersMap = new HashMap();
headersMap.put("api_key","1101");
headersMap.put("secret_key","zBITspLNvuoEd4FaamlSoqxRHmNsmQ6L");
HttpRequest request = HttpRequest.post(drugMachineUrl+"/udiwms/order/filter/view")
.addHeaders(headersMap)
.body(JSONUtil.toJsonStr(orderMachineA002Request));
String body = request.execute().body();
BaseResponse<List<A002Response>> listBaseResponse =
JSONObject.parseObject(body, new TypeReference<BaseResponse<List<A002Response>>>() {
});
return listBaseResponse;
}
@PostMapping("/udiwms/order/tagging")
@AuthRuleAnnotation("")
public BaseResponse orderCode(@RequestBody OrderMachineB003Request orderMachineB003Request) {
if(StringUtils.isEmpty(orderMachineB003Request.getBillNo())){
return ResultVOUtils.error(500,"处方单号不能为空");
}
if(StringUtils.isEmpty(orderMachineB003Request.getBillDate())){
return ResultVOUtils.error(500,"赋码日期不能为空");
}
if(Objects.isNull(orderMachineB003Request.getProductsList())){
return ResultVOUtils.error(500,"处方产品明细不能为空");
}
Map headersMap = new HashMap();
headersMap.put("api_key","1101");
headersMap.put("secret_key","zBITspLNvuoEd4FaamlSoqxRHmNsmQ6L");
HttpRequest request = HttpRequest.post(drugMachineUrl+"/udiwms/order/code/add")
.addHeaders(headersMap)
.body(JSONUtil.toJsonStr(orderMachineB003Request));
String body = request.execute().body();
BaseResponse<String> listBaseResponse =
JSONObject.parseObject(body, new TypeReference<BaseResponse<String>>() {
});
return listBaseResponse;
}
@PostMapping("/udiwms/order/code/add")
@AuthRuleAnnotation("")
public BaseResponse orderCodeAdd(@RequestBody OrderMachineB003Request orderMachineB003Request) {
for (OrderMachineB003ProductsRequest orderMachineB003ProductsRequest : orderMachineB003Request.getProductsList()) {
if(CollUtil.isNotEmpty(orderMachineB003ProductsRequest.getCodeList())){
for (OrderMachineB003CodeRequest orderMachineB003CodeRequest : orderMachineB003ProductsRequest.getCodeList()) {
B003 b003 = new B003();
BeanUtils.copyProperties(orderMachineB003CodeRequest,b003);
b003.setBillno(orderMachineB003Request.getBillNo());
b003.setBilldate(orderMachineB003Request.getBillDate());
b003.setRemark(orderMachineB003Request.getRemark());
b003.setItemcode(orderMachineB003ProductsRequest.getItemCode());
b003Mapper.insert(b003);
}
}
}
return ResultVOUtils.success("新增成功");
}
}

@ -1,9 +1,12 @@
package com.glxp.mipsdl.dao.auth;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.auth.AuthLicense;
import com.glxp.mipsdl.entity.auth.AuthLicenseEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface AuthLicenseDao extends BaseMapper<AuthLicenseEntity> {
AuthLicense keyGet(String id);
}

@ -0,0 +1,28 @@
package com.glxp.mipsdl.entity.auth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
@Data
@TableName("auth_license")
public class AuthLicense {
@TableId(value = "id", type = IdType.AUTO)
private String id;
// 名称
private String name;
// appid
private String appid;
// apikey
private String apiKey;
// 密钥
private String secretKey;
// 创建时间
private Date createDate;
private String customerId;
private String companyName;
}

@ -0,0 +1,98 @@
package com.glxp.mipsdl.entity.drugcabinet;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName(value = "a001")
public class A001 {
@TableField(value = "lastUpdateTime")
private String lastupdatetime;
@TableField(value = "code")
private String code;
@TableField(value = "`name`")
private String name;
@TableField(value = "nameCode")
private String nameCode;
@TableField(value = "measname")
private String measname;
@TableField(value = "bzgg")
private String bzgg;
@TableField(value = "packUnit")
private String packunit;
@TableField(value = "prepnSpec")
private String prepnspec;
@TableField(value = "prepnUnit")
private String prepnunit;
@TableField(value = "zxbzsl")
private String zxbzsl;
@TableField(value = "registerNo")
private String registerno;
@TableField(value = "manufactoryCode")
private String manufactorycode;
@TableField(value = "manufactory")
private String manufactory;
@TableField(value = "supCode")
private String supcode;
@TableField(value = "supName")
private String supname;
@TableField(value = "cplb")
private String cplb;
@TableField(value = "flbm")
private String flbm;
@TableField(value = "ybbm")
private String ybbm;
@TableField(value = "sptm")
private String sptm;
@TableField(value = "tyshxydm")
private String tyshxydm;
@TableField(value = "cpms")
private String cpms;
@TableField(value = "spmc")
private String spmc;
@TableField(value = "zczyxqz")
private String zczyxqz;
@TableField(value = "price")
private String price;
@TableField(value = "retailPrice")
private String retailprice;
@TableField(value = "remark")
private String remark;
@TableField(value = "remark1")
private String remark1;
@TableField(value = "remark2")
private String remark2;
@TableField(value = "remark3")
private String remark3;
}

@ -0,0 +1,43 @@
package com.glxp.mipsdl.entity.drugcabinet;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
@Data
@TableName(value = "a002")
public class A002 {
@TableField(value = "code")
private String code;
@TableField(value = "sickCode")
private String sickcode;
@TableField(value = "sickName")
private String sickname;
@TableField(value = "prescribeDate")
private Date prescribedate;
@TableField(value = "createDr")
private String createdr;
@TableField(value = "amount")
private String amount;
@TableField(value = "deptCode")
private String deptcode;
@TableField(value = "deptName")
private String deptname;
@TableField(value = "diagnosis")
private String diagnosis;
@TableField(value = "remark")
private String remark;
}

@ -0,0 +1,65 @@
package com.glxp.mipsdl.entity.drugcabinet;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName(value = "a002_mx")
public class A002Mx {
@TableField(value = "codeFk")
private String codefk;
@TableField(value = "itemName")
private String itemname;
@TableField(value = "itemCode")
private String itemcode;
@TableField(value = "measureCount")
private String measurecount;
@TableField(value = "measureUnit")
private String measureunit;
@TableField(value = "category")
private String category;
@TableField(value = "frequency")
private String frequency;
@TableField(value = "`count`")
private String count;
@TableField(value = "bzgg")
private String bzgg;
@TableField(value = "packUnit")
private String packunit;
@TableField(value = "prepnSpec")
private String prepnspec;
@TableField(value = "prepnUnit")
private String prepnunit;
@TableField(value = "measname")
private String measname;
@TableField(value = "price")
private String price;
@TableField(value = "retailPrice")
private String retailprice;
@TableField(value = "amount")
private String amount;
@TableField(value = "remark")
private String remark;
@TableField(value = "druglist")
private String druglist;
}

@ -0,0 +1,33 @@
package com.glxp.mipsdl.entity.drugcabinet;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
@Data
@TableName(value = "b003")
public class B003 {
@TableId(value = "billNo", type = IdType.INPUT)
private String billno;
@TableField(value = "billDate")
private String billdate;
@TableField(value = "itemCode")
private String itemcode;
@TableField(value = "code")
private String code;
@TableField(value = "nameCode")
private String nameCode;
@TableField(value = "`count`")
private Integer count;
@TableField(value = "remark")
private String remark;
}

@ -0,0 +1,33 @@
package com.glxp.mipsdl.exception;
import com.glxp.mipsdl.enums.ResultEnum;
import lombok.Getter;
/**
*
*/
@Getter
public class JsonException extends RuntimeException {
private Integer code;
public JsonException(ResultEnum resultEnum) {
super(resultEnum.getMessage());
this.code = resultEnum.getCode();
}
public JsonException(ResultEnum resultEnum, String message) {
super(message);
this.code = resultEnum.getCode();
}
public JsonException(Integer code, String message) {
super(message);
this.code = code;
}
public JsonException(String message) {
super(message);
this.code = ResultEnum.NOT_NETWORK.getCode();
}
}

@ -0,0 +1,27 @@
package com.glxp.mipsdl.req.drugCabinet;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
@Data
public class DrugMachineA001Request {
@TableField(value = "code")
private String code;
@TableField(value = "`name`")
private String name;
@TableField(value = "nameCode")
private String nameCode;
@TableField(value = "ybbm")
private String ybbm;
@TableField(value = "manufactory")
private String manufactory;
}

@ -0,0 +1,21 @@
package com.glxp.mipsdl.req.drugCabinet;
import lombok.Data;
@Data
public class OrderMachineA002Request {
private String code;
private String sickName;
private String sickCode;
private String prescribeStartDate;
private String prescribeEndDate;
}

@ -0,0 +1,11 @@
package com.glxp.mipsdl.req.drugCabinet;
import lombok.Data;
@Data
public class OrderMachineB003CodeRequest {
private String code;
private String nameCode;
private Integer count;
}

@ -0,0 +1,11 @@
package com.glxp.mipsdl.req.drugCabinet;
import lombok.Data;
import java.util.List;
@Data
public class OrderMachineB003ProductsRequest {
private String itemCode;
private List<OrderMachineB003CodeRequest> codeList;
}

@ -0,0 +1,22 @@
package com.glxp.mipsdl.req.drugCabinet;
import lombok.Data;
import java.util.List;
@Data
public class OrderMachineB003Request {
private String billNo;
private String billDate;
private String remark;
private List<OrderMachineB003ProductsRequest> productsList;
}

@ -0,0 +1,43 @@
package com.glxp.mipsdl.res.drugCabinet;
import com.baomidou.mybatisplus.annotation.TableField;
import com.glxp.mipsdl.entity.drugcabinet.A002Mx;
import lombok.Data;
import java.util.Date;
import java.util.List;
@Data
public class A002Response {
@TableField(value = "code")
private String code;
@TableField(value = "sickCode")
private String sickcode;
@TableField(value = "sickName")
private String sickname;
@TableField(value = "prescribeDate")
private Date prescribedate;
@TableField(value = "createDr")
private String createdr;
@TableField(value = "amount")
private String amount;
@TableField(value = "deptCode")
private String deptcode;
@TableField(value = "deptName")
private String deptname;
@TableField(value = "diagnosis")
private String diagnosis;
@TableField(value = "remark")
private String remark;
private List<A002Mx> list;
}

@ -0,0 +1,9 @@
package com.glxp.mipsdl.thirddao.drugcabinet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.drugcabinet.A001;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface A001Mapper extends BaseMapper<A001> {
}

@ -0,0 +1,9 @@
package com.glxp.mipsdl.thirddao.drugcabinet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.drugcabinet.A002;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface A002Mapper extends BaseMapper<A002> {
}

@ -0,0 +1,9 @@
package com.glxp.mipsdl.thirddao.drugcabinet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.drugcabinet.A002Mx;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface A002MxMapper extends BaseMapper<A002Mx> {
}

@ -0,0 +1,9 @@
package com.glxp.mipsdl.thirddao.drugcabinet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.drugcabinet.B003;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface B003Mapper extends BaseMapper<B003> {
}

@ -5,7 +5,7 @@ spring:
strict: false
datasource:
master:
url: jdbc:p6spy:mysql://192.168.0.43:3306/udi_wms_hlfy_pro?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_hlfy_pro?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 123456
driver-class-name: com.p6spy.engine.spy.P6SpyDriver

@ -17,4 +17,9 @@
<!--@mbg.generated-->
id, appid, `name`, apikey, secretkey, createDate, customerId, companyName
</sql>
<select id="keyGet" resultType="com.glxp.mipsdl.entity.auth.AuthLicense">
SELECT *
FROM auth_license
where apikey = #{apikey}
</select>
</mapper>

@ -0,0 +1,44 @@
<?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.glxp.mipsdl.thirddao.drugcabinet.A001Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.drugcabinet.A001">
<!--@mbg.generated-->
<!--@Table a001-->
<result column="lastUpdateTime" jdbcType="VARCHAR" property="lastupdatetime" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="nameCode" jdbcType="VARCHAR" property="namecode" />
<result column="measname" jdbcType="VARCHAR" property="measname" />
<result column="bzgg" jdbcType="VARCHAR" property="bzgg" />
<result column="packUnit" jdbcType="VARCHAR" property="packunit" />
<result column="prepnSpec" jdbcType="VARCHAR" property="prepnspec" />
<result column="prepnUnit" jdbcType="VARCHAR" property="prepnunit" />
<result column="zxbzsl" jdbcType="VARCHAR" property="zxbzsl" />
<result column="registerNo" jdbcType="VARCHAR" property="registerno" />
<result column="manufactoryCode" jdbcType="VARCHAR" property="manufactorycode" />
<result column="manufactory" jdbcType="VARCHAR" property="manufactory" />
<result column="supCode" jdbcType="VARCHAR" property="supcode" />
<result column="supName" jdbcType="VARCHAR" property="supname" />
<result column="cplb" jdbcType="VARCHAR" property="cplb" />
<result column="flbm" jdbcType="VARCHAR" property="flbm" />
<result column="ybbm" jdbcType="VARCHAR" property="ybbm" />
<result column="sptm" jdbcType="VARCHAR" property="sptm" />
<result column="tyshxydm" jdbcType="VARCHAR" property="tyshxydm" />
<result column="cpms" jdbcType="VARCHAR" property="cpms" />
<result column="spmc" jdbcType="VARCHAR" property="spmc" />
<result column="zczyxqz" jdbcType="VARCHAR" property="zczyxqz" />
<result column="price" jdbcType="VARCHAR" property="price" />
<result column="retailPrice" jdbcType="VARCHAR" property="retailprice" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="remark1" jdbcType="VARCHAR" property="remark1" />
<result column="remark2" jdbcType="VARCHAR" property="remark2" />
<result column="remark3" jdbcType="VARCHAR" property="remark3" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
lastUpdateTime, code, `name`, nameCode, measname, bzgg, packUnit, prepnSpec, prepnUnit,
zxbzsl, registerNo, manufactoryCode, manufactory, supCode, supName, cplb, flbm, ybbm,
sptm, tyshxydm, cpms, spmc, zczyxqz, price, retailPrice, remark, remark1, remark2,
remark3
</sql>
</mapper>

@ -0,0 +1,23 @@
<?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.glxp.mipsdl.thirddao.drugcabinet.A002Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.drugcabinet.A002">
<!--@mbg.generated-->
<!--@Table a002-->
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="sickCode" jdbcType="VARCHAR" property="sickcode" />
<result column="sickName" jdbcType="VARCHAR" property="sickname" />
<result column="prescribeDate" jdbcType="VARCHAR" property="prescribedate" />
<result column="createDr" jdbcType="VARCHAR" property="createdr" />
<result column="amount" jdbcType="VARCHAR" property="amount" />
<result column="deptCode" jdbcType="VARCHAR" property="deptcode" />
<result column="deptName" jdbcType="VARCHAR" property="deptname" />
<result column="diagnosis" jdbcType="VARCHAR" property="diagnosis" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
code, sickCode, sickName, prescribeDate, createDr, amount, deptCode, deptName, diagnosis,
remark
</sql>
</mapper>

@ -0,0 +1,32 @@
<?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.glxp.mipsdl.thirddao.drugcabinet.A002MxMapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.drugcabinet.A002Mx">
<!--@mbg.generated-->
<!--@Table a002_mx-->
<result column="codeFk" jdbcType="VARCHAR" property="codefk" />
<result column="itemName" jdbcType="VARCHAR" property="itemname" />
<result column="itemCode" jdbcType="VARCHAR" property="itemcode" />
<result column="measureCount" jdbcType="VARCHAR" property="measurecount" />
<result column="measureUnit" jdbcType="VARCHAR" property="measureunit" />
<result column="category" jdbcType="VARCHAR" property="category" />
<result column="frequency" jdbcType="VARCHAR" property="frequency" />
<result column="count" jdbcType="VARCHAR" property="count" />
<result column="bzgg" jdbcType="VARCHAR" property="bzgg" />
<result column="packUnit" jdbcType="VARCHAR" property="packunit" />
<result column="prepnSpec" jdbcType="VARCHAR" property="prepnspec" />
<result column="prepnUnit" jdbcType="VARCHAR" property="prepnunit" />
<result column="measname" jdbcType="VARCHAR" property="measname" />
<result column="price" jdbcType="VARCHAR" property="price" />
<result column="retailPrice" jdbcType="VARCHAR" property="retailprice" />
<result column="amount" jdbcType="VARCHAR" property="amount" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="druglist" jdbcType="VARCHAR" property="druglist" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
codeFk, itemName, itemCode, measureCount, measureUnit, category, frequency, `count`,
bzgg, packUnit, prepnSpec, prepnUnit, measname, price, retailPrice, amount, remark,
druglist
</sql>
</mapper>

@ -0,0 +1,18 @@
<?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.glxp.mipsdl.thirddao.drugcabinet.B003Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.drugcabinet.B003">
<!--@mbg.generated-->
<!--@Table b003-->
<id column="billNo" jdbcType="INTEGER" property="billno" />
<result column="billDate" jdbcType="TIMESTAMP" property="billdate" />
<result column="itemCode" jdbcType="VARCHAR" property="itemcode" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="nameCode" jdbcType="VARCHAR" property="namecode" />
<result column="count" jdbcType="INTEGER" property="count" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
billNo, billDate, itemCode, code, nameCode, `count`
</sql>
</mapper>
Loading…
Cancel
Save