|
@@ -4,6 +4,7 @@ import com.kmall.admin.dao.GoodsTransportInfoDetailDao;
|
|
|
import com.kmall.admin.dto.GoodsTransportInfoDetailExcelDto;
|
|
|
import com.kmall.admin.entity.GoodsTransportInfoDetailEntity;
|
|
|
import com.kmall.admin.service.GoodsTransportInfoDetailService;
|
|
|
+import com.kmall.admin.utils.ShiroUtils;
|
|
|
import com.kmall.common.utils.Query;
|
|
|
import com.kmall.common.utils.RRException;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -71,6 +72,10 @@ public class GoodsTransportInfoDetailServiceImpl implements GoodsTransportInfoDe
|
|
|
return goodsTransportInfoDetailDao.queryTotalByStatusAndSku(query,wayStatus,sku);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 把excel转成的list对象一行一行插入到数据库中
|
|
|
+ * @param goodsTransportInfoDetailExcelDtoList
|
|
|
+ */
|
|
|
@Override
|
|
|
@Transactional
|
|
|
public void saveExcelDtoList(List<GoodsTransportInfoDetailExcelDto> goodsTransportInfoDetailExcelDtoList) {
|
|
@@ -86,8 +91,8 @@ public class GoodsTransportInfoDetailServiceImpl implements GoodsTransportInfoDe
|
|
|
goodsTransportInfoDetailEntity.setSupplierId(Integer.parseInt(goodsTransportInfoDetailExcelDto.getSupplierId()));
|
|
|
goodsTransportInfoDetailEntity.setOriginCountry(goodsTransportInfoDetailExcelDto.getOriginCountry());
|
|
|
goodsTransportInfoDetailEntity.setNum(Integer.parseInt(goodsTransportInfoDetailExcelDto.getNum()));
|
|
|
- goodsTransportInfoDetailEntity.setCreaterSn(goodsTransportInfoDetailExcelDto.getCreaterSn());
|
|
|
- goodsTransportInfoDetailEntity.setModerSn(goodsTransportInfoDetailExcelDto.getModerSn());
|
|
|
+ goodsTransportInfoDetailEntity.setCreaterSn(ShiroUtils.getUserId().toString());
|
|
|
+ goodsTransportInfoDetailEntity.setModerSn(ShiroUtils.getUserId().toString());
|
|
|
goodsTransportInfoDetailEntity.setTstm(new Date());
|
|
|
goodsTransportInfoDetailEntity.setModTime(new Date());
|
|
|
goodsTransportInfoDetailEntity.setCreateTime(new Date());
|