Authored by mali

上链迁移

package com.yoho.ufo.service.impl;
import org.springframework.stereotype.Service;
/**
* Created by li.ma on 2020/3/31.
*/
@Service
public class ProductChainService {
}
package com.yoho.ufo.controller.nfc;
import com.yoho.product.model.ProductInfo;
import com.yoho.ufo.exception.PlatformException;
import com.yoho.ufo.service.INFCService;
import com.yoho.ufo.service.impl.ProductChainService;
import com.yoho.ufo.service.model.ApiResponse;
import com.yohobuy.ufo.model.request.nfc.ProductInfoReq;
import com.yohobuy.ufo.model.request.nfc.UfoNFCRequestBo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
... ...
... ... @@ -161,9 +161,12 @@ public class ProductChainService {
return productChainMapper.updateTransactionId(tagId, transaction_id);
}
// 同步上链的数据
public void addItem(ProductInfoReq bo) {
Long generateid = generateid();
logger.info("generateid is : " , generateid);
updatechainSql(bo.getTagid(), generateid, null, Integer.valueOf(bo.getTransaction_time()));
... ...
package com.yoho.ufo.service.scheduled;
import com.yoho.product.model.ProductChain;
import com.yoho.product.model.ProductInfo;
import com.yoho.quartz.annotation.JobType;
import com.yoho.quartz.annotation.MisfiredPolicy;
... ... @@ -8,7 +7,6 @@ import com.yoho.quartz.annotation.YhJobDef;
import com.yoho.quartz.domain.JobProcessResult;
import com.yoho.quartz.domain.JobResultCode;
import com.yoho.quartz.job.YhJob;
import com.yoho.ufo.service.impl.ProductChainService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
... ...
... ... @@ -7,7 +7,6 @@ import com.yoho.quartz.annotation.YhJobDef;
import com.yoho.quartz.domain.JobProcessResult;
import com.yoho.quartz.domain.JobResultCode;
import com.yoho.quartz.job.YhJob;
import com.yoho.ufo.service.impl.ProductChainService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
... ...
... ... @@ -28,6 +28,7 @@
<value>queryBatchProductStorageCount</value>
<value>getBaseSortsById</value>
<value>getBrandSeriesByIds</value>
<value>addItem</value>
</list>
</property>
</bean>
... ...