|
@@ -1,6 +1,5 @@
|
|
|
package com.fjhx.oa.service.seal.impl;
|
|
|
|
|
|
-import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
@@ -64,8 +63,7 @@ public class SealUseServiceImpl extends ServiceImpl<SealUseMapper, SealUse> impl
|
|
|
|
|
|
@Override
|
|
|
public SealUseVo detail(Long id) {
|
|
|
- SealUse SealUse = this.getById(id);
|
|
|
- SealUseVo result = BeanUtil.toBean(SealUse, SealUseVo.class);
|
|
|
+ SealUseVo result = baseMapper.detail(IWrapper.<SealUse>getWrapper().eq("su", SealUse::getId, id));
|
|
|
|
|
|
setInfo(Arrays.asList(result));
|
|
|
return result;
|
|
@@ -82,7 +80,7 @@ public class SealUseServiceImpl extends ServiceImpl<SealUseMapper, SealUse> impl
|
|
|
@DSTransactional
|
|
|
@Override
|
|
|
public void addOrEdit(SealUseDto sealUseDto) {
|
|
|
- this.save(sealUseDto);
|
|
|
+ this.saveOrUpdate(sealUseDto);
|
|
|
ObsFileUtil.editFile(sealUseDto.getFileList(), sealUseDto.getId(), 10);
|
|
|
ObsFileUtil.editFile(sealUseDto.getCompanyFileList(), sealUseDto.getId(), 20);
|
|
|
ObsFileUtil.editFile(sealUseDto.getCustomerFileList(), sealUseDto.getId(), 30);
|