同步设置未选择单据类型无法保存问题

fengcang
anthonyywj2 3 years ago
parent 6cd427bed7
commit da06aad66d

@ -1,5 +1,6 @@
package com.glxp.api.admin.controller.info;
import cn.hutool.core.collection.CollUtil;
import com.alibaba.fastjson.JSON;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.entity.info.SyncDataBustypeEntity;
@ -44,7 +45,8 @@ public class SyncDataSetController {
BeanUtils.copyProperties(syncDataSetResponse, syncDataSetEntity);
List<SyncDataBustypeEntity> busTypes = syncDataSetResponse.getBusTypes();
syncDataBustypeService.deleteAll();
syncDataBustypeService.inserts(busTypes);
if (CollUtil.isNotEmpty(busTypes))
syncDataBustypeService.inserts(busTypes);
syncDataSetEntity.setBusTypes(null);
boolean b = syncDataSetService.insert(syncDataSetEntity);
if (!b) {

Loading…
Cancel
Save