Compare commits
No commits in common. "7073ff6a69989ac3ff49f2d49641db4abbf40bb9" and "ecce752adaf540048b3ddbe42dd9a00f31d76abd" have entirely different histories.
7073ff6a69
...
ecce752ada
|
|
@ -1,20 +0,0 @@
|
||||||
package com.hzs.activity.declaration.controller.manage;
|
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 前端控制器
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author bd
|
|
||||||
* @since 2025-10-16
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/com.hzs.common.domain/ac-declaration-gift-detail")
|
|
||||||
public class AcDeclarationGiftDetailController {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
package com.hzs.activity.declaration.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.hzs.activity.declaration.vo.AcDeclarationGiftDetail;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* Mapper 接口
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author bd
|
|
||||||
* @since 2025-10-16
|
|
||||||
*/
|
|
||||||
public interface AcDeclarationGiftDetailMapper extends BaseMapper<AcDeclarationGiftDetail> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -8,8 +8,6 @@ import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
|
@ -22,13 +20,30 @@ public class AcDeclarationConfigParam {
|
||||||
private Integer registerAuthority;
|
private Integer registerAuthority;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品信息
|
* 产品主键
|
||||||
*/
|
*/
|
||||||
private List<AcDeclarationProductParam> acDeclarationProductParamList;
|
private Integer pkProduct;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 产品规格(逗号分隔)
|
||||||
|
*/
|
||||||
|
private String specsName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 产品规格id(逗号分隔)
|
||||||
|
*/
|
||||||
|
private String specsNameId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数量
|
||||||
|
*/
|
||||||
|
private Long quantity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 指定等级
|
* 指定等级
|
||||||
*/
|
*/
|
||||||
private Integer specifyLevel;
|
private Integer specifyLevel;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,4 +45,5 @@ public class AcDeclarationParam {
|
||||||
*/
|
*/
|
||||||
private List<AcDeclarationConfigParam> acDeclarationConfigParams;
|
private List<AcDeclarationConfigParam> acDeclarationConfigParams;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
package com.hzs.activity.declaration.param;
|
|
||||||
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@AllArgsConstructor
|
|
||||||
@NoArgsConstructor
|
|
||||||
public class AcDeclarationProductParam {
|
|
||||||
/**
|
|
||||||
* 产品主键
|
|
||||||
*/
|
|
||||||
private Integer pkProduct;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 产品规格(逗号分隔)
|
|
||||||
*/
|
|
||||||
private String specsName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 产品规格id(逗号分隔)
|
|
||||||
*/
|
|
||||||
private String specsNameId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 数量
|
|
||||||
*/
|
|
||||||
private Long quantity;
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
package com.hzs.activity.declaration.service;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
|
||||||
import com.hzs.activity.declaration.vo.AcDeclarationGiftDetail;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 服务类
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author bd
|
|
||||||
* @since 2025-10-16
|
|
||||||
*/
|
|
||||||
public interface IAcDeclarationGiftDetailService extends IService<AcDeclarationGiftDetail> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -15,17 +15,13 @@ import com.hzs.activity.declaration.mapper.AcDeclarationGiftConfigMapper;
|
||||||
import com.hzs.activity.declaration.param.AcDeclarationConfigParam;
|
import com.hzs.activity.declaration.param.AcDeclarationConfigParam;
|
||||||
import com.hzs.activity.declaration.param.AcDeclarationDetailParam;
|
import com.hzs.activity.declaration.param.AcDeclarationDetailParam;
|
||||||
import com.hzs.activity.declaration.param.AcDeclarationParam;
|
import com.hzs.activity.declaration.param.AcDeclarationParam;
|
||||||
import com.hzs.activity.declaration.param.AcDeclarationProductParam;
|
|
||||||
import com.hzs.activity.declaration.service.IAcDeclarationGiftConfigService;
|
import com.hzs.activity.declaration.service.IAcDeclarationGiftConfigService;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.hzs.activity.declaration.service.IAcDeclarationGiftDetailService;
|
|
||||||
import com.hzs.activity.declaration.vo.AcDeclarationGiftConfig;
|
import com.hzs.activity.declaration.vo.AcDeclarationGiftConfig;
|
||||||
import com.hzs.activity.declaration.vo.AcDeclarationGiftDetail;
|
|
||||||
import com.hzs.common.core.constant.CountryConstants;
|
import com.hzs.common.core.constant.CountryConstants;
|
||||||
import com.hzs.common.core.enums.EActType;
|
import com.hzs.common.core.enums.EActType;
|
||||||
import com.hzs.common.core.enums.EApprovalBusiness;
|
import com.hzs.common.core.enums.EApprovalBusiness;
|
||||||
import com.hzs.common.core.enums.EControlType;
|
import com.hzs.common.core.enums.EControlType;
|
||||||
import com.hzs.common.core.utils.StringUtils;
|
|
||||||
import com.hzs.common.core.web.domain.AjaxResult;
|
import com.hzs.common.core.web.domain.AjaxResult;
|
||||||
import com.hzs.common.domain.activity.base.AcBaseConfig;
|
import com.hzs.common.domain.activity.base.AcBaseConfig;
|
||||||
import com.hzs.common.domain.activity.base.AcGoalMemberConfig;
|
import com.hzs.common.domain.activity.base.AcGoalMemberConfig;
|
||||||
|
|
@ -39,10 +35,7 @@ import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
import java.util.function.Function;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -64,7 +57,7 @@ public class AcDeclarationGiftConfigServiceImpl extends ServiceImpl<AcDeclaratio
|
||||||
private IAcBaseConfigService baseConfigService;
|
private IAcBaseConfigService baseConfigService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IAcDeclarationGiftDetailService iAcDeclarationGiftDetailService;
|
private IAcGoalMemberConfigService iAcGoalMemberConfigService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult getDetail(Integer pkId) {
|
public AjaxResult getDetail(Integer pkId) {
|
||||||
|
|
@ -74,20 +67,14 @@ public class AcDeclarationGiftConfigServiceImpl extends ServiceImpl<AcDeclaratio
|
||||||
List<AcDeclarationGiftConfig> list = baseMapper.selectList(new LambdaQueryWrapper<AcDeclarationGiftConfig>()
|
List<AcDeclarationGiftConfig> list = baseMapper.selectList(new LambdaQueryWrapper<AcDeclarationGiftConfig>()
|
||||||
.eq(AcDeclarationGiftConfig::getPkBaseId,pkId)
|
.eq(AcDeclarationGiftConfig::getPkBaseId,pkId)
|
||||||
.eq(AcDeclarationGiftConfig::getDelFlag,0));
|
.eq(AcDeclarationGiftConfig::getDelFlag,0));
|
||||||
ArrayList<AcDeclarationConfigParam> acDeclarationConfigParams = new ArrayList<>();
|
List<AcDeclarationConfigParam> collect = list.stream()
|
||||||
list.forEach(item->{
|
.map(i -> BeanUtil.copyProperties(i, AcDeclarationConfigParam.class))
|
||||||
AcDeclarationConfigParam acDeclarationConfigParam = BeanUtil.copyProperties(item, AcDeclarationConfigParam.class);
|
.collect(Collectors.toList());
|
||||||
List<AcDeclarationGiftDetail> declarationGiftDetails = iAcDeclarationGiftDetailService.list(new LambdaQueryWrapper<AcDeclarationGiftDetail>()
|
|
||||||
.eq(AcDeclarationGiftDetail::getPkRuleId, item.getPkId())
|
|
||||||
.eq(AcDeclarationGiftDetail::getDelFlag, 0));
|
|
||||||
List<AcDeclarationProductParam> declarationConfigParams = declarationGiftDetails.stream()
|
|
||||||
.map(i -> BeanUtil.copyProperties(i, AcDeclarationProductParam.class))
|
|
||||||
.collect(Collectors.toList());
|
|
||||||
acDeclarationConfigParam.setAcDeclarationProductParamList(declarationConfigParams);
|
|
||||||
acDeclarationConfigParams.add(acDeclarationConfigParam);
|
|
||||||
});
|
|
||||||
|
|
||||||
activityParam.setAcDeclarationConfigParams(acDeclarationConfigParams);
|
List<AcGoalMemberConfig> goalMemberConfigList = iAcGoalMemberConfigService.list(new LambdaQueryWrapper<AcGoalMemberConfig>()
|
||||||
|
.eq(AcGoalMemberConfig::getPkBaseId, baseConfig.getPkId()));
|
||||||
|
activityParam.setAcDeclarationConfigParams(collect);
|
||||||
|
activityParam.setGoalMemberConfigList(goalMemberConfigList);
|
||||||
activityParam.setPkBaseId(baseConfig.getPkId());
|
activityParam.setPkBaseId(baseConfig.getPkId());
|
||||||
return AjaxResult.success(activityParam);
|
return AjaxResult.success(activityParam);
|
||||||
}
|
}
|
||||||
|
|
@ -148,12 +135,9 @@ public class AcDeclarationGiftConfigServiceImpl extends ServiceImpl<AcDeclaratio
|
||||||
private void removeDeclarationConfig(Long pkId) {
|
private void removeDeclarationConfig(Long pkId) {
|
||||||
// 删除活动基本配置
|
// 删除活动基本配置
|
||||||
baseConfigService.removeById(pkId);
|
baseConfigService.removeById(pkId);
|
||||||
// 删除报单赠送
|
// 删除加购活动配置
|
||||||
baseMapper.delete(new LambdaQueryWrapper<AcDeclarationGiftConfig>()
|
baseMapper.delete(new LambdaQueryWrapper<AcDeclarationGiftConfig>()
|
||||||
.eq(AcDeclarationGiftConfig::getPkBaseId, pkId));
|
.eq(AcDeclarationGiftConfig::getPkBaseId, pkId));
|
||||||
// 删除报单赠送详情配置
|
|
||||||
iAcDeclarationGiftDetailService.remove(new LambdaQueryWrapper<AcDeclarationGiftDetail>()
|
|
||||||
.eq(AcDeclarationGiftDetail::getPkBaseId, pkId));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateDeclarationConfig(ActivityParam activityParam, List<AcDeclarationConfigParam> acDeclarationConfigParams) {
|
private void updateDeclarationConfig(ActivityParam activityParam, List<AcDeclarationConfigParam> acDeclarationConfigParams) {
|
||||||
|
|
@ -167,9 +151,6 @@ public class AcDeclarationGiftConfigServiceImpl extends ServiceImpl<AcDeclaratio
|
||||||
// 删除活动配置
|
// 删除活动配置
|
||||||
baseMapper.delete(new LambdaQueryWrapper<AcDeclarationGiftConfig>()
|
baseMapper.delete(new LambdaQueryWrapper<AcDeclarationGiftConfig>()
|
||||||
.eq(AcDeclarationGiftConfig::getPkBaseId, pkId));
|
.eq(AcDeclarationGiftConfig::getPkBaseId, pkId));
|
||||||
// 删除活动详情配置
|
|
||||||
iAcDeclarationGiftDetailService.remove(new LambdaQueryWrapper<AcDeclarationGiftDetail>()
|
|
||||||
.eq(AcDeclarationGiftDetail::getPkBaseId, pkId));
|
|
||||||
// 添加加购活动配置
|
// 添加加购活动配置
|
||||||
saveDeclarationConfig(acDeclarationConfigParams,baseConfig);
|
saveDeclarationConfig(acDeclarationConfigParams,baseConfig);
|
||||||
}
|
}
|
||||||
|
|
@ -181,6 +162,10 @@ public class AcDeclarationGiftConfigServiceImpl extends ServiceImpl<AcDeclaratio
|
||||||
AcDeclarationGiftConfig build = AcDeclarationGiftConfig.builder()
|
AcDeclarationGiftConfig build = AcDeclarationGiftConfig.builder()
|
||||||
.pkBaseId(acBaseConfig.getPkId())
|
.pkBaseId(acBaseConfig.getPkId())
|
||||||
.registerAuthority(item.getRegisterAuthority())
|
.registerAuthority(item.getRegisterAuthority())
|
||||||
|
.pkProduct(item.getPkProduct())
|
||||||
|
.specsName(item.getSpecsName())
|
||||||
|
.specsNameId(item.getSpecsNameId())
|
||||||
|
.quantity(item.getQuantity())
|
||||||
.specifyLevel(item.getSpecifyLevel())
|
.specifyLevel(item.getSpecifyLevel())
|
||||||
.build();
|
.build();
|
||||||
build.setPkCountry(acBaseConfig.getPkCountry());
|
build.setPkCountry(acBaseConfig.getPkCountry());
|
||||||
|
|
@ -188,24 +173,6 @@ public class AcDeclarationGiftConfigServiceImpl extends ServiceImpl<AcDeclaratio
|
||||||
build.setPkCreator(acBaseConfig.getPkCreator());
|
build.setPkCreator(acBaseConfig.getPkCreator());
|
||||||
build.setDelFlag(0);
|
build.setDelFlag(0);
|
||||||
baseMapper.insert(build);
|
baseMapper.insert(build);
|
||||||
item.getAcDeclarationProductParamList().forEach(item1 -> {
|
|
||||||
if (item1 != null) {
|
|
||||||
AcDeclarationGiftDetail acDeclarationGiftDetail = AcDeclarationGiftDetail.builder()
|
|
||||||
.pkBaseId(acBaseConfig.getPkId())
|
|
||||||
.pkRuleId(build.getPkId())
|
|
||||||
.pkProduct(item1.getPkProduct())
|
|
||||||
.specsName(item1.getSpecsName())
|
|
||||||
.specsNameId(item1.getSpecsNameId())
|
|
||||||
.quantity(item1.getQuantity())
|
|
||||||
.build();
|
|
||||||
acDeclarationGiftDetail.setPkCountry(acBaseConfig.getPkCountry());
|
|
||||||
acDeclarationGiftDetail.setCreationTime(acBaseConfig.getCreationTime());
|
|
||||||
acDeclarationGiftDetail.setPkCreator(acBaseConfig.getPkCreator());
|
|
||||||
acDeclarationGiftDetail.setDelFlag(0);
|
|
||||||
iAcDeclarationGiftDetailService.save(acDeclarationGiftDetail);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
package com.hzs.activity.declaration.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
||||||
import com.hzs.activity.declaration.mapper.AcDeclarationGiftDetailMapper;
|
|
||||||
import com.hzs.activity.declaration.service.IAcDeclarationGiftDetailService;
|
|
||||||
import com.hzs.activity.declaration.vo.AcDeclarationGiftDetail;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 服务实现类
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author bd
|
|
||||||
* @since 2025-10-16
|
|
||||||
*/
|
|
||||||
@Service
|
|
||||||
public class AcDeclarationGiftDetailServiceImpl extends ServiceImpl<AcDeclarationGiftDetailMapper, AcDeclarationGiftDetail> implements IAcDeclarationGiftDetailService {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -44,6 +44,30 @@ public class AcDeclarationGiftConfig extends BaseEntity {
|
||||||
@TableField("REGISTER_AUTHORITY")
|
@TableField("REGISTER_AUTHORITY")
|
||||||
private Integer registerAuthority;
|
private Integer registerAuthority;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 产品主键
|
||||||
|
*/
|
||||||
|
@TableField("PK_PRODUCT")
|
||||||
|
private Integer pkProduct;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 产品规格(逗号分隔)
|
||||||
|
*/
|
||||||
|
@TableField("SPECS_NAME")
|
||||||
|
private String specsName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 产品规格id(逗号分隔)
|
||||||
|
*/
|
||||||
|
@TableField("SPECS_NAME_ID")
|
||||||
|
private String specsNameId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数量
|
||||||
|
*/
|
||||||
|
@TableField("QUANTITY")
|
||||||
|
private Long quantity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 指定等级
|
* 指定等级
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
package com.hzs.activity.declaration.vo;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.hzs.common.core.web.domain.BaseEntity;
|
|
||||||
import lombok.Builder;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.experimental.Accessors;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
*
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author bd
|
|
||||||
* @since 2025-10-16
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@EqualsAndHashCode(callSuper = true)
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@TableName("AC_DECLARATION_GIFT_DETAIL")
|
|
||||||
@KeySequence("AC_DECLARATION_GIFT_DETAIL_SEQ")
|
|
||||||
@Builder
|
|
||||||
public class AcDeclarationGiftDetail extends BaseEntity {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主键ID
|
|
||||||
*/
|
|
||||||
@TableId("PK_ID")
|
|
||||||
private Long pkId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 活动规则主键
|
|
||||||
*/
|
|
||||||
@TableField("PK_RULE_ID")
|
|
||||||
private Long pkRuleId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 活动基本规则主键
|
|
||||||
*/
|
|
||||||
@TableField("PK_BASE_ID")
|
|
||||||
private Long pkBaseId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 产品主键
|
|
||||||
*/
|
|
||||||
@TableField("PK_PRODUCT")
|
|
||||||
private Integer pkProduct;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 产品规格(逗号分隔)
|
|
||||||
*/
|
|
||||||
@TableField("SPECS_NAME")
|
|
||||||
private String specsName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 产品规格id(逗号分隔)
|
|
||||||
*/
|
|
||||||
@TableField("SPECS_NAME_ID")
|
|
||||||
private String specsNameId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 数量
|
|
||||||
*/
|
|
||||||
@TableField("QUANTITY")
|
|
||||||
private Long quantity;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -42,8 +42,8 @@
|
||||||
32 AS PICK_TYPE,
|
32 AS PICK_TYPE,
|
||||||
adgc.PK_ID AS PK_BASE_CONFIG,
|
adgc.PK_ID AS PK_BASE_CONFIG,
|
||||||
adgr.PK_PRODUCT AS PK_DATA_ID,
|
adgr.PK_PRODUCT AS PK_DATA_ID,
|
||||||
adgd.SPECS_NAME AS SPECS_NAME,
|
adgc.SPECS_NAME AS SPECS_NAME,
|
||||||
adgd.SPECS_NAME_ID AS SPECS_NAME_ID,
|
adgc.SPECS_NAME_ID AS SPECS_NAME_ID,
|
||||||
adgr.QUANTITY AS USABLE_QUANTITY,
|
adgr.QUANTITY AS USABLE_QUANTITY,
|
||||||
bp.COVER AS PICK_COVER,
|
bp.COVER AS PICK_COVER,
|
||||||
0 AS IS_FREE_MAIL,
|
0 AS IS_FREE_MAIL,
|
||||||
|
|
@ -52,11 +52,10 @@
|
||||||
adgr.PK_BASE_ID AS PK_BASE_ID,
|
adgr.PK_BASE_ID AS PK_BASE_ID,
|
||||||
SYSDATE AS CREATION_TIME,
|
SYSDATE AS CREATION_TIME,
|
||||||
100000000 AS PK_CREATOR,
|
100000000 AS PK_CREATOR,
|
||||||
#{pkCountry} AS PK_COUNTRY
|
1 AS PK_COUNTRY
|
||||||
FROM
|
FROM
|
||||||
AC_DECLARATION_GIFT_RECORD adgr
|
AC_DECLARATION_GIFT_RECORD adgr
|
||||||
LEFT JOIN AC_DECLARATION_GIFT_CONFIG adgc ON adgr.PK_RULE_ID = adgc.PK_ID
|
LEFT JOIN AC_DECLARATION_GIFT_CONFIG adgc ON adgr.PK_RULE_ID = adgc.PK_ID
|
||||||
LEFT JOIN AC_DECLARATION_GIFT_DETAIL adgd ON adgc.PK_ID = adgd.PK_RULE_ID
|
|
||||||
LEFT JOIN BD_PRODUCT bp ON adgr.PK_PRODUCT = bp.PK_ID
|
LEFT JOIN BD_PRODUCT bp ON adgr.PK_PRODUCT = bp.PK_ID
|
||||||
LEFT JOIN BD_PRODUCT_EXTEND bpe ON bp.PK_ID = bpe.PK_PRODUCT
|
LEFT JOIN BD_PRODUCT_EXTEND bpe ON bp.PK_ID = bpe.PK_PRODUCT
|
||||||
WHERE
|
WHERE
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
<?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.hzs.activity.declaration.mapper.AcDeclarationGiftDetailMapper">
|
|
||||||
|
|
||||||
<!-- 通用查询映射结果 -->
|
|
||||||
<resultMap id="BaseResultMap" type="com.hzs.activity.declaration.vo.AcDeclarationGiftDetail">
|
|
||||||
<id column="PK_ID" property="pkId" />
|
|
||||||
<result column="DEL_FLAG" property="delFlag" />
|
|
||||||
<result column="CREATION_TIME" property="creationTime" />
|
|
||||||
<result column="PK_CREATOR" property="pkCreator" />
|
|
||||||
<result column="MODIFIED_TIME" property="modifiedTime" />
|
|
||||||
<result column="PK_MODIFIED" property="pkModified" />
|
|
||||||
<result column="PK_COUNTRY" property="pkCountry" />
|
|
||||||
<result column="PK_RULE_ID" property="pkRuleId" />
|
|
||||||
<result column="PK_PRODUCT" property="pkProduct" />
|
|
||||||
<result column="SPECS_NAME" property="specsName" />
|
|
||||||
<result column="SPECS_NAME_ID" property="specsNameId" />
|
|
||||||
<result column="QUANTITY" property="quantity" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<!-- 通用查询结果列 -->
|
|
||||||
<sql id="Base_Column_List">
|
|
||||||
DEL_FLAG,
|
|
||||||
CREATION_TIME,
|
|
||||||
PK_CREATOR,
|
|
||||||
MODIFIED_TIME,
|
|
||||||
PK_MODIFIED,
|
|
||||||
PK_COUNTRY,
|
|
||||||
PK_ID, PK_RULE_ID, PK_PRODUCT, SPECS_NAME, SPECS_NAME_ID, QUANTITY
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
Loading…
Reference in New Issue