| | |
| | | @RequiresPermissions("cashOutSetting:update") |
| | | public String cashOutSetting(Model model) { |
| | | DataDictionaryCustom dic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.CASHOUT_SETTING.getType(), DataDictionaryEnum.CASHOUT_SETTING.getCode()); |
| | | if (dic != null) { |
| | | model.addAttribute("cashout", JSONObject.parseObject(dic.getValue(), CashOutSettingDto.class)); |
| | | CashOutSettingDto cashOutSettingDto = JSONObject.parseObject(dic.getValue(), CashOutSettingDto.class); |
| | | |
| | | DataDictionaryCustom urlDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.BANK_TRANS_URL.getType(), |
| | | DataDictionaryEnum.BANK_TRANS_URL.getCode()); |
| | | if (urlDic != null) { |
| | | cashOutSettingDto.setUrlStr(urlDic.getValue()); |
| | | } |
| | | DataDictionaryCustom verifyIpDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.BANK_TRANS_VERIFY_IP.getType(), |
| | | DataDictionaryEnum.BANK_TRANS_VERIFY_IP.getCode()); |
| | | if (verifyIpDic != null) { |
| | | cashOutSettingDto.setVerifyIp(verifyIpDic.getValue()); |
| | | } |
| | | DataDictionaryCustom verifyPortDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.BANK_TRANS_VERIFY_PORT.getType(), |
| | | DataDictionaryEnum.BANK_TRANS_VERIFY_PORT.getCode()); |
| | | if (verifyPortDic != null) { |
| | | cashOutSettingDto.setVerifyPort(verifyPortDic.getValue()); |
| | | } |
| | | DataDictionaryCustom fkzhDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.BANK_TRANS_FKZH.getType(), |
| | | DataDictionaryEnum.BANK_TRANS_FKZH.getCode()); |
| | | if (fkzhDic != null) { |
| | | cashOutSettingDto.setFkzh(fkzhDic.getValue()); |
| | | } |
| | | DataDictionaryCustom customerIdDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.BANK_TRANS_customerId.getType(), |
| | | DataDictionaryEnum.BANK_TRANS_customerId.getCode()); |
| | | if (customerIdDic != null) { |
| | | cashOutSettingDto.setCustomerId(customerIdDic.getValue()); |
| | | } |
| | | DataDictionaryCustom softwareIdDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.BANK_TRANS_softwareId.getType(), |
| | | DataDictionaryEnum.BANK_TRANS_softwareId.getCode()); |
| | | if (softwareIdDic != null) { |
| | | cashOutSettingDto.setSoftwareId(softwareIdDic.getValue()); |
| | | } |
| | | |
| | | model.addAttribute("cashout", cashOutSettingDto); |
| | | return FebsUtil.view("modules/system/cashOutSetting"); |
| | | } |
| | | |
| | |
| | | data.put("alipayPay",mallOrderInfoMapper.selectSumAmountByPayMethodAndSomeStatue(OrderPayMethodEnum.ALIPAY.getName(), states)); |
| | | data.put("scorePay",mallOrderInfoMapper.selectSumAmountByPayMethodAndSomeStatue(OrderPayMethodEnum.BANK.getName(), states)); |
| | | data.put("balancePay",mallOrderInfoMapper.selectSumAmountByPayMethodAndSomeStatue(OrderPayMethodEnum.BALANCE.getName(), states)); |
| | | data.put("LKLPay",mallOrderInfoMapper.selectSumAmountByPayMethodAndSomeStatue(OrderPayMethodEnum.LKALA.getName(), states)); |
| | | |
| | | |
| | | data.put("lastDay", mallAchieveRecordMapper.selectAchieveTotal("D", DateUtil.offsetDay(new Date(), -1))); |