处理特殊情况导致的DBlength为null,无法同步数据库的情况

This commit is contained in:
lixuetao
2022-03-31 00:14:19 +08:00
parent ccc91f4508
commit 078582997d
2 changed files with 6 additions and 0 deletions
@@ -6,6 +6,7 @@ import com.jero.common.aspect.annotation.AutoLog;
import com.jero.common.constant.CommonConstant;
import com.jero.common.system.base.controller.JeroController;
import com.jero.generater.modules.online.cgform.controller.OnlCgformApiController;
import com.jero.generater.modules.online.cgform.util.CgformUtil;
import com.jero.modules.enums.FixedFieldEnum;
import com.jero.modules.system.service.impl.SysDictItemServiceImpl;
import com.jero.modules.tag.entity.OnlCgformArea;
@@ -62,6 +62,11 @@ public class OnlCgformTagServiceImpl extends ServiceImpl<OnlCgformTagMapper, Onl
if (count > 0) {
onlCgformTag.setIsDelete(CommonConstant.DEL_FLAG_0);
} else {
//处理DBLength为null的情况,默认为100
if (onlCgformTag.getDbLength() == null){
onlCgformTag.setDbLength(100);
}
onlCgformTag.setIsDelete(CommonConstant.DEL_FLAG_0);
onlCgformTag.setCgformHeadId(FileTableIdEnum.FILE_TABLE_ID.getValue());//设置文档库-表id
onlCgformTag.setDbIsKey(Integer.valueOf(YesOrNoEnum.NO.getValue()));