wuxw
2024-06-13 7a9ac5d05cb708c497521f0938dc96d4f717a239
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.java110.acct.integral.impl;
 
import com.java110.acct.integral.IGiftIntegral;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.dto.fee.FeeAttrDto;
import com.java110.dto.integral.GiftIntegralDto;
import com.java110.intf.acct.IIntegralGiftDetailV1InnerServiceSMO;
import com.java110.po.integral.IntegralGiftDetailPo;
import com.java110.utils.cache.MappingCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
@Service
public class GiftIntegralImpl implements IGiftIntegral {
 
    private static final String MALL_DOMAIN = "MALL";
 
    @Autowired
    private IIntegralGiftDetailV1InnerServiceSMO integralGiftDetailV1InnerServiceSMOImp;
 
    @Override
    public void gift(GiftIntegralDto giftIntegralDto) {
        String mallSwitch = MappingCache.getValue(MALL_DOMAIN, "MALL_SWITCH");
 
        if (!"ON".equals(mallSwitch)) {
            return ;
        }
 
 
 
        //先加明细
//        IntegralGiftDetailPo integralGiftDetailPo = new IntegralGiftDetailPo();
//        integralGiftDetailPo.setCommunityId(giftIntegralDto.get());
//        integralGiftDetailPo.setAcctId(accountDto.getAcctId());
//        integralGiftDetailPo.setAcctName(accountDto.getAcctName());
//        integralGiftDetailPo.setAcctDetailId("-1");
//        integralGiftDetailPo.setDetailId(GenerateCodeFactory.getGeneratorId("11"));
//        integralGiftDetailPo.setConfigId(integralRuleConfigDto.getConfigId());
//        integralGiftDetailPo.setConfigName(integralRuleConfigDto.getConfigName());
//        integralGiftDetailPo.setRuleId(integralRuleConfigDto.getRuleId());
//        integralGiftDetailPo.setRuleName(integralRuleConfigDto.getRuleName());
//        integralGiftDetailPo.setQuantity(integralRuleConfigDto.getQuantity());
//        integralGiftDetailPo.setCreateUserId(FeeAttrDto.getFeeAttrValue(feeDto, FeeAttrDto.SPEC_CD_OWNER_ID));
//        integralGiftDetailPo.setUserName(FeeAttrDto.getFeeAttrValue(feeDto, FeeAttrDto.SPEC_CD_OWNER_NAME));
//        integralGiftDetailPo.setTel(FeeAttrDto.getFeeAttrValue(feeDto, FeeAttrDto.SPEC_CD_OWNER_LINK));
//        integralGiftDetailV1InnerServiceSMOImpl.saveIntegralGiftDetail(integralGiftDetailPo);
    }
}