|
|
@@ -2235,10 +2235,12 @@ public class TsaGoodsService {
|
|
|
|
|
|
if (goodsVideo.getVideoSq() == null || goodsVideo.getVideoSq() == 0) {
|
|
|
|
|
|
- Collection<GoodsVideo> goodsVideoList = goodsDao.getGoodsVideoList(goodsVideo);
|
|
|
- if (goodsVideoList != null && goodsVideoList.size() > 0) {
|
|
|
- GoodsVideo orgingGoodsVideo = goodsVideoList.iterator().next();
|
|
|
- goodsVideo.setVideoSq(orgingGoodsVideo.getVideoSq());
|
|
|
+ if ("Y".equals(goodsVideo.getVideoGb())) {
|
|
|
+ Collection<GoodsVideo> goodsVideoList = goodsDao.getGoodsVideoList(goodsVideo);
|
|
|
+ if (goodsVideoList != null && goodsVideoList.size() > 0) {
|
|
|
+ GoodsVideo orgingGoodsVideo = goodsVideoList.iterator().next();
|
|
|
+ goodsVideo.setVideoSq(orgingGoodsVideo.getVideoSq());
|
|
|
+ }
|
|
|
}
|
|
|
goodsDao.createGoodsVideo(goodsVideo);
|
|
|
|