You've already forked FrameTour-BE
fix(mobile): 修复商品名称显示问题
- 修正商品类型为3时的名称显示逻辑 - 拍摄时间格式化后添加到商品名称中 - 优化商品名称前缀拼接逻辑
This commit is contained in:
@@ -127,8 +127,6 @@ public class GoodsServiceImpl implements GoodsService {
|
||||
goodsNamePrefix = "录像";
|
||||
} else if (sourceType == 2) {
|
||||
goodsNamePrefix = "图片";
|
||||
} else if (sourceType == 3) {
|
||||
goodsNamePrefix = "AI微单";
|
||||
} else {
|
||||
goodsNamePrefix = "其他类型";
|
||||
}
|
||||
@@ -139,10 +137,14 @@ public class GoodsServiceImpl implements GoodsService {
|
||||
goodsDetailVO.setFaceId(sourceRespVO.getFaceId());
|
||||
goodsDetailVO.setGoodsId(sourceRespVO.getId());
|
||||
String shootingTime = DateUtil.format(sourceRespVO.getCreateTime(), "yyyy.MM.dd HH:mm:ss");
|
||||
if (i < 10) {
|
||||
goodsDetailVO.setGoodsName(goodsNamePrefix + "0" + i + " " + shootingTime);
|
||||
if (Integer.valueOf(3).equals(sourceType)) {
|
||||
goodsDetailVO.setGoodsName("拍摄时间:" + shootingTime);
|
||||
} else {
|
||||
goodsDetailVO.setGoodsName(goodsNamePrefix + i + " " + shootingTime);
|
||||
if (i < 10) {
|
||||
goodsDetailVO.setGoodsName(goodsNamePrefix + "0" + i + " " + shootingTime);
|
||||
} else {
|
||||
goodsDetailVO.setGoodsName(goodsNamePrefix + i + " " + shootingTime);
|
||||
}
|
||||
}
|
||||
goodsDetailVO.setScenicId(sourceRespVO.getScenicId());
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user