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

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

@ -340,8 +340,8 @@ public class YysPostServiceImpl extends ServiceImpl<YysPostMapper, YysPostEntity
entity.setCreatorUserId(userInfo.getUserId()); entity.setCreatorUserId(userInfo.getUserId());
entity.setId(mainId); entity.setId(mainId);
} else { } else {
entity.setLastModifyTime(DateUtil.getNowDate()); entity.setLastModifyTime(DateUtil.getNowDate());
entity.setLastModifyUserId(userInfo.getUserId()); entity.setLastModifyUserId(userInfo.getUserId());
} }
this.saveOrUpdate(entity); this.saveOrUpdate(entity);

Loading…
Cancel
Save