添加患者相关操作类,打印问题修改,项目、定数包相关修改
parent
00c2995717
commit
4b0d54ba71
@ -0,0 +1,9 @@
|
|||||||
|
package com.glxp.api.dao.basic;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.glxp.api.entity.basic.BasicSkPrescirbeDetailEntity;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface BasicSkPrescirbeDetailMapper extends BaseMapper<BasicSkPrescirbeDetailEntity> {
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
package com.glxp.api.dao.basic;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.glxp.api.entity.basic.BasicSkPrescribeEntity;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface BasicSkPrescribeMapper extends BaseMapper<BasicSkPrescribeEntity> {
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.glxp.api.dao.basic;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.glxp.api.entity.basic.BasicSkProjectEntity;
|
||||||
|
import com.glxp.api.req.basic.BasicSkProjectRequest;
|
||||||
|
import com.glxp.api.req.inout.FilterOrderRequest;
|
||||||
|
import com.glxp.api.res.basic.BasicSkProjectResponse;
|
||||||
|
import com.glxp.api.res.inout.IoOrderResponse;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface BasicSkProjectMapper extends BaseMapper<BasicSkProjectEntity> {
|
||||||
|
|
||||||
|
List<BasicSkProjectResponse> filterList(BasicSkProjectRequest basicSkProjectRequest);
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
package com.glxp.api.dao.basic;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.glxp.api.entity.basic.BasicSkSickerEntity;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface BasicSkSickerMapper extends BaseMapper<BasicSkSickerEntity> {
|
||||||
|
}
|
@ -1,35 +0,0 @@
|
|||||||
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 lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 定数包产品关联表
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName(value = "basic_destiny_rel")
|
|
||||||
public class BasicDestinyRelEntity {
|
|
||||||
@TableId(value = "id", type = IdType.INPUT)
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 耗材产品id
|
|
||||||
*/
|
|
||||||
@TableField(value = "relId")
|
|
||||||
private Long relId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 定数包模板id
|
|
||||||
*/
|
|
||||||
@TableField(value = "pId")
|
|
||||||
private Long pId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 数量
|
|
||||||
*/
|
|
||||||
@TableField(value = "`count`")
|
|
||||||
private Integer count;
|
|
||||||
}
|
|
@ -0,0 +1,132 @@
|
|||||||
|
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 io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处方用药信息表
|
||||||
|
*/
|
||||||
|
@ApiModel(value="com-glxp-api-entity-basic-BasicSkPrescirbeDetail")
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@TableName(value = "basic_sk_prescirbe_detail")
|
||||||
|
public class BasicSkPrescirbeDetailEntity implements Serializable {
|
||||||
|
@TableId(value = "id", type = IdType.INPUT)
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 耗材产品id
|
||||||
|
*/
|
||||||
|
@TableField(value = "relId")
|
||||||
|
@ApiModelProperty(value="耗材产品id")
|
||||||
|
private Long relId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 耗材名称
|
||||||
|
*/
|
||||||
|
@TableField(value = "thrName")
|
||||||
|
@ApiModelProperty(value="耗材名称")
|
||||||
|
private String thrName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 耗材编码
|
||||||
|
*/
|
||||||
|
@TableField(value = "thrCode")
|
||||||
|
@ApiModelProperty(value="耗材编码")
|
||||||
|
private String thrCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目组套外键
|
||||||
|
*/
|
||||||
|
@TableField(value = "pId")
|
||||||
|
@ApiModelProperty(value="项目组套外键")
|
||||||
|
private Long pId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数量
|
||||||
|
*/
|
||||||
|
@TableField(value = "`count`")
|
||||||
|
@ApiModelProperty(value="数量")
|
||||||
|
private Integer count;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计量数量
|
||||||
|
*/
|
||||||
|
@TableField(value = "measureCount")
|
||||||
|
@ApiModelProperty(value="计量数量")
|
||||||
|
private String measureCount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计量单位
|
||||||
|
*/
|
||||||
|
@TableField(value = "measureUnit")
|
||||||
|
@ApiModelProperty(value="计量单位")
|
||||||
|
private String measureUnit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类别
|
||||||
|
*/
|
||||||
|
@TableField(value = "category")
|
||||||
|
@ApiModelProperty(value="类别")
|
||||||
|
private String category;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 频率
|
||||||
|
*/
|
||||||
|
@TableField(value = "frequency")
|
||||||
|
@ApiModelProperty(value="频率")
|
||||||
|
private String frequency;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 价格
|
||||||
|
*/
|
||||||
|
@TableField(value = "price")
|
||||||
|
@ApiModelProperty(value="价格")
|
||||||
|
private BigDecimal price;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 规格型号
|
||||||
|
*/
|
||||||
|
@TableField(value = "ggxh")
|
||||||
|
@ApiModelProperty(value="规格型号")
|
||||||
|
private String ggxh;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
@TableField(value = "remark")
|
||||||
|
@ApiModelProperty(value="备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
@TableField(value = "createTime")
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
@TableField(value = "`createUser`")
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String createUser;
|
||||||
|
|
||||||
|
@TableField(value = "updateTime")
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
@TableField(value = "updateUser")
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String updateUser;
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,112 @@
|
|||||||
|
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 io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 患者处方
|
||||||
|
*/
|
||||||
|
@ApiModel(value="com-glxp-api-entity-basic-BasicSkPrescribe")
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@TableName(value = "basic_sk_prescribe")
|
||||||
|
public class BasicSkPrescribeEntity implements Serializable {
|
||||||
|
@TableId(value = "id", type = IdType.INPUT)
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处方编码
|
||||||
|
*/
|
||||||
|
@TableField(value = "code")
|
||||||
|
@ApiModelProperty(value="处方编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开方时间
|
||||||
|
*/
|
||||||
|
@TableField(value = "prescribeDate")
|
||||||
|
@ApiModelProperty(value="开方时间")
|
||||||
|
private Date prescribeDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开方医生
|
||||||
|
*/
|
||||||
|
@TableField(value = "createDr")
|
||||||
|
@ApiModelProperty(value="开方医生")
|
||||||
|
private String createDr;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 就诊科室编码
|
||||||
|
*/
|
||||||
|
@TableField(value = "deptCode")
|
||||||
|
@ApiModelProperty(value="就诊科室编码")
|
||||||
|
private String deptCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 就诊科室名称
|
||||||
|
*/
|
||||||
|
@TableField(value = "deptName")
|
||||||
|
@ApiModelProperty(value="就诊科室名称")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 诊断内容
|
||||||
|
*/
|
||||||
|
@TableField(value = "diagnosis")
|
||||||
|
@ApiModelProperty(value="诊断内容")
|
||||||
|
private String diagnosis;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病人ID外键
|
||||||
|
*/
|
||||||
|
@TableField(value = "sickerIdFk")
|
||||||
|
@ApiModelProperty(value="病人ID外键")
|
||||||
|
private String sickerIdFk;
|
||||||
|
|
||||||
|
@TableField(value = "remark")
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
@TableField(value = "`createUser`")
|
||||||
|
@ApiModelProperty(value="创建人")
|
||||||
|
private String createUser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@TableField(value = "createTime")
|
||||||
|
@ApiModelProperty(value="创建时间")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
@TableField(value = "updateUser")
|
||||||
|
@ApiModelProperty(value="更新人")
|
||||||
|
private String updateUser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
@TableField(value = "updateTime")
|
||||||
|
@ApiModelProperty(value="更新时间")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
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 lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 定数包产品关联表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName(value = "basic_sk_project_detail")
|
||||||
|
public class BasicSkProjectDetailEntity {
|
||||||
|
@TableId(value = "id", type = IdType.INPUT)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 耗材产品id
|
||||||
|
*/
|
||||||
|
@TableField(value = "relId")
|
||||||
|
private Long relId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 定数包模板id
|
||||||
|
*/
|
||||||
|
@TableField(value = "pId")
|
||||||
|
private Long pId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数量
|
||||||
|
*/
|
||||||
|
@TableField(value = "`count`")
|
||||||
|
private Integer count;
|
||||||
|
|
||||||
|
@TableField(value = "`thrName`")
|
||||||
|
private String thrName;
|
||||||
|
@TableField(value = "`thrCode`")
|
||||||
|
private String thrCode;
|
||||||
|
@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 = "`price`")
|
||||||
|
private String price;
|
||||||
|
@TableField(value = "`ggxh`")
|
||||||
|
private String ggxh;
|
||||||
|
@TableField(value = "`remark`")
|
||||||
|
private String remark;
|
||||||
|
@TableField(value = "`createTime`")
|
||||||
|
private String createTime;
|
||||||
|
@TableField(value = "`createUser`")
|
||||||
|
private String createUser;
|
||||||
|
@TableField(value = "`updateTime`")
|
||||||
|
private String updateTime;
|
||||||
|
@TableField(value = "`updateUser`")
|
||||||
|
private String updateUser;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,171 @@
|
|||||||
|
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 io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 患者信息
|
||||||
|
*/
|
||||||
|
@ApiModel(value="com-glxp-api-entity-basic-BasicSkSicker")
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@TableName(value = "basic_sk_sicker")
|
||||||
|
public class BasicSkSickerEntity implements Serializable {
|
||||||
|
@TableId(value = "id", type = IdType.INPUT)
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 患者编码
|
||||||
|
*/
|
||||||
|
@TableField(value = "code")
|
||||||
|
@ApiModelProperty(value="患者编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 姓名
|
||||||
|
*/
|
||||||
|
@TableField(value = "`name`")
|
||||||
|
@ApiModelProperty(value="姓名")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 住院号
|
||||||
|
*/
|
||||||
|
@TableField(value = "adNum")
|
||||||
|
@ApiModelProperty(value="住院号")
|
||||||
|
private String adNum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 身份证号
|
||||||
|
*/
|
||||||
|
@TableField(value = "idNum")
|
||||||
|
@ApiModelProperty(value="身份证号")
|
||||||
|
private String idNum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 手机号
|
||||||
|
*/
|
||||||
|
@TableField(value = "phone")
|
||||||
|
@ApiModelProperty(value="手机号")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 性别
|
||||||
|
*/
|
||||||
|
@TableField(value = "gender")
|
||||||
|
@ApiModelProperty(value="性别")
|
||||||
|
private String gender;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 职业
|
||||||
|
*/
|
||||||
|
@TableField(value = "job")
|
||||||
|
@ApiModelProperty(value="职业")
|
||||||
|
private String job;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出生年月
|
||||||
|
*/
|
||||||
|
@TableField(value = "bornDate")
|
||||||
|
@ApiModelProperty(value="出生年月")
|
||||||
|
private String bornDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 国籍
|
||||||
|
*/
|
||||||
|
@TableField(value = "nationality")
|
||||||
|
@ApiModelProperty(value="国籍")
|
||||||
|
private String nationality;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文化程度
|
||||||
|
*/
|
||||||
|
@TableField(value = "education")
|
||||||
|
@ApiModelProperty(value="文化程度")
|
||||||
|
private String education;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 监护人
|
||||||
|
*/
|
||||||
|
@TableField(value = "guardianName")
|
||||||
|
@ApiModelProperty(value="监护人")
|
||||||
|
private String guardianName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 监护人与患者关系
|
||||||
|
*/
|
||||||
|
@TableField(value = "guardianRel")
|
||||||
|
@ApiModelProperty(value="监护人与患者关系")
|
||||||
|
private String guardianRel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 现居住地
|
||||||
|
*/
|
||||||
|
@TableField(value = "curAddr")
|
||||||
|
@ApiModelProperty(value="现居住地")
|
||||||
|
private String curAddr;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 户籍地
|
||||||
|
*/
|
||||||
|
@TableField(value = "kosekiAddr")
|
||||||
|
@ApiModelProperty(value="户籍地")
|
||||||
|
private String kosekiAddr;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 医保
|
||||||
|
*/
|
||||||
|
@TableField(value = "medicalIns")
|
||||||
|
@ApiModelProperty(value="医保")
|
||||||
|
private String medicalIns;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
@TableField(value = "`createUser`")
|
||||||
|
@ApiModelProperty(value="创建人")
|
||||||
|
private String createUser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@TableField(value = "createTime")
|
||||||
|
@ApiModelProperty(value="创建时间")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
@TableField(value = "updateUser")
|
||||||
|
@ApiModelProperty(value="更新人")
|
||||||
|
private String updateUser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
@TableField(value = "updateTime")
|
||||||
|
@ApiModelProperty(value="更新时间")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
@TableField(value = "remark")
|
||||||
|
@ApiModelProperty(value="备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.glxp.api.res.basic;
|
||||||
|
|
||||||
|
public class BasicSkProjectDetailResponse {
|
||||||
|
}
|
@ -1,24 +0,0 @@
|
|||||||
package com.glxp.api.service.basic;
|
|
||||||
|
|
||||||
import com.glxp.api.req.basic.BasicDestinyRelRequest;
|
|
||||||
import com.glxp.api.req.basic.FilterUdiRelRequest;
|
|
||||||
import com.glxp.api.res.basic.UdiRelevanceResponse;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public interface BasicDestinyRelService{
|
|
||||||
|
|
||||||
Boolean addModeldestinyProduct(BasicDestinyRelRequest basicDestinyRelRequest);
|
|
||||||
|
|
||||||
List<UdiRelevanceResponse> filterUdiJoinSup(FilterUdiRelRequest filterUdiRelRequest);
|
|
||||||
|
|
||||||
List<Long> filterDestinyRelIds(Long pId);
|
|
||||||
|
|
||||||
List<UdiRelevanceResponse> filterDestinyProducts(FilterUdiRelRequest filterUdiRelRequest);
|
|
||||||
|
|
||||||
Boolean delectModeldestinyProduct(BasicDestinyRelRequest basicDestinyRelRequest);
|
|
||||||
|
|
||||||
Boolean uploadModeldestinyProduct(BasicDestinyRelRequest basicDestinyRelRequest);
|
|
||||||
|
|
||||||
}
|
|
@ -0,0 +1,10 @@
|
|||||||
|
package com.glxp.api.service.basic;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.glxp.api.entity.basic.BasicSkPrescirbeDetailEntity;
|
||||||
|
import com.glxp.api.dao.basic.BasicSkPrescirbeDetailMapper;
|
||||||
|
@Service
|
||||||
|
public class BasicSkPrescirbeDetailService extends ServiceImpl<BasicSkPrescirbeDetailMapper, BasicSkPrescirbeDetailEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
package com.glxp.api.service.basic;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.glxp.api.entity.basic.BasicSkPrescribeEntity;
|
||||||
|
import com.glxp.api.dao.basic.BasicSkPrescribeMapper;
|
||||||
|
@Service
|
||||||
|
public class BasicSkPrescribeService extends ServiceImpl<BasicSkPrescribeMapper, BasicSkPrescribeEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,35 @@
|
|||||||
|
package com.glxp.api.service.basic;
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
|
import com.glxp.api.entity.thrsys.ThrProductsEntity;
|
||||||
|
import com.glxp.api.req.basic.BasicSkProjectRequest;
|
||||||
|
import com.glxp.api.req.thrsys.FilterThrProductsRequest;
|
||||||
|
import com.glxp.api.res.basic.BasicSkProjectResponse;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.glxp.api.dao.basic.BasicSkProjectMapper;
|
||||||
|
import com.glxp.api.entity.basic.BasicSkProjectEntity;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class BasicSkProjectService extends ServiceImpl<BasicSkProjectMapper, BasicSkProjectEntity> {
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
BasicSkProjectMapper basicSkProjectMapper;
|
||||||
|
|
||||||
|
public List<BasicSkProjectResponse> filterThrProducts(BasicSkProjectRequest basicSkProjectRequest) {
|
||||||
|
if (basicSkProjectRequest == null) {
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
|
if (basicSkProjectRequest.getPage() != null) {
|
||||||
|
int offset = (basicSkProjectRequest.getPage() - 1) * basicSkProjectRequest.getLimit();
|
||||||
|
PageHelper.offsetPage(offset, basicSkProjectRequest.getLimit());
|
||||||
|
}
|
||||||
|
List<BasicSkProjectResponse> data = basicSkProjectMapper.filterList(basicSkProjectRequest);
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
package com.glxp.api.service.basic;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.glxp.api.entity.basic.BasicSkSickerEntity;
|
||||||
|
import com.glxp.api.dao.basic.BasicSkSickerMapper;
|
||||||
|
@Service
|
||||||
|
public class BasicSkSickerService extends ServiceImpl<BasicSkSickerMapper, BasicSkSickerEntity> {
|
||||||
|
|
||||||
|
}
|
@ -1,303 +1,287 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!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.BasicDestinyRelMapper">
|
<mapper namespace="com.glxp.api.dao.basic.BasicDestinyRelMapper">
|
||||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicDestinyRelEntity">
|
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkProjectDetailEntity">
|
||||||
<!--@mbg.generated-->
|
</resultMap>
|
||||||
<!--@Table basic_destiny_rel-->
|
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
|
||||||
<result column="relId" jdbcType="BIGINT" property="relId" />
|
|
||||||
<result column="pId" jdbcType="BIGINT" property="pId" />
|
|
||||||
<result column="count" jdbcType="INTEGER" property="count" />
|
|
||||||
</resultMap>
|
|
||||||
<sql id="Base_Column_List">
|
|
||||||
<!--@mbg.generated-->
|
|
||||||
id, relId, pId, `count`
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
|
|
||||||
<select id="filterUdiJoinSup" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
<select id="filterUdiJoinSup" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
||||||
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
||||||
select basic_udirel.*,
|
select basic_udirel.*,
|
||||||
basic_products.id as PRId,
|
basic_products.id as PRId,
|
||||||
basic_products.originUuid,
|
basic_products.originUuid,
|
||||||
basic_products.nameCode,
|
basic_products.nameCode,
|
||||||
basic_products.deviceRecordKey,
|
basic_products.deviceRecordKey,
|
||||||
basic_products.packRatio,
|
basic_products.packRatio,
|
||||||
basic_products.packUnit,
|
basic_products.packUnit,
|
||||||
basic_products.packLevel,
|
basic_products.packLevel,
|
||||||
basic_products.bhxjsl,
|
basic_products.bhxjsl,
|
||||||
basic_products.bhzxxsbzsl,
|
basic_products.bhzxxsbzsl,
|
||||||
basic_products.zxxsbzbhsydysl,
|
basic_products.zxxsbzbhsydysl,
|
||||||
basic_products.bhxjcpbm,
|
basic_products.bhxjcpbm,
|
||||||
basic_products.bzcj,
|
basic_products.bzcj,
|
||||||
basic_products.cpmctymc,
|
basic_products.cpmctymc,
|
||||||
basic_products.cplb,
|
basic_products.cplb,
|
||||||
basic_products.flbm,
|
basic_products.flbm,
|
||||||
basic_products.ggxh,
|
basic_products.ggxh,
|
||||||
basic_products.qxlb,
|
basic_products.qxlb,
|
||||||
basic_products.tyshxydm,
|
basic_products.tyshxydm,
|
||||||
basic_products.ylqxzcrbarmc,
|
basic_products.ylqxzcrbarmc,
|
||||||
basic_products.zczbhhzbapzbh,
|
basic_products.zczbhhzbapzbh,
|
||||||
basic_products.ylqxzcrbarywmc,
|
basic_products.ylqxzcrbarywmc,
|
||||||
basic_products.sydycpbs,
|
basic_products.sydycpbs,
|
||||||
basic_products.sjcpbm,
|
basic_products.sjcpbm,
|
||||||
basic_products.versionNumber,
|
basic_products.versionNumber,
|
||||||
basic_products.diType,
|
basic_products.diType,
|
||||||
basic_products.ybbm,
|
basic_products.ybbm,
|
||||||
basic_products.sptm,
|
basic_products.sptm,
|
||||||
basic_products.manufactory,
|
basic_products.manufactory,
|
||||||
basic_products.measname,
|
basic_products.measname,
|
||||||
basic_products.productType,
|
basic_products.productType,
|
||||||
basic_products.scbssfbhph,
|
basic_products.scbssfbhph,
|
||||||
basic_products.scbssfbhxlh,
|
basic_products.scbssfbhxlh,
|
||||||
basic_products.scbssfbhscrq,
|
basic_products.scbssfbhscrq,
|
||||||
basic_products.scbssfbhsxrq,
|
basic_products.scbssfbhsxrq,
|
||||||
basic_products.cpms,
|
basic_products.cpms,
|
||||||
basic_products.allowNoBatch,
|
basic_products.allowNoBatch,
|
||||||
basic_products.allowNoExpire,
|
basic_products.allowNoExpire,
|
||||||
basic_products.allowNoProduct,
|
basic_products.allowNoProduct,
|
||||||
basic_products.allowNoSerial,
|
basic_products.allowNoSerial,
|
||||||
basic_products.spmc,
|
basic_products.spmc,
|
||||||
basic_products.cplx,
|
basic_products.cplx,
|
||||||
basic_products.hchzsb,
|
basic_products.hchzsb,
|
||||||
basic_products.cpdls,
|
basic_products.cpdls,
|
||||||
company_product_relevance.price,
|
company_product_relevance.price,
|
||||||
basic_products.basicPrductRemak1,
|
basic_products.basicPrductRemak1,
|
||||||
basic_products.basicPrductRemak2,
|
basic_products.basicPrductRemak2,
|
||||||
basic_products.basicPrductRemak3,
|
basic_products.basicPrductRemak3,
|
||||||
basic_products.basicPrductRemak4,
|
basic_products.basicPrductRemak4,
|
||||||
basic_products.basicPrductRemak5,
|
basic_products.basicPrductRemak5,
|
||||||
basic_products.basicPrductRemak6,
|
basic_products.basicPrductRemak6,
|
||||||
basic_products.basicPrductRemak7,
|
basic_products.basicPrductRemak7,
|
||||||
basic_products.basicPrductRemak8,
|
basic_products.basicPrductRemak8,
|
||||||
basic_products.sfwblztlcp,
|
basic_products.sfwblztlcp,
|
||||||
basic_products.cgzmraqxgxx,
|
basic_products.cgzmraqxgxx,
|
||||||
basic_products.sfbjwycxsy,
|
basic_products.sfbjwycxsy,
|
||||||
basic_products.zdcfsycs,
|
basic_products.zdcfsycs,
|
||||||
basic_products.sfwwjbz,
|
basic_products.sfwwjbz,
|
||||||
basic_products.syqsfxyjxmj,
|
basic_products.syqsfxyjxmj,
|
||||||
basic_products.mjfs,
|
basic_products.mjfs,
|
||||||
basic_products.categoryName,
|
basic_products.categoryName,
|
||||||
company_product_relevance.unitFk,
|
company_product_relevance.unitFk,
|
||||||
basic_corp.erpId as customerId,
|
basic_corp.erpId as customerId,
|
||||||
basic_corp.name companyName
|
basic_corp.name companyName
|
||||||
FROM basic_udirel
|
FROM basic_udirel
|
||||||
inner JOIN basic_products
|
inner JOIN basic_products
|
||||||
ON basic_products.uuid = basic_udirel.uuid
|
ON basic_products.uuid = basic_udirel.uuid
|
||||||
left join company_product_relevance
|
left join company_product_relevance
|
||||||
on basic_udirel.id = company_product_relevance.udiRlIdFk
|
on basic_udirel.id = company_product_relevance.udiRlIdFk
|
||||||
left JOIN basic_corp on basic_corp.erpId = company_product_relevance.customerId
|
left JOIN basic_corp on basic_corp.erpId = company_product_relevance.customerId
|
||||||
left join basic_hosp_type bht on basic_udirel.relCode = bht.code
|
left join basic_hosp_type bht on basic_udirel.relCode = bht.code
|
||||||
left join thr_products tp on tp.code = basic_udirel.mainId
|
left join thr_products tp on tp.code = basic_udirel.mainId
|
||||||
left join basic_product_category_rel on basic_product_category_rel.relId = basic_udirel.id
|
left join basic_product_category_rel on basic_product_category_rel.relId = basic_udirel.id
|
||||||
left join basic_product_category on basic_product_category_rel.code = basic_product_category.code
|
left join basic_product_category on basic_product_category_rel.code = basic_product_category.code
|
||||||
<where>
|
<where>
|
||||||
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
||||||
AND basic_products.ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
AND basic_products.ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="category != '' and category != null">
|
<if test="category != '' and category != null">
|
||||||
AND basic_product_category.name = #{category}
|
AND basic_product_category.name = #{category}
|
||||||
</if>
|
</if>
|
||||||
<if test="manufactory != '' and manufactory != null">
|
<if test="manufactory != '' and manufactory != null">
|
||||||
AND basic_products.manufactory LIKE concat('%', #{manufactory}, '%')
|
AND basic_products.manufactory LIKE concat('%', #{manufactory}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="supName != '' and supName != null">
|
<if test="supName != '' and supName != null">
|
||||||
AND supName LIKE concat('%', #{supName}, '%')
|
AND supName LIKE concat('%', #{supName}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="ids != null and ids.size() > 0">
|
<if test="ids != null and ids.size() > 0">
|
||||||
and basic_udirel.id not in
|
and basic_udirel.id not in
|
||||||
<foreach collection="ids" item="item" open="(" separator="," close=")">
|
<foreach collection="ids" item="item" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="pinyinInitial != null and pinyinInitial != ''">
|
<if test="pinyinInitial != null and pinyinInitial != ''">
|
||||||
AND basic_products.pinyinInitial like concat('%', #{pinyinInitial}, '%')
|
AND basic_products.pinyinInitial like concat('%', #{pinyinInitial}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="thrPiId != '' and thrPiId != null">
|
<if test="thrPiId != '' and thrPiId != null">
|
||||||
and (basic_udirel.thirdId LIKE concat('%', #{thrPiId}, '%')
|
and (basic_udirel.thirdId LIKE concat('%', #{thrPiId}, '%')
|
||||||
or basic_udirel.thirdId1 LIKE concat('%', #{thrPiId}, '%')
|
or basic_udirel.thirdId1 LIKE concat('%', #{thrPiId}, '%')
|
||||||
or basic_udirel.thirdId2 LIKE concat('%', #{thrPiId}, '%')
|
or basic_udirel.thirdId2 LIKE concat('%', #{thrPiId}, '%')
|
||||||
or basic_udirel.thirdId3 LIKE concat('%', #{thrPiId}, '%')
|
or basic_udirel.thirdId3 LIKE concat('%', #{thrPiId}, '%')
|
||||||
or basic_udirel.thirdId4 LIKE concat('%', #{thrPiId}, '%'))
|
or basic_udirel.thirdId4 LIKE concat('%', #{thrPiId}, '%'))
|
||||||
</if>
|
</if>
|
||||||
<if test="ggxh != '' and ggxh != null">
|
<if test="ggxh != '' and ggxh != null">
|
||||||
AND basic_products.ggxh LIKE concat('%', #{ggxh}, '%')
|
AND basic_products.ggxh LIKE concat('%', #{ggxh}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="cpmctymc != '' and cpmctymc != null">
|
<if test="cpmctymc != '' and cpmctymc != null">
|
||||||
AND basic_products.cpmctymc LIKE concat('%', #{cpmctymc}, '%')
|
AND basic_products.cpmctymc LIKE concat('%', #{cpmctymc}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="nameCode != '' and nameCode != null">
|
<if test="nameCode != '' and nameCode != null">
|
||||||
AND nameCode LIKE concat(#{nameCode}, '%')
|
AND nameCode LIKE concat(#{nameCode}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="thirdId != '' and thirdId != null">
|
<if test="thirdId != '' and thirdId != null">
|
||||||
AND basic_udirel.thirdId LIKE concat(#{thirdId}, '%')
|
AND basic_udirel.thirdId LIKE concat(#{thirdId}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="uuid != '' and uuid != null">
|
<if test="uuid != '' and uuid != null">
|
||||||
AND basic_udirel.uuid = #{uuid}
|
AND basic_udirel.uuid = #{uuid}
|
||||||
</if>
|
</if>
|
||||||
<if test="unitFk != '' and unitFk != null">
|
<if test="unitFk != '' and unitFk != null">
|
||||||
AND company_product_relevance.unitFk = #{unitFk}
|
AND company_product_relevance.unitFk = #{unitFk}
|
||||||
</if>
|
</if>
|
||||||
<if test="id != '' and id != null">
|
<if test="id != '' and id != null">
|
||||||
AND basic_udirel.id = #{id}
|
AND basic_udirel.id = #{id}
|
||||||
</if>
|
</if>
|
||||||
<if test="udplatCode != '' and udplatCode != null">
|
<if test="udplatCode != '' and udplatCode != null">
|
||||||
AND basic_udirel.udplatCode = #{udplatCode}
|
AND basic_udirel.udplatCode = #{udplatCode}
|
||||||
</if>
|
</if>
|
||||||
<if test="diType != null">
|
<if test="diType != null">
|
||||||
AND basic_products.diType = #{diType}
|
AND basic_products.diType = #{diType}
|
||||||
</if>
|
</if>
|
||||||
<if test="lockStatus != '' and lockStatus != null">
|
<if test="lockStatus != '' and lockStatus != null">
|
||||||
AND basic_udirel.lockStatus = #{lockStatus}
|
AND basic_udirel.lockStatus = #{lockStatus}
|
||||||
</if>
|
</if>
|
||||||
<if test="zczbhhzbapzbh != '' and zczbhhzbapzbh != null">
|
<if test="zczbhhzbapzbh != '' and zczbhhzbapzbh != null">
|
||||||
AND basic_products.zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh}, '%')
|
AND basic_products.zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="lastUpdateTime != null and lastUpdateTime != ''">
|
<if test="lastUpdateTime != null and lastUpdateTime != ''">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')
|
and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')
|
||||||
]]>
|
]]>
|
||||||
</if>
|
</if>
|
||||||
<if test="mainId != '' and mainId != null">
|
<if test="mainId != '' and mainId != null">
|
||||||
AND mainId = #{mainId}
|
AND mainId = #{mainId}
|
||||||
</if>
|
</if>
|
||||||
<if test="unionFilterStr != '' and unionFilterStr != null">
|
<if test="unionFilterStr != '' and unionFilterStr != null">
|
||||||
or basic_products.cpmctymc LIKE concat('%', #{unionFilterStr}, '%')
|
or basic_products.cpmctymc LIKE concat('%', #{unionFilterStr}, '%')
|
||||||
or basic_products.ylqxzcrbarmc LIKE concat('%', #{unionFilterStr}, '%')
|
or basic_products.ylqxzcrbarmc LIKE concat('%', #{unionFilterStr}, '%')
|
||||||
or basic_products.ggxh LIKE concat('%', #{unionFilterStr}, '%')
|
or basic_products.ggxh LIKE concat('%', #{unionFilterStr}, '%')
|
||||||
or basic_products.zczbhhzbapzbh LIKE concat('%', #{unionFilterStr}, '%')
|
or basic_products.zczbhhzbapzbh LIKE concat('%', #{unionFilterStr}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="isAdavence != '' and isAdavence != null">
|
<if test="isAdavence != '' and isAdavence != null">
|
||||||
AND isAdavence = #{isAdavence}
|
AND isAdavence = #{isAdavence}
|
||||||
</if>
|
</if>
|
||||||
<if test="uniqueNameCode != '' and uniqueNameCode != null">
|
<if test="uniqueNameCode != '' and uniqueNameCode != null">
|
||||||
AND nameCode = #{uniqueNameCode}
|
AND nameCode = #{uniqueNameCode}
|
||||||
</if>
|
</if>
|
||||||
<if test="relIds != null and relIds.size() > 0">
|
<if test="relIds != null and relIds.size() > 0">
|
||||||
and basic_udirel.id in
|
and basic_udirel.id in
|
||||||
<foreach collection="relIds" item="item" index="index" separator="," open="(" close=")">
|
<foreach collection="relIds" item="item" index="index" separator="," open="(" close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="flbm != '' and flbm != null">
|
<if test="flbm != '' and flbm != null">
|
||||||
and (tp.flbm = #{flbm} or basic_products.flbm = #{flbm} or tp.cplb = #{flbm} or
|
and (tp.flbm = #{flbm} or basic_products.flbm = #{flbm} or tp.cplb = #{flbm} or
|
||||||
basic_udirel.relCode = #{flbm})
|
basic_udirel.relCode = #{flbm})
|
||||||
</if>
|
</if>
|
||||||
<if test="companyName != '' and companyName != null">
|
<if test="companyName != '' and companyName != null">
|
||||||
AND basic_corp.name like concat('%', #{companyName}, '%')
|
AND basic_corp.name like concat('%', #{companyName}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="basicPrductRemak1 != '' and basicPrductRemak1 != null">
|
<if test="basicPrductRemak1 != '' and basicPrductRemak1 != null">
|
||||||
AND basic_products.basicPrductRemak1 like concat('%', #{basicPrductRemak1}, '%')
|
AND basic_products.basicPrductRemak1 like concat('%', #{basicPrductRemak1}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="basicPrductRemak2 != '' and basicPrductRemak2 != null">
|
<if test="basicPrductRemak2 != '' and basicPrductRemak2 != null">
|
||||||
AND basic_products.basicPrductRemak2 like concat('%', #{basicPrductRemak2}, '%')
|
AND basic_products.basicPrductRemak2 like concat('%', #{basicPrductRemak2}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="basicPrductRemak3 != '' and basicPrductRemak3 != null">
|
<if test="basicPrductRemak3 != '' and basicPrductRemak3 != null">
|
||||||
AND basic_products.basicPrductRemak3 like concat('%', #{basicPrductRemak3}, '%')
|
AND basic_products.basicPrductRemak3 like concat('%', #{basicPrductRemak3}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="basicPrductRemak4 != '' and basicPrductRemak4 != null">
|
<if test="basicPrductRemak4 != '' and basicPrductRemak4 != null">
|
||||||
AND basic_products.basicPrductRemak4 like concat('%', #{basicPrductRemak4}, '%')
|
AND basic_products.basicPrductRemak4 like concat('%', #{basicPrductRemak4}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="basicPrductRemak5 != '' and basicPrductRemak5 != null">
|
<if test="basicPrductRemak5 != '' and basicPrductRemak5 != null">
|
||||||
AND basic_products.basicPrductRemak5 like concat('%', #{basicPrductRemak5}, '%')
|
AND basic_products.basicPrductRemak5 like concat('%', #{basicPrductRemak5}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="basicPrductRemak6 != '' and basicPrductRemak6 != null">
|
<if test="basicPrductRemak6 != '' and basicPrductRemak6 != null">
|
||||||
AND basic_products.basicPrductRemak6 like concat('%', #{basicPrductRemak6}, '%')
|
AND basic_products.basicPrductRemak6 like concat('%', #{basicPrductRemak6}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="basicPrductRemak7 != '' and basicPrductRemak7 != null">
|
<if test="basicPrductRemak7 != '' and basicPrductRemak7 != null">
|
||||||
AND basic_products.basicPrductRemak7 like concat('%', #{basicPrductRemak7}, '%')
|
AND basic_products.basicPrductRemak7 like concat('%', #{basicPrductRemak7}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="basicPrductRemak8 != '' and basicPrductRemak8 != null">
|
<if test="basicPrductRemak8 != '' and basicPrductRemak8 != null">
|
||||||
AND basic_products.basicPrductRemak8 like concat('%', #{basicPrductRemak8}, '%')
|
AND basic_products.basicPrductRemak8 like concat('%', #{basicPrductRemak8}, '%')
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
GROUP BY basic_udirel.id
|
GROUP BY basic_udirel.id
|
||||||
|
</select>
|
||||||
|
|
||||||
</select>
|
|
||||||
|
|
||||||
|
<select id="filterDestinyProducts" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
||||||
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
||||||
<select id="filterDestinyProducts" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
SELECT basic_udirel.*,
|
||||||
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
basic_products.id AS PRId,
|
||||||
SELECT
|
basic_products.originUuid,
|
||||||
basic_udirel.*,
|
basic_products.nameCode,
|
||||||
basic_products.id AS PRId,
|
basic_products.deviceRecordKey,
|
||||||
basic_products.originUuid,
|
basic_products.packRatio,
|
||||||
basic_products.nameCode,
|
basic_products.packUnit,
|
||||||
basic_products.deviceRecordKey,
|
basic_products.packLevel,
|
||||||
basic_products.packRatio,
|
basic_products.bhxjsl,
|
||||||
basic_products.packUnit,
|
basic_products.bhzxxsbzsl,
|
||||||
basic_products.packLevel,
|
basic_products.zxxsbzbhsydysl,
|
||||||
basic_products.bhxjsl,
|
basic_products.bhxjcpbm,
|
||||||
basic_products.bhzxxsbzsl,
|
basic_products.bzcj,
|
||||||
basic_products.zxxsbzbhsydysl,
|
basic_products.cpmctymc,
|
||||||
basic_products.bhxjcpbm,
|
basic_products.cplb,
|
||||||
basic_products.bzcj,
|
basic_products.flbm,
|
||||||
basic_products.cpmctymc,
|
basic_products.ggxh,
|
||||||
basic_products.cplb,
|
basic_products.qxlb,
|
||||||
basic_products.flbm,
|
basic_products.tyshxydm,
|
||||||
basic_products.ggxh,
|
basic_products.ylqxzcrbarmc,
|
||||||
basic_products.qxlb,
|
basic_products.zczbhhzbapzbh,
|
||||||
basic_products.tyshxydm,
|
basic_products.ylqxzcrbarywmc,
|
||||||
basic_products.ylqxzcrbarmc,
|
basic_products.sydycpbs,
|
||||||
basic_products.zczbhhzbapzbh,
|
basic_products.sjcpbm,
|
||||||
basic_products.ylqxzcrbarywmc,
|
basic_products.versionNumber,
|
||||||
basic_products.sydycpbs,
|
basic_products.diType,
|
||||||
basic_products.sjcpbm,
|
basic_products.ybbm,
|
||||||
basic_products.versionNumber,
|
basic_products.sptm,
|
||||||
basic_products.diType,
|
basic_products.manufactory,
|
||||||
basic_products.ybbm,
|
basic_products.measname,
|
||||||
basic_products.sptm,
|
basic_products.productType,
|
||||||
basic_products.manufactory,
|
basic_products.scbssfbhph,
|
||||||
basic_products.measname,
|
basic_products.scbssfbhxlh,
|
||||||
basic_products.productType,
|
basic_products.scbssfbhscrq,
|
||||||
basic_products.scbssfbhph,
|
basic_products.scbssfbhsxrq,
|
||||||
basic_products.scbssfbhxlh,
|
basic_products.cpms,
|
||||||
basic_products.scbssfbhscrq,
|
basic_products.allowNoBatch,
|
||||||
basic_products.scbssfbhsxrq,
|
basic_products.allowNoExpire,
|
||||||
basic_products.cpms,
|
basic_products.allowNoProduct,
|
||||||
basic_products.allowNoBatch,
|
basic_products.allowNoSerial,
|
||||||
basic_products.allowNoExpire,
|
basic_products.spmc,
|
||||||
basic_products.allowNoProduct,
|
basic_products.cplx,
|
||||||
basic_products.allowNoSerial,
|
basic_products.hchzsb,
|
||||||
basic_products.spmc,
|
basic_products.cpdls,
|
||||||
basic_products.cplx,
|
basic_products.basicPrductRemak1,
|
||||||
basic_products.hchzsb,
|
basic_products.basicPrductRemak2,
|
||||||
basic_products.cpdls,
|
basic_products.basicPrductRemak3,
|
||||||
basic_products.basicPrductRemak1,
|
basic_products.basicPrductRemak4,
|
||||||
basic_products.basicPrductRemak2,
|
basic_products.basicPrductRemak5,
|
||||||
basic_products.basicPrductRemak3,
|
basic_products.basicPrductRemak6,
|
||||||
basic_products.basicPrductRemak4,
|
basic_products.basicPrductRemak7,
|
||||||
basic_products.basicPrductRemak5,
|
basic_products.basicPrductRemak8,
|
||||||
basic_products.basicPrductRemak6,
|
basic_sk_project_detail.count as count,
|
||||||
basic_products.basicPrductRemak7,
|
basic_sk_project_detail.id as deId
|
||||||
basic_products.basicPrductRemak8,
|
FROM basic_udirel
|
||||||
basic_destiny_rel.count as count,
|
INNER JOIN basic_products ON basic_products.uuid = basic_udirel.uuid
|
||||||
basic_destiny_rel.id as deId
|
INNER JOIN basic_sk_project_detail ON basic_sk_project_detail.relId = basic_udirel.id
|
||||||
FROM
|
<where>
|
||||||
basic_udirel
|
<if test="ids != null and ids.size() > 0">
|
||||||
INNER JOIN basic_products ON basic_products.uuid = basic_udirel.uuid
|
and basic_udirel.id in
|
||||||
INNER JOIN basic_destiny_rel ON basic_destiny_rel.relId = basic_udirel.id
|
<foreach collection="ids" item="item" open="(" separator="," close=")">
|
||||||
<where>
|
#{item}
|
||||||
<if test="ids != null and ids.size() > 0">
|
</foreach>
|
||||||
and basic_udirel.id in
|
</if>
|
||||||
<foreach collection="ids" item="item" open="(" separator="," close=")">
|
<if test="diType != null">
|
||||||
#{item}
|
AND basic_products.diType = #{diType}
|
||||||
</foreach>
|
</if>
|
||||||
</if>
|
<if test="cpmctymc != '' and cpmctymc != null">
|
||||||
<if test="diType != null">
|
AND basic_products.cpmctymc like concat('%', #{cpmctymc}, '%')
|
||||||
AND basic_products.diType = #{diType}
|
</if>
|
||||||
</if>
|
<if test="destinyId != '' and destinyId != null">
|
||||||
<if test="cpmctymc != '' and cpmctymc != null">
|
AND basic_sk_project_detail.pId = #{destinyId}
|
||||||
AND basic_products.cpmctymc like concat('%', #{cpmctymc}, '%')
|
</if>
|
||||||
</if>
|
</where>
|
||||||
<if test="destinyId != '' and destinyId != null">
|
group by basic_products.uuid
|
||||||
AND basic_destiny_rel.pId = #{destinyId}
|
</select>
|
||||||
</if>
|
</mapper>
|
||||||
</where>
|
|
||||||
group by basic_products.uuid
|
|
||||||
</select>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
<?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,26 @@
|
|||||||
|
<?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.BasicSkPrescribeMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkPrescribeEntity">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
<!--@Table basic_sk_prescribe-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
||||||
|
<result column="prescribeDate" jdbcType="TIMESTAMP" property="prescribeDate" />
|
||||||
|
<result column="createDr" jdbcType="VARCHAR" property="createDr" />
|
||||||
|
<result column="deptCode" jdbcType="VARCHAR" property="deptCode" />
|
||||||
|
<result column="deptName" jdbcType="VARCHAR" property="deptName" />
|
||||||
|
<result column="diagnosis" jdbcType="VARCHAR" property="diagnosis" />
|
||||||
|
<result column="sickerIdFk" jdbcType="VARCHAR" property="sickerIdFk" />
|
||||||
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||||
|
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
|
||||||
|
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
<result column="updateUser" jdbcType="VARCHAR" property="updateUser" />
|
||||||
|
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
id, code, prescribeDate, createDr, deptCode, deptName, diagnosis, sickerIdFk, remark,
|
||||||
|
`createUser`, createTime, updateUser, updateTime
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,40 @@
|
|||||||
|
<?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.BasicSkProjectMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkProjectEntity">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
<!--@Table basic_sk_project-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||||
|
<result column="idCode" jdbcType="VARCHAR" property="idCode"/>
|
||||||
|
<result column="code" jdbcType="VARCHAR" property="code"/>
|
||||||
|
<result column="name" jdbcType="VARCHAR" property="name"/>
|
||||||
|
<result column="category" jdbcType="VARCHAR" property="category"/>
|
||||||
|
<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"/>
|
||||||
|
<result column="type" jdbcType="INTEGER" property="type"/>
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
id, idCode, code, `name`, category, ggxh, remark, createTime, `createUser`, updateTime,
|
||||||
|
updateUser
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="filterList" parameterType="com.glxp.api.req.basic.BasicSkProjectRequest"
|
||||||
|
resultType="com.glxp.api.res.basic.BasicSkProjectResponse">
|
||||||
|
SELECT *, cb.userName as createByName
|
||||||
|
FROM basic_sk_project
|
||||||
|
LEFT JOIN auth_user cb ON basic_sk_project.createUser = cb.id
|
||||||
|
<where>
|
||||||
|
<if test="name != '' and name != null">
|
||||||
|
AND name LIKE concat('%', #{name}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="code != '' and code != null">
|
||||||
|
AND code LIKE concat('%', #{code}, '%')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
</mapper>
|
@ -0,0 +1,35 @@
|
|||||||
|
<?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.BasicSkSickerMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkSickerEntity">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
<!--@Table basic_sk_sicker-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
||||||
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||||
|
<result column="adNum" jdbcType="VARCHAR" property="adNum" />
|
||||||
|
<result column="idNum" jdbcType="VARCHAR" property="idNum" />
|
||||||
|
<result column="phone" jdbcType="VARCHAR" property="phone" />
|
||||||
|
<result column="gender" jdbcType="VARCHAR" property="gender" />
|
||||||
|
<result column="job" jdbcType="VARCHAR" property="job" />
|
||||||
|
<result column="bornDate" jdbcType="VARCHAR" property="bornDate" />
|
||||||
|
<result column="nationality" jdbcType="VARCHAR" property="nationality" />
|
||||||
|
<result column="education" jdbcType="VARCHAR" property="education" />
|
||||||
|
<result column="guardianName" jdbcType="VARCHAR" property="guardianName" />
|
||||||
|
<result column="guardianRel" jdbcType="VARCHAR" property="guardianRel" />
|
||||||
|
<result column="curAddr" jdbcType="VARCHAR" property="curAddr" />
|
||||||
|
<result column="kosekiAddr" jdbcType="VARCHAR" property="kosekiAddr" />
|
||||||
|
<result column="medicalIns" jdbcType="VARCHAR" property="medicalIns" />
|
||||||
|
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
|
||||||
|
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
<result column="updateUser" jdbcType="VARCHAR" property="updateUser" />
|
||||||
|
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
id, code, `name`, adNum, idNum, phone, gender, job, bornDate, nationality, education,
|
||||||
|
guardianName, guardianRel, curAddr, kosekiAddr, medicalIns, `createUser`, createTime,
|
||||||
|
updateUser, updateTime, remark
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue