| | |
| | | import cc.mrbird.febs.common.enumerates.DataDictionaryEnum; |
| | | import cc.mrbird.febs.common.utils.FebsUtil; |
| | | import cc.mrbird.febs.mall.dto.ScoreSettingDto; |
| | | import cc.mrbird.febs.mall.dto.XcxSettingDto; |
| | | import cc.mrbird.febs.mall.entity.DataDictionaryCustom; |
| | | import cc.mrbird.febs.mall.entity.MallGoods; |
| | | import cc.mrbird.febs.mall.mapper.DataDictionaryCustomMapper; |
| | |
| | | return FebsUtil.view("modules/goods/goodsList"); |
| | | } |
| | | |
| | | |
| | | @GetMapping("xcxSetting") |
| | | @RequiresPermissions("xcxSetting:view") |
| | | public String xcxSetting(Model model) { |
| | | String appId = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.XCX_APP_ID.getType(), |
| | | DataDictionaryEnum.XCX_APP_ID.getCode() |
| | | ).getValue(); |
| | | String mchId = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.XCX_MCH_ID.getType(), |
| | | DataDictionaryEnum.XCX_MCH_ID.getCode() |
| | | ).getValue(); |
| | | String mchKey = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.XCX_MCH_KEY.getType(), |
| | | DataDictionaryEnum.XCX_MCH_KEY.getCode() |
| | | ).getValue(); |
| | | String keyPath = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.XCX_MCH_KEY_PATH_P12.getType(), |
| | | DataDictionaryEnum.XCX_MCH_KEY_PATH_P12.getCode() |
| | | ).getValue(); |
| | | String notifyUrl = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.XCX_NOTICE_URL.getType(), |
| | | DataDictionaryEnum.XCX_NOTICE_URL.getCode() |
| | | ).getValue(); |
| | | XcxSettingDto xcxSettingDto = new XcxSettingDto(); |
| | | xcxSettingDto.setAppId(appId); |
| | | xcxSettingDto.setMchId(mchId); |
| | | xcxSettingDto.setMchKey(mchKey); |
| | | xcxSettingDto.setKeyPath(keyPath); |
| | | xcxSettingDto.setNotifyUrl(notifyUrl); |
| | | model.addAttribute("xcxSetting", xcxSettingDto); |
| | | return FebsUtil.view("modules/goods/xcxSetting"); |
| | | } |
| | | |
| | | /** |
| | | * app商品列表 |
| | | * @return |
| | | */ |
| | | @GetMapping("goodsAppList") |
| | | @RequiresPermissions("goodsAppList:view") |
| | | public String goodsAppList() { |
| | | return FebsUtil.view("modules/goods/goodsAppList"); |
| | | } |
| | | /** |
| | | * app商品-新增 |
| | | * @return |
| | | */ |
| | | @GetMapping("goodsAppAddNew") |
| | | @RequiresPermissions("goodsAppAddNew:add") |
| | | public String goodsAppAddNew() { |
| | | return FebsUtil.view("modules/goods/goodsAppAddNew"); |
| | | } |
| | | /** |
| | | * app商品-编辑-详情 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("goodsAppUpdateNew/{id}") |
| | | @RequiresPermissions("goodsAppUpdateNew:update") |
| | | public String goodsAppUpdateNew(@PathVariable long id, Model model) { |
| | | MallGoods data = mallGoodsService.selectGoodsById(id); |
| | | model.addAttribute("goodsInfo", data); |
| | | return FebsUtil.view("modules/goods/goodsAppUpdateNew"); |
| | | } |
| | | |
| | | /** |
| | | * 商品-新增 |
| | | * @return |