master
zengchenxi 3 months ago
parent a6fdb52e3a
commit 17f53c44aa

@ -225,6 +225,7 @@ public class YysClassesServiceImpl extends ServiceImpl<YysClassesMapper, YysClas
}
}
yysClassesQueryWrapper.lambda().isNull(YysClassesEntity::getDeleteMark);
if("0".equals(dataType)){
if((total>0 && AllIdList.size()>0) || total==0){
Page<YysClassesEntity> page=new Page<>(yysClassesPagination.getCurrentPage(), yysClassesPagination.getPageSize());
@ -255,7 +256,9 @@ public class YysClassesServiceImpl extends ServiceImpl<YysClassesMapper, YysClas
@Override
public void delete(YysClassesEntity entity){
if(entity!=null){
this.removeById(entity.getId());
entity.setDeleteMark(1);
entity.setDeleteTime(DateUtil.getNowDate());
this.updateById(entity);
}
}
/** 验证表单唯一字段,正则,非空 i-0新增-1修改*/
@ -290,8 +293,12 @@ public class YysClassesServiceImpl extends ServiceImpl<YysClassesMapper, YysClas
if(isSave){
String mainId = RandomUtil.uuId() ;
entity.setCreatorTime(DateUtil.getNowDate());
entity.setCreatorUserId(userInfo.getUserId());
entity.setId(mainId);
}else{
entity.setLastModifyTime(DateUtil.getNowDate());
entity.setLastModifyUserId(userInfo.getUserId());
}
this.saveOrUpdate(entity);

@ -64,6 +64,8 @@ public class YysDeviceServiceImpl extends ServiceImpl<YysDeviceMapper, YysDevice
int total=0;
int yysDeviceNum =0;
QueryWrapper<YysDeviceEntity> yysDeviceQueryWrapper=new QueryWrapper<>();
yysDeviceQueryWrapper.lambda().isNull(YysDeviceEntity::getDeleteMark);
List<String> allSuperIDlist = new ArrayList<>();
String superOp ="";
if (ObjectUtil.isNotEmpty(yysDevicePagination.getSuperQueryJson())){
@ -255,7 +257,9 @@ public class YysDeviceServiceImpl extends ServiceImpl<YysDeviceMapper, YysDevice
@Override
public void delete(YysDeviceEntity entity){
if(entity!=null){
this.removeById(entity.getId());
entity.setDeleteMark(1);
entity.setDeleteTime(DateUtil.getNowDate());
this.updateById(entity);
}
}
/** 验证表单唯一字段,正则,非空 i-0新增-1修改*/
@ -293,8 +297,12 @@ public class YysDeviceServiceImpl extends ServiceImpl<YysDeviceMapper, YysDevice
if(isSave){
String mainId = RandomUtil.uuId() ;
entity.setCreatorTime(DateUtil.getNowDate());
entity.setCreatorUserId(userInfo.getUserId());
entity.setId(mainId);
}else{
entity.setLastModifyTime(DateUtil.getNowDate());
entity.setLastModifyUserId(userInfo.getUserId());
}
this.saveOrUpdate(entity);

Loading…
Cancel
Save