新增重点品种汇总上报设置

master
anthonywj 1 year ago
parent 8a09319b45
commit 6de6c70801

@ -0,0 +1,9 @@
package com.glxp.api.dao.stat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.stat.IoStatSetDetailEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface IoStatSetDetailMapper extends BaseMapper<IoStatSetDetailEntity> {
}

@ -0,0 +1,9 @@
package com.glxp.api.dao.stat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.stat.IoStatSetEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface IoStatSetMapper extends BaseMapper<IoStatSetEntity> {
}

@ -0,0 +1,89 @@
package com.glxp.api.entity.stat;
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 lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
*
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "io_stat_set_detail")
public class IoStatSetDetailEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT)
private Integer id;
/**
*
*/
@TableField(value = "cpmctymc")
private String cpmctymc;
/**
*
*/
@TableField(value = "ggxh")
private String ggxh;
/**
* /
*/
@TableField(value = "zczbhhzbapzbh")
private String zczbhhzbapzbh;
/**
*
*/
@TableField(value = "ylqxzcrbarmc")
private String ylqxzcrbarmc;
/**
*
*/
@TableField(value = "bussinessType")
private Byte bussinessType;
/**
*
*/
@TableField(value = "companyName")
private String companyName;
/**
* di/
*/
@TableField(value = "nameCode")
private String nameCode;
/**
*
*/
@TableField(value = "provinceCode")
private String provinceCode;
/**
*
*/
@TableField(value = "cityCode")
private String cityCode;
/**
* /
*/
@TableField(value = "areaCode")
private String areaCode;
@TableField(value = "remark")
private String remark;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,90 @@
package com.glxp.api.entity.stat;
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.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
*
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "io_stat_set")
public class IoStatSetEntity implements Serializable {
/**
*
*/
@TableId(value = "id", type = IdType.INPUT)
private Integer id;
/**
*
*/
@TableField(value = "code")
private String code;
/**
*
*/
@TableField(value = "title")
private String title;
/**
*
*/
@TableField(value = "startDate")
private Date startDate;
/**
*
*/
@TableField(value = "endDate")
private Date endDate;
/**
*
*/
@TableField(value = "frequency")
private Integer frequency;
/**
*
*/
@TableField(value = "`createUser`")
private String createUser;
/**
*
*/
@TableField(value = "createTime")
private Date createTime;
/**
*
*/
@TableField(value = "updateTime")
private Date updateTime;
/**
*
*/
@TableField(value = "updateUser")
private Date updateUser;
/**
*
*/
@TableField(value = "remark")
private String remark;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,10 @@
package com.glxp.api.service.stat;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.entity.stat.IoStatSetDetailEntity;
import com.glxp.api.dao.stat.IoStatSetDetailMapper;
@Service
public class IoStatSetDetailService extends ServiceImpl<IoStatSetDetailMapper, IoStatSetDetailEntity> {
}

@ -0,0 +1,10 @@
package com.glxp.api.service.stat;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.dao.stat.IoStatSetMapper;
import com.glxp.api.entity.stat.IoStatSetEntity;
@Service
public class IoStatSetService extends ServiceImpl<IoStatSetMapper, IoStatSetEntity> {
}

@ -0,0 +1,25 @@
<?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.stat.IoStatSetDetailMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.stat.IoStatSetDetailEntity">
<!--@mbg.generated-->
<!--@Table io_stat_set_detail-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="cpmctymc" jdbcType="VARCHAR" property="cpmctymc" />
<result column="ggxh" jdbcType="VARCHAR" property="ggxh" />
<result column="zczbhhzbapzbh" jdbcType="VARCHAR" property="zczbhhzbapzbh" />
<result column="ylqxzcrbarmc" jdbcType="VARCHAR" property="ylqxzcrbarmc" />
<result column="bussinessType" jdbcType="TINYINT" property="bussinessType" />
<result column="companyName" jdbcType="VARCHAR" property="companyName" />
<result column="nameCode" jdbcType="VARCHAR" property="nameCode" />
<result column="provinceCode" jdbcType="VARCHAR" property="provinceCode" />
<result column="cityCode" jdbcType="VARCHAR" property="cityCode" />
<result column="areaCode" jdbcType="VARCHAR" property="areaCode" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, cpmctymc, ggxh, zczbhhzbapzbh, ylqxzcrbarmc, bussinessType, companyName, nameCode,
provinceCode, cityCode, areaCode, remark
</sql>
</mapper>

@ -0,0 +1,24 @@
<?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.stat.IoStatSetMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.stat.IoStatSetEntity">
<!--@mbg.generated-->
<!--@Table io_stat_set-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="startDate" jdbcType="TIMESTAMP" property="startDate" />
<result column="endDate" jdbcType="TIMESTAMP" property="endDate" />
<result column="frequency" jdbcType="INTEGER" property="frequency" />
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
<result column="updateUser" jdbcType="TIMESTAMP" property="updateUser" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, title, startDate, endDate, frequency, `createUser`, createTime, updateTime,
updateUser, remark
</sql>
</mapper>

@ -26,6 +26,138 @@ CALL Pro_Temp_ColumnWork('basic_udi_product', 'chsType', 'tinyint', 1);
CALL Pro_Temp_ColumnWork('basic_udi_product', 'importType', 'tinyint', 1);
CALL Pro_Temp_ColumnWork('basic_udi_product', 'purchaseType', 'tinyint', 1);
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 80021
Source Host : localhost:3306
Source Schema : udi_cpt2
Target Server Type : MySQL
Target Server Version : 80021
File Encoding : 65001
Date: 11/01/2024 09:23:13
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for io_stat_month
-- ----------------------------
CREATE TABLE IF NOT EXISTS `io_stat_month`
(
`id` int NOT NULL AUTO_INCREMENT,
`recordKeyFk` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '汇总记录号',
`year` int NULL DEFAULT NULL COMMENT '年度',
`quarter` tinyint NULL DEFAULT NULL COMMENT '季度',
`month` tinyint NULL DEFAULT NULL COMMENT '月份',
`relIdFk` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '物资编码主键',
`nameCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '产品DI',
`productName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '产品名称',
`ggxh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '规格型号',
`batchNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '批次号',
`beginCount` int NULL DEFAULT NULL COMMENT '期初数量',
`beginPrice` decimal(10, 2) NULL DEFAULT NULL COMMENT '期初价格',
`beginAmount` decimal(10, 2) NULL DEFAULT NULL COMMENT '期初金额',
`inCount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '入库数量',
`inPrice` decimal(10, 2) NULL DEFAULT NULL COMMENT '入库价格',
`inAmount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '入库金额',
`outCount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '出库数量',
`outPrice` decimal(10, 2) NULL DEFAULT NULL COMMENT '出库价格',
`outAmount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '出库金额',
`balanceCount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '结余数量',
`balancePrice` decimal(10, 2) NULL DEFAULT NULL COMMENT '结余价格',
`balanceAmount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '结余金额',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`deptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`invCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`companyIdFk` bigint NULL DEFAULT NULL,
`zczbhhzbapzbh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`ylqxzcrbarmc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB
AUTO_INCREMENT = 15
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci
ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Table structure for io_stat_order
-- ----------------------------
CREATE TABLE IF NOT EXISTS `io_stat_order`
(
`id` int NOT NULL AUTO_INCREMENT,
`recordKey` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '记录号',
`date` datetime(0) NULL DEFAULT NULL COMMENT '生成时间',
`type` tinyint NULL DEFAULT NULL COMMENT '1:年2.季度345.自定义',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '表格表头',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
`invCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`deptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`startDate` datetime(0) NULL DEFAULT NULL COMMENT '汇总开始时间',
`endDate` datetime(0) NULL DEFAULT NULL COMMENT '汇总结束时间',
`status` tinyint NULL DEFAULT NULL COMMENT '汇总状态1已完成2.生成中3生成失败',
`statType` tinyint NULL DEFAULT NULL,
`companyIdFk` bigint NULL DEFAULT NULL COMMENT '所属企业ID',
`createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci
ROW_FORMAT = DYNAMIC;
SET FOREIGN_KEY_CHECKS = 1;
CREATE TABLE IF NOT EXISTS `io_stat_set`
(
`id` int NOT NULL AUTO_INCREMENT COMMENT '上报频率',
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '上报设置编号',
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '上报设置标题',
`startDate` datetime(0) NULL DEFAULT NULL COMMENT '开始执行时间',
`endDate` datetime(0) NULL DEFAULT NULL COMMENT '结束执行时间',
`frequency` int NULL DEFAULT NULL COMMENT '上报频率(天)',
`createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`updateUser` datetime(0) NULL DEFAULT NULL COMMENT '更新人',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci COMMENT = '重点品种上报设置表'
ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for io_stat_set_detail
-- ----------------------------
CREATE TABLE IF NOT EXISTS `io_stat_set_detail`
(
`id` int NOT NULL AUTO_INCREMENT,
`cpmctymc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '品种名称',
`ggxh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '规格型号',
`zczbhhzbapzbh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '注册/备案号',
`ylqxzcrbarmc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '医疗器械注册人',
`bussinessType` tinyint NULL DEFAULT NULL COMMENT '企业类型',
`companyName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '注册企业名称',
`nameCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'di/产品标识',
`provinceCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '',
`cityCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '',
`areaCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '区/县',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci COMMENT = '重点品种上报设置明细表'
ROW_FORMAT = Dynamic;

Loading…
Cancel
Save