diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/page/controller/admin/ShopPageAppController.java b/mall-shop/src/main/java/com/suisung/mall/shop/page/controller/admin/ShopPageAppController.java index db728f64..1abdd980 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/page/controller/admin/ShopPageAppController.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/page/controller/admin/ShopPageAppController.java @@ -433,13 +433,14 @@ public class ShopPageAppController extends BaseControllerImpl { */ @RequestMapping(value = "/copyDiyByAppId", method = RequestMethod.POST) public CommonResult copyDiyByAppId(@RequestParam(name = "appId") Integer appId, - @RequestParam(name = "appName") String newAppName) { + @RequestParam(name = "appName") String newAppName, + @RequestParam(name = "appIndustry",required = false,defaultValue = "0") String appIndustry) { UserDto user = ContextUtil.getCurrentUser(); if (user == null) { throw new ApiUserException(I18nUtil._("用户信息异常!")); } - return CommonResult.success(shopPageAppService.copyDiyByAppId(appId, newAppName)); + return CommonResult.success(shopPageAppService.copyDiyByAppId(appId, newAppName,appIndustry)); } /** @@ -531,6 +532,7 @@ public class ShopPageAppController extends BaseControllerImpl { editShopPageApp.setIs_pulish(shopPageApp.getIs_pulish()); editShopPageApp.setApp_market_images(shopPageApp.getApp_market_images()); editShopPageApp.setTpl_image(shopPageApp.getTpl_image()); + editShopPageApp.setApp_industry(shopPageApp.getApp_industry()); shopPageAppService.edit(editShopPageApp); return CommonResult.success(); } diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/page/service/ShopPageAppService.java b/mall-shop/src/main/java/com/suisung/mall/shop/page/service/ShopPageAppService.java index ff367287..f7343b85 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/page/service/ShopPageAppService.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/page/service/ShopPageAppService.java @@ -57,7 +57,7 @@ public interface ShopPageAppService extends IBaseService { CommonResult copyDiyByStore(Integer sourceStoreId, Integer tpl_id); - CommonResult copyDiyByAppId(Integer appId,String a); + CommonResult copyDiyByAppId(Integer appId,String newAppName,String appIndustry); CommonResult deletePageApp(Integer appId); } diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/page/service/impl/ShopPageAppServiceImpl.java b/mall-shop/src/main/java/com/suisung/mall/shop/page/service/impl/ShopPageAppServiceImpl.java index e0d3400f..ca34e167 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/page/service/impl/ShopPageAppServiceImpl.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/page/service/impl/ShopPageAppServiceImpl.java @@ -987,7 +987,7 @@ public class ShopPageAppServiceImpl extends BaseServiceImpl sourceShopPageBaseQueryWrapper = new QueryWrapper<>(); diff --git a/sql/shop/dev/20251205_ddl.sql b/sql/shop/dev/20251205_ddl.sql new file mode 100644 index 00000000..9086bf43 --- /dev/null +++ b/sql/shop/dev/20251205_ddl.sql @@ -0,0 +1 @@ +ALTER table shop_page_app add app_industry char(2) not null default '0' COMMENT '行业类别:1超市,2数码家电, 3水果生鲜, 4烘培饮品, 5社区团购, 6时尚美妆, 7婴儿服饰, 8家居, 9汽车, 10酒店旅游, 11鲜花绿植, 12医药健康, 13工业五金, 14节日模板,0其他行业'; \ No newline at end of file