feat: 部门与医保耗材信息分类关联关系初始化
parent
ae36a483fe
commit
961bd20bbc
@ -0,0 +1,9 @@
|
||||
package com.glxp.api.dao.thrsys;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.glxp.api.entity.thrsys.DeptMaterialCategory;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface DeptMaterialCategoryMapper extends BaseMapper<DeptMaterialCategory> {
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.glxp.api.entity.thrsys;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.Serializable;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 部门医保耗材分类关系表
|
||||
*/
|
||||
@ApiModel(description="部门医保耗材分类关系表")
|
||||
@Data
|
||||
@TableName(value = "dept_material_category")
|
||||
public class DeptMaterialCategory implements Serializable {
|
||||
/**
|
||||
* 部门code
|
||||
*/
|
||||
@ApiModelProperty(value="部门code")
|
||||
@TableField(value = "deptCode")
|
||||
private Long deptCode;
|
||||
|
||||
/**
|
||||
* 分类ID
|
||||
*/
|
||||
@ApiModelProperty(value="分类ID")
|
||||
@TableField(value = "categoryId")
|
||||
private Long categoryId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.glxp.api.service.thrsys;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.glxp.api.entity.thrsys.DeptMaterialCategory;
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import com.glxp.api.dao.thrsys.DeptMaterialCategoryMapper;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class DeptMaterialCategoryService extends ServiceImpl<DeptMaterialCategoryMapper, DeptMaterialCategory> {
|
||||
|
||||
@Resource
|
||||
private DeptMaterialCategoryMapper deptMaterialCategoryMapper;
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
<?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.thrsys.DeptMaterialCategoryMapper">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.thrsys.DeptMaterialCategory">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table udi_wms_pt.dept_material_category-->
|
||||
<result column="deptCode" jdbcType="BIGINT" property="deptCode" />
|
||||
<result column="categoryId" jdbcType="BIGINT" property="categoryId" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
deptCode, categoryId
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue