提交 38ed6c6a 作者: think

调查vbak表audat1,erdat2erzet字段不全的问题

上级 1566ad14
......@@ -13,6 +13,7 @@ import org.springframework.data.redis.core.ValueOperations;
import org.springframework.stereotype.Service;
import com.huazheng.project.greenplum.mapper.GPMapper;
import com.huazheng.project.greenplum.utils.SomeUtils;
import com.huazheng.project.hana.mapper.SapMapper;
import com.huazheng.project.hana.model.Afru;
import com.huazheng.project.hana.model.Afvc;
......@@ -1205,6 +1206,15 @@ public class DeleteUpdateJobServiceImpl {
source.setHashResult(shash);
while (true) {
try {
String erdat = source.getErdat();
String erzet = source.getErzet();
if ("00000000".equals(erdat)) {
source.setErdat2erzet(null);
} else {
Date date = DateUtil.parse(erdat+erzet, "yyyyMMddHHmmss");
source.setErdat2erzet(date);
}
source.setAudat1(SomeUtils.caDate(source.getAudat()));
gpMapper.updateVbak(source); // 更新数据到数仓中
break;
} catch (RuntimeException e) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论