|
|
|
@ -17,8 +17,10 @@ import com.glxp.api.http.ErpBasicClient;
|
|
|
|
|
import com.glxp.api.req.thrsys.FilterThrProductsRequest;
|
|
|
|
|
import com.glxp.api.req.thrsys.PostThrProductsRequest;
|
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.api.res.basic.UdiRelevanceResponse;
|
|
|
|
|
import com.glxp.api.res.thrsys.ThrProductsResponse;
|
|
|
|
|
import com.glxp.api.service.thrsys.ThrProductsService;
|
|
|
|
|
import com.glxp.api.util.RedisUtil;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.apache.ibatis.session.ExecutorType;
|
|
|
|
|
import org.apache.ibatis.session.SqlSession;
|
|
|
|
@ -281,6 +283,23 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
|
|
|
|
|
return thrProductsDao.filterThrProductsByMainId(relId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
RedisUtil redisUtil;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public BaseResponse uploadThrProduct(ThrSystemDetailEntity thrSystemDetailEntity) {
|
|
|
|
|
//上次修改时间
|
|
|
|
|
String lastUploadTime = (String) redisUtil.get("THR_PI_UPLOAD_TIME");
|
|
|
|
|
if (StrUtil.isEmpty(lastUploadTime)) {
|
|
|
|
|
//下载耗材字典最新维护数据
|
|
|
|
|
|
|
|
|
|
//下载第三方产品信息
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 校验拉取的第三方数据是否有更新
|
|
|
|
|
*
|
|
|
|
|