diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateCustomJob.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateCustomJob.java new file mode 100644 index 0000000..18dcf8d --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateCustomJob.java @@ -0,0 +1,30 @@ +package com.lideeyunji.core.framework.config.job; + +import com.lideeyunji.core.framework.service.IGrBiPubCustomService; +import com.lideeyunji.core.framework.service.IGrBiStProductService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; + +/** + * 客户对象 + * oracle gr_bi_pub_custom -> mysql gr_bi_pub_custom + */ +@Slf4j +@Component("generateCustomJob") +public class GenerateCustomJob implements JobHandler { + + @Resource + private IGrBiPubCustomService grBiPubCustomService; + + @Override + public String execute(String param) throws Exception { + log.info("*********** 开始生成客户对象 ************"); + grBiPubCustomService.generateCustom(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("*********** 生成客户对象完成 ************"); + return "*********** 生成客户对象完成 ************"; + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateDosageJob.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateDosageJob.java new file mode 100644 index 0000000..409273a --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateDosageJob.java @@ -0,0 +1,30 @@ +package com.lideeyunji.core.framework.config.job; + +import com.lideeyunji.core.framework.service.IGrBiPubDosageService; +import com.lideeyunji.core.framework.service.IGrBiStProductService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; + +/** + * 剂型对象 + * oracle gr_bi_pub_dosage -> mysql gr_bi_pub_dosage + */ +@Slf4j +@Component("generateDosageJob") +public class GenerateDosageJob implements JobHandler { + + @Resource + private IGrBiPubDosageService grBiPubDosageService; + + @Override + public String execute(String param) throws Exception { + log.info("*********** 开始生成剂型对象 ************"); + grBiPubDosageService.generateDosage(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("*********** 生成剂型对象完成 ************"); + return "*********** 生成剂型对象完成 ************"; + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateGoodsJob.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateGoodsJob.java new file mode 100644 index 0000000..7851255 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateGoodsJob.java @@ -0,0 +1,30 @@ +package com.lideeyunji.core.framework.config.job; + +import com.lideeyunji.core.framework.service.IGrBiPubGoodsService; +import com.lideeyunji.core.framework.service.IGrBiStProductService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; + +/** + * 货品对象 + * oracle gr_bi_pub_goods -> mysql gr_bi_pub_goods + */ +@Slf4j +@Component("generateGoodsJob") +public class GenerateGoodsJob implements JobHandler { + + @Resource + private IGrBiPubGoodsService grBiPubGoodsService; + + @Override + public String execute(String param) throws Exception { + log.info("*********** 开始生成货品对象 ************"); + grBiPubGoodsService.generateGoods(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("*********** 生成货品对象完成 ************"); + return "*********** 生成货品对象完成 ************"; + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateProvinceJob.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateProvinceJob.java new file mode 100644 index 0000000..d9d3858 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateProvinceJob.java @@ -0,0 +1,30 @@ +package com.lideeyunji.core.framework.config.job; + +import com.lideeyunji.core.framework.service.IGrBiPubProvinceService; +import com.lideeyunji.core.framework.service.IGrBiStProductService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; + +/** + * 行政区域对象 + * oracle gr_bi_pub_province -> mysql gr_bi_pub_province + */ +@Slf4j +@Component("generateProvinceJob") +public class GenerateProvinceJob implements JobHandler { + + @Resource + private IGrBiPubProvinceService grBiPubProvinceService; + + @Override + public String execute(String param) throws Exception { + log.info("*********** 开始生成行政区域对象 ************"); + grBiPubProvinceService.generateProvince(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("*********** 生成行政区域对象完成 ************"); + return "*********** 生成行政区域对象完成 ************"; + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateSalerJob.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateSalerJob.java new file mode 100644 index 0000000..35a8cbc --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateSalerJob.java @@ -0,0 +1,30 @@ +package com.lideeyunji.core.framework.config.job; + +import com.lideeyunji.core.framework.service.IGrBiPubSalerService; +import com.lideeyunji.core.framework.service.IGrBiStProductService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; + +/** + * 业务员对象 + * oracle gr_bi_pub_saler -> mysql gr_bi_pub_saler + */ +@Slf4j +@Component("generateSalerJob") +public class GenerateSalerJob implements JobHandler { + + @Resource + private IGrBiPubSalerService grBiPubSalerService; + + @Override + public String execute(String param) throws Exception { + log.info("*********** 开始生成业务员对象 ************"); + grBiPubSalerService.generateSaler(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("*********** 生成业务员对象完成 ************"); + return "*********** 生成业务员对象完成 ************"; + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateSaletypeJob.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateSaletypeJob.java new file mode 100644 index 0000000..a2a8f2c --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateSaletypeJob.java @@ -0,0 +1,30 @@ +package com.lideeyunji.core.framework.config.job; + +import com.lideeyunji.core.framework.service.IGrBiPubSaletypeService; +import com.lideeyunji.core.framework.service.IGrBiStProductService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; + +/** + * 销售类型对象 + * oracle gr_bi_pub_saletype -> mysql gr_bi_pub_saletype + */ +@Slf4j +@Component("generateSaletypeJob") +public class GenerateSaletypeJob implements JobHandler { + + @Resource + private IGrBiPubSaletypeService grBiPubSaletypeService; + + @Override + public String execute(String param) throws Exception { + log.info("*********** 开始生成销售类型对象 ************"); + grBiPubSaletypeService.generateSaletype(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("*********** 生成销售类型对象完成 ************"); + return "*********** 生成销售类型对象完成 ************"; + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateSalezoneJob.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateSalezoneJob.java new file mode 100644 index 0000000..8521961 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateSalezoneJob.java @@ -0,0 +1,30 @@ +package com.lideeyunji.core.framework.config.job; + +import com.lideeyunji.core.framework.service.IGrBiPubSalezoneService; +import com.lideeyunji.core.framework.service.IGrBiStProductService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; + +/** + * 业务区域对象 + * oracle gr_bi_pub_salezone -> mysql gr_bi_pub_salezone + */ +@Slf4j +@Component("generateSalezoneJob") +public class GenerateSalezoneJob implements JobHandler { + + @Resource + private IGrBiPubSalezoneService grBiPubSalezoneService; + + @Override + public String execute(String param) throws Exception { + log.info("*********** 开始生成业务区域对象 ************"); + grBiPubSalezoneService.generateSalezone(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("*********** 生成业务区域对象完成 ************"); + return "*********** 生成业务区域对象完成 ************"; + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubCustom.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubCustom.java new file mode 100644 index 0000000..1030d19 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubCustom.java @@ -0,0 +1,36 @@ +package com.lideeyunji.core.framework.entity; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import java.io.Serializable; + +/** + * 客户对象 gr_bi_pub_custom + * + * @author king + * @date 2026-03-14 + */ +@TableName("gr_bi_pub_custom") +@Data +public class GrBiPubCustom implements Serializable +{ + private static final long serialVersionUID = 1L; + + @TableField(value = "CUSTOMID") + private Long customid; + + @TableField(value = "CUSTOMNAME") + private String customname; + + @TableField(value = "CUSTOMNO") + private String customno; + + @TableField(value = "CUSTOMOPCODE") + private String customopcode; + + + + + +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubDosage.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubDosage.java new file mode 100644 index 0000000..a89d065 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubDosage.java @@ -0,0 +1,30 @@ +package com.lideeyunji.core.framework.entity; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import java.io.Serializable; + +/** + * 剂型对象 gr_bi_pub_dosage + * + * @author king + * @date 2026-03-14 + */ +@TableName("gr_bi_pub_dosage") +@Data +public class GrBiPubDosage implements Serializable +{ + private static final long serialVersionUID = 1L; + + @TableField(value = "DOSAGEID") + private Long dosageid; + + @TableField(value = "DOSAGENAME") + private String dosagename; + + + + + +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubGoods.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubGoods.java new file mode 100644 index 0000000..01ea00e --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubGoods.java @@ -0,0 +1,54 @@ +package com.lideeyunji.core.framework.entity; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import java.io.Serializable; + +/** + * 货品对象 gr_bi_pub_goods + * + * @author king + * @date 2026-03-14 + */ +@TableName("gr_bi_pub_goods") +@Data +public class GrBiPubGoods implements Serializable +{ + private static final long serialVersionUID = 1L; + + @TableField(value = "GOODSID") + private Long goodsid; + + @TableField(value = "GOODSNAME") + private String goodsname; + + @TableField(value = "GOODSTYPE") + private String goodstype; + + @TableField(value = "GOODSUNIT") + private String goodsunit; + + @TableField(value = "GOODSNO") + private String goodsno; + + @TableField(value = "GOODSOPCODE") + private String goodsopcode; + + @TableField(value = "DOSAGEID") + private Long dosageid; + + @TableField(value = "DOSAGENAME") + private String dosagename; + + @TableField(value = "STDGOODSNAME") + private String stdgoodsname; + + @TableField(value = "STDGOODSTYPE") + private String stdgoodstype; + + + + + +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubProvince.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubProvince.java new file mode 100644 index 0000000..92842eb --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubProvince.java @@ -0,0 +1,36 @@ +package com.lideeyunji.core.framework.entity; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import java.io.Serializable; + +/** + * 行政区域对象 gr_bi_pub_province + * + * @author king + * @date 2026-03-14 + */ +@TableName("gr_bi_pub_province") +@Data +public class GrBiPubProvince implements Serializable +{ + private static final long serialVersionUID = 1L; + + @TableField(value = "PROVINCEID") + private Long provinceid; + + @TableField(value = "PROVINCENAME") + private String provincename; + + @TableField(value = "PROVINCENO") + private Long provinceno; + + @TableField(value = "PROVINCEOPCODE") + private String provinceopcode; + + + + + +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubSaler.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubSaler.java new file mode 100644 index 0000000..9c4e179 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubSaler.java @@ -0,0 +1,36 @@ +package com.lideeyunji.core.framework.entity; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import java.io.Serializable; + +/** + * 业务员对象 gr_bi_pub_saler + * + * @author king + * @date 2026-03-14 + */ +@TableName("gr_bi_pub_saler") +@Data +public class GrBiPubSaler implements Serializable +{ + private static final long serialVersionUID = 1L; + + @TableField(value = "SALERID") + private Long salerid; + + @TableField(value = "SALERNAME") + private String salername; + + @TableField(value = "SALERNO") + private String salerno; + + @TableField(value = "SALEROPCODE") + private String saleropcode; + + + + + +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubSaletype.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubSaletype.java new file mode 100644 index 0000000..fb69525 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubSaletype.java @@ -0,0 +1,30 @@ +package com.lideeyunji.core.framework.entity; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import java.io.Serializable; + +/** + * 销售类型对象 gr_bi_pub_saletype + * + * @author king + * @date 2026-03-14 + */ +@TableName("gr_bi_pub_saletype") +@Data +public class GrBiPubSaletype implements Serializable +{ + private static final long serialVersionUID = 1L; + + @TableField(value = "SALETYPEID") + private Long saletypeid; + + @TableField(value = "SALETYPENAME") + private String saletypename; + + + + + +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubSalezone.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubSalezone.java new file mode 100644 index 0000000..8320cd3 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/entity/GrBiPubSalezone.java @@ -0,0 +1,36 @@ +package com.lideeyunji.core.framework.entity; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import java.io.Serializable; + +/** + * 业务区域对象 gr_bi_pub_salezone + * + * @author king + * @date 2026-03-14 + */ +@TableName("gr_bi_pub_salezone") +@Data +public class GrBiPubSalezone implements Serializable +{ + private static final long serialVersionUID = 1L; + + @TableField(value = "SALEZONEID") + private Long salezoneid; + + @TableField(value = "SALEZONENAME") + private String salezonename; + + @TableField(value = "SALEZONENO") + private Long salezoneno; + + @TableField(value = "SALEZONEOPCODE") + private String salezoneopcode; + + + + + +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubCustomMapper.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubCustomMapper.java new file mode 100644 index 0000000..3f196ec --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubCustomMapper.java @@ -0,0 +1,77 @@ +package com.lideeyunji.core.framework.mapper; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.lideeyunji.core.framework.entity.GrBiPubCustom; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.lideeyunji.core.framework.entity.GrBiStLot; +import org.apache.ibatis.annotations.Param; + +/** + * 客户Mapper接口 + * + * @author king + * @date 2026-03-14 + */ +public interface GrBiPubCustomMapper extends BaseMapper +{ + /** + * 查询客户 + * + * @param customid 客户主键 + * @return 客户 + */ + public GrBiPubCustom selectGrBiPubCustomByCustomid(Long customid); + + /** + * 查询客户列表 + * + * @param grBiPubCustom 客户 + * @return 客户集合 + */ + public List selectGrBiPubCustomList(GrBiPubCustom grBiPubCustom); + + /** + * 新增客户 + * + * @param grBiPubCustom 客户 + * @return 结果 + */ + public int insertGrBiPubCustom(GrBiPubCustom grBiPubCustom); + + /** + * 修改客户 + * + * @param grBiPubCustom 客户 + * @return 结果 + */ + public int updateGrBiPubCustom(GrBiPubCustom grBiPubCustom); + + /** + * 删除客户 + * + * @param customid 客户主键 + * @return 结果 + */ + public int deleteGrBiPubCustomByCustomid(Long customid); + + /** + * 批量删除客户 + * + * @param customids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteGrBiPubCustomByCustomids(Long[] customids); + + @DS(value = "#dataSourceType") + default List getCustomList(@Param("dataSourceType") String dataSourceType){ + return this.selectList(new QueryWrapper<>()); + } + + @DS(value = "#dataSourceType") + default int deleteOldCustom(@Param("dataSourceType") String dataSourceType){ + return this.delete(new QueryWrapper<>()); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubDosageMapper.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubDosageMapper.java new file mode 100644 index 0000000..47619d3 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubDosageMapper.java @@ -0,0 +1,78 @@ +package com.lideeyunji.core.framework.mapper; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.lideeyunji.core.framework.entity.GrBiPubCustom; +import com.lideeyunji.core.framework.entity.GrBiPubDosage; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; + +/** + * 剂型Mapper接口 + * + * @author king + * @date 2026-03-14 + */ +public interface GrBiPubDosageMapper extends BaseMapper +{ + /** + * 查询剂型 + * + * @param dosageid 剂型主键 + * @return 剂型 + */ + public GrBiPubDosage selectGrBiPubDosageByDosageid(Long dosageid); + + /** + * 查询剂型列表 + * + * @param grBiPubDosage 剂型 + * @return 剂型集合 + */ + public List selectGrBiPubDosageList(GrBiPubDosage grBiPubDosage); + + /** + * 新增剂型 + * + * @param grBiPubDosage 剂型 + * @return 结果 + */ + public int insertGrBiPubDosage(GrBiPubDosage grBiPubDosage); + + /** + * 修改剂型 + * + * @param grBiPubDosage 剂型 + * @return 结果 + */ + public int updateGrBiPubDosage(GrBiPubDosage grBiPubDosage); + + /** + * 删除剂型 + * + * @param dosageid 剂型主键 + * @return 结果 + */ + public int deleteGrBiPubDosageByDosageid(Long dosageid); + + /** + * 批量删除剂型 + * + * @param dosageids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteGrBiPubDosageByDosageids(Long[] dosageids); + + + @DS(value = "#dataSourceType") + default List getDosageList(@Param("dataSourceType") String dataSourceType){ + return this.selectList(new QueryWrapper<>()); + } + + @DS(value = "#dataSourceType") + default int deleteOldDosage(@Param("dataSourceType") String dataSourceType){ + return this.delete(new QueryWrapper<>()); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubGoodsMapper.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubGoodsMapper.java new file mode 100644 index 0000000..b172d4a --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubGoodsMapper.java @@ -0,0 +1,78 @@ +package com.lideeyunji.core.framework.mapper; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.lideeyunji.core.framework.entity.GrBiPubDosage; +import com.lideeyunji.core.framework.entity.GrBiPubGoods; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; + +/** + * 货品Mapper接口 + * + * @author king + * @date 2026-03-14 + */ +public interface GrBiPubGoodsMapper extends BaseMapper +{ + /** + * 查询货品 + * + * @param goodsid 货品主键 + * @return 货品 + */ + public GrBiPubGoods selectGrBiPubGoodsByGoodsid(Long goodsid); + + /** + * 查询货品列表 + * + * @param grBiPubGoods 货品 + * @return 货品集合 + */ + public List selectGrBiPubGoodsList(GrBiPubGoods grBiPubGoods); + + /** + * 新增货品 + * + * @param grBiPubGoods 货品 + * @return 结果 + */ + public int insertGrBiPubGoods(GrBiPubGoods grBiPubGoods); + + /** + * 修改货品 + * + * @param grBiPubGoods 货品 + * @return 结果 + */ + public int updateGrBiPubGoods(GrBiPubGoods grBiPubGoods); + + /** + * 删除货品 + * + * @param goodsid 货品主键 + * @return 结果 + */ + public int deleteGrBiPubGoodsByGoodsid(Long goodsid); + + /** + * 批量删除货品 + * + * @param goodsids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteGrBiPubGoodsByGoodsids(Long[] goodsids); + + + @DS(value = "#dataSourceType") + default List getGoodsList(@Param("dataSourceType") String dataSourceType){ + return this.selectList(new QueryWrapper<>()); + } + + @DS(value = "#dataSourceType") + default int deleteOldGoods(@Param("dataSourceType") String dataSourceType){ + return this.delete(new QueryWrapper<>()); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubProvinceMapper.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubProvinceMapper.java new file mode 100644 index 0000000..3e8f873 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubProvinceMapper.java @@ -0,0 +1,78 @@ +package com.lideeyunji.core.framework.mapper; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.lideeyunji.core.framework.entity.GrBiPubDosage; +import com.lideeyunji.core.framework.entity.GrBiPubProvince; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; + +/** + * 行政区域Mapper接口 + * + * @author king + * @date 2026-03-14 + */ +public interface GrBiPubProvinceMapper extends BaseMapper +{ + /** + * 查询行政区域 + * + * @param provinceid 行政区域主键 + * @return 行政区域 + */ + public GrBiPubProvince selectGrBiPubProvinceByProvinceid(Long provinceid); + + /** + * 查询行政区域列表 + * + * @param grBiPubProvince 行政区域 + * @return 行政区域集合 + */ + public List selectGrBiPubProvinceList(GrBiPubProvince grBiPubProvince); + + /** + * 新增行政区域 + * + * @param grBiPubProvince 行政区域 + * @return 结果 + */ + public int insertGrBiPubProvince(GrBiPubProvince grBiPubProvince); + + /** + * 修改行政区域 + * + * @param grBiPubProvince 行政区域 + * @return 结果 + */ + public int updateGrBiPubProvince(GrBiPubProvince grBiPubProvince); + + /** + * 删除行政区域 + * + * @param provinceid 行政区域主键 + * @return 结果 + */ + public int deleteGrBiPubProvinceByProvinceid(Long provinceid); + + /** + * 批量删除行政区域 + * + * @param provinceids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteGrBiPubProvinceByProvinceids(Long[] provinceids); + + + @DS(value = "#dataSourceType") + default List getProvinceList(@Param("dataSourceType") String dataSourceType){ + return this.selectList(new QueryWrapper<>()); + } + + @DS(value = "#dataSourceType") + default int deleteOldProvince(@Param("dataSourceType") String dataSourceType){ + return this.delete(new QueryWrapper<>()); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubSalerMapper.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubSalerMapper.java new file mode 100644 index 0000000..2454d1e --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubSalerMapper.java @@ -0,0 +1,78 @@ +package com.lideeyunji.core.framework.mapper; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.lideeyunji.core.framework.entity.GrBiPubDosage; +import com.lideeyunji.core.framework.entity.GrBiPubSaler; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; + +/** + * 业务员Mapper接口 + * + * @author king + * @date 2026-03-14 + */ +public interface GrBiPubSalerMapper extends BaseMapper +{ + /** + * 查询业务员 + * + * @param salerid 业务员主键 + * @return 业务员 + */ + public GrBiPubSaler selectGrBiPubSalerBySalerid(Long salerid); + + /** + * 查询业务员列表 + * + * @param grBiPubSaler 业务员 + * @return 业务员集合 + */ + public List selectGrBiPubSalerList(GrBiPubSaler grBiPubSaler); + + /** + * 新增业务员 + * + * @param grBiPubSaler 业务员 + * @return 结果 + */ + public int insertGrBiPubSaler(GrBiPubSaler grBiPubSaler); + + /** + * 修改业务员 + * + * @param grBiPubSaler 业务员 + * @return 结果 + */ + public int updateGrBiPubSaler(GrBiPubSaler grBiPubSaler); + + /** + * 删除业务员 + * + * @param salerid 业务员主键 + * @return 结果 + */ + public int deleteGrBiPubSalerBySalerid(Long salerid); + + /** + * 批量删除业务员 + * + * @param salerids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteGrBiPubSalerBySalerids(Long[] salerids); + + + @DS(value = "#dataSourceType") + default List getSalerList(@Param("dataSourceType") String dataSourceType){ + return this.selectList(new QueryWrapper<>()); + } + + @DS(value = "#dataSourceType") + default int deleteOldSaler(@Param("dataSourceType") String dataSourceType){ + return this.delete(new QueryWrapper<>()); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubSaletypeMapper.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubSaletypeMapper.java new file mode 100644 index 0000000..eed0e4f --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubSaletypeMapper.java @@ -0,0 +1,77 @@ +package com.lideeyunji.core.framework.mapper; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.lideeyunji.core.framework.entity.GrBiPubDosage; +import com.lideeyunji.core.framework.entity.GrBiPubSaletype; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; + +/** + * 销售类型Mapper接口 + * + * @author king + * @date 2026-03-14 + */ +public interface GrBiPubSaletypeMapper extends BaseMapper +{ + /** + * 查询销售类型 + * + * @param saletypeid 销售类型主键 + * @return 销售类型 + */ + public GrBiPubSaletype selectGrBiPubSaletypeBySaletypeid(Long saletypeid); + + /** + * 查询销售类型列表 + * + * @param grBiPubSaletype 销售类型 + * @return 销售类型集合 + */ + public List selectGrBiPubSaletypeList(GrBiPubSaletype grBiPubSaletype); + + /** + * 新增销售类型 + * + * @param grBiPubSaletype 销售类型 + * @return 结果 + */ + public int insertGrBiPubSaletype(GrBiPubSaletype grBiPubSaletype); + + /** + * 修改销售类型 + * + * @param grBiPubSaletype 销售类型 + * @return 结果 + */ + public int updateGrBiPubSaletype(GrBiPubSaletype grBiPubSaletype); + + /** + * 删除销售类型 + * + * @param saletypeid 销售类型主键 + * @return 结果 + */ + public int deleteGrBiPubSaletypeBySaletypeid(Long saletypeid); + + /** + * 批量删除销售类型 + * + * @param saletypeids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteGrBiPubSaletypeBySaletypeids(Long[] saletypeids); + + @DS(value = "#dataSourceType") + default List getSaletypeList(@Param("dataSourceType") String dataSourceType){ + return this.selectList(new QueryWrapper<>()); + } + + @DS(value = "#dataSourceType") + default int deleteOldSaletype(@Param("dataSourceType") String dataSourceType){ + return this.delete(new QueryWrapper<>()); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubSalezoneMapper.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubSalezoneMapper.java new file mode 100644 index 0000000..73df19a --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/mapper/GrBiPubSalezoneMapper.java @@ -0,0 +1,78 @@ +package com.lideeyunji.core.framework.mapper; + +import java.util.List; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.lideeyunji.core.framework.entity.GrBiPubDosage; +import com.lideeyunji.core.framework.entity.GrBiPubSalezone; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; + +/** + * 业务区域Mapper接口 + * + * @author king + * @date 2026-03-14 + */ +public interface GrBiPubSalezoneMapper extends BaseMapper +{ + /** + * 查询业务区域 + * + * @param salezoneid 业务区域主键 + * @return 业务区域 + */ + public GrBiPubSalezone selectGrBiPubSalezoneBySalezoneid(Long salezoneid); + + /** + * 查询业务区域列表 + * + * @param grBiPubSalezone 业务区域 + * @return 业务区域集合 + */ + public List selectGrBiPubSalezoneList(GrBiPubSalezone grBiPubSalezone); + + /** + * 新增业务区域 + * + * @param grBiPubSalezone 业务区域 + * @return 结果 + */ + public int insertGrBiPubSalezone(GrBiPubSalezone grBiPubSalezone); + + /** + * 修改业务区域 + * + * @param grBiPubSalezone 业务区域 + * @return 结果 + */ + public int updateGrBiPubSalezone(GrBiPubSalezone grBiPubSalezone); + + /** + * 删除业务区域 + * + * @param salezoneid 业务区域主键 + * @return 结果 + */ + public int deleteGrBiPubSalezoneBySalezoneid(Long salezoneid); + + /** + * 批量删除业务区域 + * + * @param salezoneids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteGrBiPubSalezoneBySalezoneids(Long[] salezoneids); + + + @DS(value = "#dataSourceType") + default List getSalezoneList(@Param("dataSourceType") String dataSourceType){ + return this.selectList(new QueryWrapper<>()); + } + + @DS(value = "#dataSourceType") + default int deleteOldSalezone(@Param("dataSourceType") String dataSourceType){ + return this.delete(new QueryWrapper<>()); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubCustomService.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubCustomService.java new file mode 100644 index 0000000..8246a39 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubCustomService.java @@ -0,0 +1,15 @@ +package com.lideeyunji.core.framework.service; + +import org.apache.ibatis.annotations.Param; + +/** + * 客户Service接口 + * + * @author king + * @date 2026-03-14 + */ +public interface IGrBiPubCustomService +{ + + void generateCustom(@Param("dataSourceType") String dataSourceType); +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubDosageService.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubDosageService.java new file mode 100644 index 0000000..281e4f0 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubDosageService.java @@ -0,0 +1,64 @@ +package com.lideeyunji.core.framework.service; + +import java.util.List; +import com.lideeyunji.core.framework.entity.GrBiPubDosage; +import org.apache.ibatis.annotations.Param; + +/** + * 剂型Service接口 + * + * @author king + * @date 2026-03-14 + */ +public interface IGrBiPubDosageService +{ + /** + * 查询剂型 + * + * @param dosageid 剂型主键 + * @return 剂型 + */ + public GrBiPubDosage selectGrBiPubDosageByDosageid(Long dosageid); + + /** + * 查询剂型列表 + * + * @param grBiPubDosage 剂型 + * @return 剂型集合 + */ + public List selectGrBiPubDosageList(GrBiPubDosage grBiPubDosage); + + /** + * 新增剂型 + * + * @param grBiPubDosage 剂型 + * @return 结果 + */ + public int insertGrBiPubDosage(GrBiPubDosage grBiPubDosage); + + /** + * 修改剂型 + * + * @param grBiPubDosage 剂型 + * @return 结果 + */ + public int updateGrBiPubDosage(GrBiPubDosage grBiPubDosage); + + /** + * 批量删除剂型 + * + * @param dosageids 需要删除的剂型主键集合 + * @return 结果 + */ + public int deleteGrBiPubDosageByDosageids(Long[] dosageids); + + /** + * 删除剂型信息 + * + * @param dosageid 剂型主键 + * @return 结果 + */ + public int deleteGrBiPubDosageByDosageid(Long dosageid); + + void generateDosage(@Param("dataSourceType") String dataSourceType); +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubGoodsService.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubGoodsService.java new file mode 100644 index 0000000..3b1c5a2 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubGoodsService.java @@ -0,0 +1,64 @@ +package com.lideeyunji.core.framework.service; + +import java.util.List; +import com.lideeyunji.core.framework.entity.GrBiPubGoods; +import org.apache.ibatis.annotations.Param; + +/** + * 货品Service接口 + * + * @author king + * @date 2026-03-14 + */ +public interface IGrBiPubGoodsService +{ + /** + * 查询货品 + * + * @param goodsid 货品主键 + * @return 货品 + */ + public GrBiPubGoods selectGrBiPubGoodsByGoodsid(Long goodsid); + + /** + * 查询货品列表 + * + * @param grBiPubGoods 货品 + * @return 货品集合 + */ + public List selectGrBiPubGoodsList(GrBiPubGoods grBiPubGoods); + + /** + * 新增货品 + * + * @param grBiPubGoods 货品 + * @return 结果 + */ + public int insertGrBiPubGoods(GrBiPubGoods grBiPubGoods); + + /** + * 修改货品 + * + * @param grBiPubGoods 货品 + * @return 结果 + */ + public int updateGrBiPubGoods(GrBiPubGoods grBiPubGoods); + + /** + * 批量删除货品 + * + * @param goodsids 需要删除的货品主键集合 + * @return 结果 + */ + public int deleteGrBiPubGoodsByGoodsids(Long[] goodsids); + + /** + * 删除货品信息 + * + * @param goodsid 货品主键 + * @return 结果 + */ + public int deleteGrBiPubGoodsByGoodsid(Long goodsid); + + void generateGoods(@Param("dataSourceType") String dataSourceType); +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubProvinceService.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubProvinceService.java new file mode 100644 index 0000000..492e270 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubProvinceService.java @@ -0,0 +1,64 @@ +package com.lideeyunji.core.framework.service; + +import java.util.List; +import com.lideeyunji.core.framework.entity.GrBiPubProvince; +import org.apache.ibatis.annotations.Param; + +/** + * 行政区域Service接口 + * + * @author king + * @date 2026-03-14 + */ +public interface IGrBiPubProvinceService +{ + /** + * 查询行政区域 + * + * @param provinceid 行政区域主键 + * @return 行政区域 + */ + public GrBiPubProvince selectGrBiPubProvinceByProvinceid(Long provinceid); + + /** + * 查询行政区域列表 + * + * @param grBiPubProvince 行政区域 + * @return 行政区域集合 + */ + public List selectGrBiPubProvinceList(GrBiPubProvince grBiPubProvince); + + /** + * 新增行政区域 + * + * @param grBiPubProvince 行政区域 + * @return 结果 + */ + public int insertGrBiPubProvince(GrBiPubProvince grBiPubProvince); + + /** + * 修改行政区域 + * + * @param grBiPubProvince 行政区域 + * @return 结果 + */ + public int updateGrBiPubProvince(GrBiPubProvince grBiPubProvince); + + /** + * 批量删除行政区域 + * + * @param provinceids 需要删除的行政区域主键集合 + * @return 结果 + */ + public int deleteGrBiPubProvinceByProvinceids(Long[] provinceids); + + /** + * 删除行政区域信息 + * + * @param provinceid 行政区域主键 + * @return 结果 + */ + public int deleteGrBiPubProvinceByProvinceid(Long provinceid); + + void generateProvince(@Param("dataSourceType") String dataSourceType); +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubSalerService.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubSalerService.java new file mode 100644 index 0000000..729a172 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubSalerService.java @@ -0,0 +1,64 @@ +package com.lideeyunji.core.framework.service; + +import java.util.List; +import com.lideeyunji.core.framework.entity.GrBiPubSaler; +import org.apache.ibatis.annotations.Param; + +/** + * 业务员Service接口 + * + * @author king + * @date 2026-03-14 + */ +public interface IGrBiPubSalerService +{ + /** + * 查询业务员 + * + * @param salerid 业务员主键 + * @return 业务员 + */ + public GrBiPubSaler selectGrBiPubSalerBySalerid(Long salerid); + + /** + * 查询业务员列表 + * + * @param grBiPubSaler 业务员 + * @return 业务员集合 + */ + public List selectGrBiPubSalerList(GrBiPubSaler grBiPubSaler); + + /** + * 新增业务员 + * + * @param grBiPubSaler 业务员 + * @return 结果 + */ + public int insertGrBiPubSaler(GrBiPubSaler grBiPubSaler); + + /** + * 修改业务员 + * + * @param grBiPubSaler 业务员 + * @return 结果 + */ + public int updateGrBiPubSaler(GrBiPubSaler grBiPubSaler); + + /** + * 批量删除业务员 + * + * @param salerids 需要删除的业务员主键集合 + * @return 结果 + */ + public int deleteGrBiPubSalerBySalerids(Long[] salerids); + + /** + * 删除业务员信息 + * + * @param salerid 业务员主键 + * @return 结果 + */ + public int deleteGrBiPubSalerBySalerid(Long salerid); + + void generateSaler(@Param("dataSourceType") String dataSourceType); +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubSaletypeService.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubSaletypeService.java new file mode 100644 index 0000000..4a8c58e --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubSaletypeService.java @@ -0,0 +1,64 @@ +package com.lideeyunji.core.framework.service; + +import java.util.List; +import com.lideeyunji.core.framework.entity.GrBiPubSaletype; +import org.apache.ibatis.annotations.Param; + +/** + * 销售类型Service接口 + * + * @author king + * @date 2026-03-14 + */ +public interface IGrBiPubSaletypeService +{ + /** + * 查询销售类型 + * + * @param saletypeid 销售类型主键 + * @return 销售类型 + */ + public GrBiPubSaletype selectGrBiPubSaletypeBySaletypeid(Long saletypeid); + + /** + * 查询销售类型列表 + * + * @param grBiPubSaletype 销售类型 + * @return 销售类型集合 + */ + public List selectGrBiPubSaletypeList(GrBiPubSaletype grBiPubSaletype); + + /** + * 新增销售类型 + * + * @param grBiPubSaletype 销售类型 + * @return 结果 + */ + public int insertGrBiPubSaletype(GrBiPubSaletype grBiPubSaletype); + + /** + * 修改销售类型 + * + * @param grBiPubSaletype 销售类型 + * @return 结果 + */ + public int updateGrBiPubSaletype(GrBiPubSaletype grBiPubSaletype); + + /** + * 批量删除销售类型 + * + * @param saletypeids 需要删除的销售类型主键集合 + * @return 结果 + */ + public int deleteGrBiPubSaletypeBySaletypeids(Long[] saletypeids); + + /** + * 删除销售类型信息 + * + * @param saletypeid 销售类型主键 + * @return 结果 + */ + public int deleteGrBiPubSaletypeBySaletypeid(Long saletypeid); + + void generateSaletype(@Param("dataSourceType") String dataSourceType); +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubSalezoneService.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubSalezoneService.java new file mode 100644 index 0000000..4b84f1f --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiPubSalezoneService.java @@ -0,0 +1,64 @@ +package com.lideeyunji.core.framework.service; + +import java.util.List; +import com.lideeyunji.core.framework.entity.GrBiPubSalezone; +import org.apache.ibatis.annotations.Param; + +/** + * 业务区域Service接口 + * + * @author king + * @date 2026-03-14 + */ +public interface IGrBiPubSalezoneService +{ + /** + * 查询业务区域 + * + * @param salezoneid 业务区域主键 + * @return 业务区域 + */ + public GrBiPubSalezone selectGrBiPubSalezoneBySalezoneid(Long salezoneid); + + /** + * 查询业务区域列表 + * + * @param grBiPubSalezone 业务区域 + * @return 业务区域集合 + */ + public List selectGrBiPubSalezoneList(GrBiPubSalezone grBiPubSalezone); + + /** + * 新增业务区域 + * + * @param grBiPubSalezone 业务区域 + * @return 结果 + */ + public int insertGrBiPubSalezone(GrBiPubSalezone grBiPubSalezone); + + /** + * 修改业务区域 + * + * @param grBiPubSalezone 业务区域 + * @return 结果 + */ + public int updateGrBiPubSalezone(GrBiPubSalezone grBiPubSalezone); + + /** + * 批量删除业务区域 + * + * @param salezoneids 需要删除的业务区域主键集合 + * @return 结果 + */ + public int deleteGrBiPubSalezoneBySalezoneids(Long[] salezoneids); + + /** + * 删除业务区域信息 + * + * @param salezoneid 业务区域主键 + * @return 结果 + */ + public int deleteGrBiPubSalezoneBySalezoneid(Long salezoneid); + + void generateSalezone(@Param("dataSourceType") String dataSourceType); +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubCustomServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubCustomServiceImpl.java new file mode 100644 index 0000000..6bd141b --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubCustomServiceImpl.java @@ -0,0 +1,48 @@ +package com.lideeyunji.core.framework.service.impl; + +import java.util.List; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.dynamic.datasource.annotation.DSTransactional; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lideeyunji.core.framework.entity.GrBiStLot; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import com.lideeyunji.core.framework.mapper.GrBiPubCustomMapper; +import com.lideeyunji.core.framework.entity.GrBiPubCustom; +import com.lideeyunji.core.framework.service.IGrBiPubCustomService; +import org.springframework.transaction.annotation.Transactional; + +/** + * 客户Service业务层处理 + * + * @author king + * @date 2026-03-14 + */ +@Slf4j +@Service +public class GrBiPubCustomServiceImpl extends ServiceImpl implements IGrBiPubCustomService +{ + + @Override + @DSTransactional + @DS(value = "#dataSourceType") + public void generateCustom(String dataSourceType) { + // 获取数据 + List grBiSaSetdtlList = this.baseMapper.getCustomList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI); + if (CollUtil.isEmpty(grBiSaSetdtlList)) { + return; + } + //保存数据 + int reNum = this.baseMapper.deleteOldCustom(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("删除数量:{}", reNum); + for (GrBiPubCustom grBiSaSetdtl : grBiSaSetdtlList) { + int re = this.baseMapper.insert(grBiSaSetdtl); + if (re < 1) { + throw new RuntimeException("批量新增异常"); + } + } + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubDosageServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubDosageServiceImpl.java new file mode 100644 index 0000000..60cdb3d --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubDosageServiceImpl.java @@ -0,0 +1,118 @@ +package com.lideeyunji.core.framework.service.impl; + +import java.util.List; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.dynamic.datasource.annotation.DSTransactional; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lideeyunji.core.framework.entity.GrBiPubCustom; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import com.lideeyunji.core.framework.mapper.GrBiPubDosageMapper; +import com.lideeyunji.core.framework.entity.GrBiPubDosage; +import com.lideeyunji.core.framework.service.IGrBiPubDosageService; + +/** + * 剂型Service业务层处理 + * + * @author king + * @date 2026-03-14 + */ +@Slf4j +@Service +public class GrBiPubDosageServiceImpl extends ServiceImpl implements IGrBiPubDosageService +{ + @Override + @DSTransactional + @DS(value = "#dataSourceType") + public void generateDosage(String dataSourceType) { + // 获取数据 + List grBiSaSetdtlList = this.baseMapper.getDosageList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI); + if (CollUtil.isEmpty(grBiSaSetdtlList)) { + return; + } + //保存数据 + int reNum = this.baseMapper.deleteOldDosage(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("删除数量:{}", reNum); + for (GrBiPubDosage grBiSaSetdtl : grBiSaSetdtlList) { + int re = this.baseMapper.insert(grBiSaSetdtl); + if (re < 1) { + throw new RuntimeException("批量新增异常"); + } + } + } + + /** + * 查询剂型 + * + * @param dosageid 剂型主键 + * @return 剂型 + */ + @Override + public GrBiPubDosage selectGrBiPubDosageByDosageid(Long dosageid) + { + return this.baseMapper.selectGrBiPubDosageByDosageid(dosageid); + } + + /** + * 查询剂型列表 + * + * @param grBiPubDosage 剂型 + * @return 剂型 + */ + @Override + public List selectGrBiPubDosageList(GrBiPubDosage grBiPubDosage) + { + return this.baseMapper.selectGrBiPubDosageList(grBiPubDosage); + } + + /** + * 新增剂型 + * + * @param grBiPubDosage 剂型 + * @return 结果 + */ + @Override + public int insertGrBiPubDosage(GrBiPubDosage grBiPubDosage) + { + return this.baseMapper.insertGrBiPubDosage(grBiPubDosage); + } + + /** + * 修改剂型 + * + * @param grBiPubDosage 剂型 + * @return 结果 + */ + @Override + public int updateGrBiPubDosage(GrBiPubDosage grBiPubDosage) + { + return this.baseMapper.updateGrBiPubDosage(grBiPubDosage); + } + + /** + * 批量删除剂型 + * + * @param dosageids 需要删除的剂型主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubDosageByDosageids(Long[] dosageids) + { + return this.baseMapper.deleteGrBiPubDosageByDosageids(dosageids); + } + + /** + * 删除剂型信息 + * + * @param dosageid 剂型主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubDosageByDosageid(Long dosageid) + { + return this.baseMapper.deleteGrBiPubDosageByDosageid(dosageid); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubGoodsServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubGoodsServiceImpl.java new file mode 100644 index 0000000..fc767ec --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubGoodsServiceImpl.java @@ -0,0 +1,118 @@ +package com.lideeyunji.core.framework.service.impl; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.dynamic.datasource.annotation.DSTransactional; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lideeyunji.core.framework.entity.GrBiPubCustom; +import com.lideeyunji.core.framework.entity.GrBiPubGoods; +import com.lideeyunji.core.framework.mapper.GrBiPubGoodsMapper; +import com.lideeyunji.core.framework.service.IGrBiPubGoodsService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 货品Service业务层处理 + * + * @author king + * @date 2026-03-14 + */ +@Slf4j +@Service +public class GrBiPubGoodsServiceImpl extends ServiceImpl implements IGrBiPubGoodsService +{ + + @Override + @DSTransactional + @DS(value = "#dataSourceType") + public void generateGoods(String dataSourceType) { + // 获取数据 + List grBiSaSetdtlList = this.baseMapper.getGoodsList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI); + if (CollUtil.isEmpty(grBiSaSetdtlList)) { + return; + } + //保存数据 + int reNum = this.baseMapper.deleteOldGoods(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("删除数量:{}", reNum); + for (GrBiPubGoods grBiSaSetdtl : grBiSaSetdtlList) { + int re = this.baseMapper.insert(grBiSaSetdtl); + if (re < 1) { + throw new RuntimeException("批量新增异常"); + } + } + } + /** + * 查询货品 + * + * @param goodsid 货品主键 + * @return 货品 + */ + @Override + public GrBiPubGoods selectGrBiPubGoodsByGoodsid(Long goodsid) + { + return this.baseMapper.selectGrBiPubGoodsByGoodsid(goodsid); + } + + /** + * 查询货品列表 + * + * @param grBiPubGoods 货品 + * @return 货品 + */ + @Override + public List selectGrBiPubGoodsList(GrBiPubGoods grBiPubGoods) + { + return this.baseMapper.selectGrBiPubGoodsList(grBiPubGoods); + } + + /** + * 新增货品 + * + * @param grBiPubGoods 货品 + * @return 结果 + */ + @Override + public int insertGrBiPubGoods(GrBiPubGoods grBiPubGoods) + { + return this.baseMapper.insertGrBiPubGoods(grBiPubGoods); + } + + /** + * 修改货品 + * + * @param grBiPubGoods 货品 + * @return 结果 + */ + @Override + public int updateGrBiPubGoods(GrBiPubGoods grBiPubGoods) + { + return this.baseMapper.updateGrBiPubGoods(grBiPubGoods); + } + + /** + * 批量删除货品 + * + * @param goodsids 需要删除的货品主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubGoodsByGoodsids(Long[] goodsids) + { + return this.baseMapper.deleteGrBiPubGoodsByGoodsids(goodsids); + } + + /** + * 删除货品信息 + * + * @param goodsid 货品主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubGoodsByGoodsid(Long goodsid) + { + return this.baseMapper.deleteGrBiPubGoodsByGoodsid(goodsid); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubProvinceServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubProvinceServiceImpl.java new file mode 100644 index 0000000..69fdbf9 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubProvinceServiceImpl.java @@ -0,0 +1,118 @@ +package com.lideeyunji.core.framework.service.impl; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.dynamic.datasource.annotation.DSTransactional; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lideeyunji.core.framework.entity.GrBiPubCustom; +import com.lideeyunji.core.framework.entity.GrBiPubProvince; +import com.lideeyunji.core.framework.mapper.GrBiPubProvinceMapper; +import com.lideeyunji.core.framework.service.IGrBiPubProvinceService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 行政区域Service业务层处理 + * + * @author king + * @date 2026-03-14 + */ +@Slf4j +@Service +public class GrBiPubProvinceServiceImpl extends ServiceImpl implements IGrBiPubProvinceService +{ + @Override + @DSTransactional + @DS(value = "#dataSourceType") + public void generateProvince(String dataSourceType) { + // 获取数据 + List grBiSaSetdtlList = this.baseMapper.getProvinceList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI); + if (CollUtil.isEmpty(grBiSaSetdtlList)) { + return; + } + //保存数据 + int reNum = this.baseMapper.deleteOldProvince(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("删除数量:{}", reNum); + for (GrBiPubProvince grBiSaSetdtl : grBiSaSetdtlList) { + int re = this.baseMapper.insert(grBiSaSetdtl); + if (re < 1) { + throw new RuntimeException("批量新增异常"); + } + } + } + + /** + * 查询行政区域 + * + * @param provinceid 行政区域主键 + * @return 行政区域 + */ + @Override + public GrBiPubProvince selectGrBiPubProvinceByProvinceid(Long provinceid) + { + return this.baseMapper.selectGrBiPubProvinceByProvinceid(provinceid); + } + + /** + * 查询行政区域列表 + * + * @param grBiPubProvince 行政区域 + * @return 行政区域 + */ + @Override + public List selectGrBiPubProvinceList(GrBiPubProvince grBiPubProvince) + { + return this.baseMapper.selectGrBiPubProvinceList(grBiPubProvince); + } + + /** + * 新增行政区域 + * + * @param grBiPubProvince 行政区域 + * @return 结果 + */ + @Override + public int insertGrBiPubProvince(GrBiPubProvince grBiPubProvince) + { + return this.baseMapper.insertGrBiPubProvince(grBiPubProvince); + } + + /** + * 修改行政区域 + * + * @param grBiPubProvince 行政区域 + * @return 结果 + */ + @Override + public int updateGrBiPubProvince(GrBiPubProvince grBiPubProvince) + { + return this.baseMapper.updateGrBiPubProvince(grBiPubProvince); + } + + /** + * 批量删除行政区域 + * + * @param provinceids 需要删除的行政区域主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubProvinceByProvinceids(Long[] provinceids) + { + return this.baseMapper.deleteGrBiPubProvinceByProvinceids(provinceids); + } + + /** + * 删除行政区域信息 + * + * @param provinceid 行政区域主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubProvinceByProvinceid(Long provinceid) + { + return this.baseMapper.deleteGrBiPubProvinceByProvinceid(provinceid); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubSalerServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubSalerServiceImpl.java new file mode 100644 index 0000000..447e6a2 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubSalerServiceImpl.java @@ -0,0 +1,119 @@ +package com.lideeyunji.core.framework.service.impl; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.dynamic.datasource.annotation.DSTransactional; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lideeyunji.core.framework.entity.GrBiPubCustom; +import com.lideeyunji.core.framework.entity.GrBiPubSaler; +import com.lideeyunji.core.framework.mapper.GrBiPubSalerMapper; +import com.lideeyunji.core.framework.service.IGrBiPubSalerService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 业务员Service业务层处理 + * + * @author king + * @date 2026-03-14 + */ +@Slf4j +@Service +public class GrBiPubSalerServiceImpl extends ServiceImpl implements IGrBiPubSalerService +{ + + @Override + @DSTransactional + @DS(value = "#dataSourceType") + public void generateSaler(String dataSourceType) { + // 获取数据 + List grBiSaSetdtlList = this.baseMapper.getSalerList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI); + if (CollUtil.isEmpty(grBiSaSetdtlList)) { + return; + } + //保存数据 + int reNum = this.baseMapper.deleteOldSaler(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("删除数量:{}", reNum); + for (GrBiPubSaler grBiSaSetdtl : grBiSaSetdtlList) { + int re = this.baseMapper.insert(grBiSaSetdtl); + if (re < 1) { + throw new RuntimeException("批量新增异常"); + } + } + } + + /** + * 查询业务员 + * + * @param salerid 业务员主键 + * @return 业务员 + */ + @Override + public GrBiPubSaler selectGrBiPubSalerBySalerid(Long salerid) + { + return this.baseMapper.selectGrBiPubSalerBySalerid(salerid); + } + + /** + * 查询业务员列表 + * + * @param grBiPubSaler 业务员 + * @return 业务员 + */ + @Override + public List selectGrBiPubSalerList(GrBiPubSaler grBiPubSaler) + { + return this.baseMapper.selectGrBiPubSalerList(grBiPubSaler); + } + + /** + * 新增业务员 + * + * @param grBiPubSaler 业务员 + * @return 结果 + */ + @Override + public int insertGrBiPubSaler(GrBiPubSaler grBiPubSaler) + { + return this.baseMapper.insertGrBiPubSaler(grBiPubSaler); + } + + /** + * 修改业务员 + * + * @param grBiPubSaler 业务员 + * @return 结果 + */ + @Override + public int updateGrBiPubSaler(GrBiPubSaler grBiPubSaler) + { + return this.baseMapper.updateGrBiPubSaler(grBiPubSaler); + } + + /** + * 批量删除业务员 + * + * @param salerids 需要删除的业务员主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubSalerBySalerids(Long[] salerids) + { + return this.baseMapper.deleteGrBiPubSalerBySalerids(salerids); + } + + /** + * 删除业务员信息 + * + * @param salerid 业务员主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubSalerBySalerid(Long salerid) + { + return this.baseMapper.deleteGrBiPubSalerBySalerid(salerid); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubSaletypeServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubSaletypeServiceImpl.java new file mode 100644 index 0000000..4412472 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubSaletypeServiceImpl.java @@ -0,0 +1,118 @@ +package com.lideeyunji.core.framework.service.impl; + +import java.util.List; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.dynamic.datasource.annotation.DSTransactional; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lideeyunji.core.framework.entity.GrBiPubCustom; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import com.lideeyunji.core.framework.mapper.GrBiPubSaletypeMapper; +import com.lideeyunji.core.framework.entity.GrBiPubSaletype; +import com.lideeyunji.core.framework.service.IGrBiPubSaletypeService; + +/** + * 销售类型Service业务层处理 + * + * @author king + * @date 2026-03-14 + */ +@Slf4j +@Service +public class GrBiPubSaletypeServiceImpl extends ServiceImpl implements IGrBiPubSaletypeService +{ + @Override + @DSTransactional + @DS(value = "#dataSourceType") + public void generateSaletype(String dataSourceType) { + // 获取数据 + List grBiSaSetdtlList = this.baseMapper.getSaletypeList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI); + if (CollUtil.isEmpty(grBiSaSetdtlList)) { + return; + } + //保存数据 + int reNum = this.baseMapper.deleteOldSaletype(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("删除数量:{}", reNum); + for (GrBiPubSaletype grBiSaSetdtl : grBiSaSetdtlList) { + int re = this.baseMapper.insert(grBiSaSetdtl); + if (re < 1) { + throw new RuntimeException("批量新增异常"); + } + } + } + + /** + * 查询销售类型 + * + * @param saletypeid 销售类型主键 + * @return 销售类型 + */ + @Override + public GrBiPubSaletype selectGrBiPubSaletypeBySaletypeid(Long saletypeid) + { + return this.baseMapper.selectGrBiPubSaletypeBySaletypeid(saletypeid); + } + + /** + * 查询销售类型列表 + * + * @param grBiPubSaletype 销售类型 + * @return 销售类型 + */ + @Override + public List selectGrBiPubSaletypeList(GrBiPubSaletype grBiPubSaletype) + { + return this.baseMapper.selectGrBiPubSaletypeList(grBiPubSaletype); + } + + /** + * 新增销售类型 + * + * @param grBiPubSaletype 销售类型 + * @return 结果 + */ + @Override + public int insertGrBiPubSaletype(GrBiPubSaletype grBiPubSaletype) + { + return this.baseMapper.insertGrBiPubSaletype(grBiPubSaletype); + } + + /** + * 修改销售类型 + * + * @param grBiPubSaletype 销售类型 + * @return 结果 + */ + @Override + public int updateGrBiPubSaletype(GrBiPubSaletype grBiPubSaletype) + { + return this.baseMapper.updateGrBiPubSaletype(grBiPubSaletype); + } + + /** + * 批量删除销售类型 + * + * @param saletypeids 需要删除的销售类型主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubSaletypeBySaletypeids(Long[] saletypeids) + { + return this.baseMapper.deleteGrBiPubSaletypeBySaletypeids(saletypeids); + } + + /** + * 删除销售类型信息 + * + * @param saletypeid 销售类型主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubSaletypeBySaletypeid(Long saletypeid) + { + return this.baseMapper.deleteGrBiPubSaletypeBySaletypeid(saletypeid); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubSalezoneServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubSalezoneServiceImpl.java new file mode 100644 index 0000000..76ec6d9 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiPubSalezoneServiceImpl.java @@ -0,0 +1,118 @@ +package com.lideeyunji.core.framework.service.impl; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.dynamic.datasource.annotation.DSTransactional; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lideeyunji.core.framework.entity.GrBiPubCustom; +import com.lideeyunji.core.framework.entity.GrBiPubSalezone; +import com.lideeyunji.core.framework.mapper.GrBiPubSalezoneMapper; +import com.lideeyunji.core.framework.service.IGrBiPubSalezoneService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 业务区域Service业务层处理 + * + * @author king + * @date 2026-03-14 + */ +@Slf4j +@Service +public class GrBiPubSalezoneServiceImpl extends ServiceImpl implements IGrBiPubSalezoneService +{ + @Override + @DSTransactional + @DS(value = "#dataSourceType") + public void generateSalezone(String dataSourceType) { + // 获取数据 + List grBiSaSetdtlList = this.baseMapper.getSalezoneList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI); + if (CollUtil.isEmpty(grBiSaSetdtlList)) { + return; + } + //保存数据 + int reNum = this.baseMapper.deleteOldSalezone(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("删除数量:{}", reNum); + for (GrBiPubSalezone grBiSaSetdtl : grBiSaSetdtlList) { + int re = this.baseMapper.insert(grBiSaSetdtl); + if (re < 1) { + throw new RuntimeException("批量新增异常"); + } + } + } + + /** + * 查询业务区域 + * + * @param salezoneid 业务区域主键 + * @return 业务区域 + */ + @Override + public GrBiPubSalezone selectGrBiPubSalezoneBySalezoneid(Long salezoneid) + { + return this.baseMapper.selectGrBiPubSalezoneBySalezoneid(salezoneid); + } + + /** + * 查询业务区域列表 + * + * @param grBiPubSalezone 业务区域 + * @return 业务区域 + */ + @Override + public List selectGrBiPubSalezoneList(GrBiPubSalezone grBiPubSalezone) + { + return this.baseMapper.selectGrBiPubSalezoneList(grBiPubSalezone); + } + + /** + * 新增业务区域 + * + * @param grBiPubSalezone 业务区域 + * @return 结果 + */ + @Override + public int insertGrBiPubSalezone(GrBiPubSalezone grBiPubSalezone) + { + return this.baseMapper.insertGrBiPubSalezone(grBiPubSalezone); + } + + /** + * 修改业务区域 + * + * @param grBiPubSalezone 业务区域 + * @return 结果 + */ + @Override + public int updateGrBiPubSalezone(GrBiPubSalezone grBiPubSalezone) + { + return this.baseMapper.updateGrBiPubSalezone(grBiPubSalezone); + } + + /** + * 批量删除业务区域 + * + * @param salezoneids 需要删除的业务区域主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubSalezoneBySalezoneids(Long[] salezoneids) + { + return this.baseMapper.deleteGrBiPubSalezoneBySalezoneids(salezoneids); + } + + /** + * 删除业务区域信息 + * + * @param salezoneid 业务区域主键 + * @return 结果 + */ + @Override + public int deleteGrBiPubSalezoneBySalezoneid(Long salezoneid) + { + return this.baseMapper.deleteGrBiPubSalezoneBySalezoneid(salezoneid); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiSaAggServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiSaAggServiceImpl.java index fbf95bb..4ace572 100644 --- a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiSaAggServiceImpl.java +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiSaAggServiceImpl.java @@ -2,6 +2,7 @@ package com.lideeyunji.core.framework.service.impl; import cn.hutool.core.collection.CollUtil; import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.dynamic.datasource.annotation.DSTransactional; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.lideeyunji.core.framework.entity.GrBiSaAgg; @@ -23,7 +24,7 @@ public class GrBiSaAggServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper().orderByDesc(GrBiStLot::getUseYear, GrBiStLot::getUseMonth).last("LIMIT 1"); -// GrBiStLot real = this.baseMapper.selectOne(queryWrapper); -// int lastUserYear = 2022; -// int lastUserMonth = 1; -// if(real != null){ -// lastUserYear = Integer.parseInt(real.getUseYear()); -// lastUserMonth = Integer.parseInt(real.getUseMonth()); -// } -// // 获取当前时间的年和月 -// LocalDateTime now = LocalDateTime.now(); -// int currentYear = now.getYear(); -// int currentMonth = now.getMonthValue(); -// -// // 获取三个月前的时间和年月 -// LocalDateTime threeMonthsAgo = now.minusMonths(3); -// int pastYear = threeMonthsAgo.getYear(); -// int pastMonth = threeMonthsAgo.getMonthValue(); -// -// log.info("最后更新的年月:{}年{}月", lastUserYear, lastUserMonth); -// log.info("当前:{}年{}月", currentYear, currentMonth); -// log.info("三个月前:{}年{}月", pastYear, pastMonth); -// if (lastUserYear < pastYear || (lastUserYear == pastYear && lastUserMonth < pastMonth)) { -// pastYear = lastUserYear; -// pastMonth = lastUserMonth; -// } -// log.info("开始时间:{}年{}月, 结束时间:{}年{}月", pastYear, pastMonth, currentYear, currentMonth); - // 获取数据 List grBiSaSetdtlList = this.baseMapper.getStLotList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI); if (CollUtil.isEmpty(grBiSaSetdtlList)) { diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductAvlServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductAvlServiceImpl.java index 31e7396..4a69b0b 100644 --- a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductAvlServiceImpl.java +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductAvlServiceImpl.java @@ -29,34 +29,6 @@ public class GrBiStProductAvlServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper().orderByDesc(grBiStProductAvl::getUseYear, grBiStProductAvl::getUseMonth).last("LIMIT 1"); -// grBiStProductAvl real = this.baseMapper.selectOne(queryWrapper); -// int lastUserYear = 2022; -// int lastUserMonth = 1; -// if(real != null){ -// lastUserYear = Integer.parseInt(real.getUseYear()); -// lastUserMonth = Integer.parseInt(real.getUseMonth()); -// } -// // 获取当前时间的年和月 -// LocalDateTime now = LocalDateTime.now(); -// int currentYear = now.getYear(); -// int currentMonth = now.getMonthValue(); -// -// // 获取三个月前的时间和年月 -// LocalDateTime threeMonthsAgo = now.minusMonths(3); -// int pastYear = threeMonthsAgo.getYear(); -// int pastMonth = threeMonthsAgo.getMonthValue(); -// -// log.info("最后更新的年月:{}年{}月", lastUserYear, lastUserMonth); -// log.info("当前:{}年{}月", currentYear, currentMonth); -// log.info("三个月前:{}年{}月", pastYear, pastMonth); -// if (lastUserYear < pastYear || (lastUserYear == pastYear && lastUserMonth < pastMonth)) { -// pastYear = lastUserYear; -// pastMonth = lastUserMonth; -// } -// log.info("开始时间:{}年{}月, 结束时间:{}年{}月", pastYear, pastMonth, currentYear, currentMonth); - // 获取数据 List grBiSaSetdtlList = this.baseMapper.getStProductList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI); if (CollUtil.isEmpty(grBiSaSetdtlList)) { diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductServiceImpl.java index 8fb70df..0d6fa28 100644 --- a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductServiceImpl.java +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductServiceImpl.java @@ -28,34 +28,6 @@ public class GrBiStProductServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper().orderByDesc(GrBiStProduct::getUseYear, GrBiStProduct::getUseMonth).last("LIMIT 1"); -// GrBiStProduct real = this.baseMapper.selectOne(queryWrapper); -// int lastUserYear = 2022; -// int lastUserMonth = 1; -// if(real != null){ -// lastUserYear = Integer.parseInt(real.getUseYear()); -// lastUserMonth = Integer.parseInt(real.getUseMonth()); -// } -// // 获取当前时间的年和月 -// LocalDateTime now = LocalDateTime.now(); -// int currentYear = now.getYear(); -// int currentMonth = now.getMonthValue(); -// -// // 获取三个月前的时间和年月 -// LocalDateTime threeMonthsAgo = now.minusMonths(3); -// int pastYear = threeMonthsAgo.getYear(); -// int pastMonth = threeMonthsAgo.getMonthValue(); -// -// log.info("最后更新的年月:{}年{}月", lastUserYear, lastUserMonth); -// log.info("当前:{}年{}月", currentYear, currentMonth); -// log.info("三个月前:{}年{}月", pastYear, pastMonth); -// if (lastUserYear < pastYear || (lastUserYear == pastYear && lastUserMonth < pastMonth)) { -// pastYear = lastUserYear; -// pastMonth = lastUserMonth; -// } -// log.info("开始时间:{}年{}月, 结束时间:{}年{}月", pastYear, pastMonth, currentYear, currentMonth); - // 获取数据 List grBiSaSetdtlList = this.baseMapper.getStProductList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI); if (CollUtil.isEmpty(grBiSaSetdtlList)) { diff --git a/lidee-core/src/main/resources/mapper/framework/GrBiPubCustomMapper.xml b/lidee-core/src/main/resources/mapper/framework/GrBiPubCustomMapper.xml new file mode 100644 index 0000000..dabc4cf --- /dev/null +++ b/lidee-core/src/main/resources/mapper/framework/GrBiPubCustomMapper.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + select CUSTOMID, CUSTOMNAME, CUSTOMNO, CUSTOMOPCODE, UPDATE_TIME from gr_bi_pub_custom + + + + + + + + insert into gr_bi_pub_custom + + CUSTOMID, + CUSTOMNAME, + CUSTOMNO, + CUSTOMOPCODE, + UPDATE_TIME, + + + #{customid}, + #{customname}, + #{customno}, + #{customopcode}, + #{updateTime}, + + + + + update gr_bi_pub_custom + + CUSTOMNAME = #{customname}, + CUSTOMNO = #{customno}, + CUSTOMOPCODE = #{customopcode}, + UPDATE_TIME = #{updateTime}, + + where CUSTOMID = #{customid} + + + + delete from gr_bi_pub_custom where CUSTOMID = #{customid} + + + + delete from gr_bi_pub_custom where CUSTOMID in + + #{customid} + + + \ No newline at end of file diff --git a/lidee-core/src/main/resources/mapper/framework/GrBiPubDosageMapper.xml b/lidee-core/src/main/resources/mapper/framework/GrBiPubDosageMapper.xml new file mode 100644 index 0000000..61338a6 --- /dev/null +++ b/lidee-core/src/main/resources/mapper/framework/GrBiPubDosageMapper.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + select DOSAGEID, DOSAGENAME from gr_bi_pub_dosage + + + + + + + + insert into gr_bi_pub_dosage + + DOSAGEID, + DOSAGENAME, + + + #{dosageid}, + #{dosagename}, + + + + + update gr_bi_pub_dosage + + DOSAGENAME = #{dosagename}, + + where DOSAGEID = #{dosageid} + + + + delete from gr_bi_pub_dosage where DOSAGEID = #{dosageid} + + + + delete from gr_bi_pub_dosage where DOSAGEID in + + #{dosageid} + + + \ No newline at end of file diff --git a/lidee-core/src/main/resources/mapper/framework/GrBiPubGoodsMapper.xml b/lidee-core/src/main/resources/mapper/framework/GrBiPubGoodsMapper.xml new file mode 100644 index 0000000..58095ce --- /dev/null +++ b/lidee-core/src/main/resources/mapper/framework/GrBiPubGoodsMapper.xml @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + select GOODSID, GOODSNAME, GOODSTYPE, GOODSUNIT, GOODSNO, GOODSOPCODE, DOSAGEID, DOSAGENAME, STDGOODSNAME, STDGOODSTYPE, UPDATE_TIME from gr_bi_pub_goods + + + + + + + + insert into gr_bi_pub_goods + + GOODSID, + GOODSNAME, + GOODSTYPE, + GOODSUNIT, + GOODSNO, + GOODSOPCODE, + DOSAGEID, + DOSAGENAME, + STDGOODSNAME, + STDGOODSTYPE, + UPDATE_TIME, + + + #{goodsid}, + #{goodsname}, + #{goodstype}, + #{goodsunit}, + #{goodsno}, + #{goodsopcode}, + #{dosageid}, + #{dosagename}, + #{stdgoodsname}, + #{stdgoodstype}, + #{updateTime}, + + + + + update gr_bi_pub_goods + + GOODSNAME = #{goodsname}, + GOODSTYPE = #{goodstype}, + GOODSUNIT = #{goodsunit}, + GOODSNO = #{goodsno}, + GOODSOPCODE = #{goodsopcode}, + DOSAGEID = #{dosageid}, + DOSAGENAME = #{dosagename}, + STDGOODSNAME = #{stdgoodsname}, + STDGOODSTYPE = #{stdgoodstype}, + UPDATE_TIME = #{updateTime}, + + where GOODSID = #{goodsid} + + + + delete from gr_bi_pub_goods where GOODSID = #{goodsid} + + + + delete from gr_bi_pub_goods where GOODSID in + + #{goodsid} + + + \ No newline at end of file diff --git a/lidee-core/src/main/resources/mapper/framework/GrBiPubProvinceMapper.xml b/lidee-core/src/main/resources/mapper/framework/GrBiPubProvinceMapper.xml new file mode 100644 index 0000000..6993758 --- /dev/null +++ b/lidee-core/src/main/resources/mapper/framework/GrBiPubProvinceMapper.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + select PROVINCEID, PROVINCENAME, PROVINCENO, PROVINCEOPCODE, UPDATE_TIME from gr_bi_pub_province + + + + + + + + insert into gr_bi_pub_province + + PROVINCEID, + PROVINCENAME, + PROVINCENO, + PROVINCEOPCODE, + UPDATE_TIME, + + + #{provinceid}, + #{provincename}, + #{provinceno}, + #{provinceopcode}, + #{updateTime}, + + + + + update gr_bi_pub_province + + PROVINCENAME = #{provincename}, + PROVINCENO = #{provinceno}, + PROVINCEOPCODE = #{provinceopcode}, + UPDATE_TIME = #{updateTime}, + + where PROVINCEID = #{provinceid} + + + + delete from gr_bi_pub_province where PROVINCEID = #{provinceid} + + + + delete from gr_bi_pub_province where PROVINCEID in + + #{provinceid} + + + \ No newline at end of file diff --git a/lidee-core/src/main/resources/mapper/framework/GrBiPubSalerMapper.xml b/lidee-core/src/main/resources/mapper/framework/GrBiPubSalerMapper.xml new file mode 100644 index 0000000..b4379e1 --- /dev/null +++ b/lidee-core/src/main/resources/mapper/framework/GrBiPubSalerMapper.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + select SALERID, SALERNAME, SALERNO, SALEROPCODE, UPDATE_TIME from gr_bi_pub_saler + + + + + + + + insert into gr_bi_pub_saler + + SALERID, + SALERNAME, + SALERNO, + SALEROPCODE, + UPDATE_TIME, + + + #{salerid}, + #{salername}, + #{salerno}, + #{saleropcode}, + #{updateTime}, + + + + + update gr_bi_pub_saler + + SALERNAME = #{salername}, + SALERNO = #{salerno}, + SALEROPCODE = #{saleropcode}, + UPDATE_TIME = #{updateTime}, + + where SALERID = #{salerid} + + + + delete from gr_bi_pub_saler where SALERID = #{salerid} + + + + delete from gr_bi_pub_saler where SALERID in + + #{salerid} + + + \ No newline at end of file diff --git a/lidee-core/src/main/resources/mapper/framework/GrBiPubSaletypeMapper.xml b/lidee-core/src/main/resources/mapper/framework/GrBiPubSaletypeMapper.xml new file mode 100644 index 0000000..5c45cb1 --- /dev/null +++ b/lidee-core/src/main/resources/mapper/framework/GrBiPubSaletypeMapper.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + select SALETYPEID, SALETYPENAME from gr_bi_pub_saletype + + + + + + + + insert into gr_bi_pub_saletype + + SALETYPEID, + SALETYPENAME, + + + #{saletypeid}, + #{saletypename}, + + + + + update gr_bi_pub_saletype + + SALETYPENAME = #{saletypename}, + + where SALETYPEID = #{saletypeid} + + + + delete from gr_bi_pub_saletype where SALETYPEID = #{saletypeid} + + + + delete from gr_bi_pub_saletype where SALETYPEID in + + #{saletypeid} + + + \ No newline at end of file diff --git a/lidee-core/src/main/resources/mapper/framework/GrBiPubSalezoneMapper.xml b/lidee-core/src/main/resources/mapper/framework/GrBiPubSalezoneMapper.xml new file mode 100644 index 0000000..29be58d --- /dev/null +++ b/lidee-core/src/main/resources/mapper/framework/GrBiPubSalezoneMapper.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + select SALEZONEID, SALEZONENAME, SALEZONENO, SALEZONEOPCODE, UPDATE_TIME from gr_bi_pub_salezone + + + + + + + + insert into gr_bi_pub_salezone + + SALEZONEID, + SALEZONENAME, + SALEZONENO, + SALEZONEOPCODE, + UPDATE_TIME, + + + #{salezoneid}, + #{salezonename}, + #{salezoneno}, + #{salezoneopcode}, + #{updateTime}, + + + + + update gr_bi_pub_salezone + + SALEZONENAME = #{salezonename}, + SALEZONENO = #{salezoneno}, + SALEZONEOPCODE = #{salezoneopcode}, + UPDATE_TIME = #{updateTime}, + + where SALEZONEID = #{salezoneid} + + + + delete from gr_bi_pub_salezone where SALEZONEID = #{salezoneid} + + + + delete from gr_bi_pub_salezone where SALEZONEID in + + #{salezoneid} + + + \ No newline at end of file