|
|
@ -118,7 +118,7 @@ public class UdiProductServiceImpl implements UdiProductService {
|
|
|
|
|
|
|
|
|
|
|
|
//医保编码解析
|
|
|
|
//医保编码解析
|
|
|
|
String catalogcode = udiProductEntity.getCatalogcode();
|
|
|
|
String catalogcode = udiProductEntity.getCatalogcode();
|
|
|
|
if (catalogcode.length() >= 7) {
|
|
|
|
if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) {
|
|
|
|
Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3));
|
|
|
|
Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3));
|
|
|
|
Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5));
|
|
|
|
Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5));
|
|
|
|
Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7));
|
|
|
|
Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7));
|
|
|
@ -166,7 +166,7 @@ public class UdiProductServiceImpl implements UdiProductService {
|
|
|
|
udiProductEntity.setUpdateTime(new Date());
|
|
|
|
udiProductEntity.setUpdateTime(new Date());
|
|
|
|
//医保编码解析
|
|
|
|
//医保编码解析
|
|
|
|
String catalogcode = udiProductEntity.getCatalogcode();
|
|
|
|
String catalogcode = udiProductEntity.getCatalogcode();
|
|
|
|
if (catalogcode.length() >= 7) {
|
|
|
|
if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) {
|
|
|
|
Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3));
|
|
|
|
Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3));
|
|
|
|
Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5));
|
|
|
|
Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5));
|
|
|
|
Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7));
|
|
|
|
Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7));
|
|
|
|