Commit f59990af by 章家宝

提成方案:提成方案自测修复bug

1 parent 509da204
Showing 26 changed files with 50 additions and 387 deletions
package cn.com.glsx.dj.staff.remote.performance;
import cn.com.glsx.dj.staff.dto.performance.PerformanceApproveConfigDTO;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.annotation.*;
import java.util.List;
@ApiService(value = "提成方案审批人配置", owner = "zhangjb", protocol = ApiService.ProtocolEnum.dubbo, version = "1.0.0")
public interface PerformanceApproveConfigRemote {
@ApiMethod("获取提成方案审批人配置")
@ApiResponse("提成方案审批配置")
List<PerformanceApproveConfigDTO> listAll();
}
\ No newline at end of file
package cn.com.glsx.dj.staff.remote.performance;
import cn.com.glsx.framework.core.annotation.ApiService;
@ApiService(value = "提成方案审批操作记录", owner = "zhangjb", protocol = ApiService.ProtocolEnum.dubbo, version = "1.0.0")
public interface PerformanceConfigApproveOperationRecordRemote {
}
\ No newline at end of file
package cn.com.glsx.dj.staff.remote.performance;
import cn.com.glsx.dj.staff.dto.PerformanceConfigMerchantBrandRefDTO;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import java.util.List;
@ApiService(value = "提成方案商户品牌关联", owner = "zhangjb", protocol = ApiService.ProtocolEnum.dubbo, version = "1.0.0")
public interface PerformanceConfigMerchantBrandRefRemote {
RpcResponse<Boolean> performanceConfigMerchantBrandRefAdd(List<PerformanceConfigMerchantBrandRefDTO> merchantBrandRefList);
}
package cn.com.glsx.dj.staff.remote.performance;
import cn.com.glsx.dj.staff.dto.PerformanceParamConfigDTO;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import java.util.List;
@ApiService(value = "提成方案参数配置", owner = "zhangjb", protocol = ApiService.ProtocolEnum.dubbo, version = "1.0.0")
public interface PerformanceConfigParamConfigRemote {
RpcResponse<Boolean> performanceConfigParamConfigAdd(List<PerformanceParamConfigDTO> performanceParamConfigList);
}
package cn.com.glsx.dj.staff.remote.performance;
import cn.com.glsx.dj.staff.dto.PerformanceConfigRuleDTO;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
@ApiService(value = "提成方案规则", owner = "zhangjb", protocol = ApiService.ProtocolEnum.dubbo, version = "1.0.0")
public interface PerformanceConfigRuleRemote {
RpcResponse<Boolean> performanceConfigRuleAdd(PerformanceConfigRuleDTO performanceConfigRule);
}
package cn.com.glsx.dj.staff.remote.performance;
import cn.com.glsx.dj.staff.dto.PerformanceParamConfigConditionDTO;
import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import java.util.List;
@ApiService(value = "提成方案参数条件配置", owner = "zhangjb", protocol = ApiService.ProtocolEnum.dubbo, version = "1.0.0")
public interface PerformanceParamConfigConditionRemote {
@ApiMethod("添加提成参数条件")
@ApiParam(name = "dto", notes = "dto", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("添加提成参数条件")
RpcResponse<Boolean> performanceParamConfigConditionAdd(List<PerformanceParamConfigConditionDTO> performanceParamConfigConditionDTOList);
}
......@@ -27,8 +27,6 @@ public interface PerformanceConfigMapper extends OreMapper<PerformanceConfig> {
Boolean hasEffectivePerformanceConfigForMerchant(Integer merchantId);
int insertOne(PerformanceConfigDTO dto);
void updateById(PerformanceConfigDTO dto);
void enblePerformanceConfig();
......
......@@ -11,8 +11,6 @@ import java.util.List;
public interface PerformanceConfigMerchantBrandRefMapper extends OreMapper<PerformanceConfigMerchantBrandRef> {
void deleteByConfigId(Integer performanceConfigId);
void insertLists(List<PerformanceConfigMerchantBrandRefDTO> merchantBrandModelPageBrands);
List<PerformanceConfigMerchantBrandRefDTO> listByConfigId(Integer id);
void invalidByBusinessTypeAndMerchantBrand(PerformanceConfigMerchantBrandRefDTO merchantBrandRef);
......
......@@ -9,7 +9,5 @@ import org.oreframework.datasource.mybatis.mapper.OreMapper;
public interface PerformanceConfigRuleMapper extends OreMapper<PerformanceConfigRule> {
PerformanceConfigRuleDTO listByConfigId(Integer id);
void insertOne(PerformanceConfigRuleDTO performanceConfigRule);
void deleteByConfigId(Integer performanceConfigId);
}
\ No newline at end of file
......@@ -13,6 +13,4 @@ public interface PerformanceParamConfigConditionMapper extends OreMapper<Perform
List<PerformanceParamConfigConditionDTO> listByParamConfigId(
PerformanceParamConfigConditionDTO dto);
void deleteByPerformanceConfigId(@Param("performanceConfigId") Integer performanceConfigId);
void insertLists(List<PerformanceParamConfigConditionDTO> performanceParamConfigConditionDTOList);
}
\ No newline at end of file
......@@ -12,6 +12,4 @@ public interface PerformanceParamConfigMapper extends OreMapper<PerformanceParam
List<PerformanceParamConfigDTO> listByConfigId(PerformanceParamConfigDTO dto);
void deleteByPerformanceParamConfigId(Integer id);
int insertOne(PerformanceParamConfigDTO performanceParamConfig);
}
\ No newline at end of file
package cn.com.glsx.dj.staff.remote.performance;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
@Slf4j
@DubboService(version = "1.0.0", validation = "true")
public class PerformanceConfigApproveOperationRecordRemoteImpl implements PerformanceConfigApproveOperationRecordRemote {
}
\ No newline at end of file
package cn.com.glsx.dj.staff.remote.performance;
import cn.com.glsx.dj.staff.dto.PerformanceConfigMerchantBrandRefDTO;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import java.util.List;
@Slf4j
@DubboService(version = "1.0.0", validation = "true")
public class PerformanceConfigMerchantBrandRefRemoteImpl implements PerformanceConfigMerchantBrandRefRemote {
@Override
public RpcResponse<Boolean> performanceConfigMerchantBrandRefAdd(List<PerformanceConfigMerchantBrandRefDTO> merchantBrandRefList) {
return null;
}
}
\ No newline at end of file
package cn.com.glsx.dj.staff.remote.performance;
import cn.com.glsx.dj.staff.dto.PerformanceParamConfigDTO;
import cn.com.glsx.dj.staff.service.staffPerformance.PerformanceConfigParamConfigService;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
@Slf4j
@DubboService(version = "1.0.0", validation = "true")
public class PerformanceConfigParamConfigRemoteImpl implements PerformanceConfigParamConfigRemote {
@Autowired
private PerformanceConfigParamConfigService performanceConfigParamConfigService;
@Override
public RpcResponse<Boolean> performanceConfigParamConfigAdd(List<PerformanceParamConfigDTO> performanceParamConfigList) {
performanceConfigParamConfigService.insertList(performanceParamConfigList);
return RpcResponse.success(true);
}
}
\ No newline at end of file
package cn.com.glsx.dj.staff.remote.performance;
import cn.com.glsx.dj.staff.dto.PerformanceConfigRuleDTO;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
@Slf4j
@DubboService(version = "1.0.0", validation = "true")
public class PerformanceConfigRuleRemoteImpl implements PerformanceConfigRuleRemote {
@Override
public RpcResponse<Boolean> performanceConfigRuleAdd(PerformanceConfigRuleDTO performanceConfigRule) {
return null;
}
}
package cn.com.glsx.dj.staff.remote.performance;
import cn.com.glsx.dj.staff.dto.PerformanceParamConfigConditionDTO;
import cn.com.glsx.dj.staff.service.staffPerformance.PerformanceParamConfigConditionService;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
@Slf4j
@DubboService(version = "1.0.0", validation = "true")
public class PerformanceParamConfigConditionRemoteImpl implements PerformanceParamConfigConditionRemote {
@Autowired
private PerformanceParamConfigConditionService performanceParamConfigConditionService;
@Override
public RpcResponse<Boolean> performanceParamConfigConditionAdd(List<PerformanceParamConfigConditionDTO> performanceParamConfigConditionDTOList) {
performanceParamConfigConditionService.insertList(performanceParamConfigConditionDTOList);
return RpcResponse.success(true);
}
}
\ No newline at end of file
......@@ -6,6 +6,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
......@@ -24,12 +25,17 @@ public class PerformanceConfigMerchantBrandRefService {
return performanceConfigMerchantBrandRefMapper.listByConfigId(id);
}
public void addRef(List<PerformanceConfigMerchantBrandRefDTO> merchantBrandModelPageBrands, Integer performanceConfigId) {
public void addRef(List<PerformanceConfigMerchantBrandRefDTO> merchantBrandModelPageBrands, Integer performanceConfigId, String createdBy, Date createdDate) {
for (PerformanceConfigMerchantBrandRefDTO merchantBrandModelPageBrand : merchantBrandModelPageBrands) {
merchantBrandModelPageBrand.setPerformanceConfigId(performanceConfigId);
merchantBrandModelPageBrand.setCreatedBy(createdBy);
merchantBrandModelPageBrand.setUpdatedBy(createdBy);
merchantBrandModelPageBrand.setCreatedDate(createdDate);
merchantBrandModelPageBrand.setUpdatedDate(createdDate);
merchantBrandModelPageBrand.setDeletedFlag("N");
}
performanceConfigMerchantBrandRefMapper.deleteByConfigId(performanceConfigId);
performanceConfigMerchantBrandRefMapper.insertLists(merchantBrandModelPageBrands);
performanceConfigMerchantBrandRefMapper.insertList(merchantBrandModelPageBrands);
}
public void invalidByBusinessTypeAndMerchantBrand(Byte businessType, PerformanceConfigMerchantBrandRefDTO merchantBrandRef) {
......
......@@ -6,6 +6,8 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
/**
*
*
......@@ -20,9 +22,14 @@ public class PerformanceConfigRuleService {
return performanceConfigRuleMapper.listByConfigId(id);
}
public void addRule(PerformanceConfigRuleDTO performanceConfigRule, Integer performanceConfigId) {
public void addRule(PerformanceConfigRuleDTO performanceConfigRule, Integer performanceConfigId, String createdBy, Date createdDate) {
performanceConfigRuleMapper.deleteByConfigId(performanceConfigId);
performanceConfigRule.setPerformanceConfigId(performanceConfigId);
performanceConfigRuleMapper.insertOne(performanceConfigRule);
performanceConfigRule.setCreatedBy(createdBy);
performanceConfigRule.setCreatedDate(createdDate);
performanceConfigRule.setUpdatedBy(createdBy);
performanceConfigRule.setUpdatedDate(createdDate);
performanceConfigRule.setDeletedFlag("N");
performanceConfigRuleMapper.insert(performanceConfigRule);
}
}
......@@ -9,15 +9,13 @@ import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.enums.DefaultErrorEnum;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.core.util.RpcAssert;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.*;
/**
* 提成配置Service
......@@ -158,15 +156,17 @@ public class PerformanceConfigService {
*/
public RpcResponse<Integer> savePerformanceConfig(PerformanceConfigDTO dto) {
Integer id = dto.getId();
String userName = dto.getUpdatedBy();
Date updateTime = dto.getUpdatedDate();
if (id == null) {
performanceConfigMapper.insertOne(dto);
performanceConfigMapper.insert(dto);
id = dto.getId();
} else {
performanceConfigMapper.updateById(dto);
}
performanceParamConfigService.addParamConfig(dto.getPerformanceParamConfigs(), id);
performanceConfigRuleService.addRule(dto.getPerformanceConfigRule(), id);
performanceConfigMerchantBrandRefService.addRef(dto.getMerchantBrandModelPageBrands(), id);
performanceParamConfigService.addParamConfig(dto.getPerformanceParamConfigs(), id, userName, updateTime);
performanceConfigRuleService.addRule(dto.getPerformanceConfigRule(), id, userName, updateTime);
performanceConfigMerchantBrandRefService.addRef(dto.getMerchantBrandModelPageBrands(), id, userName, updateTime);
return RpcResponse.success(id);
}
......
......@@ -17,6 +17,6 @@ public class PerformanceParamConfigConditionService {
performanceParamConfigConditionMapper.deleteByPerformanceConfigId(performanceConfigId);
}
public void insertList(List<PerformanceParamConfigConditionDTO> performanceParamConfigConditionDTOList) {
performanceParamConfigConditionMapper.insertLists(performanceParamConfigConditionDTOList);
performanceParamConfigConditionMapper.insertList(performanceParamConfigConditionDTOList);
}
}
......@@ -9,6 +9,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
......@@ -37,20 +38,31 @@ public class PerformanceParamConfigService {
return performanceParamConfigMapper.listByConfigId(dto);
}
public void addParamConfig(List<PerformanceParamConfigDTO> performanceParamConfigs, Integer performanceConfigId) {
public void addParamConfig(List<PerformanceParamConfigDTO> performanceParamConfigs, Integer performanceConfigId, String createdBy, Date curr) {
// 1. 先删掉原来的配置
performanceParamConfigMapper.deleteByPerformanceParamConfigId(performanceConfigId);
// 2. 删除掉原有的条件
performanceParamConfigConditionService.deleteByPerformanceConfigId(performanceConfigId);
for (PerformanceParamConfigDTO performanceParamConfig : performanceParamConfigs) {
performanceParamConfig.setCreatedBy(createdBy);
performanceParamConfig.setCreatedDate(curr);
performanceParamConfig.setUpdatedDate(curr);
performanceParamConfig.setUpdatedBy(createdBy);
performanceParamConfig.setDeletedFlag("N");
performanceParamConfig.setPerformanceConfigId(performanceConfigId);
// 3. 执行插入,拿到id
int id = performanceParamConfigMapper.insertOne(performanceParamConfig);
int id = performanceParamConfigMapper.insert(performanceParamConfig);
// 4. 插入条件
List<PerformanceParamConfigConditionDTO> performanceParamConfigConditions = performanceParamConfig.getPerformanceParamConfigConditions();
if (performanceParamConfigConditions != null && !performanceParamConfigConditions.isEmpty()) {
for (PerformanceParamConfigConditionDTO performanceParamConfigCondition : performanceParamConfigConditions) {
performanceParamConfigCondition.setPerformanceConfigId(id);
performanceParamConfigCondition.setCreatedBy(createdBy);
performanceParamConfigCondition.setCreatedDate(curr);
performanceParamConfigCondition.setUpdatedBy(createdBy);
performanceParamConfigCondition.setUpdatedDate(curr);
performanceParamConfigCondition.setDeletedFlag("N");
}
performanceParamConfigConditionService.insertList(performanceParamConfigConditions);
}
......
......@@ -22,15 +22,6 @@
<resultMap id="DTOResultMap" type="cn.com.glsx.dj.staff.dto.PerformanceConfigDTO" extends="BaseResultMap">
<result column="merchant_name" property="merchantName" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="MerchantPerformanceResultMap"
type="cn.com.glsx.dj.staff.dto.performance.PerformanceConfigPageByMerchantDTO">
<result column="merchant_id" property="merchantId" jdbcType="INTEGER"/>
<result column="merchant_name" property="merchantNames" jdbcType="VARCHAR"/>
<result column="scheme_names" property="schemeNames" jdbcType="VARCHAR"/>
<result column="brand_names" property="brandNames" jdbcType="VARCHAR"/>
<result column="business_types" property="businessTypes" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
......@@ -65,7 +56,7 @@
WHERE
c.deleted_flag = 'N'
AND c.status = 2
AND r.scheme_name = #{schemeName}
AND c.scheme_name = #{schemeName}
LIMIT
1
</select>
......@@ -113,16 +104,15 @@
LIMIT
1
</select>
<select id="listByMerchant"
parameterType="cn.com.glsx.dj.staff.dto.performance.PerformanceConfigPageByMerchantDTO"
resultMap="MerchantPerformanceResultMap">
resultType="cn.com.glsx.dj.staff.dto.performance.PerformanceConfigPageByMerchantDTO">
SELECT
ref.merchant_id AS merchant_id,
IFNULL(s.merchant_name, '') AS merchant_name,
IFNULL(GROUP_CONCAT(DISTINCT cfg.scheme_name SEPARATOR ','), '') AS scheme_names,
IFNULL(GROUP_CONCAT(DISTINCT ref.brand_name SEPARATOR ','), '') AS brand_names,
IFNULL(GROUP_CONCAT(DISTINCT cfg.business_type SEPARATOR ','), '') AS business_types
ref.merchant_id AS merchantId,
IFNULL(s.merchant_name, '') AS merchantNames,
IFNULL(GROUP_CONCAT(DISTINCT cfg.scheme_name SEPARATOR ','), '') AS schemeNames,
IFNULL(GROUP_CONCAT(DISTINCT ref.brand_name SEPARATOR ','), '') AS brandNames,
IFNULL(GROUP_CONCAT(DISTINCT cfg.business_type SEPARATOR ','), '') AS businessTypes
FROM
dj_car_life_performance_config_merchant_brand_ref ref
INNER JOIN
......@@ -201,22 +191,6 @@
) AS exist_flag;
</select>
<insert id="insertOne" parameterType="cn.com.glsx.dj.staff.dto.PerformanceConfigDTO"
useGeneratedKeys="true" keyProperty="id" keyColumn="id">
INSERT INTO dj_car_life_performance_config (scheme_name,
scheme_type,
origin_performance_config_id,
business_type,
effective_month,
status)
VALUES (#{schemeName},
#{schemeType},
#{originPerformanceConfigId},
#{businessType},
#{effectiveMonth},
#{status})
</insert>
<update id="updateById" parameterType="cn.com.glsx.dj.staff.dto.PerformanceConfigDTO">
UPDATE dj_car_life_performance_config
SET
......
......@@ -40,45 +40,6 @@
deleted_flag = 'N'
AND performance_config_id = #{performanceConfigId}
</update>
<!-- 新增:批量插入商户品牌关联数据 -->
<insert id="insertLists"
parameterType="java.util.List"
useGeneratedKeys="true"
keyProperty="id"
keyColumn="id">
INSERT INTO dj_car_life_performance_config_merchant_brand_ref (
performance_config_id,
merchant_id,
merchant_name,
brand_id,
brand_name,
child_id,
child_name,
created_by,
created_date,
updated_by,
updated_date,
deleted_flag
) VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.performanceConfigId},
#{item.merchantId},
#{item.merchantName},
#{item.brandId},
#{item.brandName},
#{item.childId},
#{item.childName},
#{item.createdBy},
NOW(),
#{item.updatedBy},
NOW(),
'N'
)
</foreach>
</insert>
<!-- 新增:根据配置ID查询商户品牌关联列表 -->
<select id="listByConfigId" parameterType="java.lang.Integer" resultMap="DTOResultMap">
SELECT
......
......@@ -39,37 +39,6 @@
LIMIT 1
</select>
<!-- 新增:单条插入规则数据 -->
<insert id="insertOne"
parameterType="cn.com.glsx.dj.staff.dto.PerformanceConfigRuleDTO"
useGeneratedKeys="true"
keyProperty="id"
keyColumn="id">
INSERT INTO dj_car_life_performance_config_rule (
performance_config_id,
assessment_factors,
commission_bases,
commission_types,
goods_config_types,
created_by,
created_date,
updated_by,
updated_date,
deleted_flag
) VALUES (
#{performanceConfigId},
#{assessmentFactors},
#{commissionBases},
#{commissionTypes},
#{goodsConfigTypes},
#{createdBy},
NOW(),
#{updatedBy},
NOW(),
'N'
)
</insert>
<!-- 新增:根据配置ID逻辑删除规则 -->
<update id="deleteByConfigId" parameterType="java.lang.Integer">
UPDATE dj_car_life_performance_config_rule
......
......@@ -88,61 +88,4 @@
ORDER BY
dcpcc.id DESC
</select>
<!-- 新增的批量插入语句 -->
<insert id="insertLists"
parameterType="java.util.List"
useGeneratedKeys="true"
keyProperty="id"
keyColumn="id">
INSERT INTO dj_car_life_performance_param_config_condition (
performance_param_config_id,
condition_type,
condition_goods_config_type,
condition_goods_type,
condition_goods_type_name,
condition_secondary_goods_type,
condition_secondary_goods_type_name,
condition_third_level_goods_type,
condition_third_level_goods_type_name,
condition_product_define_id,
condition_product_define_name,
condition_assessment_factors,
condition_start_value,
condition_end_value,
condition_commission_base,
condition_commission_type,
condition_commission_type_value,
created_by,
created_date,
updated_by,
updated_date,
deleted_flag
) VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.performanceParamConfigId},
#{item.conditionType},
#{item.conditionGoodsConfigType},
#{item.conditionGoodsType},
#{item.conditionGoodsTypeName},
#{item.conditionSecondaryGoodsType},
#{item.conditionSecondaryGoodsTypeName},
#{item.conditionThirdLevelGoodsType},
#{item.conditionThirdLevelGoodsTypeName},
#{item.conditionProductDefineId},
#{item.conditionProductDefineName},
#{item.conditionAssessmentFactors},
#{item.conditionStartValue},
#{item.conditionEndValue},
#{item.conditionCommissionBase},
#{item.conditionCommissionType},
#{item.conditionCommissionTypeValue},
#{item.createdBy},
NOW(),
#{item.updatedBy},
NOW(),
'N'
)
</foreach>
</insert>
</mapper>
\ No newline at end of file
......@@ -84,54 +84,4 @@
deleted_flag = 'N'
AND performance_config_id = #{id}
</update>
<insert id="insertOne"
parameterType="cn.com.glsx.dj.staff.dto.PerformanceParamConfigDTO"
useGeneratedKeys="true"
keyProperty="id"
keyColumn="id">
INSERT INTO dj_car_life_performance_param_config (performance_config_id,
template_type,
assessment_factor,
start_value,
end_value,
commission_base,
commission_type,
goods_config_type,
goods_type,
goods_type_name,
secondary_goods_type,
secondary_goods_type_name,
third_level_goods_type,
third_level_goods_type_name,
product_define_id,
product_define_name,
commission_type_value,
created_by,
created_date,
updated_by,
updated_date,
deleted_flag)
VALUES (#{performanceConfigId},
#{templateType},
#{assessmentFactor},
#{startValue},
#{endValue},
#{commissionBase},
#{commissionType},
#{goodsConfigType},
#{goodsType},
#{goodsTypeName},
#{secondaryGoodsType},
#{secondaryGoodsTypeName},
#{thirdLevelGoodsType},
#{thirdLevelGoodsTypeName},
#{productDefineId},
#{productDefineName},
#{commissionTypeValue},
#{createdBy},
NOW(),
#{updatedBy},
NOW(),
'N')
</insert>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!