KKSU
2024-08-22 7a372033d44ba48383d9d1bc97e5d583b26a266f
src/main/java/cc/mrbird/febs/mall/controller/AdminSystemController.java
@@ -31,20 +31,15 @@
@RequestMapping(value = "/admin/system")
public class AdminSystemController {
    @Autowired
    private ISystemService systemService;
    private final ISystemService systemService;
    private final ICommonService commonService;
    @Autowired
    private IMemberProfitService memberProfitService;
    private final AgentProducer agentProducer;
    private final DataDictionaryCustomMapper dataDictionaryCustomMapper;
    @Autowired
    private IAgentService agentService;
    private final IAgentService agentService;
    @PostMapping(value = "/bonusSystemSetting")
    public FebsResponse bonusSystemSetting(@RequestBody Map<String, Object> map) {
@@ -55,6 +50,31 @@
    @PostMapping(value = "/cashOutSetting")
    public FebsResponse cashOutSetting(CashOutSettingDto cashOutSettingDto) {
        commonService.addDataDic(DataDictionaryEnum.CASHOUT_SETTING.getType(), DataDictionaryEnum.CASHOUT_SETTING.getCode(), cashOutSettingDto, "提现设置");
        commonService.updateDataDic(
                DataDictionaryEnum.BANK_TRANS_URL.getType(),
                DataDictionaryEnum.BANK_TRANS_URL.getCode(),
                cashOutSettingDto.getUrlStr());
        commonService.updateDataDic(
                DataDictionaryEnum.BANK_TRANS_VERIFY_IP.getType(),
                DataDictionaryEnum.BANK_TRANS_VERIFY_IP.getCode(),
                cashOutSettingDto.getVerifyIp());
        commonService.updateDataDic(
                DataDictionaryEnum.BANK_TRANS_VERIFY_PORT.getType(),
                DataDictionaryEnum.BANK_TRANS_VERIFY_PORT.getCode(),
                cashOutSettingDto.getVerifyPort());
        commonService.updateDataDic(
                DataDictionaryEnum.BANK_TRANS_FKZH.getType(),
                DataDictionaryEnum.BANK_TRANS_FKZH.getCode(),
                cashOutSettingDto.getFkzh());
        commonService.updateDataDic(
                DataDictionaryEnum.BANK_TRANS_customerId.getType(),
                DataDictionaryEnum.BANK_TRANS_customerId.getCode(),
                cashOutSettingDto.getCustomerId());
        commonService.updateDataDic(
                DataDictionaryEnum.BANK_TRANS_softwareId.getType(),
                DataDictionaryEnum.BANK_TRANS_softwareId.getCode(),
                cashOutSettingDto.getSoftwareId());
        return new FebsResponse().success();
    }
@@ -115,6 +135,14 @@
                DataDictionaryEnum.AGENT_PERK.getType(),
                DataDictionaryEnum.AGENT_PERK.getCode(),
                hlmBasicPerkDto.getAgentPerk());
        commonService.updateDataDic(
                DataDictionaryEnum.PERK_AGENT_ACHIEVE_TOTAL.getType(),
                DataDictionaryEnum.PERK_AGENT_ACHIEVE_TOTAL.getCode(),
                hlmBasicPerkDto.getPerkAgentAchieveTotal());
        commonService.updateDataDic(
                DataDictionaryEnum.PERK_AGENT_ACHIEVE_PERCENT.getType(),
                DataDictionaryEnum.PERK_AGENT_ACHIEVE_PERCENT.getCode(),
                hlmBasicPerkDto.getPerkAgentAchievePercent());
        return new FebsResponse().success();
    }
@@ -217,6 +245,11 @@
                GreenScoreEnum.JOB_ACHIEVE_RELEASE_PERCENT.getCode(),
                hlmVoucherButtonDto.getJobAchieveReleasePercent());
        return new FebsResponse().success();
    }
    @PostMapping(value = "/hlmAchieveButton")
    public FebsResponse hlmAchieveButton() {
        agentService.achieveReleasePercent();
        return new FebsResponse().success();
    }