fix 78355 数据字典-导入的数据删不掉
This commit is contained in:
+3
-1
@@ -229,12 +229,14 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
|
||||
public Integer saveMain(SysDict sysDict, List<SysDictItem> sysDictItemList) {
|
||||
int insert=0;
|
||||
try{
|
||||
sysDict.setIsTagDict(0);
|
||||
sysDict.setIsReadOnly(0);
|
||||
insert = sysDictMapper.insert(sysDict);
|
||||
if (sysDictItemList != null) {
|
||||
for (SysDictItem entity : sysDictItemList) {
|
||||
entity.setDictId(sysDict.getId());
|
||||
entity.setStatus(1);
|
||||
entity.setIsReadOnly(YesOrNoEnum.NO.getInteger());
|
||||
entity.setIsReadOnly(0);
|
||||
entity.setIsTagDict(0);
|
||||
sysDictItemMapper.insert(entity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user