|
@@ -5,6 +5,7 @@ import com.fs.common.utils.StringUtils;
|
|
|
import com.fs.common.utils.txocr.ContainsResult;
|
|
import com.fs.common.utils.txocr.ContainsResult;
|
|
|
import com.fs.common.utils.txocr.TxOcrClient;
|
|
import com.fs.common.utils.txocr.TxOcrClient;
|
|
|
import com.fs.hisStore.domain.FsStoreScrm;
|
|
import com.fs.hisStore.domain.FsStoreScrm;
|
|
|
|
|
+import com.fs.hisStore.enums.StoreProductTypeEnum;
|
|
|
import com.fs.hisStore.service.impl.FsStoreScrmServiceImpl;
|
|
import com.fs.hisStore.service.impl.FsStoreScrmServiceImpl;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -12,7 +13,6 @@ import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
-import java.util.Collections;
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -30,9 +30,6 @@ public class IIMedicalDeviceCheck extends AbstractHandler{
|
|
|
|
|
|
|
|
private static final List<String> medicalDeviceCodes = Arrays.asList("07", "14", "6840", "18", "19", "22");
|
|
private static final List<String> medicalDeviceCodes = Arrays.asList("07", "14", "6840", "18", "19", "22");
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void afterPropertiesSet() throws Exception {
|
|
public void afterPropertiesSet() throws Exception {
|
|
|
ProductCategoryCheckFactory.register("232", this);
|
|
ProductCategoryCheckFactory.register("232", this);
|
|
@@ -43,8 +40,9 @@ public class IIMedicalDeviceCheck extends AbstractHandler{
|
|
|
* @param cateName
|
|
* @param cateName
|
|
|
* @param storeId
|
|
* @param storeId
|
|
|
* @param medicalDeviceCode 器械编码
|
|
* @param medicalDeviceCode 器械编码
|
|
|
|
|
+ * @param productType 商品分类
|
|
|
*/
|
|
*/
|
|
|
- public ContainsResult check(String cateName, Long storeId, String medicalDeviceCode){
|
|
|
|
|
|
|
+ public ContainsResult check(String cateName, Long storeId, String medicalDeviceCode, String productType){
|
|
|
log.info("2类器械验证");
|
|
log.info("2类器械验证");
|
|
|
FsStoreScrm fsStoreScrm = fsStoreScrmService.selectFsStoreByStoreId(storeId);
|
|
FsStoreScrm fsStoreScrm = fsStoreScrmService.selectFsStoreByStoreId(storeId);
|
|
|
ContainsResult result = new ContainsResult();
|
|
ContainsResult result = new ContainsResult();
|
|
@@ -58,7 +56,7 @@ public class IIMedicalDeviceCheck extends AbstractHandler{
|
|
|
result.setMessage("没有上传2类证书不允许选择该分类!");
|
|
result.setMessage("没有上传2类证书不允许选择该分类!");
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
- if(medicalDeviceCodes.contains(medicalDeviceCode)){
|
|
|
|
|
|
|
+ if(StoreProductTypeEnum.QI_MIAN.getValue().equals(productType) && medicalDeviceCodes.contains(medicalDeviceCode)){
|
|
|
result.setFlag(true);
|
|
result.setFlag(true);
|
|
|
result.setMessage("符合所选商品分类标准");
|
|
result.setMessage("符合所选商品分类标准");
|
|
|
return result;
|
|
return result;
|