feat: 老法规企标导入兼容特殊数据
This commit is contained in:
+6
@@ -262,6 +262,9 @@ public class LawsEnterpriseStandardServiceImpl extends ServiceImpl<LawsEnterpris
|
||||
String ssrq = dto.getSsrq();
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
|
||||
if (StrUtil.isNotBlank(fbrq)) {
|
||||
if (fbrq.length() == 6) {
|
||||
fbrq = fbrq + "01";
|
||||
}
|
||||
Date newDate = sdf.parse(fbrq.trim());
|
||||
if (newDate != null) {
|
||||
fb.setReleaseDate(newDate);
|
||||
@@ -270,6 +273,9 @@ public class LawsEnterpriseStandardServiceImpl extends ServiceImpl<LawsEnterpris
|
||||
}
|
||||
}
|
||||
if (StrUtil.isNotBlank(ssrq)) {
|
||||
if (ssrq.length() == 6) {
|
||||
ssrq = ssrq + "01";
|
||||
}
|
||||
Date newDate = sdf.parse(ssrq.trim());
|
||||
if (newDate != null) {
|
||||
fb.setImplementationDate(newDate);
|
||||
|
||||
Reference in New Issue
Block a user