-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e8582c
commit 2b02d98
Showing
16 changed files
with
256 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spzx/spzx-manager/src/main/resources/mapper/product/ProductMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
spzx/spzx-model/src/main/java/com/model/vo/product/ProductItemVo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.model.vo.product; | ||
|
||
import com.alibaba.fastjson.JSONArray; | ||
import com.model.entity.product.Product; | ||
import com.model.entity.product.ProductSku; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* @author 帕斯卡的芦苇 | ||
* @date 2025/2/12 | ||
**/ | ||
@Data | ||
public class ProductItemVo { | ||
private ProductSku productSku; | ||
private Product product; | ||
private List<String> sliderUrlList; | ||
private List<String> detailsImageUrlList; | ||
private JSONArray specValueList; | ||
private Map<String,Object> skuSpecValueMap; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
spzx/spzx-service/service-product/src/main/java/com/product/mapper/ProductDetailsMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.product.mapper; | ||
|
||
import com.model.entity.product.ProductDetails; | ||
import org.apache.ibatis.annotations.Mapper; | ||
|
||
/** | ||
* @author 帕斯卡的芦苇 | ||
* @date 2025/2/12 | ||
**/ | ||
@Mapper | ||
public interface ProductDetailsMapper { | ||
ProductDetails getByProductId(Long productId); | ||
} |
13 changes: 13 additions & 0 deletions
13
spzx/spzx-service/service-product/src/main/java/com/product/mapper/ProductMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.product.mapper; | ||
|
||
import com.model.entity.product.Product; | ||
import org.apache.ibatis.annotations.Mapper; | ||
|
||
/** | ||
* @author 帕斯卡的芦苇 | ||
* @date 2025/2/12 | ||
**/ | ||
@Mapper | ||
public interface ProductMapper { | ||
Product getById(Long productId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
spzx/spzx-service/service-product/src/main/resources/mapper/product/ProductMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
<mapper namespace="com.product.mapper.ProductMapper"> | ||
<sql id="columns"> | ||
id,name,brand_id,category1_id,category2_id,category3_id,unit_name,slider_urls,spec_value,status,audit_status,audit_message,create_time,update_time,is_deleted | ||
</sql> | ||
<select id="getById" resultType="com.model.entity.product.Product"> | ||
select | ||
<include refid="columns"/> | ||
from product | ||
where | ||
id = #{id} | ||
</select> | ||
</mapper> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
spzx/spzx-service/service-product/src/main/resources/mapper/product/productDetailsMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
<mapper namespace="com.product.mapper.ProductDetailsMapper"> | ||
<sql id="columns"> | ||
id,product_id,image_urls,create_time,update_time,is_deleted | ||
</sql> | ||
<select id="getByProductId" resultType="com.model.entity.product.ProductDetails"> | ||
select | ||
<include refid="columns"/> | ||
from product_details | ||
where product_id = #{productId} | ||
</select> | ||
</mapper> |
15 changes: 15 additions & 0 deletions
15
spzx/spzx-service/service-user/src/main/java/com/user/UserApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.user; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
/** | ||
* @author 帕斯卡的芦苇 | ||
* @date 2025/2/12 | ||
**/ | ||
@SpringBootApplication | ||
public class UserApplication { | ||
public static void main(String[] args) { | ||
SpringApplication.run(UserApplication.class, args); | ||
} | ||
} |