...
|
...
|
@@ -6,6 +6,7 @@ import java.text.SimpleDateFormat; |
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
...
|
...
|
@@ -35,8 +36,8 @@ public class SelfShelvesServiceImpl implements SelfShelvesService { |
|
|
|
|
|
@Override
|
|
|
public int save(ProductSelfShelves pss, String price, String saleTime, List<String> imageList) {
|
|
|
pss.setPrice(BigDecimal.valueOf(Long.parseLong(price)));
|
|
|
pss.setSaleTime((int)convertDateToLong(saleTime));
|
|
|
pss.setPrice(StringUtils.isEmpty(price) ? null : BigDecimal.valueOf(Long.parseLong(price)));
|
|
|
pss.setSaleTime(StringUtils.isEmpty(saleTime) ? null : (int)convertDateToLong(saleTime));
|
|
|
pss.setCreateTime(DateUtil.getCurrentTimeSecond());
|
|
|
pss.setUpdateTime(DateUtil.getCurrentTimeSecond());
|
|
|
|
...
|
...
|
|