|
|
|
@ -49,6 +49,7 @@ public class UdiProductServiceImpl implements UdiProductService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(UdiProductService.class);
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<UdiProductEntity> filterUdiInfo(FilterUdiRelRequest filterUdiRelRequest) {
|
|
|
|
|
if (filterUdiRelRequest == null) {
|
|
|
|
@ -131,6 +132,7 @@ public class UdiProductServiceImpl implements UdiProductService {
|
|
|
|
|
return udiProductEntities.get(0);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean insertUdiInfo(UdiProductEntity udiProductEntity) {
|
|
|
|
|
if (udiProductEntity.getId() == null) {
|
|
|
|
|
udiProductEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
@ -205,7 +207,7 @@ public class UdiProductServiceImpl implements UdiProductService {
|
|
|
|
|
return udiProductDao.updateUdiInfoByUuid(udiProductEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
|
// @Override
|
|
|
|
|
// public boolean updateUdiInfoById(UdiProductEntity udiProductEntity) {
|
|
|
|
|
// udiProductEntity.setUpdateTime(new Date());
|
|
|
|
|
// //医保编码解析
|
|
|
|
@ -466,7 +468,7 @@ public class UdiProductServiceImpl implements UdiProductService {
|
|
|
|
|
diLevelResponse.setPackUnit(udiProductEntity.getPackUnit());
|
|
|
|
|
diLevelResponse.setBhxjsl(udiProductEntity.getBhxjsl());
|
|
|
|
|
diLevelResponses.add(diLevelResponse);
|
|
|
|
|
if (udiProductEntity.getProductsType() == 2 && IntUtil.value(udiProductEntity.getPackLevel()) == 1) {
|
|
|
|
|
if (IntUtil.value(udiProductEntity.getPackLevel()) == 1) {
|
|
|
|
|
DiLevelResponse diLevelResponse1 = new DiLevelResponse();
|
|
|
|
|
diLevelResponse1.setLevelUnit(udiProductEntity.getXjdw());
|
|
|
|
|
diLevelResponse1.setPackLevel(0);
|
|
|
|
@ -590,6 +592,7 @@ public class UdiProductServiceImpl implements UdiProductService {
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(now);
|
|
|
|
|
udiRelevanceEntity.setUpdateUser(userId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class CountWrapper {
|
|
|
|
|
private int count;
|
|
|
|
|
|
|
|
|
|