|
@@ -18,6 +18,7 @@ import org.slf4j.LoggerFactory;
|
18
|
18
|
import org.springframework.beans.factory.annotation.Autowired;
|
19
|
19
|
import org.springframework.web.bind.annotation.*;
|
20
|
20
|
|
|
21
|
+import java.math.BigDecimal;
|
21
|
22
|
import java.time.LocalDateTime;
|
22
|
23
|
import java.util.List;
|
23
|
24
|
|
|
@@ -57,6 +58,7 @@ public class TaGoodsController extends BaseController {
|
57
|
58
|
List<TaGoodsSpec> specList = taGoods.getSpecList();
|
58
|
59
|
specList.stream().forEach(e -> {
|
59
|
60
|
e.setGoodsId(taGoods.getGoodsId());
|
|
61
|
+ e.setGoodsPrice(BigDecimal.valueOf(0));
|
60
|
62
|
});
|
61
|
63
|
|
62
|
64
|
boolean result = iTaGoodsSpecService.saveBatch(specList);
|