|
@@ -458,7 +458,7 @@ public class GoodsProductServiceImpl implements GoodsProductService {
|
|
public String pullFromOms() {
|
|
public String pullFromOms() {
|
|
try {
|
|
try {
|
|
Map<String, Object> condition = new HashMap<>();
|
|
Map<String, Object> condition = new HashMap<>();
|
|
- condition.put("status", Dict.productRecordStatus.item_02.getItem() + "," + Dict.productRecordStatus.item_12.getItem());
|
|
|
|
|
|
+ condition.put("status", Dict.productRecordStatus.item_21.getItem());
|
|
List<GoodsProductEntity> goodsProductEntityList = goodsProductDao.queryList(condition);
|
|
List<GoodsProductEntity> goodsProductEntityList = goodsProductDao.queryList(condition);
|
|
if (goodsProductEntityList == null || goodsProductEntityList.size() == 0) {
|
|
if (goodsProductEntityList == null || goodsProductEntityList.size() == 0) {
|
|
return "没有要发送的数据";
|
|
return "没有要发送的数据";
|
|
@@ -492,17 +492,17 @@ public class GoodsProductServiceImpl implements GoodsProductService {
|
|
String bondedCode = treeMap.get("bondedCode").toString(); //海关商品编码
|
|
String bondedCode = treeMap.get("bondedCode").toString(); //海关商品编码
|
|
String localEmsNo = treeMap.get("localEmsNo").toString(); //园区账册编号
|
|
String localEmsNo = treeMap.get("localEmsNo").toString(); //园区账册编号
|
|
String itemRecordNo = treeMap.get("itemRecordNo").toString(); //园区商品序号
|
|
String itemRecordNo = treeMap.get("itemRecordNo").toString(); //园区商品序号
|
|
- String remark = null ;
|
|
|
|
|
|
+ /* String remark = null ;
|
|
if (treeMap.get("remark") != null) {
|
|
if (treeMap.get("remark") != null) {
|
|
remark = treeMap.get("remark").toString(); //备注
|
|
remark = treeMap.get("remark").toString(); //备注
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
String legalUnit1Qty = treeMap.get("legalUnit1Qty").toString(); //法1
|
|
String legalUnit1Qty = treeMap.get("legalUnit1Qty").toString(); //法1
|
|
String legalUnit2Qty = treeMap.get("legalUnit2Qty").toString(); //法2
|
|
String legalUnit2Qty = treeMap.get("legalUnit2Qty").toString(); //法2
|
|
String cusDeclEle = treeMap.get("cusDeclEle").toString(); //申报要素
|
|
String cusDeclEle = treeMap.get("cusDeclEle").toString(); //申报要素
|
|
- String modTime = null ;
|
|
|
|
|
|
+ /* String modTime = null ;
|
|
if (treeMap.get("modTime")!=null) {
|
|
if (treeMap.get("modTime")!=null) {
|
|
modTime = treeMap.get("modTime").toString();
|
|
modTime = treeMap.get("modTime").toString();
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
for (GoodsProductEntity goodsProductEntity : goodsProductEntityList) {
|
|
for (GoodsProductEntity goodsProductEntity : goodsProductEntityList) {
|
|
if (merchSn1.equals(goodsProductEntity.getMerchSn()) && sku.equals(goodsProductEntity.getSku()) && prodBarcode.equals(goodsProductEntity.getProdBarcode())) {
|
|
if (merchSn1.equals(goodsProductEntity.getMerchSn()) && sku.equals(goodsProductEntity.getSku()) && prodBarcode.equals(goodsProductEntity.getProdBarcode())) {
|
|
goodsProductEntity.setGrossWeight(new BigDecimal(grossWeight));
|
|
goodsProductEntity.setGrossWeight(new BigDecimal(grossWeight));
|
|
@@ -511,14 +511,14 @@ public class GoodsProductServiceImpl implements GoodsProductService {
|
|
goodsProductEntity.setLegalUnit2Qty(new BigDecimal(legalUnit2Qty));
|
|
goodsProductEntity.setLegalUnit2Qty(new BigDecimal(legalUnit2Qty));
|
|
goodsProductEntity.setCiqMainEle(ciqMainEle);
|
|
goodsProductEntity.setCiqMainEle(ciqMainEle);
|
|
goodsProductEntity.setCusDeclEle(cusDeclEle);
|
|
goodsProductEntity.setCusDeclEle(cusDeclEle);
|
|
- goodsProductEntity.setOmsAuditRemark(remark);
|
|
|
|
|
|
+// goodsProductEntity.setOmsAuditRemark(remark);
|
|
goodsProductEntity.setItemRecordNo(itemRecordNo);
|
|
goodsProductEntity.setItemRecordNo(itemRecordNo);
|
|
goodsProductEntity.setLocalEmsNo(localEmsNo);
|
|
goodsProductEntity.setLocalEmsNo(localEmsNo);
|
|
goodsProductEntity.setProdBrand(prodBrand);
|
|
goodsProductEntity.setProdBrand(prodBrand);
|
|
- if (modTime!=null) {
|
|
|
|
- goodsProductEntity.setOmsAuditTime(DateUtils.strToDate(modTime));
|
|
|
|
- }
|
|
|
|
- goodsProductEntity.setOmsAuditStatus("2");
|
|
|
|
|
|
+// if (modTime!=null) {
|
|
|
|
+// goodsProductEntity.setOmsAuditTime(DateUtils.strToDate(modTime));
|
|
|
|
+// }
|
|
|
|
+// goodsProductEntity.setOmsAuditStatus("2");
|
|
goodsProductEntity.setModTime(new Date());
|
|
goodsProductEntity.setModTime(new Date());
|
|
goodsProductEntity.setModerSn(ShiroUtils.getUserId().toString());
|
|
goodsProductEntity.setModerSn(ShiroUtils.getUserId().toString());
|
|
goodsProductEntity.setStatus(Dict.productRecordStatus.item_22.getItem());
|
|
goodsProductEntity.setStatus(Dict.productRecordStatus.item_22.getItem());
|