test
parent
098280532f
commit
b34ad7e181
@ -1,9 +1,9 @@
|
||||
package com.glxp.api.dao.basic;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.glxp.api.entity.basic.BasicSkPrescirbeDetailEntity;
|
||||
import com.glxp.api.entity.basic.BasicSkPrescribeItemEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BasicSkPrescirbeDetailMapper extends BaseMapper<BasicSkPrescirbeDetailEntity> {
|
||||
public interface BasicSkPrescirbeDetailMapper extends BaseMapper<BasicSkPrescribeItemEntity> {
|
||||
}
|
||||
|
@ -0,0 +1,18 @@
|
||||
package com.glxp.api.dao.basic;
|
||||
|
||||
import com.glxp.api.entity.basic.BasicSkPrescribeItemDetailEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【basic_sk_prescribe_item_detail(处方用药信息表)】的数据库操作Mapper
|
||||
* @createDate 2023-11-07 10:13:54
|
||||
* @Entity com.glxp.api.entity.basic.BasicSkPrescribeItemDetailEntity
|
||||
*/
|
||||
public interface BasicSkPrescribeItemDetailMapper extends BaseMapper<BasicSkPrescribeItemDetailEntity> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,18 @@
|
||||
package com.glxp.api.dao.basic;
|
||||
|
||||
import com.glxp.api.entity.basic.BasicSkPrescribeItemEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【basic_sk_prescribe_item(处方用药信息表)】的数据库操作Mapper
|
||||
* @createDate 2023-11-07 10:13:54
|
||||
* @Entity com.glxp.api.entity.basic.BasicSkPrescribeItemEntity
|
||||
*/
|
||||
public interface BasicSkPrescribeItemMapper extends BaseMapper<BasicSkPrescribeItemEntity> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,119 @@
|
||||
package com.glxp.api.entity.basic;
|
||||
|
||||
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.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 处方用药信息表
|
||||
*
|
||||
* @TableName basic_sk_prescribe_item
|
||||
*/
|
||||
@TableName(value = "basic_sk_prescribe_item")
|
||||
@Data
|
||||
public class BasicSkPrescribeItemEntity implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(value = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 第三方id
|
||||
*/
|
||||
@TableField(value = "thrId")
|
||||
private String thrId;
|
||||
|
||||
/**
|
||||
* 患者编码
|
||||
*/
|
||||
@TableField(value = "sickerCode")
|
||||
private String sickerCode;
|
||||
|
||||
/**
|
||||
* 处方编码
|
||||
*/
|
||||
@TableField(value = "prescribeCode")
|
||||
private String prescribeCode;
|
||||
|
||||
/**
|
||||
* 耗材产品id
|
||||
*/
|
||||
@TableField(value = "relId")
|
||||
private Long relId;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@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 Integer count;
|
||||
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
@TableField(value = "price")
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 总价
|
||||
*/
|
||||
@TableField(value = "amount")
|
||||
private BigDecimal amount;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
@TableField(value = "ggxh")
|
||||
private String ggxh;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField(value = "remark")
|
||||
private String remark;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.glxp.api.service;
|
||||
|
||||
import com.glxp.api.entity.basic.BasicSkPrescribeItemDetailEntity;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【basic_sk_prescribe_item_detail(处方用药信息表)】的数据库操作Service
|
||||
* @createDate 2023-11-07 10:13:54
|
||||
*/
|
||||
public interface BasicSkPrescribeItemDetailService extends IService<BasicSkPrescribeItemDetailEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.glxp.api.service;
|
||||
|
||||
import com.glxp.api.entity.basic.BasicSkPrescribeItemEntity;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 针对表【basic_sk_prescribe_item(处方用药信息表)】的数据库操作Service
|
||||
*/
|
||||
public interface BasicSkPrescribeItemService extends IService<BasicSkPrescribeItemEntity> {
|
||||
|
||||
List<BasicSkPrescribeItemEntity> listByPrescribeCode(String prescribeCode);
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.glxp.api.service.basic.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.glxp.api.entity.basic.BasicSkPrescribeItemDetailEntity;
|
||||
import com.glxp.api.service.BasicSkPrescribeItemDetailService;
|
||||
import com.glxp.api.dao.basic.BasicSkPrescribeItemDetailMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【basic_sk_prescribe_item_detail(处方用药信息表)】的数据库操作Service实现
|
||||
* @createDate 2023-11-07 10:13:54
|
||||
*/
|
||||
@Service
|
||||
public class BasicSkPrescribeItemDetailServiceImpl extends ServiceImpl<BasicSkPrescribeItemDetailMapper, BasicSkPrescribeItemDetailEntity>
|
||||
implements BasicSkPrescribeItemDetailService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,30 @@
|
||||
package com.glxp.api.service.basic.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.glxp.api.entity.basic.BasicSkPrescribeItemEntity;
|
||||
import com.glxp.api.service.BasicSkPrescribeItemService;
|
||||
import com.glxp.api.dao.basic.BasicSkPrescribeItemMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 针对表【basic_sk_prescribe_item(处方用药信息表)】的数据库操作Service实现
|
||||
*/
|
||||
@Service
|
||||
public class BasicSkPrescribeItemServiceImpl extends ServiceImpl<BasicSkPrescribeItemMapper, BasicSkPrescribeItemEntity>
|
||||
implements BasicSkPrescribeItemService {
|
||||
|
||||
@Override
|
||||
public List<BasicSkPrescribeItemEntity> listByPrescribeCode(String prescribeCode) {
|
||||
List<BasicSkPrescribeItemEntity> list = super.list(Wrappers.lambdaQuery(BasicSkPrescribeItemEntity.class)
|
||||
.eq(BasicSkPrescribeItemEntity::getPrescribeCode, prescribeCode)
|
||||
);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,17 @@
|
||||
package com.glxp.api.vo.basic;
|
||||
|
||||
import com.glxp.api.entity.basic.BasicSkPrescribeEntity;
|
||||
import com.glxp.api.entity.basic.BasicSkPrescribeItemEntity;
|
||||
import com.glxp.api.res.basic.BasicSkSickerResponse;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class BasicSkPrescribeDetailVo extends BasicSkPrescribeEntity {
|
||||
|
||||
BasicSkSickerResponse sicker;
|
||||
|
||||
List<BasicSkPrescribeItemEntity> items;
|
||||
|
||||
}
|
@ -1,30 +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.glxp.api.dao.basic.BasicSkPrescirbeDetailMapper">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkPrescirbeDetailEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table basic_sk_prescirbe_detail-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="relId" jdbcType="BIGINT" property="relId" />
|
||||
<result column="thrName" jdbcType="VARCHAR" property="thrName" />
|
||||
<result column="thrCode" jdbcType="VARCHAR" property="thrCode" />
|
||||
<result column="pId" jdbcType="BIGINT" property="pId" />
|
||||
<result column="count" jdbcType="INTEGER" property="count" />
|
||||
<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="price" jdbcType="DECIMAL" property="price" />
|
||||
<result column="ggxh" jdbcType="VARCHAR" property="ggxh" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
|
||||
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="updateUser" jdbcType="VARCHAR" property="updateUser" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, relId, thrName, thrCode, pId, `count`, measureCount, measureUnit, category, frequency,
|
||||
price, ggxh, remark, createTime, `createUser`, updateTime, updateUser
|
||||
</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.api.dao.basic.BasicSkPrescribeItemDetailMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkPrescribeItemDetailEntity">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="pId" column="pId" jdbcType="BIGINT"/>
|
||||
<result property="sickerCode" column="sickerCode" jdbcType="VARCHAR"/>
|
||||
<result property="prescribeCode" column="prescribeCode" jdbcType="VARCHAR"/>
|
||||
<result property="relId" column="relId" jdbcType="BIGINT"/>
|
||||
<result property="thrName" column="thrName" jdbcType="VARCHAR"/>
|
||||
<result property="thrCode" column="thrCode" jdbcType="VARCHAR"/>
|
||||
<result property="measureCount" column="measureCount" jdbcType="VARCHAR"/>
|
||||
<result property="measureUnit" column="measureUnit" jdbcType="VARCHAR"/>
|
||||
<result property="category" column="category" jdbcType="VARCHAR"/>
|
||||
<result property="frequency" column="frequency" jdbcType="VARCHAR"/>
|
||||
<result property="count" column="count" jdbcType="INTEGER"/>
|
||||
<result property="price" column="price" jdbcType="DECIMAL"/>
|
||||
<result property="ggxh" column="ggxh" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,pId,sickerCode,
|
||||
prescribeCode,relId,thrName,
|
||||
thrCode,measureCount,measureUnit,
|
||||
category,frequency,count,
|
||||
price,ggxh,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.api.dao.basic.BasicSkPrescribeItemMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkPrescribeItemEntity">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="thrId" column="thrId" jdbcType="VARCHAR"/>
|
||||
<result property="sickerCode" column="sickerCode" jdbcType="VARCHAR"/>
|
||||
<result property="prescribeCode" column="prescribeCode" jdbcType="VARCHAR"/>
|
||||
<result property="relId" column="relId" jdbcType="BIGINT"/>
|
||||
<result property="itemName" column="itemName" jdbcType="VARCHAR"/>
|
||||
<result property="itemCode" column="itemCode" jdbcType="VARCHAR"/>
|
||||
<result property="measureCount" column="measureCount" jdbcType="VARCHAR"/>
|
||||
<result property="measureUnit" column="measureUnit" jdbcType="VARCHAR"/>
|
||||
<result property="category" column="category" jdbcType="VARCHAR"/>
|
||||
<result property="frequency" column="frequency" jdbcType="VARCHAR"/>
|
||||
<result property="count" column="count" jdbcType="INTEGER"/>
|
||||
<result property="price" column="price" jdbcType="DECIMAL"/>
|
||||
<result property="ggxh" column="ggxh" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,thrId,sickerCode,
|
||||
prescribeCode,relId,itemName,
|
||||
itemCode,measureCount,measureUnit,
|
||||
category,frequency,count,
|
||||
price,ggxh,remark
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue