|
|
|
@ -93,9 +93,11 @@ public class ThirdAliDrugController extends BaseController {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
thirdAliDrug.setNameCodeIn(nameCodeIn);
|
|
|
|
|
List<ThirdAliDrug> list = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
// 不查本地库全查阿里的库
|
|
|
|
|
List<ThirdAliDrug> list = thirdAliDrugService.filterList(thirdAliDrug);
|
|
|
|
|
if(list == null || list.size() == 0){
|
|
|
|
|
// List<ThirdAliDrug> list = thirdAliDrugService.filterList(thirdAliDrug);
|
|
|
|
|
// if(list == null || list.size() == 0){
|
|
|
|
|
|
|
|
|
|
AuthAliUser authAliUser = authAliUserService.getOne();
|
|
|
|
|
AlihealthThirdAliDrugInsertReqeust alihealthThirdAliDrugInsertReqeust = new AlihealthThirdAliDrugInsertReqeust();
|
|
|
|
@ -104,7 +106,7 @@ public class ThirdAliDrugController extends BaseController {
|
|
|
|
|
alihealthThirdAliDrugInsertReqeust.setManufactory(thirdAliDrug.getManufacturer());
|
|
|
|
|
alihealthThirdAliDrugInsertReqeust.setBzgg(thirdAliDrug.getBzgg());
|
|
|
|
|
alihealthThirdAliDrugInsertReqeust.setFormSpec(thirdAliDrug.getFormSpec());
|
|
|
|
|
|
|
|
|
|
alihealthThirdAliDrugInsertReqeust.setNameCodeIn(nameCodeIn);
|
|
|
|
|
alihealthThirdAliDrugInsertReqeust.setGjkSwitch(true);
|
|
|
|
|
AlihealthKytDrugrescodeReqeust alihealthKytDrugrescodeReqeust = new AlihealthKytDrugrescodeReqeust();
|
|
|
|
|
alihealthKytDrugrescodeReqeust.setPhysic_name(thirdAliDrug.getCpmctymc());
|
|
|
|
@ -144,7 +146,7 @@ public class ThirdAliDrugController extends BaseController {
|
|
|
|
|
log.error("获取阿里和国家库码段信息出现错误===" + e.getMessage());
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
PageInfo<ThirdAliDrug> pageInfo = new PageInfo<>(list);
|
|
|
|
|
PageSimpleResponse<ThirdAliDrug> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
pageSimpleResponse.setTotal(pageInfo.getTotal());
|
|
|
|
|