2204-11-17 (营销)

yingxiao
笨蛋 2024-11-19 16:00:35 +08:00
parent d02b408ef1
commit 5cabdfbc05
7 changed files with 39 additions and 8 deletions

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>muyu-marketing</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>marketing-common</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View File

@ -0,0 +1,7 @@
package com.muyu;
public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}

View File

@ -91,6 +91,8 @@ public class ProjectInfo extends BaseEntity {
@ApiModelProperty(name = "品牌", value = "品牌") @ApiModelProperty(name = "品牌", value = "品牌")
private Long brandId; private Long brandId;
/** /**
* *
*/ */

View File

@ -95,6 +95,7 @@ public class CategoryInfoController extends BaseController {
CategoryInfoSaveModel.saveBuild(categoryInfoSaveReq, SecurityUtils::getUsername) CategoryInfoSaveModel.saveBuild(categoryInfoSaveReq, SecurityUtils::getUsername)
)); ));
} }
/** /**
* *
*/ */
@ -104,7 +105,7 @@ public class CategoryInfoController extends BaseController {
@ApiOperation("修改品类信息") @ApiOperation("修改品类信息")
public Result<String> edit(@PathVariable Long id, @RequestBody CategoryInfoEditReq categoryInfoEditReq) { public Result<String> edit(@PathVariable Long id, @RequestBody CategoryInfoEditReq categoryInfoEditReq) {
boolean b = categoryInfoService.updateUpdById(id, categoryInfoEditReq); boolean b = categoryInfoService.updateUpdById(id, categoryInfoEditReq);
if (b){ if (b) {
return Result.success("修改成功"); return Result.success("修改成功");
} }
return Result.success("......"); return Result.success("......");
@ -115,7 +116,7 @@ public class CategoryInfoController extends BaseController {
*/ */
@RequiresPermissions("product:category:remove") @RequiresPermissions("product:category:remove")
@Log(title = "品类信息", businessType = BusinessType.DELETE) @Log(title = "品类信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
@ApiOperation("删除品类信息") @ApiOperation("删除品类信息")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4") @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) { public Result<String> remove(@PathVariable List<Long> ids) {
@ -124,15 +125,14 @@ public class CategoryInfoController extends BaseController {
/** /**
* ID * ID
*
* @param categoryId ID * @param categoryId ID
* @return * @return
*/ */
@GetMapping("/parentCommonElement/{categoryId}") @GetMapping("/parentCommonElement/{categoryId}")
@ApiOperation("通过品类ID获取父级以上的属性集合") @ApiOperation("通过品类ID获取父级以上的属性集合")
@ApiImplicitParam(name = "categoryId", value = "categoryId", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class, example = "1") @ApiImplicitParam(name = "categoryId", value = "categoryId", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class, example = "1")
public Result<CategoryParentCommonElementResp> parentCommonElement( public Result<CategoryParentCommonElementResp> parentCommonElement(@PathVariable(value = "categoryId") Long categoryId) {
@PathVariable(value = "categoryId") Long categoryId
) {
return Result.success(categoryInfoService.parentCommonElement(categoryId)); return Result.success(categoryInfoService.parentCommonElement(categoryId));
} }
} }

View File

@ -70,7 +70,7 @@ public class ProjectInfoController extends BaseController {
} }
/** /**
* *
*/ */
@ApiOperation("获取商品信息详细信息") @ApiOperation("获取商品信息详细信息")
@RequiresPermissions("product:info:query") @RequiresPermissions("product:info:query")
@ -81,7 +81,7 @@ public class ProjectInfoController extends BaseController {
} }
/** /**
* *
*/ */
@ApiOperation("获取商品信息详细信息") @ApiOperation("获取商品信息详细信息")
@RequiresPermissions("product:info:query") @RequiresPermissions("product:info:query")
@ -92,7 +92,7 @@ public class ProjectInfoController extends BaseController {
} }
/** /**
* *
*/ */
@ApiOperation("获取商品信息详细信息") @ApiOperation("获取商品信息详细信息")
@RequiresPermissions("product:info:query") @RequiresPermissions("product:info:query")

View File

@ -398,6 +398,7 @@ public class CategoryInfoServiceImpl extends ServiceImpl<CategoryInfoMapper, Cat
List<Long> cateGoryIdList = new ArrayList<>(); List<Long> cateGoryIdList = new ArrayList<>();
getParentIdListByCateGoryId(cateGoryIdList, cateGoryId); getParentIdListByCateGoryId(cateGoryIdList, cateGoryId);
// 取出和品类相关联的属性组关系 - 中间表 // 取出和品类相关联的属性组关系 - 中间表
LambdaQueryWrapper<AsCategoryAttributeGroup> asCategoryAttributeGroupLambdaQueryWrapper = new LambdaQueryWrapper<>(){{ LambdaQueryWrapper<AsCategoryAttributeGroup> asCategoryAttributeGroupLambdaQueryWrapper = new LambdaQueryWrapper<>(){{
in(AsCategoryAttributeGroup::getCategoryId, cateGoryIdList); in(AsCategoryAttributeGroup::getCategoryId, cateGoryIdList);
}}; }};

View File

@ -15,6 +15,7 @@
<module>muyu-file</module> <module>muyu-file</module>
<module>muyu-product</module> <module>muyu-product</module>
<module>muyu-shop-cart</module> <module>muyu-shop-cart</module>
<module>muyu-marketing</module>
</modules> </modules>
<artifactId>muyu-modules</artifactId> <artifactId>muyu-modules</artifactId>