同步-业务区域表,行政区域表,销售类型表,产品剂型表,客户表,业务员表,货品表
This commit is contained in:
@@ -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 "*********** 生成客户对象完成 ************";
|
||||
}
|
||||
}
|
||||
@@ -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 "*********** 生成剂型对象完成 ************";
|
||||
}
|
||||
}
|
||||
@@ -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 "*********** 生成货品对象完成 ************";
|
||||
}
|
||||
}
|
||||
@@ -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 "*********** 生成行政区域对象完成 ************";
|
||||
}
|
||||
}
|
||||
@@ -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 "*********** 生成业务员对象完成 ************";
|
||||
}
|
||||
}
|
||||
@@ -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 "*********** 生成销售类型对象完成 ************";
|
||||
}
|
||||
}
|
||||
@@ -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 "*********** 生成业务区域对象完成 ************";
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -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<GrBiPubCustom>
|
||||
{
|
||||
/**
|
||||
* 查询客户
|
||||
*
|
||||
* @param customid 客户主键
|
||||
* @return 客户
|
||||
*/
|
||||
public GrBiPubCustom selectGrBiPubCustomByCustomid(Long customid);
|
||||
|
||||
/**
|
||||
* 查询客户列表
|
||||
*
|
||||
* @param grBiPubCustom 客户
|
||||
* @return 客户集合
|
||||
*/
|
||||
public List<GrBiPubCustom> 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<GrBiPubCustom> 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<>());
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubDosage>
|
||||
{
|
||||
/**
|
||||
* 查询剂型
|
||||
*
|
||||
* @param dosageid 剂型主键
|
||||
* @return 剂型
|
||||
*/
|
||||
public GrBiPubDosage selectGrBiPubDosageByDosageid(Long dosageid);
|
||||
|
||||
/**
|
||||
* 查询剂型列表
|
||||
*
|
||||
* @param grBiPubDosage 剂型
|
||||
* @return 剂型集合
|
||||
*/
|
||||
public List<GrBiPubDosage> 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<GrBiPubDosage> 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<>());
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubGoods>
|
||||
{
|
||||
/**
|
||||
* 查询货品
|
||||
*
|
||||
* @param goodsid 货品主键
|
||||
* @return 货品
|
||||
*/
|
||||
public GrBiPubGoods selectGrBiPubGoodsByGoodsid(Long goodsid);
|
||||
|
||||
/**
|
||||
* 查询货品列表
|
||||
*
|
||||
* @param grBiPubGoods 货品
|
||||
* @return 货品集合
|
||||
*/
|
||||
public List<GrBiPubGoods> 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<GrBiPubGoods> 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<>());
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubProvince>
|
||||
{
|
||||
/**
|
||||
* 查询行政区域
|
||||
*
|
||||
* @param provinceid 行政区域主键
|
||||
* @return 行政区域
|
||||
*/
|
||||
public GrBiPubProvince selectGrBiPubProvinceByProvinceid(Long provinceid);
|
||||
|
||||
/**
|
||||
* 查询行政区域列表
|
||||
*
|
||||
* @param grBiPubProvince 行政区域
|
||||
* @return 行政区域集合
|
||||
*/
|
||||
public List<GrBiPubProvince> 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<GrBiPubProvince> 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<>());
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubSaler>
|
||||
{
|
||||
/**
|
||||
* 查询业务员
|
||||
*
|
||||
* @param salerid 业务员主键
|
||||
* @return 业务员
|
||||
*/
|
||||
public GrBiPubSaler selectGrBiPubSalerBySalerid(Long salerid);
|
||||
|
||||
/**
|
||||
* 查询业务员列表
|
||||
*
|
||||
* @param grBiPubSaler 业务员
|
||||
* @return 业务员集合
|
||||
*/
|
||||
public List<GrBiPubSaler> 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<GrBiPubSaler> 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<>());
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubSaletype>
|
||||
{
|
||||
/**
|
||||
* 查询销售类型
|
||||
*
|
||||
* @param saletypeid 销售类型主键
|
||||
* @return 销售类型
|
||||
*/
|
||||
public GrBiPubSaletype selectGrBiPubSaletypeBySaletypeid(Long saletypeid);
|
||||
|
||||
/**
|
||||
* 查询销售类型列表
|
||||
*
|
||||
* @param grBiPubSaletype 销售类型
|
||||
* @return 销售类型集合
|
||||
*/
|
||||
public List<GrBiPubSaletype> 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<GrBiPubSaletype> 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<>());
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubSalezone>
|
||||
{
|
||||
/**
|
||||
* 查询业务区域
|
||||
*
|
||||
* @param salezoneid 业务区域主键
|
||||
* @return 业务区域
|
||||
*/
|
||||
public GrBiPubSalezone selectGrBiPubSalezoneBySalezoneid(Long salezoneid);
|
||||
|
||||
/**
|
||||
* 查询业务区域列表
|
||||
*
|
||||
* @param grBiPubSalezone 业务区域
|
||||
* @return 业务区域集合
|
||||
*/
|
||||
public List<GrBiPubSalezone> 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<GrBiPubSalezone> 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<>());
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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<GrBiPubDosage> 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);
|
||||
}
|
||||
@@ -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<GrBiPubGoods> 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);
|
||||
}
|
||||
@@ -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<GrBiPubProvince> 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);
|
||||
}
|
||||
@@ -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<GrBiPubSaler> 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);
|
||||
}
|
||||
@@ -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<GrBiPubSaletype> 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);
|
||||
}
|
||||
@@ -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<GrBiPubSalezone> 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);
|
||||
}
|
||||
@@ -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<GrBiPubCustomMapper, GrBiPubCustom> implements IGrBiPubCustomService
|
||||
{
|
||||
|
||||
@Override
|
||||
@DSTransactional
|
||||
@DS(value = "#dataSourceType")
|
||||
public void generateCustom(String dataSourceType) {
|
||||
// 获取数据
|
||||
List<GrBiPubCustom> 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("批量新增异常");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubDosageMapper, GrBiPubDosage> implements IGrBiPubDosageService
|
||||
{
|
||||
@Override
|
||||
@DSTransactional
|
||||
@DS(value = "#dataSourceType")
|
||||
public void generateDosage(String dataSourceType) {
|
||||
// 获取数据
|
||||
List<GrBiPubDosage> 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<GrBiPubDosage> 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);
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubGoodsMapper, GrBiPubGoods> implements IGrBiPubGoodsService
|
||||
{
|
||||
|
||||
@Override
|
||||
@DSTransactional
|
||||
@DS(value = "#dataSourceType")
|
||||
public void generateGoods(String dataSourceType) {
|
||||
// 获取数据
|
||||
List<GrBiPubGoods> 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<GrBiPubGoods> 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);
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubProvinceMapper, GrBiPubProvince> implements IGrBiPubProvinceService
|
||||
{
|
||||
@Override
|
||||
@DSTransactional
|
||||
@DS(value = "#dataSourceType")
|
||||
public void generateProvince(String dataSourceType) {
|
||||
// 获取数据
|
||||
List<GrBiPubProvince> 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<GrBiPubProvince> 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);
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubSalerMapper, GrBiPubSaler> implements IGrBiPubSalerService
|
||||
{
|
||||
|
||||
@Override
|
||||
@DSTransactional
|
||||
@DS(value = "#dataSourceType")
|
||||
public void generateSaler(String dataSourceType) {
|
||||
// 获取数据
|
||||
List<GrBiPubSaler> 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<GrBiPubSaler> 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);
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubSaletypeMapper, GrBiPubSaletype> implements IGrBiPubSaletypeService
|
||||
{
|
||||
@Override
|
||||
@DSTransactional
|
||||
@DS(value = "#dataSourceType")
|
||||
public void generateSaletype(String dataSourceType) {
|
||||
// 获取数据
|
||||
List<GrBiPubSaletype> 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<GrBiPubSaletype> 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);
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiPubSalezoneMapper, GrBiPubSalezone> implements IGrBiPubSalezoneService
|
||||
{
|
||||
@Override
|
||||
@DSTransactional
|
||||
@DS(value = "#dataSourceType")
|
||||
public void generateSalezone(String dataSourceType) {
|
||||
// 获取数据
|
||||
List<GrBiPubSalezone> 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<GrBiPubSalezone> 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);
|
||||
}
|
||||
}
|
||||
@@ -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<GrBiSaAggMapper, GrBiSaAgg
|
||||
* 计算销售报表
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
@DSTransactional
|
||||
@DS(value = "#dataSourceType")
|
||||
public void generateSalesReportJob(@Param("dataSourceType") String dataSourceType) {
|
||||
//获取本地mysql数据库中表中UPDATE_TIME最新的数据
|
||||
|
||||
@@ -28,34 +28,6 @@ public class GrBiStLotServiceImpl extends ServiceImpl<GrBiStLotMapper, GrBiStLot
|
||||
@DSTransactional
|
||||
@DS(value = "#dataSourceType")
|
||||
public void generateStLot(String dataSourceType) {
|
||||
//获取本地mysql数据库中表中UPDATE_TIME最新的数据
|
||||
// LambdaQueryWrapper<GrBiStLot> queryWrapper = new LambdaQueryWrapper<GrBiStLot>().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<GrBiStLot> grBiSaSetdtlList = this.baseMapper.getStLotList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI);
|
||||
if (CollUtil.isEmpty(grBiSaSetdtlList)) {
|
||||
|
||||
@@ -29,34 +29,6 @@ public class GrBiStProductAvlServiceImpl extends ServiceImpl<GrBiStProductAvlMap
|
||||
@DSTransactional
|
||||
@DS(value = "#dataSourceType")
|
||||
public void generateStProductAvl(String dataSourceType) {
|
||||
//获取本地mysql数据库中表中UPDATE_TIME最新的数据
|
||||
// LambdaQueryWrapper<grBiStProductAvl> queryWrapper = new LambdaQueryWrapper<grBiStProductAvl>().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<GrBiStProductAvl> grBiSaSetdtlList = this.baseMapper.getStProductList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI);
|
||||
if (CollUtil.isEmpty(grBiSaSetdtlList)) {
|
||||
|
||||
@@ -28,34 +28,6 @@ public class GrBiStProductServiceImpl extends ServiceImpl<GrBiStProductMapper, G
|
||||
@DSTransactional
|
||||
@DS(value = "#dataSourceType")
|
||||
public void generateStProduct(String dataSourceType) {
|
||||
//获取本地mysql数据库中表中UPDATE_TIME最新的数据
|
||||
// LambdaQueryWrapper<GrBiStProduct> queryWrapper = new LambdaQueryWrapper<GrBiStProduct>().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<GrBiStProduct> grBiSaSetdtlList = this.baseMapper.getStProductList(lideeYunJiBaseConstant.DS_ORACLE_GRYYBI);
|
||||
if (CollUtil.isEmpty(grBiSaSetdtlList)) {
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
<?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.lideeyunji.core.framework.mapper.GrBiPubCustomMapper">
|
||||
|
||||
<resultMap type="com.lideeyunji.core.framework.entity.GrBiPubCustom" id="GrBiPubCustomResult">
|
||||
<result property="customid" column="CUSTOMID" />
|
||||
<result property="customname" column="CUSTOMNAME" />
|
||||
<result property="customno" column="CUSTOMNO" />
|
||||
<result property="customopcode" column="CUSTOMOPCODE" />
|
||||
<result property="updateTime" column="UPDATE_TIME" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGrBiPubCustomVo">
|
||||
select CUSTOMID, CUSTOMNAME, CUSTOMNO, CUSTOMOPCODE, UPDATE_TIME from gr_bi_pub_custom
|
||||
</sql>
|
||||
|
||||
<select id="selectGrBiPubCustomList" parameterType="com.lideeyunji.core.framework.entity.GrBiPubCustom" resultMap="GrBiPubCustomResult">
|
||||
<include refid="selectGrBiPubCustomVo"/>
|
||||
<where>
|
||||
<if test="customid != null "> and CUSTOMID = #{customid}</if>
|
||||
<if test="customname != null and customname != ''"> and CUSTOMNAME like concat('%', #{customname}, '%')</if>
|
||||
<if test="customno != null and customno != ''"> and CUSTOMNO = #{customno}</if>
|
||||
<if test="customopcode != null and customopcode != ''"> and CUSTOMOPCODE = #{customopcode}</if>
|
||||
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGrBiPubCustomByCustomid" parameterType="Long" resultMap="GrBiPubCustomResult">
|
||||
<include refid="selectGrBiPubCustomVo"/>
|
||||
where CUSTOMID = #{customid}
|
||||
</select>
|
||||
|
||||
<insert id="insertGrBiPubCustom" parameterType="com.lideeyunji.core.framework.entity.GrBiPubCustom">
|
||||
insert into gr_bi_pub_custom
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="customid != null">CUSTOMID,</if>
|
||||
<if test="customname != null">CUSTOMNAME,</if>
|
||||
<if test="customno != null">CUSTOMNO,</if>
|
||||
<if test="customopcode != null">CUSTOMOPCODE,</if>
|
||||
<if test="updateTime != null">UPDATE_TIME,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="customid != null">#{customid},</if>
|
||||
<if test="customname != null">#{customname},</if>
|
||||
<if test="customno != null">#{customno},</if>
|
||||
<if test="customopcode != null">#{customopcode},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGrBiPubCustom" parameterType="com.lideeyunji.core.framework.entity.GrBiPubCustom">
|
||||
update gr_bi_pub_custom
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="customname != null">CUSTOMNAME = #{customname},</if>
|
||||
<if test="customno != null">CUSTOMNO = #{customno},</if>
|
||||
<if test="customopcode != null">CUSTOMOPCODE = #{customopcode},</if>
|
||||
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
||||
</trim>
|
||||
where CUSTOMID = #{customid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGrBiPubCustomByCustomid" parameterType="Long">
|
||||
delete from gr_bi_pub_custom where CUSTOMID = #{customid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGrBiPubCustomByCustomids" parameterType="String">
|
||||
delete from gr_bi_pub_custom where CUSTOMID in
|
||||
<foreach item="customid" collection="array" open="(" separator="," close=")">
|
||||
#{customid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,59 @@
|
||||
<?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.lideeyunji.core.framework.mapper.GrBiPubDosageMapper">
|
||||
|
||||
<resultMap type="com.lideeyunji.core.framework.entity.GrBiPubDosage" id="GrBiPubDosageResult">
|
||||
<result property="dosageid" column="DOSAGEID" />
|
||||
<result property="dosagename" column="DOSAGENAME" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGrBiPubDosageVo">
|
||||
select DOSAGEID, DOSAGENAME from gr_bi_pub_dosage
|
||||
</sql>
|
||||
|
||||
<select id="selectGrBiPubDosageList" parameterType="com.lideeyunji.core.framework.entity.GrBiPubDosage" resultMap="GrBiPubDosageResult">
|
||||
<include refid="selectGrBiPubDosageVo"/>
|
||||
<where>
|
||||
<if test="dosageid != null "> and DOSAGEID = #{dosageid}</if>
|
||||
<if test="dosagename != null and dosagename != ''"> and DOSAGENAME like concat('%', #{dosagename}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGrBiPubDosageByDosageid" parameterType="Long" resultMap="GrBiPubDosageResult">
|
||||
<include refid="selectGrBiPubDosageVo"/>
|
||||
where DOSAGEID = #{dosageid}
|
||||
</select>
|
||||
|
||||
<insert id="insertGrBiPubDosage" parameterType="com.lideeyunji.core.framework.entity.GrBiPubDosage">
|
||||
insert into gr_bi_pub_dosage
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="dosageid != null">DOSAGEID,</if>
|
||||
<if test="dosagename != null">DOSAGENAME,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="dosageid != null">#{dosageid},</if>
|
||||
<if test="dosagename != null">#{dosagename},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGrBiPubDosage" parameterType="com.lideeyunji.core.framework.entity.GrBiPubDosage">
|
||||
update gr_bi_pub_dosage
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="dosagename != null">DOSAGENAME = #{dosagename},</if>
|
||||
</trim>
|
||||
where DOSAGEID = #{dosageid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGrBiPubDosageByDosageid" parameterType="Long">
|
||||
delete from gr_bi_pub_dosage where DOSAGEID = #{dosageid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGrBiPubDosageByDosageids" parameterType="String">
|
||||
delete from gr_bi_pub_dosage where DOSAGEID in
|
||||
<foreach item="dosageid" collection="array" open="(" separator="," close=")">
|
||||
#{dosageid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,104 @@
|
||||
<?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.lideeyunji.core.framework.mapper.GrBiPubGoodsMapper">
|
||||
|
||||
<resultMap type="com.lideeyunji.core.framework.entity.GrBiPubGoods" id="GrBiPubGoodsResult">
|
||||
<result property="goodsid" column="GOODSID" />
|
||||
<result property="goodsname" column="GOODSNAME" />
|
||||
<result property="goodstype" column="GOODSTYPE" />
|
||||
<result property="goodsunit" column="GOODSUNIT" />
|
||||
<result property="goodsno" column="GOODSNO" />
|
||||
<result property="goodsopcode" column="GOODSOPCODE" />
|
||||
<result property="dosageid" column="DOSAGEID" />
|
||||
<result property="dosagename" column="DOSAGENAME" />
|
||||
<result property="stdgoodsname" column="STDGOODSNAME" />
|
||||
<result property="stdgoodstype" column="STDGOODSTYPE" />
|
||||
<result property="updateTime" column="UPDATE_TIME" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGrBiPubGoodsVo">
|
||||
select GOODSID, GOODSNAME, GOODSTYPE, GOODSUNIT, GOODSNO, GOODSOPCODE, DOSAGEID, DOSAGENAME, STDGOODSNAME, STDGOODSTYPE, UPDATE_TIME from gr_bi_pub_goods
|
||||
</sql>
|
||||
|
||||
<select id="selectGrBiPubGoodsList" parameterType="com.lideeyunji.core.framework.entity.GrBiPubGoods" resultMap="GrBiPubGoodsResult">
|
||||
<include refid="selectGrBiPubGoodsVo"/>
|
||||
<where>
|
||||
<if test="goodsid != null "> and GOODSID = #{goodsid}</if>
|
||||
<if test="goodsname != null and goodsname != ''"> and GOODSNAME like concat('%', #{goodsname}, '%')</if>
|
||||
<if test="goodstype != null and goodstype != ''"> and GOODSTYPE = #{goodstype}</if>
|
||||
<if test="goodsunit != null and goodsunit != ''"> and GOODSUNIT = #{goodsunit}</if>
|
||||
<if test="goodsno != null and goodsno != ''"> and GOODSNO = #{goodsno}</if>
|
||||
<if test="goodsopcode != null and goodsopcode != ''"> and GOODSOPCODE = #{goodsopcode}</if>
|
||||
<if test="dosageid != null "> and DOSAGEID = #{dosageid}</if>
|
||||
<if test="dosagename != null and dosagename != ''"> and DOSAGENAME like concat('%', #{dosagename}, '%')</if>
|
||||
<if test="stdgoodsname != null and stdgoodsname != ''"> and STDGOODSNAME like concat('%', #{stdgoodsname}, '%')</if>
|
||||
<if test="stdgoodstype != null and stdgoodstype != ''"> and STDGOODSTYPE = #{stdgoodstype}</if>
|
||||
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGrBiPubGoodsByGoodsid" parameterType="Long" resultMap="GrBiPubGoodsResult">
|
||||
<include refid="selectGrBiPubGoodsVo"/>
|
||||
where GOODSID = #{goodsid}
|
||||
</select>
|
||||
|
||||
<insert id="insertGrBiPubGoods" parameterType="com.lideeyunji.core.framework.entity.GrBiPubGoods">
|
||||
insert into gr_bi_pub_goods
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="goodsid != null">GOODSID,</if>
|
||||
<if test="goodsname != null">GOODSNAME,</if>
|
||||
<if test="goodstype != null">GOODSTYPE,</if>
|
||||
<if test="goodsunit != null">GOODSUNIT,</if>
|
||||
<if test="goodsno != null">GOODSNO,</if>
|
||||
<if test="goodsopcode != null">GOODSOPCODE,</if>
|
||||
<if test="dosageid != null">DOSAGEID,</if>
|
||||
<if test="dosagename != null">DOSAGENAME,</if>
|
||||
<if test="stdgoodsname != null">STDGOODSNAME,</if>
|
||||
<if test="stdgoodstype != null">STDGOODSTYPE,</if>
|
||||
<if test="updateTime != null">UPDATE_TIME,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="goodsid != null">#{goodsid},</if>
|
||||
<if test="goodsname != null">#{goodsname},</if>
|
||||
<if test="goodstype != null">#{goodstype},</if>
|
||||
<if test="goodsunit != null">#{goodsunit},</if>
|
||||
<if test="goodsno != null">#{goodsno},</if>
|
||||
<if test="goodsopcode != null">#{goodsopcode},</if>
|
||||
<if test="dosageid != null">#{dosageid},</if>
|
||||
<if test="dosagename != null">#{dosagename},</if>
|
||||
<if test="stdgoodsname != null">#{stdgoodsname},</if>
|
||||
<if test="stdgoodstype != null">#{stdgoodstype},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGrBiPubGoods" parameterType="com.lideeyunji.core.framework.entity.GrBiPubGoods">
|
||||
update gr_bi_pub_goods
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="goodsname != null">GOODSNAME = #{goodsname},</if>
|
||||
<if test="goodstype != null">GOODSTYPE = #{goodstype},</if>
|
||||
<if test="goodsunit != null">GOODSUNIT = #{goodsunit},</if>
|
||||
<if test="goodsno != null">GOODSNO = #{goodsno},</if>
|
||||
<if test="goodsopcode != null">GOODSOPCODE = #{goodsopcode},</if>
|
||||
<if test="dosageid != null">DOSAGEID = #{dosageid},</if>
|
||||
<if test="dosagename != null">DOSAGENAME = #{dosagename},</if>
|
||||
<if test="stdgoodsname != null">STDGOODSNAME = #{stdgoodsname},</if>
|
||||
<if test="stdgoodstype != null">STDGOODSTYPE = #{stdgoodstype},</if>
|
||||
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
||||
</trim>
|
||||
where GOODSID = #{goodsid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGrBiPubGoodsByGoodsid" parameterType="Long">
|
||||
delete from gr_bi_pub_goods where GOODSID = #{goodsid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGrBiPubGoodsByGoodsids" parameterType="String">
|
||||
delete from gr_bi_pub_goods where GOODSID in
|
||||
<foreach item="goodsid" collection="array" open="(" separator="," close=")">
|
||||
#{goodsid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?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.lideeyunji.core.framework.mapper.GrBiPubProvinceMapper">
|
||||
|
||||
<resultMap type="com.lideeyunji.core.framework.entity.GrBiPubProvince" id="GrBiPubProvinceResult">
|
||||
<result property="provinceid" column="PROVINCEID" />
|
||||
<result property="provincename" column="PROVINCENAME" />
|
||||
<result property="provinceno" column="PROVINCENO" />
|
||||
<result property="provinceopcode" column="PROVINCEOPCODE" />
|
||||
<result property="updateTime" column="UPDATE_TIME" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGrBiPubProvinceVo">
|
||||
select PROVINCEID, PROVINCENAME, PROVINCENO, PROVINCEOPCODE, UPDATE_TIME from gr_bi_pub_province
|
||||
</sql>
|
||||
|
||||
<select id="selectGrBiPubProvinceList" parameterType="com.lideeyunji.core.framework.entity.GrBiPubProvince" resultMap="GrBiPubProvinceResult">
|
||||
<include refid="selectGrBiPubProvinceVo"/>
|
||||
<where>
|
||||
<if test="provinceid != null "> and PROVINCEID = #{provinceid}</if>
|
||||
<if test="provincename != null and provincename != ''"> and PROVINCENAME like concat('%', #{provincename}, '%')</if>
|
||||
<if test="provinceno != null "> and PROVINCENO = #{provinceno}</if>
|
||||
<if test="provinceopcode != null and provinceopcode != ''"> and PROVINCEOPCODE = #{provinceopcode}</if>
|
||||
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGrBiPubProvinceByProvinceid" parameterType="Long" resultMap="GrBiPubProvinceResult">
|
||||
<include refid="selectGrBiPubProvinceVo"/>
|
||||
where PROVINCEID = #{provinceid}
|
||||
</select>
|
||||
|
||||
<insert id="insertGrBiPubProvince" parameterType="com.lideeyunji.core.framework.entity.GrBiPubProvince">
|
||||
insert into gr_bi_pub_province
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="provinceid != null">PROVINCEID,</if>
|
||||
<if test="provincename != null">PROVINCENAME,</if>
|
||||
<if test="provinceno != null">PROVINCENO,</if>
|
||||
<if test="provinceopcode != null">PROVINCEOPCODE,</if>
|
||||
<if test="updateTime != null">UPDATE_TIME,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="provinceid != null">#{provinceid},</if>
|
||||
<if test="provincename != null">#{provincename},</if>
|
||||
<if test="provinceno != null">#{provinceno},</if>
|
||||
<if test="provinceopcode != null">#{provinceopcode},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGrBiPubProvince" parameterType="com.lideeyunji.core.framework.entity.GrBiPubProvince">
|
||||
update gr_bi_pub_province
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="provincename != null">PROVINCENAME = #{provincename},</if>
|
||||
<if test="provinceno != null">PROVINCENO = #{provinceno},</if>
|
||||
<if test="provinceopcode != null">PROVINCEOPCODE = #{provinceopcode},</if>
|
||||
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
||||
</trim>
|
||||
where PROVINCEID = #{provinceid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGrBiPubProvinceByProvinceid" parameterType="Long">
|
||||
delete from gr_bi_pub_province where PROVINCEID = #{provinceid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGrBiPubProvinceByProvinceids" parameterType="String">
|
||||
delete from gr_bi_pub_province where PROVINCEID in
|
||||
<foreach item="provinceid" collection="array" open="(" separator="," close=")">
|
||||
#{provinceid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?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.lideeyunji.core.framework.mapper.GrBiPubSalerMapper">
|
||||
|
||||
<resultMap type="com.lideeyunji.core.framework.entity.GrBiPubSaler" id="GrBiPubSalerResult">
|
||||
<result property="salerid" column="SALERID" />
|
||||
<result property="salername" column="SALERNAME" />
|
||||
<result property="salerno" column="SALERNO" />
|
||||
<result property="saleropcode" column="SALEROPCODE" />
|
||||
<result property="updateTime" column="UPDATE_TIME" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGrBiPubSalerVo">
|
||||
select SALERID, SALERNAME, SALERNO, SALEROPCODE, UPDATE_TIME from gr_bi_pub_saler
|
||||
</sql>
|
||||
|
||||
<select id="selectGrBiPubSalerList" parameterType="com.lideeyunji.core.framework.entity.GrBiPubSaler" resultMap="GrBiPubSalerResult">
|
||||
<include refid="selectGrBiPubSalerVo"/>
|
||||
<where>
|
||||
<if test="salerid != null "> and SALERID = #{salerid}</if>
|
||||
<if test="salername != null and salername != ''"> and SALERNAME like concat('%', #{salername}, '%')</if>
|
||||
<if test="salerno != null and salerno != ''"> and SALERNO = #{salerno}</if>
|
||||
<if test="saleropcode != null and saleropcode != ''"> and SALEROPCODE = #{saleropcode}</if>
|
||||
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGrBiPubSalerBySalerid" parameterType="Long" resultMap="GrBiPubSalerResult">
|
||||
<include refid="selectGrBiPubSalerVo"/>
|
||||
where SALERID = #{salerid}
|
||||
</select>
|
||||
|
||||
<insert id="insertGrBiPubSaler" parameterType="com.lideeyunji.core.framework.entity.GrBiPubSaler">
|
||||
insert into gr_bi_pub_saler
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="salerid != null">SALERID,</if>
|
||||
<if test="salername != null">SALERNAME,</if>
|
||||
<if test="salerno != null">SALERNO,</if>
|
||||
<if test="saleropcode != null">SALEROPCODE,</if>
|
||||
<if test="updateTime != null">UPDATE_TIME,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="salerid != null">#{salerid},</if>
|
||||
<if test="salername != null">#{salername},</if>
|
||||
<if test="salerno != null">#{salerno},</if>
|
||||
<if test="saleropcode != null">#{saleropcode},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGrBiPubSaler" parameterType="com.lideeyunji.core.framework.entity.GrBiPubSaler">
|
||||
update gr_bi_pub_saler
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="salername != null">SALERNAME = #{salername},</if>
|
||||
<if test="salerno != null">SALERNO = #{salerno},</if>
|
||||
<if test="saleropcode != null">SALEROPCODE = #{saleropcode},</if>
|
||||
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
||||
</trim>
|
||||
where SALERID = #{salerid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGrBiPubSalerBySalerid" parameterType="Long">
|
||||
delete from gr_bi_pub_saler where SALERID = #{salerid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGrBiPubSalerBySalerids" parameterType="String">
|
||||
delete from gr_bi_pub_saler where SALERID in
|
||||
<foreach item="salerid" collection="array" open="(" separator="," close=")">
|
||||
#{salerid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,59 @@
|
||||
<?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.lideeyunji.core.framework.mapper.GrBiPubSaletypeMapper">
|
||||
|
||||
<resultMap type="com.lideeyunji.core.framework.entity.GrBiPubSaletype" id="GrBiPubSaletypeResult">
|
||||
<result property="saletypeid" column="SALETYPEID" />
|
||||
<result property="saletypename" column="SALETYPENAME" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGrBiPubSaletypeVo">
|
||||
select SALETYPEID, SALETYPENAME from gr_bi_pub_saletype
|
||||
</sql>
|
||||
|
||||
<select id="selectGrBiPubSaletypeList" parameterType="com.lideeyunji.core.framework.entity.GrBiPubSaletype" resultMap="GrBiPubSaletypeResult">
|
||||
<include refid="selectGrBiPubSaletypeVo"/>
|
||||
<where>
|
||||
<if test="saletypeid != null "> and SALETYPEID = #{saletypeid}</if>
|
||||
<if test="saletypename != null and saletypename != ''"> and SALETYPENAME like concat('%', #{saletypename}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGrBiPubSaletypeBySaletypeid" parameterType="Long" resultMap="GrBiPubSaletypeResult">
|
||||
<include refid="selectGrBiPubSaletypeVo"/>
|
||||
where SALETYPEID = #{saletypeid}
|
||||
</select>
|
||||
|
||||
<insert id="insertGrBiPubSaletype" parameterType="com.lideeyunji.core.framework.entity.GrBiPubSaletype">
|
||||
insert into gr_bi_pub_saletype
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="saletypeid != null">SALETYPEID,</if>
|
||||
<if test="saletypename != null">SALETYPENAME,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="saletypeid != null">#{saletypeid},</if>
|
||||
<if test="saletypename != null">#{saletypename},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGrBiPubSaletype" parameterType="com.lideeyunji.core.framework.entity.GrBiPubSaletype">
|
||||
update gr_bi_pub_saletype
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="saletypename != null">SALETYPENAME = #{saletypename},</if>
|
||||
</trim>
|
||||
where SALETYPEID = #{saletypeid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGrBiPubSaletypeBySaletypeid" parameterType="Long">
|
||||
delete from gr_bi_pub_saletype where SALETYPEID = #{saletypeid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGrBiPubSaletypeBySaletypeids" parameterType="String">
|
||||
delete from gr_bi_pub_saletype where SALETYPEID in
|
||||
<foreach item="saletypeid" collection="array" open="(" separator="," close=")">
|
||||
#{saletypeid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?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.lideeyunji.core.framework.mapper.GrBiPubSalezoneMapper">
|
||||
|
||||
<resultMap type="com.lideeyunji.core.framework.entity.GrBiPubSalezone" id="GrBiPubSalezoneResult">
|
||||
<result property="salezoneid" column="SALEZONEID" />
|
||||
<result property="salezonename" column="SALEZONENAME" />
|
||||
<result property="salezoneno" column="SALEZONENO" />
|
||||
<result property="salezoneopcode" column="SALEZONEOPCODE" />
|
||||
<result property="updateTime" column="UPDATE_TIME" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGrBiPubSalezoneVo">
|
||||
select SALEZONEID, SALEZONENAME, SALEZONENO, SALEZONEOPCODE, UPDATE_TIME from gr_bi_pub_salezone
|
||||
</sql>
|
||||
|
||||
<select id="selectGrBiPubSalezoneList" parameterType="com.lideeyunji.core.framework.entity.GrBiPubSalezone" resultMap="GrBiPubSalezoneResult">
|
||||
<include refid="selectGrBiPubSalezoneVo"/>
|
||||
<where>
|
||||
<if test="salezoneid != null "> and SALEZONEID = #{salezoneid}</if>
|
||||
<if test="salezonename != null and salezonename != ''"> and SALEZONENAME like concat('%', #{salezonename}, '%')</if>
|
||||
<if test="salezoneno != null "> and SALEZONENO = #{salezoneno}</if>
|
||||
<if test="salezoneopcode != null and salezoneopcode != ''"> and SALEZONEOPCODE = #{salezoneopcode}</if>
|
||||
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGrBiPubSalezoneBySalezoneid" parameterType="Long" resultMap="GrBiPubSalezoneResult">
|
||||
<include refid="selectGrBiPubSalezoneVo"/>
|
||||
where SALEZONEID = #{salezoneid}
|
||||
</select>
|
||||
|
||||
<insert id="insertGrBiPubSalezone" parameterType="com.lideeyunji.core.framework.entity.GrBiPubSalezone">
|
||||
insert into gr_bi_pub_salezone
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="salezoneid != null">SALEZONEID,</if>
|
||||
<if test="salezonename != null">SALEZONENAME,</if>
|
||||
<if test="salezoneno != null">SALEZONENO,</if>
|
||||
<if test="salezoneopcode != null">SALEZONEOPCODE,</if>
|
||||
<if test="updateTime != null">UPDATE_TIME,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="salezoneid != null">#{salezoneid},</if>
|
||||
<if test="salezonename != null">#{salezonename},</if>
|
||||
<if test="salezoneno != null">#{salezoneno},</if>
|
||||
<if test="salezoneopcode != null">#{salezoneopcode},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGrBiPubSalezone" parameterType="com.lideeyunji.core.framework.entity.GrBiPubSalezone">
|
||||
update gr_bi_pub_salezone
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="salezonename != null">SALEZONENAME = #{salezonename},</if>
|
||||
<if test="salezoneno != null">SALEZONENO = #{salezoneno},</if>
|
||||
<if test="salezoneopcode != null">SALEZONEOPCODE = #{salezoneopcode},</if>
|
||||
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
||||
</trim>
|
||||
where SALEZONEID = #{salezoneid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGrBiPubSalezoneBySalezoneid" parameterType="Long">
|
||||
delete from gr_bi_pub_salezone where SALEZONEID = #{salezoneid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGrBiPubSalezoneBySalezoneids" parameterType="String">
|
||||
delete from gr_bi_pub_salezone where SALEZONEID in
|
||||
<foreach item="salezoneid" collection="array" open="(" separator="," close=")">
|
||||
#{salezoneid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user