|
|
|
@ -28,6 +28,12 @@ public class UdiInfoUtil {
|
|
|
|
|
if (StrUtil.isNotEmpty(udiProductEntity.getScbssfbhsxrq()) && "否".equals(udiProductEntity.getScbssfbhsxrq())) {
|
|
|
|
|
udiProductEntity.setAllowNoExpire(true);
|
|
|
|
|
}
|
|
|
|
|
if (StrUtil.isNotEmpty(udiProductEntity.getScbssfbhxlh()) && "否".equals(udiProductEntity.getScbssfbhxlh())) {
|
|
|
|
|
udiProductEntity.setAllowNoExpire(true);
|
|
|
|
|
} else if (StrUtil.isEmpty(udiProductEntity.getScbssfbhxlh())) {
|
|
|
|
|
udiProductEntity.setAllowNoExpire(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return udiProductEntity;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -47,12 +53,17 @@ public class UdiInfoUtil {
|
|
|
|
|
if (StrUtil.isNotEmpty(udiProductEntity.getScbssfbhsxrq()) && "否".equals(udiProductEntity.getScbssfbhsxrq())) {
|
|
|
|
|
udiProductEntity.setAllowNoExpire(true);
|
|
|
|
|
}
|
|
|
|
|
//名字转拼音
|
|
|
|
|
if(StrUtil.isNotBlank(udiProductEntity.getCpmctymc())){
|
|
|
|
|
if (StrUtil.isNotEmpty(udiProductEntity.getScbssfbhxlh()) && "否".equals(udiProductEntity.getScbssfbhxlh())) {
|
|
|
|
|
udiProductEntity.setAllowNoExpire(true);
|
|
|
|
|
} else if (StrUtil.isEmpty(udiProductEntity.getScbssfbhxlh())) {
|
|
|
|
|
udiProductEntity.setAllowNoExpire(true);
|
|
|
|
|
}
|
|
|
|
|
//名字转拼音
|
|
|
|
|
if (StrUtil.isNotBlank(udiProductEntity.getCpmctymc())) {
|
|
|
|
|
try {
|
|
|
|
|
String pinyin= PinyinUtils.converterToFirstSpell(udiProductEntity.getCpmctymc());
|
|
|
|
|
String pinyin = PinyinUtils.converterToFirstSpell(udiProductEntity.getCpmctymc());
|
|
|
|
|
udiProductEntity.setPinyinInitial(pinyin);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
logger.error(ExceptionUtils.getStackTrace(e));
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|